Fix "warning: 'format' attribute argument not supported: rpl_printf".
[gnulib.git] / ChangeLog
blobaf210cc93dd0aa4650308461bad8e465200e9e73
1 2020-08-16  Bruno Haible  <bruno@clisp.org>
3         Fix "warning: 'format' attribute argument not supported: rpl_printf".
4         * lib/stdio.in.h (printf): Treat clang like GCC.
6         Fix "warning: attribute declaration must precede definition" with clang.
7         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
8         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
9         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
10         on non-glibc systems.
11         * lib/netdb.in.h (gai_strerror): Likewise.
12         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
13         * lib/sys_stat.in.h (fstat): Likewise.
14         * lib/utime.in.h (utime): Likewise.
16         Fix undesired warnings.
17         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
18         clang.
20 2020-08-16  Bruno Haible  <bruno@clisp.org>
22         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
23         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
24         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
25         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
26         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
28 2020-08-16  Bruno Haible  <bruno@clisp.org>
30         Don't use Autoconf quadrigraphs.
31         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
32         Autoconf quadrigraph.
33         * m4/free.m4 (gl_FUNC_FREE): Likewise.
34         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
36         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
37         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
38         * m4/math_h.m4 (gl_MATH_H): Likewise.
39         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
41 2020-08-16  Bruno Haible  <bruno@clisp.org>
43         Fix quoting of AC_LANG_PROGRAM arguments.
44         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
45         arguments through [[...]].
46         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
47         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
48         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
49         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
50         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
51         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
52         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
53         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
54         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
55         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
56         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
57         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
58         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60 2020-08-16  Bruno Haible  <bruno@clisp.org>
62         Assume autoconf >= 2.64.
63         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
64         * DEPENDENCIES: Require Autoconf 2.64 or newer.
65         * NEWS: Mention the changed requirement.
66         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
67         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
68         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
69         variables.
70         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
71         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
72         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
73         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
74         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
75         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
76         Likewise.
77         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
78         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
79         * m4/configmake.m4: Update comment.
81 2020-08-16  Bruno Haible  <bruno@clisp.org>
83         sys_ioctl: Simplify.
84         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
85         AC_INCLUDES_DEFAULT.
87 2020-08-16  Bruno Haible  <bruno@clisp.org>
89         Fix quoting of AC_LANG_SOURCE arguments.
90         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
91         GL_NOCRASH expansion.
92         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
93         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
94         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
95         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
98 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
100         nstrftime: be more predictable about errno
101         This aligns nstrftime better with draft POSIX 202x strftime.
102         * lib/nstrftime.c: Include errno.h.
103         (width_add, __strftime_internal): Set errno on failure,
104         and preserve it on success.  Check for mktime_z failure.
105         * modules/nstrftime (Depends-on): Add errno.
106         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
107         * tests/test-nstrftime.c: Include intprops.h, limits.h.
108         (errno_test): New test function.
109         (main): Call it.
111 2020-08-15  Bruno Haible  <bruno@clisp.org>
113         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
114         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
115         from dependency analysis first.
117 2020-08-15  Bruno Haible  <bruno@clisp.org>
119         Determine asm output option and filename suffix for MSVC/clang.
120         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
121         clang-cl.
123 2020-08-15  Bruno Haible  <bruno@clisp.org>
125         doc: Update for MSVC/clang.
126         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
127         that MSVC 14 does not have.
129 2020-08-15  Bruno Haible  <bruno@clisp.org>
131         Revert autoupdate's revert.
132         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
134 2020-08-15  Bruno Haible  <bruno@clisp.org>
136         frexpl: Fix configuration test result on MSVC.
137         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
138         zero.
140 2020-08-15  Bruno Haible  <bruno@clisp.org>
142         Support compiling without -loldnames on native Windows.
143         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
144         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
145         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
146         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
147         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
149         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
150         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
151         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
152         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
153         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
154         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
155         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
156         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
157         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
158         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
159         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
161         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
162         Likewise.
163         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
164         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
165         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
166         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
167         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
168         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
169         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
170         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
171         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
172         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
173         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
174         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
175         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
176         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
177         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
178         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
179         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
180         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
181         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
182         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
183         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
184         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
185         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
186         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
187         * m4/utimens.m4 (gl_UTIMENS): Likewise.
188         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
189         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
190         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
191         test for getcwd.
192         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
193         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
194         with GL_MDA_DEFINES.
195         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
196         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
197         prefixed symbol.
198         * lib/search.in.h (lfind, lsearch): Likewise.
199         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
200         Likewise.
201         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
202         * lib/string.in.h (memccpy, strdup): Likewise.
203         * lib/sys_stat.in.h (chmod, umask): Likewise.
204         * lib/time.in.h (tzset): Likewise.
205         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
206         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
207         read, rmdir, swab, unlink, write): Likewise.
208         * lib/utime.in.h (utime): Likewise.
209         * lib/wchar.in.h (wcsdup): Likewise.
210         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
211         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
212         rpl_-prefixed macro.
213         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
214         * lib/close.c (close_nothrow): On native Windows, use _close.
215         * lib/creat.c (orig_creat): On native Windows, use _creat.
216         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
217         * lib/dup2.c (dup2_nothrow): Use _dup2.
218         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
219         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
220         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
221         * lib/open.c (orig_open): On native Windows, use _open.
222         * lib/read.c (read_nothrow): Use _read.
223         * lib/rmdir.c: On native Windows, use _rmdir.
224         * lib/unlink.c: On native Windows, use _unlink.
225         * lib/write.c (write_nothrow): Use _write.
226         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
227         undefined symbol.
228         * lib/sys_socket.in.h (close): Likewise.
229         * lib/sys_time.in.h (close): Likewise.
230         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
232 2020-08-15  Bruno Haible  <bruno@clisp.org>
234         Fix "unknown pragma ignored" warnings with clang on native Windows.
235         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
236         * lib/cbrtf.c: Likewise.
237         * lib/ceil.c: Likewise.
238         * lib/floor.c: Likewise.
239         * lib/fma.c: Likewise.
240         * lib/fmod.c: Likewise.
241         * lib/rint.c: Likewise.
242         * lib/round.c: Likewise.
243         * lib/trunc.c: Likewise.
244         * tests/test-ceil2.c: Likewise.
245         * tests/test-ceilf2.c: Likewise.
246         * tests/test-floor2.c: Likewise.
247         * tests/test-floorf2.c: Likewise.
248         * tests/test-trunc2.c: Likewise.
249         * tests/test-truncf2.c: Likewise.
250         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
251         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
253 2020-08-15  Bruno Haible  <bruno@clisp.org>
255         Fix compilation errors in C++ mode with clang on native Windows.
256         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
257         non-glibc systems.
258         * lib/sched.in.h (sched_yield): Likewise.
260 2020-08-14  Bruno Haible  <bruno@clisp.org>
262         stdnoreturn: Work around problem with MSVC/clang.
263         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
264         system header after <stdnoreturn.h>.
265         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
267 2020-08-14  Bruno Haible  <bruno@clisp.org>
269         utime-h: Generate an utime.h file always.
270         * modules/utime-h (Makefile.am): Generate utime.h always.
271         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
272         GL_GENERATE_UTIME_H.
274 2020-08-14  Bruno Haible  <bruno@clisp.org>
276         mktime, mktime-internal: Remove obsolete code.
277         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
279 2020-08-14  Bruno Haible  <bruno@clisp.org>
281         getcwd: Remove obsolete code.
282         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
283         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
285 2020-08-14  Bruno Haible  <bruno@clisp.org>
287         tzset: Assume the function exists.
288         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
289         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
290         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
291         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
292         HAVE_TZSET.
293         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
294         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
296         nstrftime: Assume tzset exists.
297         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
298         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
299         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
301         mktime, mktime-internal: Assume tzset exists.
302         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
303         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
305 2020-08-14  Bruno Haible  <bruno@clisp.org>
307         strdup: Assume the function exists.
308         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
309         whether strdup exists.
310         * modules/strdup (Files): Remove lib/strdup.c.
311         (configure.ac): Don't compile strdup.c.
312         * modules/strdup-posix (Depends-on, configure.ac): Don't test
313         ac_cv_func_strdup.
314         * doc/posix-functions/strdup.texi: Update.
315         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
316         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
317         (Depends-on): Remove unistr/u8-strlen.
319 2020-08-13  Bruno Haible  <bruno@clisp.org>
321         sys_random: Work around an uClibc bug.
322         Reported by akater <nuclearspace@gmail.com>
323         via Stefan Kangas <stefan@marxist.se>
324         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
325         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
326         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
327         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
328         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
330 2020-08-12  Bruno Haible  <bruno@clisp.org>
332         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
333         Reported by Florian Weimer in
334         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
335         * lib/gen-uni-tables.c (output_predicate): Change the element type of
336         the level3 array to 'unsigned int'.
337         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
338         * lib/unictype/categ_*.h: Regenerated.
339         * lib/unictype/ctype_*.h: Regenerated.
340         * lib/unictype/pr_*.h: Regenerated.
341         * lib/unictype/sy_*.h: Regenerated.
342         * lib/unicase/cased.h: Regenerated.
343         * lib/unicase/ignorable.h: Regenerated.
345 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
347         stdint: port intptr_t to more-recent MinGW
348         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
349         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
350         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
351         Apparently those two macros were removed in mingwrt-3.22
352         dated 2016-07-14.
354 2020-08-12  Bruno Haible  <bruno@clisp.org>
356         thread-optim: Export function-like macros only.
357         Suggested by Paul Eggert.
358         * lib/thread-optim.h (gl_multithreaded): New macro.
359         (IF_MT_DECL, IF_MT): Remove macros.
360         * doc/multithread.texi (Multithreading Optimizations): Add a small
361         example.
362         * lib/fatal-signal.c: Update all uses.
363         * lib/clean-temp.c: Likewise.
364         * lib/localename.c: Likewise.
365         * modules/localename (Depends-on): Add stdbool.
367 2020-08-12  Bruno Haible  <bruno@clisp.org>
369         Revert autoupdate's revert.
370         * config/srclist.txt: Mark regex.h as needing sync with glibc.
372 2020-08-11  Bruno Haible  <bruno@clisp.org>
374         thread-optim: Fix a compiler warning.
375         * lib/thread-optim.h (IF_MT_DECL): Define differently.
377 2020-08-11  Bruno Haible  <bruno@clisp.org>
379         Use __restrict also on clang.
380         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
381         (__restrict_arr): On clang, define like on GCC.
382         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
383         (_Restrict_arr_): Use _Restrict_ also on clang.
384         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
385         (_Restrict_arr_): Use _Restrict_ also on clang.
387 2020-08-11  Bruno Haible  <bruno@clisp.org>
389         Use flexible array syntax also on clang.
390         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
391         define like for GCC 3.
393 2020-08-11  Bruno Haible  <bruno@clisp.org>
395         fcntl: On native Windows, use _setmode, not setmode.
396         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
397         * lib/binary-io.h: Update comment.
398         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
399         * tests/test-dup2.c: Likewise.
400         * tests/test-dup-safer.c: Likewise.
401         * tests/test-fcntl.c: Likewise.
403 2020-08-11  Bruno Haible  <bruno@clisp.org>
405         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
406         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
407         * lib/spawn-pipe.c (create_pipe): Likewise.
408         * tests/test-nonblocking-pipe-main.c (main): Likewise.
409         * tests/test-nonblocking-socket-main.c (main): Likewise.
410         * lib/wait-process.c: Update comment.
411         * doc/posix-functions/fork.texi: Update.
413 2020-08-11  Bruno Haible  <bruno@clisp.org>
415         asyncsafe-spin: Use GCC built-ins also on clang.
416         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
417         the newer GCC built-ins also on clang.
419 2020-08-11  Bruno Haible  <bruno@clisp.org>
421         Use expression statements also on clang.
422         * lib/cdefs.h (__extension__): Don't define to empty on clang.
423         * lib/obstack.h (__extension__): Likewise.
424         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
425         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
426         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
427         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
428         obstack_finish, obstack_free): Enable as optimized macros also on clang.
429         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
431 2020-08-10  Bruno Haible  <bruno@clisp.org>
433         Use many __attribute__s with clang.
434         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
435         on clang.
436         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
437         New macros.
438         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
439         on clang.
440         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
441         also on older clang versions.
442         (__attribute__): Don't define to empty on clang.
443         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
444         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
445         (__attribute_const__): Use __attribute__ __const__ also on clang.
446         (__attribute_used__): Use __attribute__ __used__ also on clang.
447         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
448         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
449         clang.
450         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
451         clang.
452         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
453         also on clang.
454         (__nonnull): Use __attribute__ __nonnull__ also on clang.
455         (__attribute_warn_unused_result__): Use __attribute__
456         __warn_unused_result__ also on clang.
457         (__always_inline): Use __attribute__ __always_inline__ also on clang.
458         (__attribute_artificial__): Use __attribute__ __artificial__ also on
459         clang >= 7.
460         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
461         clang versions.
462         (_Noreturn): Don't redefine on clang >= 3.5.
463         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
464         also on clang.
465         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
466         on clang.
467         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
468         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
469         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
470         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
471         also on clang.
472         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
473         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
474         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
475         also on clang.
476         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
477         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
478         __attribute__ __noreturn__ also on clang.
479         * lib/obstack.h (__attribute_noreturn__): Likewise.
480         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
481         clang.
482         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
483         always_inline also on clang.
484         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
485         clang.
487 2020-08-10  Bruno Haible  <bruno@clisp.org>
489         c-ldtoastr tests: Fix test failure.
490         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
491         is longer than 'double'.
493 2020-08-10  Bruno Haible  <bruno@clisp.org>
495         Revert autoupdate's revert.
496         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
498 2020-08-09  Bruno Haible  <bruno@clisp.org>
500         string: Fix build error in C++ mode with clang (regression from today).
501         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
502         parameters, one for GCC, one for clang.
503         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
504         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
505         as return type.
507 2020-08-09  Bruno Haible  <bruno@clisp.org>
509         ftruncate: Use _chsize, not chsize.
510         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
511         * lib/ftruncate.c: Test HAVE__CHSIZE.
512         (chsize_nothrow): Use _chsize, not chsize.
514 2020-08-09  Bruno Haible  <bruno@clisp.org>
516         Silence warnings from clang 10 with -Wimplicit-fallthrough.
517         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
518         clang >= 10.
519         * lib/fnmatch.c (FALLTHROUGH): Likewise.
520         * lib/fts.c (FALLTHROUGH): Likewise.
521         * tests/macros.h (FALLTHROUGH): Likewise.
522         * lib/regex_internal.h (FALLTHROUGH): Likewise.
523         * config/srclist.txt: Mark it as needing sync with glibc.
525 2020-08-09  Bruno Haible  <bruno@clisp.org>
527         stdbool tests: Enable the stricter tests also on clang.
528         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
529         (e): Enable the address-to-bool conversion test also on clang.
531 2020-08-09  Bruno Haible  <bruno@clisp.org>
533         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
534         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
536 2020-08-09  Bruno Haible  <bruno@clisp.org>
538         Use attribute __aligned__ with clang.
539         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
540         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
542 2020-08-09  Bruno Haible  <bruno@clisp.org>
544         Use __alignof__ with clang.
545         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
546         on clang.
547         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
548         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
549         clang.
550         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
551         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
552         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
553         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
555 2020-08-09  Bruno Haible  <bruno@clisp.org>
557         ignore-value: Simplify on clang.
558         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
559         workaround.
561 2020-08-09  Bruno Haible  <bruno@clisp.org>
563         Use __typeof__ with clang.
564         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
565         "clang -std=gnu99".
566         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
567         * tests/test-stdint.c (verify_same_types): Enable the check also on
568         clang.
570 2020-08-09  Bruno Haible  <bruno@clisp.org>
572         Add ability to emit user-defined warnings and errors with clang.
573         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
574         _GL_ATTRIBUTE_WARNING using an attribute for clang.
575         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
576         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
577         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
578         attribute for clang.
580 2020-08-09  Bruno Haible  <bruno@clisp.org>
582         intprops: Fix typo in comment.
583         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
585 2020-08-09  Bruno Haible  <bruno@clisp.org>
587         Use __builtin_signbit* with clang.
588         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
589         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
590         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
592         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
593         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
594         not REPLACE_SIGNBIT_USING_GCC.
596 2020-08-09  Bruno Haible  <bruno@clisp.org>
598         Use __builtin_isnan with clang.
599         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
600         not __builtin_isnanf. Also on clang.
601         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
602         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
603         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
604         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
605         built-in.
606         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
607         not __builtin_isnanl. Also on clang.
608         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
609         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
610         * lib/math.in.h (__has_builtin): Remove macro.
611         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
612         __builtin_isnanf. Also on clang.
613         (isnand, gl_isnan_d): With clang, use the GCC built-in.
614         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
615         __builtin_isnanl. Also on clang.
616         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
617         on clang.
619 2020-08-09  Bruno Haible  <bruno@clisp.org>
621         thread-optim: Fix logic error.
622         Reported by Paul Eggert.
623         * lib/thread-optim.h (IF_MT): Fix logic error.
625 2020-08-08  Bruno Haible  <bruno@clisp.org>
627         localename: Use module 'thread-optim'.
628         * lib/localename.c: Include thread-optim.h.
629         (struniq): Use IF_MT macro.
630         * modules/localename (Depends-on): Add thread-optim.
632         clean-temp: Use module 'thread-optim'.
633         * lib/clean-temp.c: Include thread-optim.h.
634         (register_temporary_file, unregister_temporary_file, create_temp_dir,
635         register_temp_file, unregister_temp_file, register_temp_subdir,
636         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
637         close_temp, fclose_variant_temp): Use IF_MT macro.
638         * modules/clean-temp (Depends-on): Add thread-optim.
640         fatal-signal: Use module 'thread-optim'.
641         * lib/fatal-signal.c: Include thread-optim.h.
642         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
643         macro.
644         * modules/fatal-signal (Depends-on): Add thread-optim.
646 2020-08-08  Bruno Haible  <bruno@clisp.org>
648         New module 'thread-optim'.
649         * lib/thread-optim.h: New file.
650         * modules/thread-optim: New file.
651         * doc/multithread.texi (Multithreading Optimizations): New section.
653 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
655         doc: more updates for glibc 2.32
656         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
657         * doc/posix-functions/fchmodat.texi: Update.
659 2020-08-07  Bruno Haible  <bruno@clisp.org>
661         doc: Update for glibc 2.32.
662         * doc/glibc-functions/__libc_single_threaded.texi: New file.
663         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
664         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
665         * doc/glibc-functions/sigabbrev_np.texi: New file.
666         * doc/glibc-functions/sigdescr_np.texi: New file.
667         * doc/glibc-functions/strerrordesc_np.texi: New file.
668         * doc/glibc-functions/strerrorname_np.texi: New file.
669         * doc/gnulib.texi: Include them.
670         (Glibc sys/single_threaded.h): New section.
671         * doc/pastposix-functions/h_errno.texi: Update.
672         * doc/posix-functions/*.texi: Likewise.
673         * doc/glibc-functions/*.texi: Likewise.
675 2020-08-07  Bruno Haible  <bruno@clisp.org>
677         alloca: No need to compile alloca.c with clang.
678         * lib/alloca.c: Skip all code with clang.
680         Use __builtin_alloca with clang.
681         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
683 2020-08-06  Bruno Haible  <bruno@clisp.org>
685         Use __builtin_assume with clang.
686         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
687         (assume): Use __builtin_assume when available.
689 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
691         libgmp: add <gmp/gmp.h> support
692         * m4/libgmp.m4 (gl_LIBGMP):
693         * modules/libgmp (configure.ac, Makefile.am):
694         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
695         ‘#include <gmp.h>’.
697 2020-08-06  Bruno Haible  <bruno@clisp.org>
699         Consider that clang defines __OPTIMIZE__ like GCC does.
700         * lib/streq.h: Define the inline functions also on clang.
701         * lib/c-strcaseeq.h: Likewise.
702         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
703         the GCC workaround to clang.
705 2020-08-06  Bruno Haible  <bruno@clisp.org>
707         safe-alloc: Remove unused code.
708         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
710 2020-08-06  Bruno Haible  <bruno@clisp.org>
712         Use __builtin_expect with clang everywhere.
713         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
714         also on clang.
716 2020-08-05  Bruno Haible  <bruno@clisp.org>
718         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
719         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
720         built-in also on clang.
721         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
722         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
724 2020-08-05  Bruno Haible  <bruno@clisp.org>
726         Use __builtin_clz{,l,ll} with clang, also on Windows.
727         * lib/integer_length.c: With clang, use the GCC built-in, not
728         <intrin.h>.
729         * lib/integer_length_l.c: Likewise.
730         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
731         also on clang.
732         * lib/vasnprintf.c (divide): Likewise.
734 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
736         Update srclist.txt as per recent glibc changes
737         * config/srclist.txt: Uncomment lines to reflect recent merges
738         from Gnulib to glibc.
740 2020-08-03  Bruno Haible  <bruno@clisp.org>
742         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
743         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
745 2020-08-03  Bruno Haible  <bruno@clisp.org>
747         integer_length_ll: Optimize for MSVC in 64-bit mode.
748         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
749         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
751 2020-08-03  Bruno Haible  <bruno@clisp.org>
753         integer_length_ll: Optimize for MSVC in 32-bit mode.
754         * lib/integer_length_l.c: Include <intrin.h>.
755         (integer_length): Define as inline function, like in
756         lib/integer_length.c.
758 2020-08-03  Bruno Haible  <bruno@clisp.org>
760         integer_length: Optimize for MSVC.
761         * lib/integer_length.c: Include <intrin.h>.
762         (integer_length): With MSVC, use the _BitScanReverse built-in.
764 2020-08-03  Bruno Haible  <bruno@clisp.org>
766         ffsll: Optimize for MSVC in 64-bit mode.
767         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
768         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
769         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
771 2020-08-03  Bruno Haible  <bruno@clisp.org>
773         ffsll: Optimize for MSVC in 32-bit mode.
774         * lib/ffsl.h: Include <intrin.h>.
775         (ffs): Define as inline function, like in lib/ffs.c.
777 2020-08-03  Bruno Haible  <bruno@clisp.org>
779         ffs: Optimize for MSVC.
780         * lib/ffs.c: Include <intrin.h>.
781         (ffs): With MSVC, use the _BitScanForward built-in.
783 2020-08-03  Bruno Haible  <bruno@clisp.org>
785         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
786         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
787         variable.
789 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
791         fopen: Avoid undesired interactions with glibc headers.
792         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
793         __need_FILE, as the latter does not work with glibc.
795 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
797         fcntl: document some F_SETLK errno variations
798         * doc/posix-functions/fcntl.texi (fcntl): Document
799         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
801 2020-08-02  Bruno Haible  <bruno@clisp.org>
803         oset: Add an 'iterator_atleast' operation.
804         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
805         extracted from gl_array_search_atleast.
806         (gl_array_search_atleast): Use it.
807         (gl_array_iterator_atleast): New function.
808         (gl_array_oset_implementation): Use it.
809         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
810         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
811         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
812         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
813         member.
814         (gl_oset_iterator_atleast): New function.
815         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
816         (gl_OSet::iterator): Add another auxiliary constructor.
817         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
818         New functions.
819         (main): Test also gl_oset_iterator_atleast.
820         * tests/test-avltree_oset.c (is_at_least): New function.
821         (main): Test also gl_oset_iterator_atleast.
822         * tests/test-rbtree_oset.c (is_at_least): New function.
823         (main): Test also gl_oset_iterator_atleast.
824         * tests/test-oset-c++.cc (is_at_most): New function.
825         (main): Test also gl_OSet::begin_atleast.
827 2020-08-02  Bruno Haible  <bruno@clisp.org>
829         oset-c++, omap-c++: Remove restriction for search_atleast method.
830         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
831         a different type than the element.
832         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
833         a different type than the key.
835 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
837         gnumakefile: say ‘$(MAKE)’ not ‘make’
838         * top/GNUmakefile (abort-due-to-no-makefile):
839         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
840         This change is backported from Autoconf.
842 2020-08-01  Bruno Haible  <bruno@clisp.org>
844         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
845         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
846         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
847         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
848         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
849         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
851 2020-08-01  Bruno Haible  <bruno@clisp.org>
853         libtextstyle-optional: Update tests.
854         * modules/libtextstyle-optional-tests (configure.ac): Invoke
855         gl_LIBTEXTSTYLE_OPTIONAL.
857 2020-08-01  Bruno Haible  <bruno@clisp.org>
859         parse-datetime: Fix wrong #line statements.
860         * modules/parse-datetime (Makefile.am): Correct #line statements also in
861         parse-datetime-gen.h.
863 2020-08-01  Bruno Haible  <bruno@clisp.org>
865         libtextstyle[-optional]: Allow requesting a minimum version.
866         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
867         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
868         gl_LIBTEXTSTYLE_SEARCH): New macros.
869         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
870         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
871         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
872         * modules/libtextstyle-optional (configure.ac): Don't invoke
873         gl_LIBTEXTSTYLE_OPTIONAL.
874         * NEWS: Mention the changes.
876 2020-07-31  Bruno Haible  <bruno@clisp.org>
878         _GL_CMP: Improve documentation.
879         Reported by Paul Eggert in
880         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
881         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
882         passed.
884 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
886         largefile: sync with Autoconf master
887         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
888         Avoid undefined behavior on platforms where off_t is 32 bits.
889         See: https://bugs.debian.org/742780
891         alloca: sync with Autoconf master
892         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
893         Do not define if Autoconf 2.70 or later, since Autoconf master
894         now matches us.
896 2020-07-30  Bruno Haible  <bruno@clisp.org>
898         unicodeio: Add comment.
899         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
900         different iconv behaviours.
902 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
904         Work around some Oracle Studio attribute bugs
905         These were discovered when building bleeding-edge Emacs with
906         Oracle Studio.
907         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
908         Port to Oracle Studio 12.6, which mishandles __attribute__
909         ((__cold__)) and __attribute__ ((__may_alias__)) even though
910         __has_attribute says they work.
912 2020-07-29  Bruno Haible  <bruno@clisp.org>
914         unicodeio: Fix wrong result on musl libc.
915         Reported by A. Wilcox <awilfox@adelielinux.org> in
916         <https://www.openwall.com/lists/musl/2020/07/29/2>.
917         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
918         on musl libc.
919         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
920         * modules/unicodeio (Files): Add m4/musl.m4.
922 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
924         fsusage, regex, stat-size: remove Cray support
925         As near as I can make out this is actually support for UNICOS/mp,
926         last released 2005, and Cray hasn’t supported that for years.
927         * config/srclist.txt: Comment out regex.h for now.
928         * lib/fsusage.c (get_fs_usage):
929         * lib/regex.h (re_comp, re_exec):
930         * lib/stat-size.h (ST_NBLOCKSIZE):
931         Don’t worry about _CRAY.
933 2020-07-29  Bruno Haible  <bruno@clisp.org>
935         parse-datetime: Fix compilation error with bison 3.7.
936         * modules/parse-datetime (Makefile.am): Create a generated header file
937         parse-datetime-gen.h in the source directory. Correct #include and
938         #line statements during preprocessing.
940 2020-07-28  Bruno Haible  <bruno@clisp.org>
942         fopen-gnu: Create files correctly (regression from 2020-05-24).
943         * lib/fopen.c (rpl_open): Pass a third argument to open().
945 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
947         xalloc-die: don’t depend on xalloc
948         This removes a circular dependency, as xalloc depends on xalloc-die.
949         * modules/xalloc-die (Files): Add lib/xalloc.h.
950         (Depends-on): Remove xalloc.
951         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
953         dfa-tests: port to MSVC
954         Problem reported by Gisle Vanem in:
955         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
956         Also, remove an unnecessary dependency on getprogname.
957         * modules/dfa-tests (Depends-on): Remove getprogname.
958         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
959         (exit_status): New static var.
960         (dfawarn): Set it instead of exiting.
961         Do not declare as _Noreturn, to pacify MSVC.
962         (main): Return exit_status.
964 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
966         argz: pacify MSVC
967         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
968         Problem reported by Gisle Vanem.
970         libgmp: remove dependency on havelib
971         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
972         use the more-traditional AC_SEARCH_LIBS approach.
973         This should work better with GNU Emacs configuration,
974         which uses pkg-config instead of a havelib-style approach.
975         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
976         * modules/libgmp (Depends-on): Remove havelib.
978         libgmp: remove HAVE_GMP, LIB_GMP
979         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
980         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
982 2020-07-26  Bruno Haible  <bruno@clisp.org>
984         inttypes: Remove support for AIX 4.
985         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
986         * m4/inttypes-pri.m4: Remove file.
987         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
988         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
989         * modules/inttypes-incomplete (Makefile.am): Don't substitute
990         PRI_MACROS_BROKEN.
991         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
993 2020-07-26  Bruno Haible  <bruno@clisp.org>
995         gettimeofday: Remove workaround for Mac OS X 10.0.
996         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
997         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
998         * lib/gettimeofday.c: Don't include localtime-buffer.h.
999         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1000         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1001         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
1002         * modules/localtime-buffer: Remove file.
1003         * lib/localtime-buffer.h: Remove file.
1004         * lib/localtime-buffer.c: Remove file.
1005         * m4/localtime-buffer.m4: Remove file.
1006         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
1008 2020-07-26  Bruno Haible  <bruno@clisp.org>
1010         tzset: Remove workaround for Solaris 2.6.
1011         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
1012         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
1013         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
1014         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
1015         * lib/localtime-buffer.c: Likewise.
1016         * lib/localtime.c: Likewise.
1017         * lib/tzset.c: Don't include localtime-buffer.h.
1018         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
1019         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
1020         is 1.
1021         * modules/tzset (Depends-on): Remove localtime-buffer.
1023 2020-07-26  Bruno Haible  <bruno@clisp.org>
1025         expl: Simplify autoconf test.
1026         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
1027         with small values..." test into the "checking whether expl works..."
1028         test.
1030 2020-07-26  Bruno Haible  <bruno@clisp.org>
1032         alloca: Remove Cray-2 and Cray Y-MP support.
1033         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
1034         Enable also on Autoconf >= 2.69.
1035         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
1036         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
1037         i00afunc): Remove.
1039 2020-07-25  Bruno Haible  <bruno@clisp.org>
1041         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
1042         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
1044 2020-07-25  Bruno Haible  <bruno@clisp.org>
1046         sigprocmask: Small autoconf macro improvement.
1047         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
1048         user to override the value of gl_cv_func_sigprocmask.
1049         * m4/gnulib-common.m4 (gl_SILENT): New macro.
1051 2020-07-25  Bruno Haible  <bruno@clisp.org>
1053         Small autoconf macro improvements.
1054         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
1055         override the value of gl_cv_func_working_mktime.
1056         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
1057         compiler produces multi-arch binaries..." in the configure output.
1058         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
1059         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
1061 2020-07-25  Bruno Haible  <bruno@clisp.org>
1063         doc: Update for NetBSD 7.1, 8.0, 9.0.
1064         * doc/*/*.texi: Update.
1065         * m4/exp2l.m4: Update comments.
1066         * m4/expl.m4: Likewise.
1067         * m4/ilogb.m4: Likewise.
1068         * m4/ilogbf.m4: Likewise.
1069         * m4/log10l.m4: Likewise.
1070         * m4/logl.m4: Likewise.
1071         * m4/printf.m4: Likewise.
1072         * m4/rintl.m4: Likewise.
1073         * m4/wcwidth.m4: Likewise.
1075 2020-07-24  Bruno Haible  <bruno@clisp.org>
1077         doc: Update for Mac OS X 10.13.
1078         * doc/*/*.texi: Update.
1079         * m4/expm1l.m4: Update comments.
1080         * m4/getgroups.m4: Likewise.
1081         * m4/getlogin_r.m4: Likewise.
1082         * m4/linkat.m4: Likewise.
1083         * m4/printf.m4: Likewise.
1085 2020-07-24  Bruno Haible  <bruno@clisp.org>
1087         doc: Update for Cygwin 2.9.0.
1088         * doc/*/*.texi: Update.
1090 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1092         parse-datetime: modernize doc
1093         * doc/parse-datetime.texi: Use more-current examples.
1094         Don’t lead with 32-bit time_t, as it’s on its way out.
1095         Capitalize “Epoch” to be consistent with POSIX.
1097         timespec: remove dependence on ‘verify’
1098         * lib/timespec.h: Do not include verify.h; no longer needed.
1099         * modules/timespec (Depends-on): Remove ‘verify’.
1101         Optimize a few more three-valued comparisons
1102         * lib/timespec.h (timespec_cmp, timespec_sign):
1103         * lib/utimecmp.c (utimecmpat):
1104         Avoid conditional branches by using _GL_CMP.
1106         Fix _GL_CMP parenthesization typo
1107         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
1109 2020-07-24  Bruno Haible  <bruno@clisp.org>
1111         dfa: Revert breaking gawk.
1112         Reported by Arnold Robbins <arnold@skeeve.com>.
1113         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
1115 2020-07-23  Bruno Haible  <bruno@clisp.org>
1117         Optimize three-valued comparison between integers.
1118         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
1119         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
1120         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
1121         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
1122         * lib/dfa.c (compare): Likewise.
1123         * lib/fts.c (fts_compare_ino): Likewise.
1124         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
1125         * lib/mbscasecmp.c (mbscasecmp): Likewise.
1126         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
1127         * lib/memcasecmp.c (memcasecmp): Likewise.
1128         * lib/memcmp2.c (memcmp2): Likewise.
1129         * lib/savedir.c (direntry_cmp_inode): Likewise.
1130         * lib/strcasecmp.c (strcasecmp): Likewise.
1131         * lib/strncasecmp.c (strncasecmp): Likewise.
1132         * lib/unistr/u-cmp2.h (FUNC): Likewise.
1134 2020-07-23  Bruno Haible  <bruno@clisp.org>
1136         lchmod: Use /proc on Cygwin.
1137         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
1139 2020-07-23  Ken Brown  <kbrown@cornell.edu>
1141         fchmodat: Use /proc on Cygwin
1142         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
1144 2020-07-21  Bruno Haible  <bruno@clisp.org>
1146         aligned-malloc: Optionally use aligned_alloc.
1147         * lib/aligned-malloc.h: Verify the alignment.
1148         (aligned_malloc): Use aligned_alloc as an alternative.
1149         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
1150         * doc/posix-functions/aligned_alloc.texi: Mention the modules
1151         'aligned-malloc' and 'pagealign_alloc'.
1153 2020-07-21  Bruno Haible  <bruno@clisp.org>
1155         aligned-malloc: Add tests.
1156         * tests/test-aligned-malloc.c: New file.
1157         * modules/aligned-malloc-tests: New file.
1159         aligned-malloc: New module.
1160         * lib/aligned-malloc.h: New file.
1161         * m4/malloc-align.m4: New file.
1162         * modules/aligned-malloc: New file.
1163         * doc/posix-functions/posix_memalign.texi: Mention the new module.
1164         * doc/glibc-functions/memalign.texi: Likewise.
1166 2020-07-21  Bruno Haible  <bruno@clisp.org>
1168         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
1169         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
1170         sure PRIPTR_PREFIX is defined to "ll", not "l".
1172 2020-07-21  Bruno Haible  <bruno@clisp.org>
1174         printf-posix: Make an autoconf test more future-proof.
1175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
1176         using uintptr_t.
1178 2020-07-20  Bruno Haible  <bruno@clisp.org>
1180         list, oset, omap: Relicense some of the container modules under LGPLv2+.
1181         * modules/list (License): Change to LGPLv2+.
1182         * modules/array-list (License): Likewise.
1183         * modules/carray-list (License): Likewise.
1184         * modules/linked-list (License): Likewise.
1185         * modules/avltree-list (License): Likewise.
1186         * modules/rbtree-list (License): Likewise.
1187         * modules/oset (License): Likewise.
1188         * modules/array-oset (License): Likewise.
1189         * modules/avltree-oset (License): Likewise.
1190         * modules/rbtree-oset (License): Likewise.
1191         * modules/omap (License): Likewise.
1192         * modules/array-omap (License): Likewise.
1193         * modules/avltree-omap (License): Likewise.
1194         * modules/rbtree-omap (License): Likewise.
1196 2020-07-20  Bruno Haible  <bruno@clisp.org>
1198         oset: Add an 'update' operation.
1199         * lib/gl_array_oset.c (gl_array_update): New function.
1200         (gl_array_oset_implementation): Use it.
1201         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1202         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1203         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
1204         extracted from gl_tree_nx_add_before.
1205         (gl_tree_nx_add_before): Invoke it.
1206         (gl_tree_add_node_after): New function, extracted from
1207         gl_tree_nx_add_after.
1208         (gl_tree_nx_add_after): Invoke it.
1209         (gl_tree_remove_node_no_free): New function, extracted from
1210         gl_tree_remove_node.
1211         (gl_tree_remove_node): Invoke it.
1212         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
1213         extracted from gl_tree_nx_add_before.
1214         (gl_tree_nx_add_before): Invoke it.
1215         (gl_tree_add_node_after): New function, extracted from
1216         gl_tree_nx_add_after.
1217         (gl_tree_nx_add_after): Invoke it.
1218         (gl_tree_remove_node_no_free): New function, extracted from
1219         gl_tree_remove_node.
1220         (gl_tree_remove_node): Invoke it.
1221         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
1222         from gl_tree_iterator_next.
1223         (gl_tree_iterator_next): Invoke it.
1224         (gl_tree_prev_node, gl_tree_update): New functions.
1225         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1226         (gl_avltree_oset_implementation): Use gl_tree_update.
1227         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
1228         (gl_rbtree_oset_implementation): Use gl_tree_update.
1229         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
1230         (gl_oset_update): New function.
1231         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
1232         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
1233         * modules/rbtree-oset (configure.ac): Likewise.
1234         * tests/test-oset-update.h: New file.
1235         * tests/test-array_oset.c: Include test-oset-update.h.
1236         (main): Invoke test_update.
1237         * tests/test-avltree_oset.c: Likewise.
1238         * tests/test-rbtree_oset.c: Likewise.
1239         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
1240         * modules/avltree-oset-tests (Files): Likewise.
1241         * modules/rbtree-oset-tests (Files): Likewise.
1242         * tests/test-oset-c++.cc (action): New function.
1243         (main): Test the 'update' member function.
1245 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1247         md5, sha1, sha256, sha512: pacify Autoconf 2.70
1248         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
1249         shell if, so that the argument to AC_CHECK_HEADERS is
1250         a simple string that does not require shell evaluation.
1251         This fixes a warning generated by Autoconf 2.69b.
1253 2020-07-12  Bruno Haible  <bruno@clisp.org>
1255         libgmp: Avoid warning when --without-libgmp is used.
1256         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
1257         GCC >= 8, not for GCC >= 4.6.
1259 2020-07-12  Bruno Haible  <bruno@clisp.org>
1261         libgmp: Link to the correct shared library.
1262         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
1263         * modules/libgmp (Depends-on): Add havelib.
1264         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
1265         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
1267 2020-07-12  Bruno Haible  <bruno@clisp.org>
1269         libgmp tests: Add some safety checks.
1270         * modules/libgmp-tests (Depends-on): Add verify.
1271         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
1272         (main): Verify that gmp.h and libgmp versions match.
1274 2020-07-10  Bruno Haible  <bruno@clisp.org>
1276         unicodeio: Fix wrong result on NetBSD.
1277         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1278         characters also on NetBSD.
1280 2020-07-09  Bruno Haible  <bruno@clisp.org>
1282         unicodeio: Fix wrong result on Solaris 11.
1283         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
1284         via Akim Demaille <akim.demaille@gmail.com> in
1285         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
1286         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1287         characters on Solaris.
1288         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
1289         UTF-8 output or the specified fallback.
1291 2020-07-08  Bruno Haible  <bruno@clisp.org>
1293         unicodeio: Add tests.
1294         * tests/test-unicodeio.c: New file.
1295         * tests/test-unicodeio1.sh: New file.
1296         * tests/test-unicodeio2.sh: New file.
1297         * tests/test-unicodeio3.sh: New file.
1298         * modules/unicodeio-tests: New file.
1300 2020-07-08  Bruno Haible  <bruno@clisp.org>
1302         unicodeio: Document link requirements.
1303         * modules/unicodeio (Link): New section.
1305 2020-07-07  Bruno Haible  <bruno@clisp.org>
1307         doc: Remove support for some very old platforms.
1308         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
1309         * doc/posix-functions/memcpy.texi: Likewise.
1310         * doc/posix-functions/memmove.texi: Likewise.
1311         * doc/posix-functions/memset.texi: Likewise.
1312         * doc/posix-functions/getcwd.texi: Likewise.
1314         memchr: Remove support for some very old platforms.
1315         * m4/memchr-obsolete.m4: Remove file.
1316         * modules/memchr-obsolete: Remove file.
1317         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
1318         absent. Don't define HAVE_MEMCHR.
1319         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
1320         * modules/memchr (Depends-on): Remove memchr-obsolete.
1321         (configure.ac): Assume HAVE_MEMCHR is 1.
1322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
1323         HAVE_MEMCHR.
1324         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
1325         * doc/posix-functions/memchr.texi: Don't mention module
1326         'memchr-obsolete'.
1327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1328         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
1329         * modules/strnlen (Depends-on): Remove memchr-obsolete.
1331         dup2: Remove support for some very old platforms.
1332         * m4/dup2-obsolete.m4: Remove file.
1333         * modules/dup2-obsolete: Remove file.
1334         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
1335         Don't define HAVE_DUP2.
1336         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
1337         * lib/dup2.c: Likewise.
1338         * modules/dup2 (Depends-on, configure.ac): Likewise.
1339         (Depends-on): Remove dup2-obsolete.
1340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
1341         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
1342         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
1344 2020-07-07  Bruno Haible  <bruno@clisp.org>
1346         canonicalize: Trim module dependencies.
1347         * lib/hash-triple.h: Group declarations.
1348         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
1349         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
1350         (STREQ): Remove macro.
1351         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
1352         * modules/hash-triple-simple: New file, based on modules/hash-triple.
1353         * modules/hash-triple (Files): Remove lib/hash-triple.h.
1354         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
1355         * modules/canonicalize (Depends-on): Remove hash-triple. Add
1356         hash-triple-simple.
1357         * modules/file-set (Depends-on): Likewise.
1359 2020-07-07  Bruno Haible  <bruno@clisp.org>
1361         Clarify dependencies to double-slash-root.
1362         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
1363         (Depends-on): Add double-slash-root.
1364         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
1365         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
1367 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1369         libgmp: new module
1370         The idea is to let programs simply include <gmp.h>, and
1371         so long as they live within the mini-gmp subset they need
1372         not worry about whether the GMP libraries are installed.
1373         * MODULES.html.sh: Mention it.
1374         * config/srclist.txt: Mention files copied from GMP source.
1375         * config/srclistvars.sh (GMP): New var.
1376         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
1377         * modules/libgmp-tests, tests/test-libgmp.c: New files.
1378         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
1380 2020-07-05  Bruno Haible  <bruno@clisp.org>
1382         mkancesdirs: Trim module dependencies.
1383         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
1384         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
1386 2020-07-05  Bruno Haible  <bruno@clisp.org>
1388         getprogname: Trim module dependencies.
1389         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
1390         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
1391         basename-lgpl.
1393 2020-07-05  Bruno Haible  <bruno@clisp.org>
1395         filenamecat-lgpl: Trim module dependencies.
1396         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
1397         dirname.h.
1398         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
1399         basename-lgpl, filename.
1401 2020-07-05  Bruno Haible  <bruno@clisp.org>
1403         backupfile, backup-rename: Trim module dependencies.
1404         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
1405         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
1406         basename-lgpl.
1407         * modules/backup-rename (Depends-on): Likewise.
1409 2020-07-05  Bruno Haible  <bruno@clisp.org>
1411         argp: Trim module dependencies.
1412         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
1413         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
1415 2020-07-05  Bruno Haible  <bruno@clisp.org>
1417         basename-lgpl: New module.
1418         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
1419         lib/basename-lgpl.c.
1420         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
1421         <stdbool.h>, filename.h.
1422         (last_component): Rename a local variable.
1423         * lib/dirname.h: Include basename-lgpl.h.
1424         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
1425         (last_component, base_len): Remove declarations.
1426         * modules/basename-lgpl: New file.
1427         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
1428         (Depends-on): Add basename-lgpl. Remove double-slash-root.
1429         (Makefile.am): Don't compile basename-lgpl.c.
1430         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
1431         not 'dirname'.
1433 2020-07-05  Bruno Haible  <bruno@clisp.org>
1435         dirname, dirname-lgpl: Simplify.
1436         * m4/dirname.m4: Remove file.
1437         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
1438         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
1439         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
1441 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
1443         tests: avoid shadowing warning
1444         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
1446 2020-07-05  Bruno Haible  <bruno@clisp.org>
1448         supersede: Add tests.
1449         * tests/test-supersede.c: New file.
1450         * tests/test-supersede-open.h: New file.
1451         * tests/test-supersede-fopen.h: New file.
1452         * modules/supersede-tests: New file.
1454         supersede: New module.
1455         * lib/supersede.h: New file.
1456         * lib/supersede.c: New file.
1457         * m4/supersede.m4: New file.
1458         * modules/supersede: New file.
1460 2020-07-05  Bruno Haible  <bruno@clisp.org>
1462         Add some copyright headers.
1463         * lib/dev-ino.h: Add copyright header.
1464         * lib/di-set.h: Likewise.
1465         * lib/fchown-stub.c: Likewise.
1466         * lib/file-set.h: Likewise.
1467         * lib/hash-triple.h: Likewise.
1468         * lib/idcache.h: Likewise.
1469         * lib/ino-map.h: Likewise.
1470         * lib/mkancesdirs.h: Likewise.
1471         * lib/scratch_buffer.h: Likewise.
1472         * lib/se-context.in.h: Likewise.
1473         * lib/stdopen.h: Likewise.
1474         * lib/userspec.h: Likewise.
1476 2020-07-04  Bruno Haible  <bruno@clisp.org>
1478         getrandom: Relicense under LGPLv2+.
1479         Paul Eggert's approval is in
1480         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
1481         * modules/getrandom (License): Change to LGPLv2+.
1483 2020-07-04  Bruno Haible  <bruno@clisp.org>
1485         getumask: Add tests.
1486         * tests/test-getumask.c: New file.
1487         * modules/getumask-tests: New file.
1489         getumask: New module.
1490         * lib/sys_stat.in.h (getumask): New declaration.
1491         * lib/getumask.c: New file.
1492         * m4/getumask.m4: New file.
1493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
1494         declared.
1495         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
1496         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
1497         HAVE_GETUMASK.
1498         * modules/getumask: New file.
1499         * tests/test-sys_stat-c++.cc (getumask): Check signature.
1500         * doc/glibc-functions/getumask.texi: New file.
1501         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
1503 2020-07-04  Bruno Haible  <bruno@clisp.org>
1505         clean-temp: Add support for temporary files with given mode.
1506         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
1507         * lib/clean-temp.c (struct try_create_file_params): New type.
1508         (try_create_file): New function.
1509         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
1510         gen_tempname.
1512 2020-07-04  Bruno Haible  <bruno@clisp.org>
1514         clean-temp: Document limitations.
1515         * lib/clean-temp.h: Document limitations.
1517 2020-07-04  Bruno Haible  <bruno@clisp.org>
1519         clean-temp: Add support for temporary files with unpredictable names.
1520         * lib/clean-temp.h (gen_register_open_temp): New declaration.
1521         * lib/clean-temp.c: Include tempname.h.
1522         (gen_register_open_temp): New function.
1523         * modules/tempname (configure.ac): Define a module indicator.
1525 2020-07-04  Bruno Haible  <bruno@clisp.org>
1527         clean-temp: Add support for temporary files anywhere in the file system.
1528         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
1529         cleanup_temporary_file): New declarations.
1530         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
1531         variables.
1532         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
1533         (dir_cleanup_list): Renamed from cleanup_list.
1534         (cleanup_action): Process the file_cleanup_list as well.
1535         (do_init_clean_temp): New function.
1536         (clean_temp_once): New variable.
1537         (init_clean_temp): New function.
1538         (create_temp_dir): Invoke it.
1539         (register_temporary_file, unregister_temporary_file,
1540         cleanup_temporary_file): New functions.
1541         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
1542         argument.
1544 2020-07-04  Bruno Haible  <bruno@clisp.org>
1546         clean-temp: Improve comments.
1547         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
1548         fwriteerror_temp, close_stream_temp): Clarify intended use.
1549         * lib/clean-temp.c: Likewise.
1551 2020-07-04  Bruno Haible  <bruno@clisp.org>
1553         clean-temp: Make multithread-safe, part 2.
1554         * lib/fatal-signal.h: Include <signal.h>.
1555         (get_fatal_signal_set): New declaration.
1556         * lib/fatal-signal.c (get_fatal_signal_set): New function.
1557         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
1558         (struct closeable_fd): New type.
1559         (fatal_signal_set): New variable.
1560         (init_fatal_signal_set): New function.
1561         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
1562         (cleanup_action): Invoke asyncsafe_close instead of close.
1563         (create_temp_dir): Invoke init_fatal_signal_set.
1564         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
1565         element.
1566         (unregister_fd): Remove function.
1567         (close_temp): Cleanup descriptors list on the fly. Invoke
1568         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
1569         (fclose_variant_temp): New function.
1570         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
1571         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
1573 2020-07-04  Bruno Haible  <bruno@clisp.org>
1575         clean-temp: Make multithread-safe, part 1.
1576         * lib/clean-temp.c: Include glthread/lock.h.
1577         (cleanup_list_lock): New variable.
1578         (register_temp_file, unregister_temp_file, register_temp_subdir,
1579         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
1580         (create_temp_dir): Likewise. Don't free the old array.
1581         (descriptors_lock): New variable.
1582         (register_fd, unregister_fd): Use it.
1583         * modules/clean-temp (Depends-on): Add lock.
1585 2020-07-04  Bruno Haible  <bruno@clisp.org>
1587         fatal-signal: Make multithread-safe.
1588         * lib/fatal-signal.c (init_fatal_signals): Add comment.
1589         (do_init_fatal_signal_set): New function, extracted from
1590         init_fatal_signal_set.
1591         (fatal_signal_set_once): New variable.
1592         (init_fatal_signal_set): Use gl_once.
1594 2020-07-03  Bruno Haible  <bruno@clisp.org>
1596         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
1597         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
1598         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
1599         <bcrypt.h>.
1601 2020-07-03  Bruno Haible  <bruno@clisp.org>
1603         dfa tests: Follow common file naming conventions.
1604         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
1605         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
1606         * tests/test-dfa-invalid-char-class.sh: Renamed from
1607         tests/dfa-invalid-char-class.sh. Update.
1608         * modules/dfa-tests (Files, Makefile.am): Update.
1610 2020-07-03  Bruno Haible  <bruno@clisp.org>
1612         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
1613         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
1614         the GCC extended asm syntax also for the Sun Studio 12 compilers.
1616 2020-07-03  Bruno Haible  <bruno@clisp.org>
1618         asyncsafe-spin: Reduce code duplication.
1619         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
1620         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
1621         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
1623 2020-07-03  Bruno Haible  <bruno@clisp.org>
1625         lchmod: Simplify after 2020-02-22 change.
1626         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
1628 2020-07-03  Bruno Haible  <bruno@clisp.org>
1630         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
1631         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
1633 2020-07-03  Bruno Haible  <bruno@clisp.org>
1635         dfa: Make sure the compiler does not barf on 'inline'.
1636         * modules/dfa (configure.ac): Require AC_C_INLINE.
1638 2020-07-03  Bruno Haible  <bruno@clisp.org>
1640         bitset: Make sure the compiler does not barf on 'inline'.
1641         * modules/bitset (configure.ac): New section.
1643 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
1645         manywarnings: improve port to GCC 10.1
1646         * build-aux/gcc-warning.spec: Also list warnings that are default
1647         or are enabled by already-given flags.  This lets us speed up
1648         checking for attributes, and makes the generated compilation
1649         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
1650         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
1651         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
1652         to shell variables that may have long values.
1653         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
1654         consequences of other flags, to speed up checking and
1655         shorten commands.
1657         tests: pacify gcc -fanalyzer on zerosize_ptr
1658         * tests/test-memcasecmp.c (main):
1659         * tests/test-memchr.c (main):
1660         * tests/test-memchr2.c (main):
1661         * tests/test-memcmp.c (main):
1662         * tests/test-memmem.c (main):
1663         * tests/test-memrchr.c (main):
1664         * tests/unistr/test-chr.h (main):
1665         * tests/unistr/test-cmp.h (test_cmp):
1666         Check whether zerosize_ptr returns NULL before using it.
1667         This pacifies GCC 10.1’s new fanalyzer option, and matches
1668         other uses of zerosize_ptr.
1670 2020-07-01  Bruno Haible  <bruno@clisp.org>
1672         asyncsafe-spin: Add tests.
1673         * tests/test-asyncsafe-spin1.c: New file.
1674         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
1675         tests/test-pthread-spin.c.
1676         * modules/asyncsafe-spin-tests: New file.
1678 2020-07-01  Bruno Haible  <bruno@clisp.org>
1680         asyncsafe-spin: New module.
1681         * lib/asyncsafe-spin.h: New file.
1682         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
1683         * modules/asyncsafe-spin: New file.
1685 2020-07-01  Bruno Haible  <bruno@clisp.org>
1687         windows-spin: Fix race condition on multiprocessor systems.
1688         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
1690 2020-07-01  Bruno Haible  <bruno@clisp.org>
1692         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
1693         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1694         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
1695         an implementation based on other GCC built-ins.
1697 2020-07-01  Bruno Haible  <bruno@clisp.org>
1699         pthread-spin: Optimize fallback for GCC versions >= 4.7.
1700         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
1701         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
1702         lock byte.
1704 2020-07-01  Bruno Haible  <bruno@clisp.org>
1706         pthread-spin: Add error checking.
1707         * lib/pthread-spin.c: Include <stdbool.h>.
1708         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
1709         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
1710         the unlocks.
1711         * modules/pthread-spin (Depends-on): Add stdbool.
1713 2020-07-01  Bruno Haible  <bruno@clisp.org>
1715         pthread-spin: Add tests.
1716         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
1717         * modules/pthread-spin-tests: New file.
1719 2020-07-01  Bruno Haible  <bruno@clisp.org>
1721         tests: Reduce code duplication.
1722         * tests/atomic-int-posix.h: New file, extracted from
1723         tests/test-pthread-mutex.c.
1724         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
1725         * tests/test-pthread-rwlock.c: Likewise.
1726         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
1727         * modules/pthread-rwlock-tests (Files): Likewise.
1729 2020-07-01  Bruno Haible  <bruno@clisp.org>
1731         tests: Refactor.
1732         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
1733         * tests/test-mtx.c: Include it. Remove the corresponding code.
1734         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
1736 2020-07-01  Bruno Haible  <bruno@clisp.org>
1738         tests: Refactor.
1739         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
1740         * tests/test-lock.c: Include it. Remove the corresponding code.
1741         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
1743 2020-06-29  Bruno Haible  <bruno@clisp.org>
1745         sys_socket: Don't define socklen_t if it is already defined on mingw.
1746         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
1747         <https://savannah.gnu.org/bugs/?57725>,
1748         by Rahul Das <bokul_4u@yahoo.com> in
1749         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
1750         and by Eli Zaretskii <eliz@gnu.org> in
1751         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
1752         * lib/sys_socket.in.h (socklen_t): Remove definition.
1754 2020-06-29  Bruno Haible  <bruno@clisp.org>
1756         alloca-opt: Fix warning on mingw.
1757         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
1758         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
1759         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
1760         whether alloca is defined.
1762 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
1764         getrandom: do not depend on ‘open’ on mingw
1765         Similarly for at-internal, getloadavg.  These modules do not call
1766         the ‘open’ function when they are compiled on mingw.  On mingw,
1767         this avoids having to compile open.c when building Emacs, which
1768         does its own thing with ‘open’.
1769         * modules/at-internal, modules/getloadavg, modules/getrandom:
1770         (Depends-on): Don’t depend on ‘open’ on mingw.
1771         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
1772         * modules/getloadavg (Depends-on):
1773         Depend on intprops, open, stdbool, stdlib only if compiling
1774         getloadavg.c.
1776 2020-06-28  Bruno Haible  <bruno@clisp.org>
1778         doc: Add a note about sigprocmask vs. pthread_sigmask.
1779         * doc/posix-functions/sigprocmask.texi: Add note.
1781 2020-06-28  Bruno Haible  <bruno@clisp.org>
1783         getrandom: Fix compilation errors on older versions of mingw.
1784         Reported by Eli Zaretskii <eliz@gnu.org> in
1785         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
1786         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
1787         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
1788         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
1789         BCryptGenRandom ourselves.
1791 2020-06-28  Bruno Haible  <bruno@clisp.org>
1793         clean-temp: Fix wrong errno in error message.
1794         * lib/clean-temp.c (create_temp_dir): Save errno around
1795         unblock_fatal_signals call.
1797 2020-06-27  Bruno Haible  <bruno@clisp.org>
1799         fatal-signal: Make multithread-safe.
1800         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
1802 2020-06-27  Bruno Haible  <bruno@clisp.org>
1804         clean-temp: Don't force deletion of temporary files on native Windows.
1805         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
1806         argument.
1807         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
1808         * NEWS: Mention the change.
1809         * lib/javacomp.c (write_temp_file): Update.
1811 2020-06-27  Bruno Haible  <bruno@clisp.org>
1813         fatal-signal: Make multithread-safe.
1814         * lib/fatal-signal.c: Include glthread/lock.h.
1815         (at_fatal_signal_lock): New variable.
1816         (at_fatal_signal): Use it.
1817         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
1818         (block_fatal_signals, unblock_fatal_signals): Use them.
1819         * modules/fatal-signal (Depends-on): Add lock.
1821 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
1823         getloadavg: don’t depend on fopen-gnu
1824         This is for Emacs, which does not need fopen-gnu for anything else,
1825         and which would need it only on a NetBSD platform where getloadavg
1826         does not work (does that even happen?).
1827         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
1828         * modules/getloadavg (Depends-on): Remove fopen-gnu.
1830         * tests/test-getloadavg.c (main): Fix typo.
1832 2020-06-27  Bruno Haible  <bruno@clisp.org>
1834         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
1835         * modules/tempname (Link): New section.
1836         * modules/mkdtemp (Link): Likewise.
1837         * modules/clean-temp (Link): Likewise.
1838         * modules/mkstemp (Link): Likewise.
1839         * modules/stdlib-safer (Link): Likewise.
1840         * modules/mkstemps (Link): Likewise.
1841         * modules/mkostemp (Link): Likewise.
1842         * modules/mkostemps (Link): Likewise.
1843         * modules/tmpfile (Link): Likewise.
1844         * modules/tmpfile-safer (Link): Likewise.
1845         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
1846         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
1847         $(LIB_GETRANDOM).
1848         * NEWS: Mention the changes.
1850 2020-06-27  Bruno Haible  <bruno@clisp.org>
1852         fopen-gnu: Simplify code.
1853         * lib/fopen.c: Include <stdbool.h>.
1854         (rpl_fopen): Use a single variable open_flags instead of
1855         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
1856         * modules/fopen (Depends-on): Add stdbool.
1858 2020-06-26  Bruno Haible  <bruno@clisp.org>
1860         canonicalize: Improve documentation.
1861         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
1862         return convention.
1864 2020-06-26  Bruno Haible  <bruno@clisp.org>
1866         xgetcwd: Improve documentation.
1867         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
1869 2020-06-26  Bruno Haible  <bruno@clisp.org>
1871         getcwd: Improve documentation.
1872         * lib/getcwd.c (__getcwd): Document the failure return convention.
1874 2020-06-26  Bruno Haible  <bruno@clisp.org>
1876         fchdir: Improve documentation.
1877         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
1878         convention.
1880 2020-06-26  Bruno Haible  <bruno@clisp.org>
1882         filenamecat-lgpl: Set errno upon failure.
1883         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
1884         return convention.
1885         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
1887 2020-06-26  Bruno Haible  <bruno@clisp.org>
1889         areadlink-with-size: Set errno upon failure.
1890         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
1891         fails.
1892         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
1894 2020-06-26  Bruno Haible  <bruno@clisp.org>
1896         copy-file: Shrink dependencies.
1897         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
1898         qcopy-acl.
1900 2020-06-26  Bruno Haible  <bruno@clisp.org>
1902         doc: Mention declaration fixes implemented by some modules.
1903         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
1904         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
1905         declaration appear in <unistd.h>.
1906         * doc/posix-functions/dup.texi: Likewise.
1907         * doc/posix-functions/dup2.texi: Likewise.
1908         * doc/posix-functions/gethostname.texi: Likewise.
1909         * doc/posix-functions/isatty.texi: Likewise.
1910         * doc/posix-functions/lseek.texi: Likewise.
1911         * doc/posix-functions/unlink.texi: Likewise.
1912         * doc/posix-functions/read.texi: Mention the module 'read'.
1913         * doc/posix-functions/write.texi: Mention the effects of the module
1914         'write'.
1916 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
1918         c-dtoastr, c-ldtoastr: new modules
1919         These modules provide the same functionality as the modules
1920         dtoastr and ldtoastr except for the formatting taking place in the
1921         C locale.
1922         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
1923         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
1924         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
1925         defined.  Use c_snprintf and c_strtod/c_strtold instead of
1926         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
1927         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
1928         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
1929         modules/c-ldtoastr-tests: New files.
1930         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
1931         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
1933 2020-06-21  Bruno Haible  <bruno@clisp.org>
1935         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
1936         * lib/tzset.c: Include <stdlib.h>, <string.h>.
1938 2020-06-16  Bruno Haible  <bruno@clisp.org>
1940         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
1941         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
1943 2020-06-16  Bruno Haible  <bruno@clisp.org>
1945         thread, thrd: Avoid a compiler warning.
1946         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
1948 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
1950         windows-thread: Avoid a compiler warning.
1951         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
1952         void.
1953         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
1955 2020-06-15  Bruno Haible  <bruno@clisp.org>
1957         unictype/joininggroup-name: Fix warning on 64-bit mingw.
1958         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
1959         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
1960         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
1961         first.
1963 2020-06-06  Bruno Haible  <bruno@clisp.org>
1965         calloc-gnu tests: Avoid a test failure with clang.
1966         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
1967         'volatile', to defeat compiler optimizations.
1969 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1971         getloadavg: fix double-increment bug
1972         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
1973         Linux without glibc, Android, Cygwin.  This fixes a bug I
1974         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
1975         Problem and fix reported by Semen Verchenko in:
1976         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
1978         tempname: use getrandom, not getentropy
1979         This removes a dependency, as getentropy depends on getrandom.
1980         * lib/tempname.c: Include sys/random.h instead of unistd.h.
1981         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
1982         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
1984 2020-06-01  Bruno Haible  <bruno@clisp.org>
1986         doc: New chapter 'Multithreading'.
1987         * doc/multithread.texi: New file.
1988         * doc/gnulib.texi: Include it.
1990 2020-06-01  Bruno Haible  <bruno@clisp.org>
1992         doc: Move 'Running self-tests under valgrind' section.
1993         * doc/gnulib.texi (Build Infrastructure Modules): Include
1994         valgrind-tests.texi here...
1995         (Miscellaneous Notes): ... not here.
1997 2020-06-01  Bruno Haible  <bruno@clisp.org>
1999         doc: Move 'Visual Studio Compatibility' section.
2000         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
2001         here...
2002         (Build Infrastructure Modules): ... not here.
2004 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2006         doc: improve randomness discussion
2007         Inspired by comments from Jeffrey Walton in:
2008         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
2009         * doc/glibc-functions/getentropy.texi (getentropy):
2010         * doc/glibc-functions/getrandom.texi (getrandom):
2011         Improve discussion of problems with "random" data,
2012         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
2014 2020-06-01  Bruno Haible  <bruno@clisp.org>
2016         doc: Fix Texinfo syntax error.
2017         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
2019 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
2021         doc: Change '.' to '@.' where appropriate.
2022         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
2023         * doc/glibc-functions/fstatfs.texi: Likewise.
2024         * doc/glibc-functions/fts_children.texi: Likewise.
2025         * doc/glibc-functions/fts_read.texi: Likewise.
2026         * doc/glibc-functions/getdirentries.texi: Likewise.
2027         * doc/glibc-functions/mkostemp.texi: Likewise.
2028         * doc/glibc-functions/mkostemps.texi: Likewise.
2029         * doc/glibc-functions/mkstemps.texi: Likewise.
2030         * doc/glibc-functions/preadv.texi: Likewise.
2031         * doc/glibc-functions/pwritev.texi: Likewise.
2032         * doc/glibc-functions/sendfile.texi: Likewise.
2033         * doc/glibc-functions/statfs.texi: Likewise.
2034         * doc/gnulib-intro.texi: Likewise.
2035         * doc/gnulib-tool.texi: Likewise.
2036         * doc/intprops.texi: Likewise.
2037         * doc/lib-symbol-visibility.texi: Likewise.
2038         * doc/licenses-texi.texi: Likewise.
2039         * doc/pastposix-functions/bcmp.texi: Likewise.
2040         * doc/pastposix-functions/bcopy.texi: Likewise.
2041         * doc/pastposix-functions/bzero.texi: Likewise.
2042         * doc/pastposix-functions/ecvt.texi: Likewise.
2043         * doc/pastposix-functions/fcvt.texi: Likewise.
2044         * doc/pastposix-functions/ftime.texi: Likewise.
2045         * doc/pastposix-functions/gcvt.texi: Likewise.
2046         * doc/pastposix-functions/getwd.texi: Likewise.
2047         * doc/pastposix-functions/index.texi: Likewise.
2048         * doc/pastposix-functions/mktemp.texi: Likewise.
2049         * doc/pastposix-functions/rindex.texi: Likewise.
2050         * doc/pastposix-functions/wcswcs.texi: Likewise.
2051         * doc/posix-functions/aio_cancel.texi: Likewise.
2052         * doc/posix-functions/aio_error.texi: Likewise.
2053         * doc/posix-functions/aio_fsync.texi: Likewise.
2054         * doc/posix-functions/aio_read.texi: Likewise.
2055         * doc/posix-functions/aio_return.texi: Likewise.
2056         * doc/posix-functions/aio_suspend.texi: Likewise.
2057         * doc/posix-functions/aio_write.texi: Likewise.
2058         * doc/posix-functions/creat.texi: Likewise.
2059         * doc/posix-functions/ctime.texi: Likewise.
2060         * doc/posix-functions/daylight.texi: Likewise.
2061         * doc/posix-functions/fgetpos.texi: Likewise.
2062         * doc/posix-functions/fopen.texi: Likewise.
2063         * doc/posix-functions/freopen.texi: Likewise.
2064         * doc/posix-functions/fseeko.texi: Likewise.
2065         * doc/posix-functions/fsetpos.texi: Likewise.
2066         * doc/posix-functions/fstatat.texi: Likewise.
2067         * doc/posix-functions/fstatvfs.texi: Likewise.
2068         * doc/posix-functions/ftello.texi: Likewise.
2069         * doc/posix-functions/ftruncate.texi: Likewise.
2070         * doc/posix-functions/getrlimit.texi: Likewise.
2071         * doc/posix-functions/lio_listio.texi: Likewise.
2072         * doc/posix-functions/localtime.texi: Likewise.
2073         * doc/posix-functions/lseek.texi: Likewise.
2074         * doc/posix-functions/mkstemp.texi: Likewise.
2075         * doc/posix-functions/mktime.texi: Likewise.
2076         * doc/posix-functions/open.texi: Likewise.
2077         * doc/posix-functions/openat.texi: Likewise.
2078         * doc/posix-functions/opendir.texi: Likewise.
2079         * doc/posix-functions/pread.texi: Likewise.
2080         * doc/posix-functions/pwrite.texi: Likewise.
2081         * doc/posix-functions/readdir.texi: Likewise.
2082         * doc/posix-functions/readdir_r.texi: Likewise.
2083         * doc/posix-functions/scandir.texi: Likewise.
2084         * doc/posix-functions/seekdir.texi: Likewise.
2085         * doc/posix-functions/setrlimit.texi: Likewise.
2086         * doc/posix-functions/statvfs.texi: Likewise.
2087         * doc/posix-functions/strftime.texi: Likewise.
2088         * doc/posix-functions/telldir.texi: Likewise.
2089         * doc/posix-functions/timezone.texi: Likewise.
2090         * doc/posix-functions/tmpfile.texi: Likewise.
2091         * doc/posix-functions/truncate.texi: Likewise.
2092         * doc/posix-functions/tzname.texi: Likewise.
2093         * doc/posix-functions/wcsftime.texi: Likewise.
2094         * doc/windows-sockets.texi: Likewise.
2096 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2098         getrandom-tests: do not assume GRND_RANDOM yields short read
2099         * tests/test-getrandom.c (main): Omit assertion that
2100         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
2101         when b’s size is 100000.  This assertion fails with Linux kernel
2102         5.6.13, as that kernel ignores the GRND_RANDOM flag.
2103         The separate blocking pool is going away in the Linux kernel, and
2104         they’ve added a flag GRND_INSECURE instead; see:
2105         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
2106         The assertion was iffy anyway; what’s to prevent a kernel from
2107         lazily filling a large buffer with random bytes?
2109         read-file-test: pacify --enable-gcc-warnings
2110         * tests/test-read-file.c (test_read_file): Now static.
2112         tempname: merge from glibc and coreutils
2113         Also, merge in Gnulib’s more-recent methods of making it easier
2114         to share between Gnulib and glibc, and fix a few randomness
2115         glitches.
2116         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
2117         (__set_errno): Remove; libc-config.h does that for us.
2118         Do not include <sys/time.h>.
2119         (__secure_getenv) [_LIBC]: New macro.
2120         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
2121         (RANDOM_BITS): Rewrite.
2122         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
2123         (random_value): New typedef.
2124         (try_file, try_dir, try_nocreate): Move up.
2125         (gen_tempname_len, try_tempname_len): New functions.
2126         (gen_tempname_len): Use a constant array rather than a switch.
2127         (try_tempname_len): Don’t assume string length fits in int.
2128         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
2129         has enough entropy (it’s a bit short).
2130         (__gen_tempname): Rewrite in terms of gen_tempname_len.
2131         (__try_tempname): Rewrite in terms of try_tempname_len.
2132         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
2133         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
2134         Add getentropy, libc-config.
2136 2020-05-31  Bruno Haible  <bruno@clisp.org>
2138         getrandom, getentropy: Mention the crypto/gc-random module.
2139         Suggested by Simon Josefsson in
2140         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
2141         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
2142         crypto/gc-random module.
2143         * doc/glibc-functions/getentropy.texi: Likewise.
2145 2020-05-31  Bruno Haible  <bruno@clisp.org>
2147         getentropy: Enhance tests.
2148         * tests/test-getentropy.c (main): Add one more test.
2149         * tests/test-unistd-c++.cc: Check the signature of getentropy.
2151 2020-05-31  Bruno Haible  <bruno@clisp.org>
2153         getentropy: Work around a macOS and Solaris problem.
2154         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
2155         'getentropy' module.
2156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2157         UNISTD_H_HAVE_SYS_RANDOM_H.
2158         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
2159         UNISTD_H_HAVE_SYS_RANDOM_H.
2160         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
2161         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
2162         problem. List more platforms.
2164 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
2166         fnmatch: merge from glibc
2167         Also, merge in Gnulib’s more-recent methods of making it easier
2168         to share between Gnulib and glibc.
2169         * lib/fnmatch.c: Reorder includes to match glibc better.
2170         Include libc-config.h instead of config.h.
2171         Include alloca.h only if _LIBC || HAVE_ALLOCA.
2172         Do not include "../locale/elem-hash.h" if _LIBC.
2173         Define macros for btowc, etc. if _LIBC.  All uses simplified.
2174         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
2175         Include intprops.h, since glibc has it now.
2176         (SIZE_MAX): Remove; use (size_t) -1 instead.
2177         Omit the "Comment out all this code" ifdef, since Gnulib
2178         has never really needed it.
2179         (STREQ): Remove; no longer used.
2180         (__libc_use_alloca, alloca, alloca_account): Define as
2181         needed if !_LIBC.
2182         (ISWCTYPE): Remove; all uses replaced by iswctype.
2183         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
2184         (internal_function): Remove.  All uses removed.
2185         (STRUCT): New macro.
2186         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
2187         (WMEMCMP): New macro.
2188         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
2189         and <locale/weightwc.h>.
2190         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
2191         __builtin_expect.  Check for integer overflow more
2192         systematically.  Account for alloca storage better when
2193         recursive.  Use strnlen instead of strlen for efficiency.
2194         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
2195         (struct STRUCT): New type.
2196         (FCT, EXT): New ENDS and ALLOCA_USED args.
2197         All callers changed.
2198         (FCT): Prefer __glibc_unlikely to __builtin_expect.
2199         Simplify by assuming WIDE_CHAR_SUPPORT.
2200         Copy _LIBC code from glibc without worrying Gnulib compatibility.
2201         Cast cold to UCHAR to avoid signedness warning.
2202         (END): Check for invalid pattern.
2203         (EXT): Improve alloca/malloc checking (taken from glibc),
2204         and improve it some more by using intprops.h and checking
2205         for integer overflow and using bool for booleans.
2206         * lib/libc-config.h (compat_symbol): New macro.
2207         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
2208         acceptable to non-GCC when a trailing semicolon is added.
2209         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
2210         libc-config, strnlen.  Remove alloca.
2212 2020-05-31  Bruno Haible  <bruno@clisp.org>
2214         getrandom: Doc and test tweaks.
2215         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
2216         it sets errno when failing.
2217         * tests/test-getrandom.c (main): Disable the high-quality check on those
2218         platforms on which it fails.
2219         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
2220         Cygwin to the list of platforms that don't have the function. Add a note
2221         about the quality of the result.
2222         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
2223         declaration; this is fixed by module 'getrandom'.
2225 2020-05-31  Bruno Haible  <bruno@clisp.org>
2227         getrandom: Add support for native Windows.
2228         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
2229         <wincrypt.h>.
2230         (CRYPT_VERIFY_CONTEXT): New macro.
2231         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
2232         'A'.
2233         (GetProcAddress): New macro.
2234         (BCryptGenRandomFuncType): New type.
2235         (BCryptGenRandomFunc, initialized): New variables.
2236         (initialize): New function.
2237         (getrandom): On native Windows, use <bcrypt.h> API when available, and
2238         <wincrypt.h> API as fallback.
2239         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
2240         * modules/getrandom (Link): New section.
2241         * modules/getentropy (Link): Likewise.
2242         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
2243         $(LIB_GETRANDOM).
2244         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
2245         $(LIB_GETRANDOM).
2246         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
2247         against $(LIB_GETRANDOM).
2248         * doc/glibc-functions/getrandom.texi: Mention the native Windows
2249         support.
2251 2020-05-31  Bruno Haible  <bruno@clisp.org>
2253         getrandom: Simplify the determination of the random number devices.
2254         Suggested by Paul Eggert in
2255         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
2256         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
2257         macros.
2258         * modules/getrandom (Depends-on): Remove crypto/gc-random.
2260 2020-05-31  Bruno Haible  <bruno@clisp.org>
2262         crypto/gc-random: Fix list of crypto devices for Solaris.
2263         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
2265 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
2267         list: fix GCC warnings
2268         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
2269         (gl_tree_next_node, gl_tree_node_nx_set_value)
2270         (gl_tree_previous_node, gl_tree_next_node):
2271         Mark unused arguments.
2272         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2273         * lib/gl_anylinked_list2.h (gl_linked_node_value)
2274         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
2276         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
2277         the same variable name in nested scopes.
2279 2020-05-31  Bruno Haible  <bruno@clisp.org>
2281         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
2282         Reported by Akim Demaille in
2283         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
2284         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
2285         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
2286         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
2287         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
2288         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
2290 2020-05-30  Bruno Haible  <bruno@clisp.org>
2292         wmemchr: Relicense under LGPLv2+.
2293         * modules/wmemchr (License): Set to LGPLv2+.
2295 2020-05-30  Bruno Haible  <bruno@clisp.org>
2297         wmempcpy: New module.
2298         Reported by Paul Eggert in
2299         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
2300         * lib/wchar.in.h (wmempcpy): New declaration.
2301         * lib/wmempcpy.c: New file.
2302         * m4/wmempcpy.m4: New file.
2303         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
2304         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
2305         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
2306         HAVE_WMEMPCPY.
2307         * modules/wmempcpy: New file.
2308         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
2309         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
2310         * modules/mempcpy (Description): Fix typo.
2312 2020-05-30  Bruno Haible  <bruno@clisp.org>
2314         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
2315         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
2317 2020-05-30  Bruno Haible  <bruno@clisp.org>
2319         sys_random: Work around macOS bug.
2320         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
2321         <stdlib.h> before <sys/random.h>.
2322         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
2323         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
2324         first.
2325         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
2327 2020-05-30  Bruno Haible  <bruno@clisp.org>
2329         getrandom: Override incompatible system function on Solaris 11.
2330         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
2331         * lib/getrandom.c (getrandom): When the system has getrandom, just
2332         invoke it.
2333         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
2334         system's getrandom function's prototype is not the expected one.
2335         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
2336         REPLACE_GETRANDOM.
2337         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
2338         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
2339         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
2340         EAGAIN.
2341         * doc/glibc-functions/getrandom.texi: Mention the new module and the
2342         Solaris problem.
2344 2020-05-30  Bruno Haible  <bruno@clisp.org>
2346         sys_random: Add C++ tests.
2347         * tests/test-sys_random-c++.cc: New file.
2348         * modules/sys_random-c++-tests: New file.
2349         * modules/sys_random-tests (Depends-on): Depend on it.
2351         sys_random: Add tests.
2352         * tests/test-sys_random.c: New file.
2353         * modules/sys_random-tests: New file.
2355         sys_random: New module.
2356         * lib/sys_random.in.h: Use the common idioms for overridable header
2357         files.
2358         * m4/sys_random_h.m4: New file.
2359         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
2360         * modules/sys_random: New file.
2361         * modules/getrandom (Files): Remove lib/sys_random.in.h.
2362         (Depends-on): Add sys_random.
2363         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
2364         gl_UNISTD_MODULE_INDICATOR.
2365         (Makefile.am): Don't generate sys/random.h here.
2366         * doc/glibc-headers/sys_random.texi: New file.
2367         * doc/gnulib.texi: Include it.
2369 2020-05-30  Bruno Haible  <bruno@clisp.org>
2371         unistd: Remove conflicting declaration of getrandom().
2372         * lib/unistd.in.h (getrandom): Remove declaration.
2373         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
2374         declared.
2375         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
2376         HAVE_GETRANDOM.
2377         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
2378         HAVE_GETRANDOM.
2380 2020-05-30  Bruno Haible  <bruno@clisp.org>
2382         getrandom: Add tests.
2383         * tests/test-getrandom.c: New file.
2384         * modules/getrandom-tests: New file.
2386 2020-05-30  Bruno Haible  <bruno@clisp.org>
2388         crypto/gc-random: Fix link error on MSVC.
2389         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
2390         * modules/crypto/gc-random (Link): New section.
2391         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
2392         $(LIB_GC_RANDOM).
2394 2020-05-30  Bruno Haible  <bruno@clisp.org>
2396         Don't assume that UNICODE is not defined.
2397         Many Windows API functions are defined differently (redirecting to a
2398         function with suffix 'W') if the application defines the macro UNICODE
2399         than by default (redirecting to a function with suffix 'A').
2400         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
2401         variant with suffix 'A'.
2402         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
2403         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
2404         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
2405         * lib/getlogin.c (GetUserName): Likewise.
2406         * lib/getlogin_r.c (GetUserName): Likewise.
2407         * lib/gettimeofday.c (LoadLibrary): Likewise.
2408         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
2409         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
2410         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
2411         * lib/mountlist.c (GetDriveType): Likewise.
2412         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
2413         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
2414         Likewise.
2415         * lib/physmem.c (GetModuleHandle): Likewise.
2416         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2417         PeekMessage, DispatchMessage): Likewise.
2418         * lib/progreloc.c (GetModuleFileName): Likewise.
2419         * lib/putenv.c (SetEnvironmentVariable): Likewise.
2420         * lib/read.c (GetNamedPipeHandleState): Likewise.
2421         * lib/readdir.c (FindNextFile): Likewise.
2422         * lib/relocatable.c (GetModuleFileName): Likewise.
2423         * lib/rename.c (MoveFileEx): Likewise.
2424         * lib/rewinddir.c (FindFirstFile): Likewise.
2425         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
2426         PeekMessage, DispatchMessage): Likewise.
2427         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
2428         * lib/socket.c (WSASocket): Likewise.
2429         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
2430         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
2431         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
2432         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
2433         * lib/tmpdir.c (GetTempPath): Likewise.
2434         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
2435         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
2436         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
2437         * lib/windows-cond.c (CreateEvent): Likewise.
2438         * lib/windows-rwlock.c (CreateEvent): Likewise.
2439         * lib/windows-timedmutex.c (CreateEvent): Likewise.
2440         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
2441         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
2442         * lib/write.c (GetNamedPipeHandleState): Likewise.
2444 2020-05-30  Bruno Haible  <bruno@clisp.org>
2446         physmem: Fix compilation errors on MSVC.
2447         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
2448         * modules/physmem (Depends-on): Add unistd.
2450 2020-05-29  Bruno Haible  <bruno@clisp.org>
2452         gnulib-tool: Fix link errors with a particular set of modules on mingw.
2453         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
2454         LDADD a second time, after the second occurrence of libtests.a.
2455         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2457 2020-05-29  Bruno Haible  <bruno@clisp.org>
2459         fnmatch: Rely on more gnulib modules.
2460         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
2461         wmempcpy, mempcpy.
2462         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
2463         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
2464         HAVE_MEMPCPY are all 1.
2465         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
2466         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
2468 2020-05-29  Bruno Haible  <bruno@clisp.org>
2470         Avoid dynamic lookup of Windows API functions when possible.
2471         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
2472         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
2473         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
2474         (use_win32_p): Define differently.
2475         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
2476         CreateHardLinkFunc, initialized, initialize): Don't define in a build
2477         for Windows XP or higher.
2479 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2481         read-file: disable buffering if RF_SENSITIVE is set
2482         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
2483         Suggested by Glenn Strauss.
2484         (fread_file): Suggest calling setvbuf before calling this
2485         function.  Suggested by Bruno Haible.
2487 2020-05-29  Bruno Haible  <bruno@clisp.org>
2489         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
2490         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
2491         program.
2492         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
2493         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
2494         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
2495         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
2497 2020-05-29  Bruno Haible  <bruno@clisp.org>
2499         Fix compilation error on native Windows (regression from 2020-05-28).
2500         Reported by Daiki Ueno.
2501         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
2502         macro when not using dynamic loading.
2503         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
2504         QueryFullProcessImageNameFunc): Likewise.
2505         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
2506         GetFinalPathNameByHandleFunc): Likewise.
2508 2020-05-29  Daiki Ueno  <ueno@gnu.org>
2510         fopen-gnu-tests: fix "\x" escape usage
2511         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
2513 2020-05-28  Bruno Haible  <bruno@clisp.org>
2515         Avoid dynamic loading of Windows API functions when possible.
2516         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2517         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
2518         * lib/gettimeofday.c (GetProcAddress,
2519         GetSystemTimePreciseAsFileTimeFuncType,
2520         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
2521         define in a build for Windows 8 or higher.
2522         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
2523         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
2524         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
2525         in a build for Windows Vista or higher.
2526         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
2527         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
2528         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
2530 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
2532         explicit_bzero-tests: improve -Wmissing-declarations pacification
2533         * tests/test-explicit_bzero.c: Now noinline.
2534         Suggested by Bruno Haible in:
2535         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
2537 2020-05-28  Bruno Haible  <bruno@clisp.org>
2539         Fix build errors due to read-file changes (regression from 2020-05-27).
2540         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
2541         invocation.
2542         * tests/test-sameacls.c (main): Likewise.
2543         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
2544         read_binary_file.
2545         * tests/test-pipe-filter-ii1.c (main): Likewise.
2547 2020-05-28  Bruno Haible  <bruno@clisp.org>
2549         fts: Make more robust in multithreaded applications.
2550         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
2551         * modules/fts (Depends-on): Add 'open'.
2553 2020-05-28  Bruno Haible  <bruno@clisp.org>
2555         relocatable-prog: Make more robust in multithreaded applications.
2556         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
2557         relocatable-prog-wrapper.
2558         (find_executable): Pass an O_CLOEXEC flag to open().
2559         * modules/relocatable-prog (Depends-on): Add 'open'.
2561 2020-05-28  Bruno Haible  <bruno@clisp.org>
2563         getloadavg: Make more robust in multithreaded applications.
2564         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
2565         Simplify use of O_CLOEXEC.
2566         * modules/getloadavg (Depends-on): Add 'open'.
2568 2020-05-28  Bruno Haible  <bruno@clisp.org>
2570         vma-iter: Make more robust in multithreaded applications.
2571         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
2572         open().
2573         * modules/vma-iter (Depends-on): Add 'open'.
2575 2020-05-28  Bruno Haible  <bruno@clisp.org>
2577         truncate: Make more robust in multithreaded applications.
2578         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
2580 2020-05-28  Bruno Haible  <bruno@clisp.org>
2582         pagealign_alloc: Make more robust in multithreaded applications.
2583         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
2584         open().
2585         * modules/pagealign_alloc (Depends-on): Add 'open'.
2587 2020-05-28  Bruno Haible  <bruno@clisp.org>
2589         openat: Make more robust in multithreaded applications.
2590         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
2592 2020-05-28  Bruno Haible  <bruno@clisp.org>
2594         at-internal: Make more robust in multithreaded applications.
2595         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
2596         open().
2598 2020-05-28  Bruno Haible  <bruno@clisp.org>
2600         mountlist: Make more robust in multithreaded applications.
2601         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
2602         open().
2603         * modules/mountlist (Depends-on): Add 'open'.
2605 2020-05-28  Bruno Haible  <bruno@clisp.org>
2607         login_tty: Make more robust in multithreaded applications.
2608         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
2609         * modules/login_tty (Depends-on): Add 'open'.
2611 2020-05-28  Bruno Haible  <bruno@clisp.org>
2613         javacomp: Make more robust in multithreaded applications.
2614         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
2615         open().
2616         * modules/javacomp (Depends-on): Add 'open'.
2618 2020-05-28  Bruno Haible  <bruno@clisp.org>
2620         getprogname: Make more robust in multithreaded applications.
2621         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
2622         * modules/getprogname (Depends-on): Add 'open'.
2624 2020-05-28  Bruno Haible  <bruno@clisp.org>
2626         get_progname_of: Make more robust in multithreaded applications.
2627         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
2628         open().
2629         * modules/get_progname_of (Depends-on): Add 'open'.
2631 2020-05-28  Bruno Haible  <bruno@clisp.org>
2633         get_ppid_of: Make more robust in multithreaded applications.
2634         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
2635         * modules/get_ppid_of (Depends-on): Add 'open'.
2637 2020-05-28  Bruno Haible  <bruno@clisp.org>
2639         get-rusage-as: Make more robust in multithreaded applications.
2640         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
2641         flag to open().
2642         * modules/get-rusage-as (Depends-on): Add 'open'.
2644 2020-05-28  Bruno Haible  <bruno@clisp.org>
2646         crypto/gc: Make more robust in multithreaded applications.
2647         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
2648         * modules/crypto/gc (Depends-on): Add 'open'.
2650 2020-05-28  Bruno Haible  <bruno@clisp.org>
2652         copy-file: Make more robust in multithreaded applications.
2653         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
2654         open().
2656 2020-05-28  Bruno Haible  <bruno@clisp.org>
2658         chown: Make more robust in multithreaded applications.
2659         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
2661 2020-05-28  Bruno Haible  <bruno@clisp.org>
2663         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
2664         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
2666 2020-05-28  Daiki Ueno  <ueno@gnu.org>
2668         fopen-gnu: make 'b' flag can be used with 'e' on Windows
2669         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
2670         specified on Windows.
2671         * tests/test-fopen-gnu.c (DATA): New define.
2672         (main): Add test for reading binary files with an 'e' flag.
2674 2020-05-27  Bruno Haible  <bruno@clisp.org>
2676         Don't assume that UNICODE is not defined.
2677         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
2678         differently if the application defines the macro UNICODE.
2679         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
2680         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
2681         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
2682         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
2683         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
2685 2020-05-27  Bruno Haible  <bruno@clisp.org>
2687         Improve pattern for defining _WIN32_WINNT.
2688         Newer versions of the Windows API may not only add, but also remove API
2689         functions. Therefore, when the user is e.g. building for Windows 10, we
2690         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
2691         use of APIs that were present in Windows 8 but removed in Windows 10.
2692         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
2693         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
2694         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
2695         * lib/sethostname.c (_WIN32_WINNT): Likewise.
2696         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
2698 2020-05-27  Bruno Haible  <bruno@clisp.org>
2700         javacomp: Make more robust in multithreaded applications.
2701         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
2702         * modules/javacomp (Depends-on): Add fopen-gnu.
2704 2020-05-27  Bruno Haible  <bruno@clisp.org>
2706         mountlist: Make more robust in multithreaded applications.
2707         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
2708         to fopen.
2709         * modules/mountlist (Depends-on): Add fopen-gnu.
2711 2020-05-27  Bruno Haible  <bruno@clisp.org>
2713         sethostname: Make more robust in multithreaded applications.
2714         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
2715         * modules/sethostname (Depends-on): Add fopen-gnu.
2717 2020-05-27  Bruno Haible  <bruno@clisp.org>
2719         readutmp: Make more robust in multithreaded applications.
2720         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
2721         * modules/readutmp (Depends-on): Add fopen-gnu.
2723 2020-05-27  Bruno Haible  <bruno@clisp.org>
2725         getpass: Make more robust in multithreaded applications.
2726         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
2727         * modules/getpass (Depends-on): Add fopen-gnu.
2729 2020-05-27  Bruno Haible  <bruno@clisp.org>
2731         getloadavg: Make more robust in multithreaded applications.
2732         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
2733         * modules/getloadavg (Depends-on): Add fopen-gnu.
2735 2020-05-27  Bruno Haible  <bruno@clisp.org>
2737         exclude: Make more robust in multithreaded applications.
2738         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
2739         * modules/exclude (Depends-on): Add fopen-gnu.
2741 2020-05-27  Bruno Haible  <bruno@clisp.org>
2743         bitset: Make more robust in multithreaded applications.
2744         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
2745         'e' flag to fopen.
2746         * modules/bitset (Depends-on): Add fopen-gnu.
2748 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2750         read-file: add RF_SENSITIVE flag
2751         * lib/read-file.h (RF_SENSITIVE): New define.
2752         * lib/read-file.c (fread_file, read_file): Take into account of
2753         RF_SENSITIVE flag.
2754         * modules/read-file (Depends-on): Add explicit_bzero.
2755         This adds an alternative behavior of those functions to explicitly
2756         clear the internal memory block when it becomes unused.  This is
2757         useful for reading sensitive information from a file.
2759 2020-05-27  Daiki Ueno  <ueno@gnu.org>
2761         read-file: add flags to modify reading behavior
2762         * lib/read-file.h (RF_BINARY): New define.
2763         (fread_file, read_file): Take FLAGS argument.
2764         (read_binary_file): Remove.
2765         * lib/read-file.c (internal_read_file): Merge into ...
2766         (read_file): ... here.
2767         * modules/read-file-tests (Files): Add "tests/macros.h".
2768         * tests/test-read-file.c (main): Refactor using ASSERT macro.
2769         * NEWS: Mention this change.
2771 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
2773         doc/gnulib-intro.texi: add missing "to" in sentence
2774         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
2775         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
2776         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
2778 2020-05-26  Bruno Haible  <bruno@clisp.org>
2780         count-one-bits: Fix MSVC specific code.
2781         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2782         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
2783         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
2784         using GCC.
2785         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
2786         (__popcnt64): In 32-bit mode, define as an inline function.
2787         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
2789 2020-05-26  Bruno Haible  <bruno@clisp.org>
2791         argz: Avoid name clashes through argz.h.
2792         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2793         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
2794         * lib/argz.h: Don't use __ prefixed identifiers.
2795         (const): Remove definition.
2796         (argz_next): Remove inline definitions.
2798 2020-05-26  Daiki Ueno  <ueno@gnu.org>
2800         read-file: make use of fopen-gnu
2801         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
2802         (read_binary_file): Likewise.
2803         * modules/read-file (Depends-on): Add fopen-gnu.
2805 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2807         getentropy, getrandom: new modules
2808         * MODULES.html.sh (func_all_modules):
2809         * lib/unistd.in.h (getentropy, getrandom):
2810         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
2811         * modules/unistd (unistd.h):
2812         Add support for getentropy, getrandom.
2813         * doc/glibc-functions/getentropy.texi (getentropy):
2814         * doc/glibc-functions/getrandom.texi (getrandom):
2815         These are now fixed on some platforms.
2816         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
2817         * m4/getentropy.m4, m4/getrandom.m4:
2818         * modules/getentropy, modules/getentropy-tests:
2819         * modules/getrandom, modules/getrandom-tests:
2820         * tests/test-getentropy.c, tests/test-getrandom.c:
2821         New files.
2823 2020-05-25  Bruno Haible  <bruno@clisp.org>
2825         Add missing C99 dependencies.
2826         Reported by Paul Smith <psmith@gnu.org> in
2827         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
2828         * modules/assert (Depends-on): Add c99.
2829         * modules/filenamecat-lgpl (Depends-on): Likewise.
2830         * modules/libc-config (Depends-on): Likewise.
2831         * modules/mktime (Depends-on): Likewise.
2832         * modules/random_r (Depends-on): Likewise.
2833         * modules/regex (Depends-on): Likewise.
2834         * modules/scratch_buffer (Depends-on): Likewise.
2835         * modules/timespec-add (Depends-on): Likewise.
2836         * modules/timespec-sub (Depends-on): Likewise.
2837         * modules/verify (Depends-on): Likewise.
2839 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2841         explicit_bzero-tests: pacify -Wmissing-declarations
2842         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
2843         Now static.
2845 2020-05-24  Bruno Haible  <bruno@clisp.org>
2847         fopen-gnu: Add tests.
2848         * tests/test-fopen-gnu.c: New file.
2849         * modules/fopen-gnu-tests: New file.
2851         fopen-gnu: New module.
2852         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
2853         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
2854         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
2855         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
2856         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
2857         * modules/fopen-gnu: New file.
2858         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
2860 2020-05-24  Bruno Haible  <bruno@clisp.org>
2862         open, openat: Really support O_CLOEXEC.
2863         * lib/open.c (open): When have_cloexec is still undecided, do pass a
2864         O_CLOEXEC flag to orig_open.
2865         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
2866         pass a O_CLOEXEC flag to orig_openat.
2867         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
2868         * modules/open-tests (Depends-on): Add fcntl.
2869         * modules/openat-tests (Depends-on): Likewise.
2870         * modules/fcntl-safer-tests (Depends-on): Likewise.
2872 2020-05-24  Bruno Haible  <bruno@clisp.org>
2874         fopen: Fix the trailing slash workaround.
2875         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
2876         write access. Pass the right flags to open().
2877         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
2879 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2881         assure: new macro ‘affirm’
2882         * lib/assure.h: Include verify.h.
2883         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
2884         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
2885         and commentary by Bruno Haible in:
2886         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
2887         * modules/assure (Depends-on:): Add verify.
2889 2020-05-23  Bruno Haible  <bruno@clisp.org>
2891         calloc-gnu: Make test work in non-flat address spaces.
2892         Uses code by Paul Eggert.
2893         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
2894         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
2896 2020-05-23  Bruno Haible  <bruno@clisp.org>
2898         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
2899         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
2900         AC_RUN_IFELSE invocations.
2902 2020-05-23  Bruno Haible  <bruno@clisp.org>
2904         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
2905         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
2906         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
2907         don't have it.
2908         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
2909         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
2910         don't have it.
2911         * lib/isnanf-nolibm.h (__has_builtin): New macro.
2912         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
2913         it.
2914         * lib/isnanl-nolibm.h (__has_builtin): New macro.
2915         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
2916         it.
2917         * lib/math.in.h (__has_builtin): New macro.
2918         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
2919         it.
2920         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
2921         it.
2922         (isnan): Don't use the builtins on clang versions that don't have
2923         __builtin_isnanf and __builtin_isnanl.
2925 2020-05-23  Bruno Haible  <bruno@clisp.org>
2927         calloc-gnu: Avoid wrong configure results with clang.
2928         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
2929         'volatile', to defeat compiler optimizations.
2931 2020-05-23  Bruno Haible  <bruno@clisp.org>
2933         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
2934         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
2935         'long double' values by reference, with values taken from a statically
2936         allocated array.
2938 2020-05-23  Bruno Haible  <bruno@clisp.org>
2940         findprog-in: Ignore directories.
2941         Reported by Frederick Eaton via Dmitry Goncharov in
2942         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
2943         * lib/findprog-in.c (find_in_given_path): When the file found is a
2944         directory, set errno to EACCES and, during a PATH search, continue
2945         searching.
2946         * modules/findprog-in (Depends-on): Add sys_stat, stat.
2948 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2950         verify: document ‘assume’ better
2951         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
2953 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
2955         gendocs: Clarify licenses for templates.
2956         * doc/gendocs_template: Add a GNU All-Permissive license notice
2957         and bump Parent-Version.
2958         * doc/gendocs_template_min: Add a GNU All-Permissive license
2959         notice and copy the explanatory comment about the license notice
2960         at the bottom from gendocs_template.
2962 2020-05-21  Bruno Haible  <bruno@clisp.org>
2964         group-member: Relicense under LGPLv2+.
2965         Jim Meyering's approval is in
2966         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
2967         Paul Eggert's approval is in
2968         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
2969         Eric Blake's approval is in
2970         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
2971         * modules/group-member (License): Change to LGPLv2+.
2973 2020-05-21  Bruno Haible  <bruno@clisp.org>
2975         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
2976         Reported by Tim Rühsen in
2977         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2978         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
2980 2020-05-21  Bruno Haible  <bruno@clisp.org>
2982         regex: Avoid wrong configure results with "clang -fsanitize=leak".
2983         Reported by Tim Rühsen in
2984         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2985         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
2986         before returning with status 0.
2988 2020-05-21  Bruno Haible  <bruno@clisp.org>
2990         glob: Avoid wrong configure results with "clang -fsanitize=leak".
2991         Reported by Tim Rühsen in
2992         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
2993         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
2995 2020-05-21  Bruno Haible  <bruno@clisp.org>
2997         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
2998         Reported by Tim Rühsen in
2999         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
3000         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
3001         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
3002         respectively.
3004 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
3006         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
3007         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
3009 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3011         ftoastr: fix ifndef typo
3012         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
3014 2020-05-19  Bruno Haible  <bruno@clisp.org>
3016         havelib: Tweak documentation.
3017         * doc/havelib.texi (Searching for Libraries): Fix typo.
3019 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
3021         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
3022         This was needed earlier because modules had to import the main script,
3023         but that is no longer true.  Rename the script so that it is
3024         consistent with all other scripts in gnulib and uses hyphens.
3025         * build-aux/vcs_to_changelog.py: Rename to...
3026         * build-aux/vcs-to-changelog.py: ... this.
3027         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
3028         * modules/vcs-to-changelog: Likewise.
3030 2020-05-17  Bruno Haible  <bruno@clisp.org>
3032         Clarify intended usage of the license file modules.
3033         Reported by Asher Gordon <AsDaGo@posteo.net> in
3034         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
3035         * doc/licenses-texi.texi (License Texinfo sources): Mention the
3036         GNU AGPL. Explain the intended usage of the modules.
3037         * modules/fdl (Notice): Discourage use as a module.
3038         * modules/fdl-1.3 (Notice): Likewise.
3040 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
3042         hash: add hash_xinsert
3043         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
3045 2020-05-16  Bruno Haible  <bruno@clisp.org>
3047         findprog-lgpl: Fix link error (existing since 2008-09-02).
3048         * modules/findprog-lgpl (Makefile.am): Arrange to compile
3049         findprog-lgpl.c, not findprog.c.
3050         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
3051         XNMALLOC.
3053 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
3055         c-stack: pacify -Wunused-result when DEBUG
3056         Problem reported by Marc Nieper-Wißkirchen in:
3057         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
3058         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3059         Explicitly ignore write failures.
3061 2020-05-13  Jim Meyering  <meyering@fb.com>
3063         announce-gen: improve a comment
3064         * build-aux/announce-gen: Improve comment.
3066 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
3068         xalloc: pacify -Wanalyzer-possible-null-argument
3069         Problem reported for GCC 10.1.0 by Bruno Haible in:
3070         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
3071         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
3072         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
3073         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
3075 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3077         careadlinkat: fix GCC 10 workaround
3078         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3079         Massage the code so that it’s closer to what it was before
3080         the GCC 10.1.0 workaround was introduced.  This fixes
3081         a loop when !buffer and the bug workaround is in effect.
3082         Remove unnecessary casts.  Defend in a different way
3083         against (buffer && !buffer_size), by adding at least 1
3084         to buf_size each time through the loop.
3086 2020-05-10  Bruno Haible  <bruno@clisp.org>
3088         doc: Mark HP-UX as unsupported.
3089         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
3091 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3093         careadlinkat: limit GCC workaround
3094         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
3095         10.1.0 and later, since the workaround is pretty bad and the GCC
3096         bug should get fixed.
3098 2020-05-10  Bruno Haible  <bruno@clisp.org>
3100         havelib: Enhance documentation.
3101         * doc/havelib.texi (Searching for Libraries): Mention the bad
3102         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
3104 2020-05-10  Bruno Haible  <bruno@clisp.org>
3106         attribute: Clarify list of attributes.
3107         * lib/attribute.h: Reorder the list of attributes, and group them by
3108         purpose.
3110 2020-05-10  Bruno Haible  <bruno@clisp.org>
3112         string: Fix compilation error in C++ mode.
3113         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
3114         _GL_WARN_ON_USE.
3115         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
3116         instead of _GL_WARN_ON_USE.
3118 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
3120         announce-gen: add support for dist-lzip
3121         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
3123 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3125         manywarnings: port to GCC 10.1
3126         * build-aux/gcc-warning.spec:
3127         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
3128         Add GCC 10.1.0 warnings.
3130         careadlinkat: pacify -Wreturn-local-addr
3131         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
3132         Pacify gcc 10’s -Wreturn-local-addr option.
3133         Simplify some of the later code.
3135 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3137         attribute: remove ATTRIBUTE_DEPRECATED
3138         * lib/attribute.h: Improve recently-added comments, mostly
3139         by shortening them (use active voice, etc.).
3140         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
3141         Problem reported by Bruno Haible in:
3142         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
3144 2020-05-09  Bruno Haible  <bruno@clisp.org>
3146         attribute: Add comments.
3147         * lib/attribute.h: Document each macro.
3149 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
3151         bitset: use the attribute module
3152         * modules/bitset: Depend on 'attribute'.
3153         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
3154         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
3155         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
3156         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
3158 2020-05-09  Bruno Haible  <bruno@clisp.org>
3160         c-stack: Fix warning when DEBUG is enabled.
3161         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3162         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
3163         * lib/c-stack.c: Include <stdio.h>.
3165 2020-05-09  Bruno Haible  <bruno@clisp.org>
3167         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
3168         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
3169         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3170         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3171         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3172         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3173         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3174         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3175         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3176         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
3177         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3178         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3179         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3181 2020-05-09  Bruno Haible  <bruno@clisp.org>
3183         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
3184         Reported by Akim Demaille in
3185         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
3186         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
3187         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3188         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
3190 2020-05-09  Bruno Haible  <bruno@clisp.org>
3192         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
3193         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
3194         that usually comes from m4/gnulib-common.m4.
3195         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3197 2020-05-09  Bruno Haible  <bruno@clisp.org>
3199         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
3200         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
3201         that usually comes from m4/gnulib-common.m4.
3202         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3203         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3204         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3206 2020-05-09  Bruno Haible  <bruno@clisp.org>
3208         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
3209         * lib/uchar.in.h (char16_t): Define as macro if
3210         GNULIB_OVERRIDES_CHAR16_T.
3211         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
3212         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
3213         (gl_UCHAR_H): Invoke them.
3214         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
3215         GNULIB_OVERRIDES_CHAR32_T.
3216         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
3217         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
3218         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
3219         GNULIB_OVERRIDES_CHAR32_T.
3221 2020-05-09  Bruno Haible  <bruno@clisp.org>
3223         Macro tweaks.
3224         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
3225         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
3227 2020-05-08  Bruno Haible  <bruno@clisp.org>
3229         c32rtomb: Avoid compilation failure on Haiku.
3230         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
3231         inline definitions.
3232         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
3234 2020-05-08  Bruno Haible  <bruno@clisp.org>
3236         mbrtoc32: Avoid compilation failure on Haiku.
3237         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
3238         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
3239         AC_CHECK_FUNCS_ONCE.
3240         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
3242 2020-05-08  Bruno Haible  <bruno@clisp.org>
3244         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
3245         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
3247 2020-05-08  Bruno Haible  <bruno@clisp.org>
3249         list: Update documentation.
3250         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3251         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
3252         * doc/containers.texi (Container data types): Document the new list
3253         operations and their complexity.
3255 2020-05-08  Bruno Haible  <bruno@clisp.org>
3257         ignore-value tests: Use module 'attribute'.
3258         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
3259         * tests/test-ignore-value.c: Include attribute.h.
3260         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
3261         * modules/ignore-value-tests (Depends-on): Add attribute.
3263 2020-05-08  Bruno Haible  <bruno@clisp.org>
3265         uniname/uniname: Use module 'attribute'.
3266         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
3267         * lib/uniname/uninames.h: Regenerated.
3268         * lib/uniname/uniname.c: Include attribute.h.
3269         * modules/uniname/uniname (Depends-on): Add attribute.
3271 2020-05-08  Bruno Haible  <bruno@clisp.org>
3273         c32rtomb: Use module 'attribute'.
3274         * lib/c32rtomb.c: Include attribute.h.
3275         (FALLTHROUGH): Remove macro.
3276         * modules/c32rtomb (Depends-on): Add attribute.
3278 2020-05-08  Bruno Haible  <bruno@clisp.org>
3280         xsize: Use module 'attribute'.
3281         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
3282         * modules/xsize (Depends-on): Add attribute.
3284 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3286         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
3288         * lib/attribute.h: Minor style fixes.
3290         Fix version-etc glitch on OpenIndiana
3291         Problem reported by Mats Erik Andersson in:
3292         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
3293         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
3294         that now clashes with gnulib-common.h.  All uses changed.
3296 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
3298         attribute: new module
3299         This simplifies use of GCC and C2X attributes like ‘deprecated’.
3300         * MODULES.html.sh: Add attribute.
3301         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
3302         * doc/gnulib.texi (Particular Modules): Add Attributes.
3303         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
3304         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
3305         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
3306         * lib/vasnprintf.c:
3307         Include attribute.h, and let it define FALLTHROUGH.
3308         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
3309         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
3310         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
3311         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
3312         This is a copy since Gawk doesn’t use Gnulib.
3313         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
3314         is incompatible with gl_COMMON_BODY’s.  All uses changed.
3315         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
3316         Keep the existing FALLTHROUGH definition since Glibc might use it,
3317         and it does no harm to Gnulib’s FALLTHROUGH.
3318         * lib/fts_.h, lib/inttostr.h:
3319         (__GNUC_PREREQ): Remove; no longer needed.
3320         (__attribute_warn_unused_result__): Remove.  All uses
3321         replaced by _GL_ATTRIBUTE_NODISCARD.
3322         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
3323         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
3324         __attribute__ ((__warn_unused_result__)), for forward
3325         compatibility to C2X.
3326         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
3327         _GL_ATTRIBUTE_NODISCARD.
3328         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
3329         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
3330         replaced by gl_COMMON_BODY’s implementation, which has a
3331         slightly different signature.
3332         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
3333         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
3334         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
3335         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
3336         No doubt all uses should be replaced, at some point.
3337         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
3338         (_Noreturn): Use it.
3339         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
3340         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
3341         (_GL_ATTRIBUTE_COLD)
3342         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
3343         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
3344         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
3345         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
3346         (_GL_ATTRIBUTE_MAYBE_UNUSED)
3347         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
3348         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
3349         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
3350         (_GL_ATTRIBUTE_RETURNS_NONNULL)
3351         (_GL_ATTRIBUTE_SENTINEL): New macros.
3352         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
3353         * modules/fnmatch, modules/freopen-safer, modules/fts:
3354         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
3355         * modules/quotearg, modules/savewd:
3356         * modules/unistdio/u16-u16-vasnprintf:
3357         * modules/unistdio/u16-vasnprintf:
3358         * modules/unistdio/u32-u32-vasnprintf:
3359         * modules/unistdio/u32-vasnprintf:
3360         * modules/unistdio/u8-u8-vasnprintf:
3361         * modules/unistdio/u8-vasnprintf:
3362         * modules/unistdio/ulc-vasnprintf:
3363         * modules/unistr/u8-uctomb, modules/vasnprintf:
3364         (Depends-on:): Add attribute module.
3366 2020-05-03  Bruno Haible  <bruno@clisp.org>
3368         bison: Fix today's commit.
3369         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
3371 2020-05-03  Bruno Haible  <bruno@clisp.org>
3373         list-c++: Add get_first, get_last, set_first, set_last operations.
3374         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
3375         set_first, set_last.
3376         * lib/gl_list.h: Tweak comments.
3378 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
3380         bison: rely on bison's %require to check a version requirement
3381         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
3382         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
3383         enough of not.
3384         So far it is the only know Yacc tool that supports '%require'.
3385         Other yaccs will actually even choke on seeing the -o option after the
3386         input file name.
3387         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
3389 2020-05-02  Bruno Haible  <bruno@clisp.org>
3391         list: Add get_first, get_last, set_first, set_last operations.
3392         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
3393         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
3394         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
3396 2020-05-02  Bruno Haible  <bruno@clisp.org>
3398         list: Remove redundant code for remove_first and remove_last operations.
3399         * lib/gl_list.h (struct gl_list_implementation): Remove fields
3400         remove_first, remove_last.
3401         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
3402         * lib/gl_array_list.c: Revert last change.
3403         * lib/gl_carray_list.c: Likewise.
3404         * lib/gl_anylinked_list2.h: Likewise.
3405         * lib/gl_linked_list.c: Likewise.
3406         * lib/gl_linkedhash_list.c: Likewise.
3407         * lib/gl_anytree_list2.h: Likewise.
3408         * lib/gl_avltree_list.c: Likewise.
3409         * lib/gl_avltreehash_list.c: Likewise.
3410         * lib/gl_rbtree_list.c: Likewise.
3411         * lib/gl_rbtreehash_list.c: Likewise.
3412         * lib/gl_sublist.c: Likewise.
3414 2020-05-02  Bruno Haible  <bruno@clisp.org>
3416         bison-i18n: Add support for cross-compilation.
3417         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
3418         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
3419         via Akim Demaille <akim@lrde.epita.fr>.
3420         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
3421         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
3422         Don't use bison's --print-localedir option when cross-compiling.
3423         Also, fix an error message and a comment.
3425 2020-05-01  Bruno Haible  <bruno@clisp.org>
3427         list: Add remove_first and remove_last operations.
3428         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
3429         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
3430         * lib/gl_list.h (struct gl_list_implementation): Add fields
3431         remove_first, remove_last.
3432         (gl_list_remove_first, gl_list_remove_last): New functions.
3433         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
3434         functions, based on gl_array_remove_at.
3435         (gl_array_list_implementation): Implement the new operations.
3436         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
3437         New functions, based on gl_carray_remove_at.
3438         (gl_carray_list_implementation): Implement the new operations.
3439         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
3440         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
3441         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
3442         new operations.
3443         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
3444         Likewise.
3445         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
3446         New functions, based on gl_tree_remove_at.
3447         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
3448         new operations.
3449         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3450         Likewise.
3451         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
3452         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
3453         Likewise.
3454         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
3455         New functions, based on gl_sublist_remove_at.
3456         (gl_sublist_list_implementation): Implement the new operations.
3457         * lib/gl_list.hh (class gl_List): Add methods remove_first,
3458         remove_last.
3459         * tests/test-array_list.c (main): Test also gl_list_remove_first and
3460         gl_list_remove_last.
3461         * tests/test-avltree_list.c (main): Likewise.
3462         * tests/test-avltreehash_list.c (main): Likewise.
3463         * tests/test-carray_list.c (main): Likewise.
3464         * tests/test-linked_list.c (main): Likewise.
3465         * tests/test-linkedhash_list.c (main): Likewise.
3466         * tests/test-rbtree_list.c (main): Likewise.
3467         * tests/test-rbtreehash_list.c (main): Likewise.
3469 2020-05-01  Bruno Haible  <bruno@clisp.org>
3471         parse-datetime: Fix a build failure with an older bison version.
3472         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
3473         parse-datetime.tab.c if a suitable version of bison was not found.
3475 2020-05-01  Bruno Haible  <bruno@clisp.org>
3477         bison: New module.
3478         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
3479         m4/parse-datetime.m4.
3480         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
3481         * modules/bison: New file.
3482         * modules/parse-datetime (Files): Remove m4/bison.m4.
3483         (Depends-on): Add bison.
3485 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
3487         Update users.txt.
3488         * users.txt: Add poke.
3490 2020-04-28  Bruno Haible  <bruno@clisp.org>
3492         posix_spawn_file_actions_addfchdir tests: Enhance test.
3493         * tests/test-posix_spawn5.c: Include findprog.h.
3494         (test): New function, extracted from main.
3495         (main): Invoke it. Also, invoke it with a program name such as
3496         "bin/pwd".
3497         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
3498         findprog.
3500 2020-04-28  Bruno Haible  <bruno@clisp.org>
3502         posix_spawn_file_actions_addchdir tests: Enhance test.
3503         * tests/test-posix_spawn4.c: Include findprog.h.
3504         (test): New function, extracted from main.
3505         (main): Invoke it. Also, invoke it with a program name such as
3506         "bin/pwd".
3507         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
3508         findprog.
3510 2020-04-28  Bruno Haible  <bruno@clisp.org>
3512         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
3513         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
3514         access elements of the wrong union member.
3516 2020-04-27  Bruno Haible  <bruno@clisp.org>
3518         getdate: Remove deprecated module.
3519         * modules/getdate: Remove file.
3520         * doc/getdate.texi: Remove file.
3521         * lib/getdate.h: Remove file.
3522         * NEWS: Mention the removal.
3524 2020-04-27  Bruno Haible  <bruno@clisp.org>
3526         realloc: Remove deprecated module.
3527         * modules/realloc: Remove file.
3528         * NEWS: Mention the removal.
3530 2020-04-27  Bruno Haible  <bruno@clisp.org>
3532         calloc: Remove deprecated module.
3533         * modules/calloc: Remove file.
3534         * NEWS: Mention the removal.
3536 2020-04-27  Bruno Haible  <bruno@clisp.org>
3538         malloc: Remove deprecated module.
3539         * modules/malloc: Remove file.
3540         * NEWS: Mention the removal.
3542 2020-04-27  Bruno Haible  <bruno@clisp.org>
3544         fnmatch-posix: Remove deprecated module.
3545         * modules/fnmatch-posix: Remove file.
3546         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
3547         * NEWS: Mention the removal.
3549 2020-04-27  Bruno Haible  <bruno@clisp.org>
3551         pipe: Remove deprecated module.
3552         * modules/pipe: Remove file.
3553         * lib/pipe.h: Remove file.
3554         * NEWS: Mention the removal.
3556 2020-04-27  Bruno Haible  <bruno@clisp.org>
3558         getopt: Remove deprecated module.
3559         * modules/getopt: Remove file.
3560         * NEWS: Mention the removal.
3562 2020-04-27  Bruno Haible  <bruno@clisp.org>
3564         remove-dest-slash: Remove deprecated module.
3565         * modules/rename-dest-slash: Remove file.
3566         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
3567         Update.
3568         * NEWS: Mention the removal.
3570 2020-04-27  Bruno Haible  <bruno@clisp.org>
3572         unictype/bidicategory-*: Remove deprecated modules.
3573         * modules/unictype/bidicategory-all: Remove file.
3574         * modules/unictype/bidicategory-byname: Remove file.
3575         * modules/unictype/bidicategory-name: Remove file.
3576         * modules/unictype/bidicategory-of: Remove file.
3577         * modules/unictype/bidicategory-test: Remove file.
3578         * MODULES.html.sh (Unicode string functions): Update.
3579         * NEWS: Mention the removals.
3581 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3583         Tune fts for FTS_LOGICAL+FTS_NOSTAT
3584         From a suggestion by Askar Safin in:
3585         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
3586         * lib/fts.c (fts_build): If file types are known, optimize
3587         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
3588         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
3589         non-directories.
3591 2020-04-19  Bruno Haible  <bruno@clisp.org>
3593         vasnprintf: Add support for printing wide characters using escapes.
3594         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
3595         (wctomb_fallback): New function.
3596         (local_wctomb): New function.
3597         (local_wcrtomb): New function or macro.
3598         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
3599         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
3600         %lc.
3602 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
3604         fts: remove NOSTAT_LEAF_OPTIMIZATION
3605         It caused ‘find’ and ‘du’ to dump core, and it was useful
3606         only for obsolescent Linux filesystems anyway.  Problem reported in:
3607         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
3608         Quite possibly there is still a serious underlying fts bug with
3609         tight-loop-check and mutating file systems, but if so this patch
3610         should cause the bug to be triggered less often.
3611         * lib/fts.c (enum leaf_optimization): Remove
3612         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
3613         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
3614         (leaf_optimization): Remove special cases for ReiserFS and XFS.
3615         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
3616         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
3617         Remove.  All uses removed.
3619 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3621         explicit_bzero: Improve code style.
3622         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
3624 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3626         explicit_bzero: On native Windows, use SecureZeroMemory().
3627         * lib/explicit_bzero.c: Include <windows.h>.
3628         (explicit_bzero): On native Windows, use SecureZeroMemory.
3630 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3632         explicit_bzero: Use memset_s() when available.
3633         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
3634         (explicit_bzero): Use memset_s when available.
3635         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
3637 2020-04-13  Bastien Roucariès  <rouca@debian.org>
3639         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
3640         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
3641         free() that overwrite the memory with canaries.
3643 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
3645         bootstrap: recommend git submodule update --init
3646         Reported by Bruno Haible.
3647         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
3648         * build-aux/bootstrap: recommand "git submodule update --init"
3649         rather than "git submodule init".
3651 2020-04-12  Bruno Haible  <bruno@clisp.org>
3653         explicit_bzero: Add tests.
3654         * tests/test-explicit_bzero.c: New file.
3655         * modules/explicit_bzero-tests: New file.
3657 2020-04-11  Bruno Haible  <bruno@clisp.org>
3659         explicit_bzero: Relicense under LGPLv2+.
3660         Approved by Paul Eggert.
3661         * modules/explicit_bzero (License): Change to LGPLv2+.
3663 2020-04-10  Bruno Haible  <bruno@clisp.org>
3665         findprog, relocatable-prog: Ignore directories during PATH search.
3666         Reported by Frederick Eaton via Dmitry Goncharov in
3667         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3669         * lib/findprog.c (find_in_path): When the file found in a PATH element
3670         is a directory, continue searching.
3671         * modules/findprog (Depends-on): Add sys_stat, stat.
3672         * modules/findprog-lgpl (Depends-on): Likewise.
3674         * lib/progreloc.c (maybe_executable): When the file found in a PATH
3675         element is a directory, continue searching.
3676         * lib/relocwrapper.c: Update comments.
3677         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
3678         (configure.ac-early): New section.
3680 2020-04-10  Bruno Haible  <bruno@clisp.org>
3682         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
3683         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3684         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
3685         * MODULES.html.sh: In a git-less tarball, use the date of the first
3686         ChangeLog entry.
3688 2020-04-04  Bruno Haible  <bruno@clisp.org>
3690         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
3691         * m4/gettext.m4: Fix comments regarding the gettext library.
3692         * m4/intl-thread-locale.m4: Likewise.
3693         * m4/intlmacosx.m4: Likewise.
3694         * m4/lcmessage.m4: Likewise.
3695         * m4/nls.m4: Likewise.
3696         * m4/po.m4: Likewise.
3697         * m4/progtest.m4: Likewise.
3699 2020-04-04  Jim Meyering  <meyering@fb.com>
3701         maint: remove a stray inter-word space in a 6x-repeated comment
3702         Induce the changes by running this:
3703           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
3704         * build-aux/announce-gen: Change "by  perl" to "by perl".
3705         * build-aux/gitlog-to-changelog: Likewise.
3706         * build-aux/prefix-gnulib-mk: Likewise.
3707         * build-aux/update-copyright: Likewise.
3708         * build-aux/useless-if-before-free: Likewise.
3709         * tests/test-update-copyright.sh: Likewise.
3711 2020-03-28  Bruno Haible  <bruno@clisp.org>
3713         Use module 'filename' instead of module 'dosname'.
3715         * lib/at-func.c: Include filename.h instead of dosname.h.
3716         * lib/unlinkat.c: Likewise.
3717         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
3718         * modules/areadlinkat-with-size (Depends-on): Likewise.
3719         * modules/faccessat (Depends-on): Likewise.
3720         * modules/fchmodat (Depends-on): Likewise.
3721         * modules/fchownat (Depends-on): Likewise.
3722         * modules/fstatat (Depends-on): Likewise.
3723         * modules/mkdirat (Depends-on): Likewise.
3724         * modules/mkfifoat (Depends-on): Likewise.
3725         * modules/readlinkat (Depends-on): Likewise.
3726         * modules/selinux-at (Depends-on): Likewise.
3727         * modules/symlinkat (Depends-on): Likewise.
3728         * modules/unlinkat (Depends-on): Likewise.
3729         * modules/utimensat (Depends-on): Likewise.
3731         * lib/at-func2.c: Include filename.h instead of dosname.h.
3732         * modules/linkat (Depends-on): Add filename. Remove dosname.
3733         * modules/renameatu (Depends-on): Likewise.
3735         * lib/canonicalize.c: Include filename.h instead of dosname.h.
3736         * lib/canonicalize-lgpl.c: Likewise.
3737         * modules/canonicalize (Depends-on): Add filename.
3738         * modules/canonicalize-lgpl (Depends-on): Likewise.
3740         * lib/dirname.h: Include filename.h instead of dosname.h.
3741         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
3743         * lib/fchdir.c: Include filename.h instead of dosname.h.
3744         * modules/fchdir (Depends-on): Add filename. Remove dosname.
3746         * lib/openat.c: Include filename.h instead of dosname.h.
3747         * modules/openat (Depends-on): Add filename. Remove dosname.
3749         * lib/rmdir.c: Include filename.h instead of dosname.h.
3750         * modules/rmdir (Depends-on): Add filename. Remove dosname.
3752         * lib/savewd.c: Include filename.h instead of dosname.h.
3753         * modules/savewd (Depends-on): Add filename. Remove dosname.
3755         * lib/unlink.c: Include filename.h instead of dosname.h.
3756         * modules/unlink (Depends-on): Add filename. Remove dosname.
3758         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
3759         * lib/relocwrapper.c: Update comments.
3761         * modules/lstat (Depends-on): Remove dosname.
3763 2020-03-28  Bruno Haible  <bruno@clisp.org>
3765         dosname: Redirect to 'filename'.
3766         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3767         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
3768         * lib/dosname.h: Remove all definitions. Just include filename.h.
3769         * modules/dosname (Status, Notice): Mark as deprecated.
3770         (Depends-on): Add 'filename'.
3772 2020-03-28  Bruno Haible  <bruno@clisp.org>
3774         dosname: Change IS_RELATIVE_FILE_NAME.
3775         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
3776         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
3777         * NEWS: Mention the change.
3779 2020-03-28  Bruno Haible  <bruno@clisp.org>
3781         filename: Copy some definitions from module 'dosname'.
3782         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
3783         (HAS_DEVICE): Document macro.
3784         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
3785         (IS_ABSOLUTE_FILE_NAME): Consider
3786         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
3787         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
3788         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
3789         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
3790         IS_PATH_WITH_DIR.
3791         (DllMain): Update.
3792         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
3793         IS_PATH_WITH_DIR.
3794         (find_executable): Update.
3795         * NEWS: Document the deprecations.
3797 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3799         getopt-posix: port __GETOPT_PREFIX to macOS
3800         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
3801         Define to work around a problem with asm on macOS (Bug#40205).
3803 2020-03-22  Bruno Haible  <bruno@clisp.org>
3805         MODULES.html.sh: Add support for reproducible builds.
3806         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
3807         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
3808         * MODULES.html.sh: Print the date of the last gnulib commit, not the
3809         current date.
3811 2020-03-22  Bruno Haible  <bruno@clisp.org>
3813         Several modules: Depend on stat.
3814         * modules/acl-permissions (Depends-on): Add stat.
3815         * modules/canonicalize (Depends-on): Likewise.
3816         * modules/file-has-acl (Depends-on): Likewise.
3817         * modules/fstat (Depends-on): Likewise.
3818         * modules/fstatat (Depends-on): Likewise.
3819         * modules/glob (Depends-on): Likewise.
3820         * modules/javacomp (Depends-on): Likewise.
3821         * modules/linkat (Depends-on): Likewise.
3822         * modules/mkdir (Depends-on): Likewise.
3823         * modules/pt_chown (Depends-on): Likewise.
3824         * modules/ptsname_r (Depends-on): Likewise.
3825         * modules/readlinkat (Depends-on): Likewise.
3826         * modules/rename (Depends-on): Likewise.
3827         * modules/renameatu (Depends-on): Likewise.
3828         * modules/tmpdir (Depends-on): Likewise.
3829         * modules/utimens (Depends-on): Likewise.
3830         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
3831         * modules/same (Depends-on): Remove stat.
3833 2020-03-22  Bruno Haible  <bruno@clisp.org>
3835         acl-permissions: Improve autoconf macro.
3836         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
3837         more reliably.
3839 2020-03-22  Bruno Haible  <bruno@clisp.org>
3841         file-has-acl: Fix module description.
3842         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
3843         (Depends-on): Depend on acl-permissions unconditionally.
3845 2020-03-21  Bruno Haible  <bruno@clisp.org>
3847         unlink: Ensure errno also on native Windows.
3848         * modules/unlink (Depends-on): Add malloc-posix.
3850 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
3852         unlink: fix malloc errno typo
3853         Problem reported by Tim Rühsen in:
3854         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
3855         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
3857 2020-03-16  Bruno Haible  <bruno@clisp.org>
3859         *printf-posix: Fix m4 error (regression from 2020-03-08).
3860         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
3861         brackets in AC_COMPILE_IFELSE invocation.
3863 2020-03-08  Bruno Haible  <bruno@clisp.org>
3865         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
3866         * modules/crypto/af_alg (Depends-on): Add fstat.
3867         * modules/renameatu (Depends-on): Likewise.
3868         * modules/same (Depends-on): Likewise.
3869         * modules/term-style-control (Depends-on): Likewise.
3871 2020-03-08  Bruno Haible  <bruno@clisp.org>
3873         *printf-posix: Document why it's overridden on some glibc systems.
3874         Reported by Adrian Bunk <bunk@stusta.de> in
3875         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
3876         * doc/posix-functions/*printf.texi: Document the problem with the %n
3877         directive on some glibc systems.
3878         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
3879         the cross-compilation guesses accordingly.
3881 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
3883         open, openat: port to (O_RDWR | O_RDONLY) != 0
3884         Potential portability problem reported by Dan Gohman in:
3885         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
3886         * lib/open.c (open):
3887         * lib/openat.c (rpl_openat):
3888         Don’t assume O_RDONLY is disjoint from O_RDWR.
3890 2020-03-07  Bruno Haible  <bruno@clisp.org>
3892         openat: Fix theoretically possible issue on GNU/Hurd.
3893         Reported by Dan Gohman <sunfish@mozilla.com> in
3894         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
3895         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
3896         ignore the bits that are also set in O_RDONLY.
3898 2020-02-24  Bruno Haible  <bruno@clisp.org>
3900         getloadavg: Don't use /usr/local when cross-compiling on AIX.
3901         Reported by Jens Rehsack <sno@netbsd.org> in
3902         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
3903         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
3904         cross-compiling.
3906 2020-02-24  Bruno Haible  <bruno@clisp.org>
3908         fcntl: Add witness of gnulib override.
3909         Reported by Jens Rehsack <sno@netbsd.org> in
3910         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
3911         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
3912         macros.
3914 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
3916         Update users.txt.
3917         * users.txt: Add datamash, time.
3919 2020-02-23  Bruno Haible  <bruno@clisp.org>
3921         uni*/base: Use 'restrict'.
3922         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
3923         from lib/regex.h.
3924         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
3925         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
3926         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
3927         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
3928         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
3929         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
3930         '_UC_RESTRICT'.
3931         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
3932         u32_conv_to_encoding): Use '_UC_RESTRICT'.
3933         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
3934         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
3935         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
3936         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
3937         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
3938         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
3939         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
3940         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
3941         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
3942         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
3943         '_UC_RESTRICT'.
3944         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
3945         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
3946         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
3947         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
3948         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
3949         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
3950         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
3951         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
3953 2020-02-23  Bruno Haible  <bruno@clisp.org>
3955         glob, spawn: Use improved '_Restrict_' definition.
3956         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
3957         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
3959 2020-02-23  Bruno Haible  <bruno@clisp.org>
3961         crypto/gc: Use 'restrict'.
3962         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
3963         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
3965         crypto/hmac-*: Use 'restrict'.
3966         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
3967         'restrict'.
3968         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
3969         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
3970         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
3971         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
3973         crypto/sm3: Use 'restrict'.
3974         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
3975         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
3977         crypto/*-buffer: Use 'restrict'.
3978         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
3979         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
3981         crypto/sha512-buffer: Use 'restrict'.
3982         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
3983         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
3984         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
3986         crypto/sha256-buffer: Use 'restrict'.
3987         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
3988         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
3989         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
3991         crypto/sha1-buffer: Use 'restrict'.
3992         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
3993         'restrict'.
3994         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
3996         crypto/md5-buffer: Use 'restrict'.
3997         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
3998         'restrict'.
3999         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
4001         crypto/md4: Use 'restrict'.
4002         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
4003         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
4005         crypto/md2: Use 'restrict'.
4006         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
4007         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
4009         crypto/rijndael: Use 'restrict'.
4010         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
4011         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
4012         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
4014         crypto/arctwo: Use 'restrict'.
4015         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
4016         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
4018         crypto/arcfour: Use 'restrict'.
4019         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
4020         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
4022         careadlinkat: Use 'restrict'.
4023         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
4024         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
4025         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
4027         regex-quote: Use 'restrict'.
4028         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
4029         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
4031         system-quote: Use 'restrict'.
4032         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
4033         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
4035         sh-quote: Use 'restrict'.
4036         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
4037         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
4039         quotearg: Use 'restrict'.
4040         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
4041         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
4043         parse-datetime: Use 'restrict'.
4044         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
4045         'restrict'.
4046         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
4048         nstrftime: Use 'restrict'.
4049         * lib/strftime.h (nstrftime): Use 'restrict'.
4050         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
4052         mbstok_r: Use 'restrict'.
4053         * lib/string.in.h (mbstok_r): Use 'restrict'.
4055         xmemcoll: Use 'restrict'.
4056         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
4057         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
4059         memcoll: Use 'restrict'.
4060         * lib/memcoll.h (memcoll): Use 'restrict'.
4061         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
4063         vasnprintf: Use 'restrict'.
4064         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
4065         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
4067         c-vasnprintf: Use 'restrict'.
4068         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
4069         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
4071         c-vsnprintf: Use 'restrict'.
4072         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
4073         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
4075         c-snprintf: Use 'restrict'.
4076         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
4077         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
4079         astrxfrm: Use 'restrict'.
4080         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
4081         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
4083         amemxfrm: Use 'restrict'.
4084         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
4085         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
4087 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4089         fchmodat, lchmod: simplify
4090         It appears that we may have overengineered lchmod and fchmodat,
4091         in that the code was prepared for some hypothetical platforms but
4092         was so complicated that it was hard to understand.  I attempted to
4093         improve the situation by simplifying the code when this
4094         simplification should not hurt on real platforms; we can re-add
4095         complexity later to port to platforms I didn’t know about.
4096         * lib/fchmodat.c (fchmodat):
4097         * lib/lchmod.c (lchmod):
4098         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
4099         around the /proc code that needs it.
4100         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
4101         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
4102         Do not include <config.h> twice.
4103         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
4104         lchmod on any known hosts.
4105         (lchmod): Do not defer to fchmodat, so that the lchmod module
4106         need not depend on the fchmodat module (which is a circular
4107         dependency).  Do not use openat, since ‘open’ suffices.
4108         Coalesce calls to lchmod/chmod.
4109         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
4110         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
4111         * modules/lchmod (Depends-on, configure.ac):
4112         * modules/sys_stat (Depends-on):
4113         Do not worry about replacing lchmod, since that shouldn’t happen.
4114         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
4115         Do not worry about whether lchmod works on non-symlinks,
4116         since every known lchmod works on non-symlinks.
4117         * modules/lchmod (Depends-on):
4118         Remove circular dependency on fchmodat.
4120 2020-02-22  Bruno Haible  <bruno@clisp.org>
4122         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
4123         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
4124         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
4126 2020-02-22  Bruno Haible  <bruno@clisp.org>
4128         Use 'restrict' in all POSIX function declarations.
4129         * lib/iconv.in.h (iconv): Use 'restrict'.
4130         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
4131         * lib/monetary.in.h (strfmon_l): Likewise.
4132         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
4133         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
4134         pthread_mutex_timedlock, pthread_rwlock_init,
4135         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
4136         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
4137         * lib/search.in.h (tdelete): Likewise.
4138         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
4139         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
4140         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
4141         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
4142         Likewise.
4143         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
4144         strtoull): Likewise.
4145         * lib/string.in.h (strncat): Likewise.
4146         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
4147         recvfrom): Likewise.
4148         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
4149         * lib/time.in.h (strftime): Likewise.
4150         * lib/unistd.in.h (readlink, readlinkat): Likewise.
4151         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
4152         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
4153         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
4154         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
4155         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
4156         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
4157         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4158         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4159         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4160         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
4162         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4163         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4164         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4165         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
4166         other *_h.m4 files.
4167         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
4169 2020-02-22  Bruno Haible  <bruno@clisp.org>
4171         Update NEWS.
4172         * NEWS: Mention the last change.
4174 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
4176         chmodat, chownat: new modules
4177         These are split from fchmodat, fchownat.  GNU Emacs needs the
4178         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
4179         lchmodat.  Split the latter two into a new module chmodat.
4180         Similarly for fchownat.  This the same basic idea for why statat
4181         was split from fstatat on 2013-01-23.
4182         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
4183         Rename from FCHMODAT_INLINE.  All uses changed.
4184         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
4185         Rename from FCHOWNAT_INLINE.  All uses changed.
4186         * lib/openat.h:
4187         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
4188         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
4189         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
4190         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
4191         (configure.ac): Remove fchmodat module indicator.
4192         (Makefile.am): Omit chmodat.c.
4193         (Maintainer): Add self.
4194         * modules/fchownat: Similarly, but for chown.
4195         * tests/test-fchownat.c (BASE): Don't define if already defined.
4196         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
4198 2020-02-22  Bruno Haible  <bruno@clisp.org>
4200         users.txt: Add groff.
4201         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
4202         * users.txt: Add groff.
4204 2020-02-22  Bruno Haible  <bruno@clisp.org>
4206         gnulib-tool: Ensure copied files are writable.
4207         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
4208         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
4209         * gnulib-tool (func_ensure_writable): New function.
4210         (func_ln_s, func_hardlink, func_lookup_file, func_import,
4211         func_create_testdir, copy-file): Invoke it after copying a file.
4213 2020-02-22  Bruno Haible  <bruno@clisp.org>
4215         users.txt: Update.
4216         * users.txt: Update URLs to projects that have moved or switched to git.
4217         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
4218         over the summary view. Add gawk.
4220 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
4222         largefile: remove _DARWIN_USE_64_BIT_INODE
4223         It’s not needed in currently-supported macOS versions, and was
4224         problematic anyway in MacOS X 10.5 which was the only version that
4225         could use it.  Problem reported by Peter Eisentraut in:
4226         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
4227         * m4/largefile.m4 (AC_SYS_LARGEFILE):
4228         Don’t define _DARWIN_USE_64_BIT_INODE.
4229         This syncs with Autoconf master.
4231         Add ‘extern "C"’ to count-one-bits.h etc.
4232         This ports these .h files to C++.
4233         Problem reported by Simon Marchi in:
4234         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
4235         * lib/count-leading-zeros.h, lib/count-one-bits.h:
4236         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
4238 2020-02-19  Bruno Haible  <bruno@clisp.org>
4240         uninorm/decompose-internal: Avoid "no previous prototype" warning.
4241         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4242         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
4243         * lib/array-mergesort.h: Accept an optional macro definition
4244         STATIC_FROMTO.
4245         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
4247 2020-02-16  Bruno Haible  <bruno@clisp.org>
4249         fchmodat: Make more future-proof.
4250         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
4251         NEED_FCHMODAT_NONSYMLINK_FIX.
4252         (gl_PREREQ_FCHMODAT): New macro.
4253         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
4254         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
4255         without lchmod function.
4256         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
4258 2020-02-16  Bruno Haible  <bruno@clisp.org>
4260         lchmod: Make more future-proof.
4261         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
4262         (gl_PREREQ_LCHMOD): New macro.
4263         * lib/lchmod.c (orig_lchmod): New function.
4264         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
4265         Return EOPNOTSUPP only on Linux and on platforms without lchmod
4266         function.
4267         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
4269         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
4270         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
4272 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4274         xnanosleep: prefer pause, and get remaining time
4275         Problem reported by Vladimir Panteleev in:
4276         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
4277         * lib/xnanosleep.c: Include intprops.h, unistd.h.
4278         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
4279         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
4280         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
4281         * modules/xnanosleep (Depends-on): Add intprops, unistd.
4283 2020-02-16  Bruno Haible  <bruno@clisp.org>
4285         lchmod: Improve cross-compilation guess.
4286         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
4287         cross-compiling, guess depending on the platform.
4289 2020-02-16  Bruno Haible  <bruno@clisp.org>
4291         fstrcmp: Add API to clean up resources.
4292         Reported by Akim Demaille <akim@lrde.epita.fr> in
4293         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
4294         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
4295         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
4297 2020-02-14  Bruno Haible  <bruno@clisp.org>
4299         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
4300         Reported by Christian Biesinger in
4301         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
4302         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
4303         corresponding module is not enabled.
4304         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
4305         prototype if the corresponding module is not enabled.
4307 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
4309         fchmodat, lchmod: port to buggy Linux filesystems
4310         Problem reported by Florian Weimer in:
4311         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
4312         * lib/fchmodat.c (fchmodat):
4313         * lib/lchmod.c (lchmod):
4314         Don’t assume that chmod on the O_PATH-opened fd will do
4315         the right thing on a symbolic link.
4316         * lib/fchmodat.c (fchmodat):
4317         Don’t attempt to special-case
4318         any flag value other than AT_SYMLINK_NOFOLLOW.
4320 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
4322         lchmod: pacify Coverity CID 1491216
4323         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
4324         not complain about unreachable code at the ‘struct stat st;’
4325         declaration.
4327 2020-02-10  Bruno Haible  <bruno@clisp.org>
4329         copysignf: Fix link error on HP-UX with cc.
4330         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
4331         HP-UX, set COPYSIGNF_LIBM to -lm.
4333 2020-02-10  Bruno Haible  <bruno@clisp.org>
4335         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
4336         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
4337         with $(LIB_SEMAPHORE).
4338         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
4339         with $(LIB_SEMAPHORE).
4341 2020-02-10  Bruno Haible  <bruno@clisp.org>
4343         ptsname_r-tests: Avoid unused function warning.
4344         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
4346 2020-02-08  Bruno Haible  <bruno@clisp.org>
4348         lchmod: Add tests.
4349         * tests/test-lchmod.c: New file.
4350         * modules/lchmod-tests: New file.
4352 2020-02-08  Bruno Haible  <bruno@clisp.org>
4354         lchmod: Ensure declaration on HP-UX.
4355         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
4356         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
4358 2020-02-08  Bruno Haible  <bruno@clisp.org>
4360         fchmodat: Strengthen tests.
4361         * tests/test-fchmodat.c (BASE): New macro.
4362         (main): Use it, to avoid conflicts with other unit tests. Verify that
4363         fchmodat changed the file permission bits.
4365 2020-02-08  Bruno Haible  <bruno@clisp.org>
4367         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
4368         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
4369         '#undef __need_system_sys_stat_h'.
4371 2020-02-08  Bruno Haible  <bruno@clisp.org>
4373         fchmodat: Improve cross-compilation guesses.
4374         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
4375         cross-compiling, guess depending on the platform.
4376         * doc/posix-functions/fchmodat.texi: Clarify.
4378 2020-02-08  Bruno Haible  <bruno@clisp.org>
4380         Fix compilation errors in a testdir created with --with-c++-tests.
4381         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
4382         since it does not work any more with g++ >= 4.4.
4384 2020-02-08  Bruno Haible  <bruno@clisp.org>
4386         doc: Update for glibc 2.31.
4387         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
4388         * doc/gnulib.texi: Include it.
4389         * doc/pastposix-functions/h_errno.texi: Update.
4390         * doc/posix-functions/*.texi: Likewise.
4392 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
4394         mountlist: consider smb3 file systems as remote
4395         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
4396         "smb3" as remote.
4398 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4400         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
4401         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
4402         they act like chmod on non-symlinks.
4403         * NEWS:
4404         * doc/glibc-functions/lchmod.texi (lchmod):
4405         * doc/posix-functions/fchmodat.texi (fchmodat):
4406         Mention this.
4407         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
4408         config.h, and undef it after including sys/stat.h the first time.
4409         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
4410         sys/stat.h a second time after defining orig_fchmodat.
4411         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
4412         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
4413         * lib/lchmod.c: New file.
4414         * lib/sys_stat.in.h (fchmodat, lchmod):
4415         Support replacing these functions.
4416         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
4417         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
4418         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
4419         Test that lchmod works on non-symlinks.
4420         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
4421         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
4422         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
4423         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
4424         * modules/lchmod (Files): Add lib/lchmod.c.
4425         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
4426         (configure.ac): Compile lchmod.c if needed.
4427         (lib_SOURCES): Add lchmod.c.
4428         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
4429         and REPLACE_LCHMOD.
4430         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
4431         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
4433 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
4435         mountlist: Consider AFS filesystems as remote
4436         df --local relies on the ME_REMOTE macro to determine if a given
4437         mount entry should be considered "local".  There is special logic
4438         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
4439         kernel's kafs module or AuriStorFS is treated as a local mount.
4440         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
4441         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
4443 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4445         Port _Noreturn to older Clang
4446         Problem reported by Jeffery Walton in:
4447         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
4448         * lib/_Noreturn.h (_Noreturn):
4449         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4450         Assume _Noreturn works in Clang 3.5 and later.
4451         It is documented to work in Clang 3.5:
4452         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
4453         and is not documented in Clang 3.4:
4454         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
4455         Apple sets __clang_version__ to a different value, so use
4456         __apple_build_version__ there.  See:
4457         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
4459 2020-02-04  Pádraig Brady  <P@draigBrady.com>
4461         test-canonicalize: avoid unused function warning
4462         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
4463         with the same guard as that used to protect usage of the null_ptr
4464         function, so that one doesn't get a -Wunused warning.
4465         * tests/test-canonicalize-lgpl.c: Likewise.
4467 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
4469         libc-config: port to Apple’s Clang variant
4470         * lib/libc-config.h (__glibc_clang_prereq):
4471         Port to Apple’s Clang variant, which uses a different
4472         numbering scheme for __clang_major__.
4474 2020-02-02  Bruno Haible  <bruno@clisp.org>
4476         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
4477         * doc/containers.texi: Document these new modules.
4479 2020-02-02  Bruno Haible  <bruno@clisp.org>
4481         omap-c++: Add tests.
4482         * tests/test-omap-c++.cc: New file.
4483         * modules/omap-c++-tests: New file.
4485         omap-c++: New module.
4486         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
4487         * modules/omap-c++: New file.
4489 2020-02-02  Bruno Haible  <bruno@clisp.org>
4491         map-c++: Add tests.
4492         * tests/test-map-c++.cc: New file.
4493         * modules/map-c++-tests: New file.
4495         map-c++: New module.
4496         * lib/gl_map.hh: New file, based on lib/gl_map.h.
4497         * modules/map-c++: New file.
4499 2020-02-02  Bruno Haible  <bruno@clisp.org>
4501         oset-c++: Add tests.
4502         * tests/test-oset-c++.cc: New file.
4503         * modules/oset-c++-tests: New file.
4505         oset-c++: New module.
4506         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
4507         * modules/oset-c++: New file.
4509 2020-02-02  Bruno Haible  <bruno@clisp.org>
4511         set-c++: Add tests.
4512         * tests/test-set-c++.cc: New file.
4513         * modules/set-c++-tests: New file.
4515         set-c++: New module.
4516         * lib/gl_set.hh: New file, based on lib/gl_set.h.
4517         * modules/set-c++: New file.
4519 2020-02-02  Bruno Haible  <bruno@clisp.org>
4521         list-c++: Add tests.
4522         * tests/test-list-c++.cc: New file.
4523         * modules/list-c++-tests: New file.
4525         list-c++: New module.
4526         * lib/gl_list.hh: New file, based on lib/gl_list.h.
4527         * modules/list-c++: New file.
4529 2020-02-02  Bruno Haible  <bruno@clisp.org>
4531         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
4532         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
4533         '_Noreturn'.
4534         * lib/sigpipe-die.h (sigpipe_die): Likewise.
4536 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4538         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
4539         On x86_64 with glibc-2.30, gcc 9.2 is giving:
4540           error: argument 2 value '18446744073709551615'
4541           exceeds maximum object size 9223372036854775807
4542           [-Werror=alloc-size-larger-than=]
4543         The details of this restriction are discussed at:
4544         https://stackoverflow.com/q/42574890/4421
4545         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
4547 2020-02-02  Pádraig Brady  <P@draigBrady.com>
4549         sysctl.h: avoid including on glibc
4550         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
4551         * lib/physmem.c: Likewise.
4553 2020-02-02  Bruno Haible  <bruno@clisp.org>
4555         list, set, oset, map, omap: Avoid imperative voice in documentation.
4556         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
4557         in the specification of functions.
4558         * lib/gl_set.h: Likewise.
4559         * lib/gl_oset.h: Likewise.
4560         * lib/gl_map.h: Likewise.
4561         * lib/gl_omap.h: Likewise.
4562         * lib/gl_*.h: Likewise.
4564 2020-02-01  Bruno Haible  <bruno@clisp.org>
4566         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
4567         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
4568         does.
4570 2020-01-29  Bruno Haible  <bruno@clisp.org>
4572         array-map, hash-map, linkedhash-map: Fix module description.
4573         * modules/array-map (Description): Fix description.
4574         * modules/hash-map (Description): Likewise.
4575         * modules/linkedhash-map (Description): Likewise.
4577 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4579         dfa: do not depend on isblank
4580         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
4581         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
4582         * modules/dfa (Depends-on): Remove isblank.
4583         * modules/isblank: Add a module indicator, for lib/dfa.c.
4585         dfa: do not assume 64-bit int
4586         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
4587         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
4588         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
4589         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
4590         Fall back to 32-bit words.
4591         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
4592         of 4 64-bit args.  All uses changed.
4594 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4596         regex: remove limits-h dependency
4597         * modules/regex (Depends-on): Remove limits-h, since the
4598         code no longer depends on ULONG_WIDTH already being defined.
4600         regex: port to non-GCC pre-IEC-60559
4601         Problem reported by Arnold Robbins in:
4602         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
4603         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
4605 2020-01-25  Bruno Haible  <bruno@clisp.org>
4607         c32isxdigit: Add tests.
4608         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
4609         * tests/test-c32isxdigit.sh: New file.
4610         * modules/c32isxdigit-tests: New file.
4612         c32isxdigit: New module.
4613         * lib/c32isxdigit.c: New file.
4614         * modules/c32isxdigit: New file.
4615         * doc/posix-functions/iswxdigit.texi: Mention the new module.
4617 2020-01-25  Bruno Haible  <bruno@clisp.org>
4619         c32isupper: Add tests.
4620         * tests/test-c32isupper.c: New file.
4621         * tests/test-c32isupper.sh: New file.
4622         * modules/c32isupper-tests: New file.
4624         c32isupper: New module.
4625         * lib/c32isupper.c: New file.
4626         * modules/c32isupper: New file.
4627         * doc/posix-functions/iswupper.texi: Mention the new module.
4629 2020-01-25  Bruno Haible  <bruno@clisp.org>
4631         c32isspace: Add tests.
4632         * tests/test-c32isspace.c: New file.
4633         * tests/test-c32isspace.sh: New file.
4634         * modules/c32isspace-tests: New file.
4636         c32isspace: New module.
4637         * lib/c32isspace.c: New file.
4638         * modules/c32isspace: New file.
4639         * doc/posix-functions/iswspace.texi: Mention the new module.
4641 2020-01-25  Bruno Haible  <bruno@clisp.org>
4643         c32ispunct: Add tests.
4644         * tests/test-c32ispunct.c: New file.
4645         * tests/test-c32ispunct.sh: New file.
4646         * modules/c32ispunct-tests: New file.
4648         c32ispunct: New module.
4649         * lib/c32ispunct.c: New file.
4650         * modules/c32ispunct: New file.
4651         * doc/posix-functions/iswpunct.texi: Mention the new module.
4653 2020-01-25  Bruno Haible  <bruno@clisp.org>
4655         c32isprint: Add tests.
4656         * tests/test-c32isprint.c: New file.
4657         * tests/test-c32isprint.sh: New file.
4658         * modules/c32isprint-tests: New file.
4660         c32isprint: New module.
4661         * lib/c32isprint.c: New file.
4662         * modules/c32isprint: New file.
4663         * doc/posix-functions/iswprint.texi: Mention the new module.
4665 2020-01-25  Bruno Haible  <bruno@clisp.org>
4667         c32islower: Add tests.
4668         * tests/test-c32islower.c: New file.
4669         * tests/test-c32islower.sh: New file.
4670         * modules/c32islower-tests: New file.
4672         c32islower: New module.
4673         * lib/c32islower.c: New file.
4674         * modules/c32islower: New file.
4675         * doc/posix-functions/iswlower.texi: Mention the new module.
4677 2020-01-25  Bruno Haible  <bruno@clisp.org>
4679         c32isgraph: Add tests.
4680         * tests/test-c32isgraph.c: New file.
4681         * tests/test-c32isgraph.sh: New file.
4682         * modules/c32isgraph-tests: New file.
4684         c32isgraph: New module.
4685         * lib/c32isgraph.c: New file.
4686         * modules/c32isgraph: New file.
4687         * doc/posix-functions/iswgraph.texi: Mention the new module.
4689 2020-01-25  Bruno Haible  <bruno@clisp.org>
4691         c32isdigit: Add tests.
4692         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
4693         * tests/test-c32isdigit.sh: New file.
4694         * modules/c32isdigit-tests: New file.
4696         c32isdigit: New module.
4697         * lib/c32isdigit.c: New file.
4698         * modules/c32isdigit: New file.
4699         * doc/posix-functions/iswdigit.texi: Mention the new module.
4701 2020-01-25  Bruno Haible  <bruno@clisp.org>
4703         c32iscntrl: Add tests.
4704         * tests/test-c32iscntrl.c: New file.
4705         * tests/test-c32iscntrl.sh: New file.
4706         * modules/c32iscntrl-tests: New file.
4708         c32iscntrl: New module.
4709         * lib/c32iscntrl.c: New file.
4710         * modules/c32iscntrl: New file.
4711         * doc/posix-functions/iswcntrl.texi: Mention the new module.
4713 2020-01-25  Bruno Haible  <bruno@clisp.org>
4715         c32isblank: Add tests.
4716         * tests/test-c32isblank.c: New file.
4717         * tests/test-c32isblank.sh: New file.
4718         * modules/c32isblank-tests: New file.
4720         c32isblank: New module.
4721         * lib/c32isblank.c: New file.
4722         * modules/c32isblank: New file.
4723         * doc/posix-functions/iswblank.texi: Mention the new module.
4725 2020-01-25  Bruno Haible  <bruno@clisp.org>
4727         c32isalpha: Add tests.
4728         * tests/test-c32isalpha.c: New file.
4729         * tests/test-c32isalpha.sh: New file.
4730         * modules/c32isalpha-tests: New file.
4732         c32isalpha: New module.
4733         * lib/c32isalpha.c: New file.
4734         * modules/c32isalpha: New file.
4735         * doc/posix-functions/iswalpha.texi: Mention the new module.
4737 2020-01-25  Bruno Haible  <bruno@clisp.org>
4739         c32isalnum: Add tests.
4740         * tests/test-c32isalnum.c: New file.
4741         * tests/test-c32isalnum.sh: New file.
4742         * modules/c32isalnum-tests: New file.
4744         c32isalnum: New module.
4745         * lib/c32isalnum.c: New file.
4746         * lib/c32is-impl.h: New file.
4747         * modules/c32isalnum: New file.
4748         * doc/posix-functions/iswalnum.texi: Mention the new module.
4750 2020-01-25  Bruno Haible  <bruno@clisp.org>
4752         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
4753         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
4754         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
4755         c32isupper, c32isxdigit): New declarations.
4756         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
4757         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4758         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4759         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4760         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4761         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
4762         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
4763         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
4764         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
4765         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
4766         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
4767         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
4768         c32ispunct, c32isspace, c32isupper, c32isxdigit.
4770 2020-01-25  Bruno Haible  <bruno@clisp.org>
4772         mbchar, wctype: Use the corrected iswxdigit function.
4773         * modules/mbchar (Depends-on): Add iswxdigit.
4774         * modules/wctype (Depends-on): Likewise.
4776         iswxdigit: Add tests.
4777         * tests/test-iswxdigit.c: New file.
4778         * tests/test-iswxdigit.sh: New file.
4779         * modules/iswxdigit-tests: New file.
4781         iswxdigit: New module.
4782         * m4/iswxdigit.m4: New file.
4783         * lib/wctype.in.h (iswxdigit): Potentially override.
4784         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
4785         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
4786         * lib/iswxdigit.c: New file.
4787         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
4788         REPLACE_ISWXDIGIT.
4789         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
4790         REPLACE_ISWXDIGIT.
4791         * modules/iswxdigit: New file.
4792         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
4794 2020-01-25  Bruno Haible  <bruno@clisp.org>
4796         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
4797         Reported by John Donoghue <john.david.donoghue@gmail.com> in
4798         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
4799         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
4800         off_t on mingw, invoke _lseeki64 instead of lseek.
4802 2020-01-25  Bruno Haible  <bruno@clisp.org>
4804         iswdigit tests: Avoid test failure on Cygwin.
4805         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
4806         byte sequence, return 0.
4808         iswdigit: Fix test failure on native Windows.
4809         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
4811         mbchar, wctype: Use the corrected iswdigit function.
4812         * modules/mbchar (Depends-on): Add iswdigit.
4813         * modules/wctype (Depends-on): Likewise.
4815         iswdigit: Add tests.
4816         * tests/test-iswdigit.c: New file.
4817         * tests/test-iswdigit.sh: New file.
4818         * modules/iswdigit-tests: New file.
4820         iswdigit: New module.
4821         * m4/iswdigit.m4: New file.
4822         * lib/wctype.in.h (iswdigit): Potentially override.
4823         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
4824         * lib/iswdigit.c: New file.
4825         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
4826         REPLACE_ISWDIGIT.
4827         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
4828         REPLACE_ISWDIGIT.
4829         * modules/iswdigit: New file.
4830         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
4832 2020-01-25  Bruno Haible  <bruno@clisp.org>
4834         hard-locale tests: Make it easy to reuse the musl test.
4835         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
4836         * modules/hard-locale-tests (Files): Add it.
4837         (configure.ac): Invoke gl_MUSL_LIBC.
4839 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4841         regex: port to Gawk on nonstandard platforms
4842         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
4843         This is useful for Gawk, which does not use the Gnulib stdlib-h
4844         module.  Problem reported by Arnold Robbins in:
4845         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
4847 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4849         regex: fix bug with >=16 subexpressions
4850         * lib/regex_internal.h (struct re_backref_cache_entry):
4851         Use bitset_word_t as the type of eps_reachable_subexps_map,
4852         instead of unsigned short int.  This fixes a bug I introduced
4853         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
4854         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
4855         Remove unused member 'unused'.
4857         regex: simplify definition of BITSET_WORD_BITS
4858         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
4859         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
4860         * lib/regex_internal.h (BITSET_WORD_BITS):
4861         * modules/regex (Depends-on): Add limits-h.
4862         Simplify now that we can use ULONG_WIDTH.
4864 2020-01-20  Bruno Haible  <bruno@clisp.org>
4866         mbrtoc32: Add note about FreeBSD 12.
4867         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
4868         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
4869         affected.
4871 2020-01-20  Bruno Haible  <bruno@clisp.org>
4873         unistr/u8-uctomb: Fix warning.
4874         Reported by Andreas Schwab <schwab@suse.de> in
4875         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
4876         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
4877         (u8_uctomb): Add FALLTHROUGH markers.
4879 2020-01-20  Bruno Haible  <bruno@clisp.org>
4881         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
4882         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
4883         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
4884         (glthread_once): Use it.
4886 2020-01-19  Bruno Haible  <bruno@clisp.org>
4888         threadlib: Disable use of weak symbols on FreeBSD 11.
4889         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4890         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
4891         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
4892         against a bug in FreeBSD 11.
4894 2020-01-19  Bruno Haible  <bruno@clisp.org>
4896         iconv_open: Improve z/OS support.
4897         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
4898         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
4899         Remove mapping for EUC-TW.
4901 2020-01-18  Bruno Haible  <bruno@clisp.org>
4903         Rename ~~gnulib.m4 to zzgnulib.m4.
4904         Suggested by Paul Eggert.
4905         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
4906         * gnulib-tool (func_get_filelist): Update.
4907         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
4909 2020-01-18  Bruno Haible  <bruno@clisp.org>
4911         doc: Update license notices.
4912         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
4913         reference to a section or to a "file as part of this distribution".
4915 2020-01-18  Bruno Haible  <bruno@clisp.org>
4917         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
4918         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
4919         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
4920         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
4921         AC_EGREP_CPP.
4923 2020-01-18  Bruno Haible  <bruno@clisp.org>
4925         Ensure Automake does not drop ~~gnulib.m4.
4926         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
4927         * m4/gnulib-common.m4 (gl_COMMON): Require it.
4929 2020-01-18  Bruno Haible  <bruno@clisp.org>
4931         Fix major regression from 2020-01-10.
4932         Reported by Paul Eggert in
4933         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
4934         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
4935         Don't AC_REQUIRE anything.
4936         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
4937         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
4938         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
4939         use ac_compile instead.
4940         (AC_CHECK_DECL): Remove override.
4941         * m4/~~gnulib.m4: New file.
4942         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
4943         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
4945 2020-01-17  Bruno Haible  <bruno@clisp.org>
4946             Paul Eggert  <eggert@cs.ucla.edu>
4948         glob: Fix use-after-free bug.
4949         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4950         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
4951         * lib/glob.c (__glob): Delay freeing dirname until after the use of
4952         end_name.
4954 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4956         vcs-to-changelog: Fix parsing of fndecl without args.
4957         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
4958         for empty arguments.
4960 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4962         vcs-to-changelog: Add documentation.
4963         * doc/vcs-to-changelog.texi: New file.
4964         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
4965         section.
4967 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4969         vcs-to-changelog: Allow loading of custom quirks file.
4970         * build-aux/vcs_to_changelog.py: New commandline option -q.
4972 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4974         vcs-to-changelog: Fix formatting of ChangeLog output.
4975         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
4976         output.
4978 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4980         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
4981         Reported in
4982         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
4983         * build-aux/vcstocl/frontend_c.py: Remove shebang.
4985 2020-01-15  Simon Josefsson  <simon@josefsson.org>
4987         crypto/gc-pbkdf2: New module.
4988         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
4989         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
4990         * lib/gc-pbkdf2.c: New file.
4991         * lib/gc-pbkdf2-sha1.c: Use new interface.
4992         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
4993         * modules/crypto/gc-pbkdf2: New file.
4994         * modules/crypto/gc-pbkdf2-tests: New file.
4995         * tests/test-gc-pbkdf2.c: New file.
4997 2020-01-12  Bruno Haible  <bruno@clisp.org>
4999         c32stombs: Add tests.
5000         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
5001         * tests/test-c32stombs-1.sh: New file, based on
5002         tests/test-c32srtombs-1.sh.
5003         * tests/test-c32stombs-2.sh: New file, based on
5004         tests/test-c32srtombs-2.sh.
5005         * tests/test-c32stombs-3.sh: New file, based on
5006         tests/test-c32srtombs-3.sh.
5007         * tests/test-c32stombs-4.sh: New file, based on
5008         tests/test-c32srtombs-4.sh.
5009         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
5011         c32stombs: New module.
5012         * lib/uchar.in.h (c32stombs): New declaration.
5013         * lib/c32stombs.c: New file.
5014         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
5015         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
5016         * modules/c32stombs: New file.
5017         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
5018         * doc/posix-functions/wcstombs.texi: Mention the new module.
5020 2020-01-11  Jim Meyering  <meyering@fb.com>
5022         perl: require the "warnings" module
5023         * m4/perl.m4: Also "use warnings", so we reject the perl found
5024         on at least one IRIX 6.5 system. Reported by Bruno Haible in
5025         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
5027 2020-01-10  Bruno Haible  <bruno@clisp.org>
5029         Fix major regression from 2020-01-04.
5030         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5031         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
5032         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
5033         AC_DEFUN_ONCE.
5034         (AC_CHECK_DECL): Invoke, not require, it.
5036 2020-01-10  Bruno Haible  <bruno@clisp.org>
5038         c32snrtombs: Add tests.
5039         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
5040         * tests/test-c32snrtombs-1.sh: New file, based on
5041         tests/test-wcsnrtombs1.sh.
5042         * tests/test-c32snrtombs-2.sh: New file, based on
5043         tests/test-wcsnrtombs2.sh.
5044         * tests/test-c32snrtombs-3.sh: New file, based on
5045         tests/test-wcsnrtombs3.sh.
5046         * tests/test-c32snrtombs-4.sh: New file, based on
5047         tests/test-wcsnrtombs4.sh.
5048         * modules/c32snrtombs-tests: New file, based on
5049         modules/wcsnrtombs-tests.
5051         c32snrtombs: New module.
5052         * lib/uchar.in.h (c32snrtombs): New declaration.
5053         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5054         INTERNAL_STATE, WCRTOMB.
5055         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5056         * lib/c32snrtombs.c: New file.
5057         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
5058         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
5059         * modules/c32snrtombs: New file.
5060         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
5061         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
5063 2020-01-09  Bruno Haible  <bruno@clisp.org>
5065         c32srtombs: Add tests.
5066         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
5067         * tests/test-c32srtombs-1.sh: New file, based on
5068         tests/test-wcsrtombs1.sh.
5069         * tests/test-c32srtombs-2.sh: New file, based on
5070         tests/test-wcsrtombs2.sh.
5071         * tests/test-c32srtombs-3.sh: New file, based on
5072         tests/test-wcsrtombs3.sh.
5073         * tests/test-c32srtombs-4.sh: New file, based on
5074         tests/test-wcsrtombs4.sh.
5075         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
5077         c32srtombs: New module.
5078         * lib/uchar.in.h (c32srtombs): New declaration.
5079         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
5080         INTERNAL_STATE, WCRTOMB.
5081         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
5082         * lib/c32srtombs.c: New file.
5083         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
5084         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
5085         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
5086         * modules/c32srtombs: New file.
5087         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
5088         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
5090 2020-01-08  Bruno Haible  <bruno@clisp.org>
5092         c32tob: Make consistent with mbrtoc32.
5093         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
5094         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
5095         use c32rtomb, not wctob.
5096         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
5097         (Depends-on): Add c32rtomb.
5098         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
5100 2020-01-08  Bruno Haible  <bruno@clisp.org>
5102         c32rtomb: Add tests.
5103         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
5104         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
5105         * tests/test-c32rtomb-w32.c: New file, based on
5106         tests/test-wcrtomb-w32.c.
5107         * tests/test-c32rtomb-w32-1.sh: New file, based on
5108         tests/test-wcrtomb-w32-1.sh.
5109         * tests/test-c32rtomb-w32-2.sh: New file, based on
5110         tests/test-wcrtomb-w32-2.sh.
5111         * tests/test-c32rtomb-w32-3.sh: New file, based on
5112         tests/test-wcrtomb-w32-3.sh.
5113         * tests/test-c32rtomb-w32-4.sh: New file, based on
5114         tests/test-wcrtomb-w32-4.sh.
5115         * tests/test-c32rtomb-w32-5.sh: New file, based on
5116         tests/test-wcrtomb-w32-5.sh.
5117         * tests/test-c32rtomb-w32-6.sh: New file, based on
5118         tests/test-wcrtomb-w32-6.sh.
5119         * tests/test-c32rtomb-w32-7.sh: New file, based on
5120         tests/test-wcrtomb-w32-7.sh.
5121         * modules/c32rtomb-tests: New file.
5123         c32rtomb: New module.
5124         * lib/uchar.in.h (c32rtomb): New declaration.
5125         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
5126         * m4/c32rtomb.m4: New file.
5127         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
5128         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
5129         REPLACE_C32RTOMB.
5130         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
5131         HAVE_C32RTOMB, REPLACE_C32RTOMB.
5132         * modules/c32rtomb: New file.
5133         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
5134         * doc/posix-functions/c32rtomb.texi: Document the new module.
5135         * doc/posix-functions/wcrtomb.texi: Mention the new module.
5137 2020-01-08  Bruno Haible  <bruno@clisp.org>
5139         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
5140         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
5141         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
5142         but is not working.
5143         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
5144         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
5145         differ, use the system's mbrtoc32, adding workarounds.
5146         * modules/mbrtoc32 (Depends-on): Add hard-locale.
5147         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
5148         Windows problem.
5149         * lib/btoc32.c: Include <stdio.h>, <string.h>.
5150         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
5151         use mbrtoc32, not btowc.
5152         * modules/btoc32 (Depends-on): Add mbrtoc32.
5153         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
5154         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
5155         * modules/mbsrtoc32s (Depends-on): Update conditions.
5156         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5157         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
5158         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
5159         * modules/mbsnrtoc32s (Depends-on): Update conditions.
5160         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
5162 2020-01-07  Bruno Haible  <bruno@clisp.org>
5164         wcrtomb: Make multithread-safe, except possibly on IRIX.
5165         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
5166         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
5167         WCRTOMB_RETVAL_BUG.
5168         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
5169         wctomb only on IRIX.
5171 2020-01-05  Jim Meyering  <meyering@fb.com>
5173         tests: skip thread-using tests when threading is disabled
5174         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
5175         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
5176         of those, so they are skipped in this case.
5177         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
5178         * tests/test-setlocale_null-mt-all.c (main): Likewise.
5179         * tests/test-setlocale_null-mt-one.c (main): Likewise.
5181 2020-01-05  Bruno Haible  <bruno@clisp.org>
5183         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
5184         Reported by Jim Meyering in
5185         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
5186         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
5187         (GNULIB_defined_ptsname_r): New macro.
5188         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
5189         (main): Disable the NULL argument test if canonicalize_file_name does
5190         not come from gnulib.
5191         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
5192         (main): Disable the NULL argument test if canonicalize_file_name does
5193         not come from gnulib.
5194         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
5195         (test_errors): Disable the NULL argument test if ptsname_r does not come
5196         from gnulib.
5198 2020-01-04  Jim Meyering  <meyering@fb.com>
5200         update-copyright: reenable its always-skipped test
5201         * tests/test-update-copyright.sh: Restore the "-pi" options removed
5202         on 2019-06-15. Without those, an internal preliminary test would
5203         fail, causing this test always to be skipped.
5204         Verify that the test is now run and passes via this:
5205           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
5207 2020-01-05  Bruno Haible  <bruno@clisp.org>
5209         mbstoc32s: Add tests.
5210         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
5211         * tests/test-mbstoc32s-1.sh: New file, based on
5212         tests/test-mbsrtoc32s-1.sh.
5213         * tests/test-mbstoc32s-2.sh: New file, based on
5214         tests/test-mbsrtoc32s-2.sh.
5215         * tests/test-mbstoc32s-3.sh: New file, based on
5216         tests/test-mbsrtoc32s-3.sh.
5217         * tests/test-mbstoc32s-4.sh: New file, based on
5218         tests/test-mbsrtoc32s-4.sh.
5219         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
5221         mbstoc32s: New module.
5222         * lib/uchar.in.h (mbstoc32s): New declaration.
5223         * lib/mbstoc32s.c: New file.
5224         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
5225         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
5226         * modules/mbstoc32s: New file.
5227         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
5228         * doc/posix-functions/mbstowcs.texi: Mention the new module.
5230 2020-01-05  Bruno Haible  <bruno@clisp.org>
5232         Tweak recently added tests.
5233         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
5234         * tests/test-mbsrtoc32s.c: Likewise.
5235         * tests/test-mbsnrtoc32s.c: Likewise.
5237 2020-01-04  Bruno Haible  <bruno@clisp.org>
5239         mbsnrtoc32s: Add tests.
5240         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
5241         * tests/test-mbsnrtoc32s-1.sh: New file, based on
5242         tests/test-mbsnrtowcs1.sh.
5243         * tests/test-mbsnrtoc32s-2.sh: New file, based on
5244         tests/test-mbsnrtowcs2.sh.
5245         * tests/test-mbsnrtoc32s-3.sh: New file, based on
5246         tests/test-mbsnrtowcs3.sh.
5247         * tests/test-mbsnrtoc32s-4.sh: New file, based on
5248         tests/test-mbsnrtowcs4.sh.
5249         * modules/mbsnrtoc32s-tests: New file, based on
5250         modules/mbsnrtowcs-tests.
5252         mbsnrtoc32s: New module.
5253         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
5254         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5255         INTERNAL_STATE, MBRTOWC.
5256         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5257         * lib/mbsnrtoc32s.c: New file.
5258         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
5259         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
5260         * modules/mbsnrtoc32s: New file.
5261         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
5262         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
5264 2020-01-04  Bruno Haible  <bruno@clisp.org>
5266         mbsrtoc32s tests: Enhance test.
5267         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
5268         test strings for UTF-8 and GB18030.
5270 2020-01-04  Bruno Haible  <bruno@clisp.org>
5272         mbsrtoc32s: Fix bug.
5273         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
5274         that SMALL_WCHAR_T is defined.
5276 2020-01-04  Bruno Haible  <bruno@clisp.org>
5278         mbsrtoc32s: Add tests.
5279         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
5280         * tests/test-mbsrtoc32s-1.sh: New file, based on
5281         tests/test-mbsrtowcs1.sh.
5282         * tests/test-mbsrtoc32s-2.sh: New file, based on
5283         tests/test-mbsrtowcs2.sh.
5284         * tests/test-mbsrtoc32s-3.sh: New file, based on
5285         tests/test-mbsrtowcs3.sh.
5286         * tests/test-mbsrtoc32s-4.sh: New file, based on
5287         tests/test-mbsrtowcs4.sh.
5288         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
5290         mbsrtoc32s: New module.
5291         * lib/uchar.in.h (mbsrtoc32s): New declaration.
5292         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
5293         INTERNAL_STATE, MBRTOWC.
5294         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
5295         * lib/mbsrtoc32s.c: New file.
5296         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
5297         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
5298         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
5299         * modules/mbsrtoc32s: New file.
5300         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
5301         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
5303 2020-01-04  Bruno Haible  <bruno@clisp.org>
5305         mbrtowc, mbrtoc32: Tighten dependendies.
5306         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
5307         REPLACE_MBSTATE_T is 1.
5308         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5309         REPLACE_MBSTATE_T is 0.
5310         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
5311         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
5312         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
5313         REPLACE_MBSTATE_T is 0.
5315 2020-01-04  Bruno Haible  <bruno@clisp.org>
5317         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
5318         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
5319         * modules/uchar (Files): Add stdint.m4.
5320         (Makefile.am): Substitute SMALL_WCHAR_T.
5321         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
5323 2020-01-04  Bruno Haible  <bruno@clisp.org>
5325         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
5326         Reported by Martin Storsjö <martin@martin.st> in
5327         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
5328         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5329         New macros.
5330         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
5332 2020-01-04  Bruno Haible  <bruno@clisp.org>
5334         btoc32: Add tests.
5335         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
5336         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
5337         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
5338         * modules/btoc32-tests: New file, based on modules/btowc-tests.
5340         btoc32: New module.
5341         * lib/uchar.in.h (btoc32): New declaration.
5342         * lib/btoc32.c: New file.
5343         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
5344         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
5345         * modules/btoc32: New file.
5346         * tests/test-uchar-c++.cc: Test the signature of btoc32.
5347         * doc/posix-functions/btowc.texi: Mention the new module.
5349 2020-01-03  Bruno Haible  <bruno@clisp.org>
5351         uchar tests: Avoid compilation error with HP cc.
5352         * tests/test-uchar.c: Disable a test when HP cc is in use.
5354 2020-01-03  Bruno Haible  <bruno@clisp.org>
5356         mbrtoc32: Add tests.
5357         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
5358         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
5359         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
5360         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
5361         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
5362         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
5363         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
5364         * tests/test-mbrtoc32-w32-1.sh: New file, based on
5365         tests/test-mbrtowc-w32-1.sh.
5366         * tests/test-mbrtoc32-w32-2.sh: New file, based on
5367         tests/test-mbrtowc-w32-2.sh.
5368         * tests/test-mbrtoc32-w32-3.sh: New file, based on
5369         tests/test-mbrtowc-w32-3.sh.
5370         * tests/test-mbrtoc32-w32-4.sh: New file, based on
5371         tests/test-mbrtowc-w32-4.sh.
5372         * tests/test-mbrtoc32-w32-5.sh: New file, based on
5373         tests/test-mbrtowc-w32-5.sh.
5374         * tests/test-mbrtoc32-w32-6.sh: New file, based on
5375         tests/test-mbrtowc-w32-6.sh.
5376         * tests/test-mbrtoc32-w32-7.sh: New file, based on
5377         tests/test-mbrtowc-w32-7.sh.
5378         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
5380         mbrtoc32: New module.
5381         * lib/uchar.in.h (mbrtoc32): New declaration.
5382         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
5383         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
5384         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
5385         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
5386         REPLACE_MBRTOC32.
5387         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
5388         HAVE_MBRTOC32, REPLACE_MBRTOC32.
5389         * modules/mbrtoc32: New file, based on modules/mbrtowc.
5390         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
5391         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
5392         $(LIB_MBRTOWC).
5393         * doc/posix-functions/mbrtoc32.texi: Document the new module.
5394         * doc/posix-functions/mbrtowc.texi: Mention the new module.
5396 2020-01-03  Bruno Haible  <bruno@clisp.org>
5398         mbrtowc: Refactor to share code with mbrtoc32.
5399         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
5400         * lib/mbrtowc-impl-utf8.h: Likewise.
5401         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
5402         mbrtowc-impl.h.
5403         * modules/mbrtowc (Files): Add the new files.
5405 2020-01-03  Jim Meyering  <meyering@fb.com>
5407         doc: fix time.texi wording
5408         * doc/posix-headers/time.texi (time.h): Typo.
5410 2020-01-03  Bruno Haible  <bruno@clisp.org>
5412         mbrtowc: Refactor locale charset dispatching.
5413         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
5414         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
5415         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
5416         localcharset.h, streq.h.
5417         (enc_t): Remove type.
5418         (locale_enc): Remove function.
5419         (cached_locale_enc): Remove variable.
5420         (locale_enc_cached): Remove function.
5421         (mbrtowc): Invoke locale_encoding_classification.
5422         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
5423         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
5424         lc-charset-dispatch.c.
5425         (configure.ac): Arrange to compile lc-charset-dispatch.c.
5427 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
5429         doc: mention 32-bit time_t issue
5430         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5431         * doc/posix-headers/time.texi (time.h): Mention 2038.
5433 2020-01-03  Bruno Haible  <bruno@clisp.org>
5435         mbrtowc: Ensure the mbtowc_lock is unique.
5436         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
5437         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
5438         lib/setlocale_null.c.
5439         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
5440         glthread/lock.h. Include mbtowc-lock.h.
5441         (mbtowc_lock): Remove declaration.
5442         (mbrtowc): Use mbtowc_with_lock.
5443         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
5444         threads.h. Set LIB_MBRTOWC.
5445         (gl_PREREQ_MBTOWC_LOCK): New macro.
5446         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
5447         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
5448         (Depends-on): Remove lock.
5449         (configure.ac): Arrange to compile mbtowc-lock.c.
5450         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
5451         * modules/acl (Link): Likewise.
5452         * modules/argmatch (Link): Likewise.
5453         * modules/backup-rename (Link): Likewise.
5454         * modules/backupfile (Link): Likewise.
5455         * modules/closein (Link): Likewise.
5456         * modules/closeout (Link): Likewise.
5457         * modules/copy-file (Link): Likewise.
5458         * modules/csharpcomp (Link): Likewise.
5459         * modules/csharpexec (Link): Likewise.
5460         * modules/dfa (Link): Likewise.
5461         * modules/exclude (Link): Likewise.
5462         * modules/fnmatch (Link): Likewise.
5463         * modules/fnmatch-gnu (Link): Likewise.
5464         * modules/fnmatch-posix (Link): Likewise.
5465         * modules/glob (Link): Likewise.
5466         * modules/human (Link): Likewise.
5467         * modules/javacomp (Link): Likewise.
5468         * modules/javaexec (Link): Likewise.
5469         * modules/javaversion (Link): Likewise.
5470         * modules/mbfile (Link): Likewise.
5471         * modules/mbiter (Link): Likewise.
5472         * modules/mbmemcasecmp (Link): Likewise.
5473         * modules/mbmemcasecoll (Link): Likewise.
5474         * modules/mbrlen (Link): Likewise.
5475         * modules/mbscasecmp (Link): Likewise.
5476         * modules/mbscasestr (Link): Likewise.
5477         * modules/mbschr (Link): Likewise.
5478         * modules/mbscspn (Link): Likewise.
5479         * modules/mbsinit (Link): Likewise.
5480         * modules/mbslen (Link): Likewise.
5481         * modules/mbsncasecmp (Link): Likewise.
5482         * modules/mbsnlen (Link): Likewise.
5483         * modules/mbsnrtowcs (Link): Likewise.
5484         * modules/mbspbrk (Link): Likewise.
5485         * modules/mbspcasecmp (Link): Likewise.
5486         * modules/mbsrchr (Link): Likewise.
5487         * modules/mbsrtowcs (Link): Likewise.
5488         * modules/mbssep (Link): Likewise.
5489         * modules/mbsspn (Link): Likewise.
5490         * modules/mbsstr (Link): Likewise.
5491         * modules/mbstok_r (Link): Likewise.
5492         * modules/mbswidth (Link): Likewise.
5493         * modules/mbuiter (Link): Likewise.
5494         * modules/mkdir-p (Link): Likewise.
5495         * modules/propername (Link): Likewise.
5496         * modules/quote (Link): Likewise.
5497         * modules/quotearg (Link): Likewise.
5498         * modules/quotearg-simple (Link): Likewise.
5499         * modules/regex-quote (Link): Likewise.
5500         * modules/rpmatch (Link): Likewise.
5501         * modules/sh-quote (Link): Likewise.
5502         * modules/system-quote (Link): Likewise.
5503         * modules/trim (Link): Likewise.
5504         * modules/unistdio/ulc-asnprintf (Link): Likewise.
5505         * modules/unistdio/ulc-fprintf (Link): Likewise.
5506         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
5507         * modules/unistdio/ulc-vasprintf (Link): Likewise.
5508         * modules/unistdio/ulc-vfprintf (Link): Likewise.
5509         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
5510         * modules/unistdio/ulc-vsprintf (Link): Likewise.
5511         * modules/xfreopen (Link): Likewise.
5512         * modules/xmemcoll (Link): Likewise.
5513         * modules/yesno (Link): Likewise.
5514         * modules/regex (Link): Add $(LIB_MBRTOWC).
5515         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
5516         instead of $(LIBTHREAD).
5517         * modules/argmatch-tests (Makefile.am): Likewise.
5518         * modules/closein-tests (Makefile.am): Likewise.
5519         * modules/copy-file-tests (Makefile.am): Likewise.
5520         * modules/dfa-tests (Makefile.am): Likewise.
5521         * modules/fnmatch-tests (Makefile.am): Likewise.
5522         * modules/glob-tests (Makefile.am): Likewise.
5523         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
5524         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
5525         * modules/mbrtowc-tests (Makefile.am): Likewise.
5526         * modules/mbscasecmp-tests (Makefile.am): Likewise.
5527         * modules/mbscasestr-tests (Makefile.am): Likewise.
5528         * modules/mbschr-tests (Makefile.am): Likewise.
5529         * modules/mbscspn-tests (Makefile.am): Likewise.
5530         * modules/mbsinit-tests (Makefile.am): Likewise.
5531         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
5532         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
5533         * modules/mbspbrk-tests (Makefile.am): Likewise.
5534         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
5535         * modules/mbsrchr-tests (Makefile.am): Likewise.
5536         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
5537         * modules/mbsspn-tests (Makefile.am): Likewise.
5538         * modules/mbsstr-tests (Makefile.am): Likewise.
5539         * modules/quotearg-simple-tests (Makefile.am): Likewise.
5540         * modules/quotearg-tests (Makefile.am): Likewise.
5541         * modules/readtokens-tests (Makefile.am): Likewise.
5542         * modules/sh-quote-tests (Makefile.am): Likewise.
5543         * modules/system-quote-tests (Makefile.am): Likewise.
5544         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
5545         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
5546         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
5547         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
5548         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
5549         * modules/yesno-tests (Makefile.am): Likewise.
5550         * modules/exclude-tests (Makefile.am): Link the programs with
5551         $(LIB_MBRTOWC).
5552         * modules/regex-tests (Makefile.am): Likewise.
5553         * modules/regex-quote-tests (Makefile.am): Likewise.
5555 2020-01-03  Bruno Haible  <bruno@clisp.org>
5557         getopt-posix: Fix compilation failure in testdirs.
5558         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
5559         when the gnulib module 'getopt-posix' is enabled.
5560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
5561         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
5562         module indicator.
5563         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
5565 2020-01-03  Bruno Haible  <bruno@clisp.org>
5567         doc: Mention the 64-bit inode number problem.
5568         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
5569         64-bit inode number problem.
5570         * doc/posix-functions/stat.texi: Mention that this module fixes the
5571         64-bit inode number problem.
5572         * doc/posix-functions/lstat.texi: Likewise.
5573         * doc/posix-functions/fstat.texi: Likewise.
5574         * doc/posix-functions/readdir.texi: Add more details.
5575         * doc/posix-functions/readdir_r.texi: Likewise.
5577 2020-01-02  Bruno Haible  <bruno@clisp.org>
5579         wcrtomb: Add more tests.
5580         * tests/test-wcrtomb-w32.c: Include localcharset.h.
5581         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5582         locale_charset() returns the expected value; otherwise, skip the test.
5583         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
5584         * tests/test-wcrtomb-w32-7.sh: Likewise.
5585         * modules/wcrtomb-tests (Files): Add these files.
5586         (Depends-on): Add localcharset.
5587         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
5589 2020-01-02  Bruno Haible  <bruno@clisp.org>
5591         mbrtowc: Add more tests.
5592         * tests/test-mbrtowc-w32.c: Include localcharset.h.
5593         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
5594         locale_charset() returns the expected value; otherwise, skip the test.
5595         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
5596         * tests/test-mbrtowc-w32-7.sh: Likewise.
5597         * modules/mbrtowc-tests (Files): Add these files.
5598         (Depends-on): Add localcharset.
5599         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
5601 2020-01-02  Bruno Haible  <bruno@clisp.org>
5603         mbrtowc: Fix test failures on MSVC (regression by previous commit).
5604         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
5605         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
5606         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
5607         MBRTOWC_STORES_INCOMPLETE_BUG.
5608         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
5610 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5612         doc: mention glibc bug 24269
5613         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
5614         Reformat slightly so that it looks nicer in the Grep manual.
5616 2020-01-02  Bruno Haible  <bruno@clisp.org>
5618         mbrtowc: Don't replace mbstate_t on MSVC.
5619         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
5620         a missing mbsinit function on native Windows.
5621         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
5622         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
5623         MSVC bug.
5624         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
5626 2020-01-02  Bruno Haible  <bruno@clisp.org>
5628         setlocale-null: Avoid crashing the MSVC linker.
5629         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
5630         MSVC.
5632 2020-01-02  Bruno Haible  <bruno@clisp.org>
5634         wchar: Make the HP-UX workaround work on HP-UX 11.31.
5635         * modules/wchar (Depends-on): Add inttypes-incomplete.
5636         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
5637         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
5638         of strtoimax.
5640 2020-01-02  Bruno Haible  <bruno@clisp.org>
5642         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
5643         * lib/mbrtowc.c: Include <stdint.h>.
5644         * modules/mbrtowc (Depends-on): Add stdint.
5646 2020-01-01  Pádraig Brady  <P@draigBrady.com>
5648         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
5649         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
5650         which will auto enable use of openssl, only for >= version 3,
5651         which is newly licensed under the Apache Software License.
5653 2020-01-01  Bruno Haible  <bruno@clisp.org>
5655         mbrtowc: Include function name in macro names.
5656         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
5657         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
5658         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
5659         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
5660         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
5661         C_LOCALE_MAYBE_EILSEQ.
5663 2020-01-01  Bruno Haible  <bruno@clisp.org>
5665         c32tob: New module.
5666         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
5667         (c32tob): New declaration.
5668         * lib/c32tob.c: New file.
5669         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
5670         macros.
5671         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
5672         * modules/uchar (Depends-on): Add snippet/c++defs.
5673         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
5674         uchar.h.
5675         * modules/c32tob: New file.
5676         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
5677         defined.
5678         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
5679         c32tob.
5680         * modules/uchar-c++-tests (Files): Add tests/signature.h.
5681         * doc/posix-functions/wctob.texi: Mention the new module.
5683 2020-01-01  Bruno Haible  <bruno@clisp.org>
5685         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
5686         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
5687         $(LIB_SETLOCALE).
5689 2020-01-01  Bruno Haible  <bruno@clisp.org>
5691         hard-locale tests: Fix a conflict with the C++ tests.
5692         * modules/hard-locale-tests (Makefile.am): Build a program named
5693         'current-locale', not 'locale'.
5695 2020-01-01  Bruno Haible  <bruno@clisp.org>
5697         doc: Update documentation about wchar_t.
5698         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
5699         wchar_t type.
5701 2020-01-01  Bruno Haible  <bruno@clisp.org>
5703         mbrtowc tests: Fix typos.
5704         * tests/test-mbrtowc.c (main): Fix typo.
5705         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
5707 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5709         maint: update copyright notices
5710         Before doing the following changes done by hand, I also ran ‘make
5711         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
5712         to do most of the copyright years automatically.  A few upstream
5713         sources are still in 2019 but these should eventually be changed
5714         automatically too.
5715         * build-aux/declared.sh (func_version):
5716         * build-aux/libtool-next-version (func_version):
5717         * build-aux/run-test (func_version):
5718         Update these notices by hand.  Put just the last year
5719         in output of programs, as per GNU coding standards.
5721 2019-12-31  Bruno Haible  <bruno@clisp.org>
5723         uchar: Add C++ tests.
5724         * tests/test-uchar-c++.cc: New file.
5725         * tests/test-uchar-c++2.cc: New file.
5726         * modules/uchar-c++-tests: New file.
5728         uchar: Add tests.
5729         * tests/test-uchar.c: New file.
5730         * modules/uchar-tests: New file.
5732         uchar: New module.
5733         * lib/uchar.in.h: New file.
5734         * m4/uchar.m4: New file.
5735         * modules/uchar: New file.
5736         * doc/posix-headers/uchar.texi: Mention the new module.
5738 2019-12-30  Jim Meyering  <meyering@fb.com>
5740         localeinfo: ->simple would be wrong for LC_ALL=C
5741         That would lead to using unnecessary and expensive code paths in dfa.c.
5742         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
5743         error that would have made grep many times slower in the C locale.
5744         With this change, and a file created like this:
5745           yes 00 | head -10000000 > in
5746         Running grep as follows becomes more than 40 times faster:
5747           LC_ALL=C grep -Fw 0 in
5749 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5751         doc: document trouble with back-references
5752         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
5754 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5756         doc: use “back-reference” for \1 etc.
5757         * doc/regex.texi: Consistently spell “back-reference” with
5758         a hyphen, since that’s how POSIX does it.
5760 2019-12-26  Jim Meyering  <meyering@fb.com>
5762         test-framework-sh: tighten an internal grep regexp
5763         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
5764         that helps test for a working printf.
5766 2019-12-26  Bruno Haible  <bruno@clisp.org>
5768         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
5769         Reported by Paul Eggert in
5770         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
5771         Simplification by Jim Meyering.
5772         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
5773         octal escape sequence in a UTF-8 locale.
5775 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
5777         mbrtowc: port better to narrow-wchar_t platforms
5778         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
5779         wchar_t is too narrow to represent all the Unicode characters,
5780         consider a byte sequence for an out-of-wchar_t-range character to
5781         be an encoding error.  This fixes grep’s surrogate-pair test
5782         failure on AIX 7.2.
5784 2019-12-24  Bruno Haible  <bruno@clisp.org>
5786         localcharset: Avoid referencing rpl_setlocale on native Windows.
5787         * lib/localcharset.c (setlocale): Undefine.
5789 2019-12-24  Bruno Haible  <bruno@clisp.org>
5791         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
5792         * m4/semaphore.m4: New file.
5793         * modules/lock-tests (Files): Add it.
5794         (configure.ac): Require gl_SEMAPHORE.
5795         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
5797 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
5799         strptime: fix typo in previous patch
5800         Problem and fix reported by Bruno Haible in:
5801         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
5802         * lib/strptime.c (day_of_the_week): Fix paren bug.
5804 2019-12-24  Bruno Haible  <bruno@clisp.org>
5806         setlocale-null: Make it easy to rely on the lock in another library.
5807         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
5808         defined.
5810 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5812         gethrxtime, mktime, nstrftime, strptime: tweak division performance
5813         Performanced analyzed by Bruno Haible in:
5814         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
5815         * config/srclist.txt: Do not sync mktime.c for now.
5816         * lib/mktime.c (shr, ydhms_diff):
5817         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
5818         * lib/strptime.c (day_of_the_week):
5819         * lib/xtime.h (xtime_sec):
5820         Redo with neither ‘%’ nor conditional branches.
5822 2019-12-23  Bruno Haible  <bruno@clisp.org>
5824         setlocale-null: Export the lock function also on non-Windows platforms.
5825         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
5826         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
5827         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
5828         * modules/setlocale-null (configure.ac): Invoke it.
5829         (Files): Add m4/visibility.m4.
5831 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5833         gethrxtime: fix rounding bug with negative args
5834         Problem reported by Bruno Haible in:
5835         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
5836         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
5837         with negative rounding.  Common platforms can compute / and % with
5838         a single instruction, so the simplified code should be shorter and
5839         faster on these platforms anyway.
5841 2019-12-22  Bruno Haible  <bruno@clisp.org>
5843         gethrxtime: remove incorrect overflow detection
5844         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
5845         integer overflow, as it didn’t suffice.  This reverts the xtime.h
5846         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
5847         cannot now see the need for anyway (even in cases where it works),
5848         as the patch is helpful only when the signs of S and NS disagree,
5849         and all callers pass nonnegative values for S and NS.
5851 2019-12-22  Bruno Haible  <bruno@clisp.org>
5853         setlocale-null: Add standalone include file.
5854         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
5855         * lib/locale.in.h: Include setlocale_null.h.
5856         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
5857         setlocale_null): Remove declarations.
5858         * lib/setlocale_null.c: Include setlocale_null.h.
5859         * lib/localename.c: Likewise.
5860         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
5861         (Depends-on): Add snippet/arg-nonnull.
5862         (Include): Allow either "setlocale_null.h" or <locale.h>.
5864 2019-12-22  Bruno Haible  <bruno@clisp.org>
5866         strfmon_l: Fix test failures on FreeBSD and Cygwin.
5867         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
5868         AC_RUN_IFELSE test.
5869         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
5870         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
5871         problem.
5873 2019-12-22  Bruno Haible  <bruno@clisp.org>
5875         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
5876         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
5877         unconditional AC_LIBOBJ.
5878         * modules/selinux-at: Likewise.
5879         * modules/xmemdup0: Likewise.
5880         * modules/xstrtoll: Likewise.
5882 2019-12-22  Bruno Haible  <bruno@clisp.org>
5884         longlong: Mark module obsolete.
5885         * modules/longlong (Status, Notice): New sections.
5887         stdint: Assume that the compiler supports 'long long'.
5888         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
5889         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
5890         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5891         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
5892         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5893         * modules/stdint (Files): Remove longlong.m4.
5894         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
5895         HAVE_UNSIGNED_LONG_LONG_INT.
5897         inttypes-incomplete: Assume that the compiler supports 'long long'.
5898         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
5899         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
5900         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5901         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
5902         HAVE_LONG_LONG_INT to be 1.
5903         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5904         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
5906         malloca: Assume that the compiler supports 'long long'.
5907         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
5908         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
5909         * modules/malloca (Files): Remove longlong.m4.
5910         * modules/relocatable-prog-wrapper (Files): Likewise.
5912         atoll: Assume that the compiler supports 'long long'.
5913         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
5914         * modules/atoll (Files): Remove longlong.m4.
5916         strtoll: Assume that the compiler supports 'long long'.
5917         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
5918         * modules/strtoll (Files): Remove longlong.m4.
5920         strtoull: Assume that the compiler supports 'long long'.
5921         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
5922         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5923         * modules/strtoull (Files): Remove longlong.m4.
5925         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
5926         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
5927         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
5928         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
5929         AC_TYPE_LONG_LONG_INT.
5930         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
5931         AC_TYPE_UNSIGNED_LONG_LONG_INT.
5932         * modules/strtoimax (Files): Remove longlong.m4.
5933         * modules/strtoumax (Files): Likewise.
5935         xstrtoll: Assume that the compiler supports 'long long'.
5936         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
5937         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
5939         vasnprintf: Assume that the compiler supports 'long long'.
5940         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
5941         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
5942         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
5943         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
5944         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
5945         require AC_TYPE_LONG_LONG_INT.
5946         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
5947         gl_PREREQ_VASNPRINTF): Likewise.
5948         * modules/vasnprintf (Files): Remove longlong.m4.
5949         * modules/c-vasnprintf (Files): Likewise.
5950         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5951         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5952         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5953         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5954         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5955         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5956         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5958         gethrxtime: Assume that the compiler supports 'long long'.
5959         * lib/xtime.h (xtime_t): Define to 'long long int' always.
5960         (XTIME_PRECISION): Define to 1000000000 always.
5961         (xtime_make, xtime_sec): Optimize accordingly.
5962         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
5963         * modules/gethrxtime (Files): Remove longlong.m4.
5965         integer_length*: Assume that the compiler supports 'long long'.
5966         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
5967         * modules/integer_length (Files): Remove longlong.m4.
5968         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5969         * modules/integer_length_l (Files): Remove longlong.m4.
5970         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5971         * modules/integer_length_ll (Files): Remove longlong.m4.
5972         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
5974         count-one-bits: Assume that the compiler supports 'long long'.
5975         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
5976         * m4/count-one-bits.m4: Remove file.
5977         * modules/count-one-bits (Files): Remove it.
5978         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
5979         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
5980         unconditionally.
5982         count-trailing-zeros: Assume that the compiler supports 'long long'.
5983         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
5984         unconditionally.
5985         * m4/count-trailing-zeros.m4: Remove file.
5986         * modules/count-trailing-zeros (Files): Remove it.
5987         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
5988         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
5989         unconditionally.
5991         count-leading-zeros: Assume that the compiler supports 'long long'.
5992         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
5993         unconditionally.
5994         * m4/count-leading-zeros.m4: Remove file.
5995         * modules/count-leading-zeros (Files): Remove it.
5996         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
5997         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
5998         unconditionally.
6000 2019-12-22  Bruno Haible  <bruno@clisp.org>
6002         localcharset: Update support for OpenBSD.
6003         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
6005 2019-12-21  Bruno Haible  <bruno@clisp.org>
6007         pthread_sigmask: Avoid test failure on NetBSD 8.0.
6008         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
6009         NetBSD.
6010         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
6012 2019-12-21  Bruno Haible  <bruno@clisp.org>
6014         threadlib: Improve code structure.
6015         * m4/threadlib.m4: Reorder macros. Add comments.
6017 2019-12-21  Bruno Haible  <bruno@clisp.org>
6019         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
6020         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
6021         here from m4/threads.m4).
6022         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
6023         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
6024         (gl_STDTHREADLIB): New macro.
6025         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
6026         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
6028 2019-12-21  Bruno Haible  <bruno@clisp.org>
6030         sched_yield: Don't depend on threadlib and yield.
6031         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
6032         LIB_SCHED_YIELD.
6033         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
6034         m4/yield.m4).
6035         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
6036         gl_THREADLIB and gl_YIELD.
6037         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
6038         based on $(LIB_SCHED_YIELD).
6039         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
6040         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6041         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
6042         (Depends-on): Remove threadlib.
6043         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6044         * modules/threads-h (Files): Remove m4/yield.m4.
6045         * modules/pthread-cond-tests (Makefile.am): Link the programs against
6046         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
6047         * modules/pthread-mutex-tests (Makefile.am): Likewise.
6048         * modules/pthread-once-tests (Makefile.am): Likewise.
6049         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
6050         * modules/pthread-tss-tests (Makefile.am): Likewise.
6052 2019-12-21  Bruno Haible  <bruno@clisp.org>
6054         threads-h: Don't depend on threadlib.
6055         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
6056         not gl_THREADLIB_EARLY.
6058 2019-12-21  Bruno Haible  <bruno@clisp.org>
6060         nl_langinfo tests: Fix link error (regression from 2019-12-18).
6061         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
6062         with $(LIB_SETLOCALE).
6064 2019-12-21  Bruno Haible  <bruno@clisp.org>
6066         threadlib: Remove unused dependency (left over from 2019-07-06).
6067         * modules/threadlib (Depends-on): Remove havelib.
6069 2019-12-21  Bruno Haible  <bruno@clisp.org>
6071         New convention for multithread-safety tests.
6072         * tests/test-setlocale_null-mt-one.c: Renamed from
6073         tests/test-setlocale_null-one.c.
6074         * tests/test-setlocale_null-mt-all.c: Renamed from
6075         tests/test-setlocale_null-all.c.
6076         * modules/setlocale-null-tests (Files, Makefile.am): Update.
6078 2019-12-21  Bruno Haible  <bruno@clisp.org>
6080         quotearg tests: Fix conflict with hard-locale tests.
6081         * tests/testlocale: Renamed from tests/locale.
6082         * modules/quotearg-tests (Files): Update.
6083         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
6085 2019-12-21  Bruno Haible  <bruno@clisp.org>
6087         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
6088         Reported by Daniel Richard G. in
6089         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
6090         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
6091         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
6092         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
6093         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
6094         alternative to PTHREAD_RWLOCK_INITIALIZER.
6095         * lib/glthread/lock.c: Likewise.
6097 2019-12-21  Bruno Haible  <bruno@clisp.org>
6099         memcmp tests: Work around the clang bug.
6100         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
6101         the clang optimization.
6103 2019-12-20  Bruno Haible  <bruno@clisp.org>
6105         localcharset: Add support for z/OS encoding names.
6106         * lib/localcharset.h: Mention which encodings are used as locale
6107         encodings on z/OS.
6109 2019-12-20  Bruno Haible  <bruno@clisp.org>
6111         iconv_open: Add support for z/OS encoding names.
6112         Reported by Daniel Richard G. in
6113         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
6114         * lib/iconv_open-zos.gperf: New file.
6115         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
6116         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
6117         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
6118         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
6119         * doc/posix-functions/iconv_open.texi: Mention z/OS.
6121 2019-12-20  Bruno Haible  <bruno@clisp.org>
6123         doc: Document the problem of the per-thread locale functions on z/OS.
6124         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
6125         * doc/posix-functions/newlocale.texi: Likewise.
6126         * doc/posix-functions/duplocale.texi: Likewise.
6127         * doc/posix-functions/freelocale.texi: Likewise.
6129 2019-12-20  Bruno Haible  <bruno@clisp.org>
6131         localename, gettext: Fix host_os value for z/OS.
6132         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
6133         cross-configuration code.
6135 2019-12-19  Jim Meyering  <meyering@fb.com>
6137         nstrftime: avoid a shadowing warning
6138         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
6139         to avoid shadowing an "i" declared hundreds of lines above.
6141 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
6143         dfa: struct dfamust now uses flexible array
6144         * lib/dfa.c: Include flexmember.h.
6145         (dfamust, dfamustfree): Adjust to struct dfamust change.
6146         This saves a call to malloc+free.
6147         * lib/dfa.h (struct dfamust): Make the final member a
6148         flexible array member.
6149         * modules/dfa (Depends-on): Add flexmember.
6151         dfa: fast->small for array elements
6152         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
6153         since this type is used in arrays.  This change is more for
6154         documentation than for any practical effect, since the two types
6155         are the same on all known platforms.
6157 2019-12-19  Bruno Haible  <bruno@clisp.org>
6159         iconv tests: Test canonicalized, not system-dependent, encoding names.
6160         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
6161         * modules/iconv-tests (Depends-on): Add iconv_open.
6163 2019-12-18  Bruno Haible  <bruno@clisp.org>
6165         localename: Fix test failure on AIX 7.2.
6166         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
6167         locales on AIX.
6168         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
6169         locales on AIX.
6171 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6173         Improve port of AC_C_RESTRICT to Oracle C++
6174         Problem reported by Christian Biesinger in:
6175         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
6176         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
6177         Oracle Developer Studio C++ 12.5 or later.
6179 2019-12-18  Bruno Haible  <bruno@clisp.org>
6181         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
6182         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
6184 2019-12-18  Bruno Haible  <bruno@clisp.org>
6186         localename: Ensure multithread-safety in future changes.
6187         * lib/localename.c (setlocale): Reference the system's setlocale().
6188         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
6189         (gl_locale_name_posix): Likewise.
6190         * modules/localename (Depends-on): Add setlocale-null.
6192 2019-12-18  Bruno Haible  <bruno@clisp.org>
6194         setlocale-null: Make API more useful.
6195         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
6196         callers changed.
6197         (setlocale_null): New declaration.
6198         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
6199         extracted from setlocale_null_unlocked.
6200         (setlocale_null_unlocked): Invoke it.
6201         (setlocale_null_r): Renamed from setlocale_null.
6202         (setlocale_null): New function, extracted from setlocale_mtsafe in
6203         setlocale.c.
6204         * lib/setlocale.c: Don't include <errno.h>.
6205         (setlocale_mtsafe): Invoke setlocale_null.
6206         * lib/setlocale-lock.c: Update comments.
6207         * doc/posix-functions/setlocale.texi: Mention both functions.
6209 2019-12-18  Bruno Haible  <bruno@clisp.org>
6211         localename: Optimize code for native Windows.
6212         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
6213         category (not allowed here).
6215 2019-12-18  Bruno Haible  <bruno@clisp.org>
6217         setlocale: Make calls with NULL argument multithread-safe.
6218         * lib/setlocale.c: Include <errno.h>.
6219         (setlocale_mtsafe): New function.
6220         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
6221         (setlocale_improved): Renamed from rpl_setlocale.
6222         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6223         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
6224         LIB_SETLOCALE.
6225         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
6226         (Link): New section.
6227         * tests/locale.c: Undefine setlocale.
6228         * tests/test-setlocale_null-one.c: Likewise.
6229         * tests/test-setlocale_null-all.c: Likewise.
6230         * modules/setlocale-tests (Makefile.am): Link the test programs with
6231         $(LIB_SETLOCALE).
6232         * modules/astrxfrm-tests (Makefile.am): Likewise.
6233         * modules/btowc-tests (Makefile.am): Likewise.
6234         * modules/c-ctype-tests (Makefile.am): Likewise.
6235         * modules/c-snprintf-tests (Makefile.am): Likewise.
6236         * modules/c-strcase-tests (Makefile.am): Likewise.
6237         * modules/c-vasprintf-tests (Makefile.am): Likewise.
6238         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
6239         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
6240         * modules/dfa-tests (Makefile.am): Likewise.
6241         * modules/duplocale-tests (Makefile.am): Likewise.
6242         * modules/hard-locale-tests (Makefile.am): Likewise.
6243         * modules/localcharset-tests (Makefile.am): Likewise.
6244         * modules/localename-tests (Makefile.am): Likewise.
6245         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6246         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6247         * modules/mbrtowc-tests (Makefile.am): Likewise.
6248         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6249         * modules/mbscasestr-tests (Makefile.am): Likewise.
6250         * modules/mbschr-tests (Makefile.am): Likewise.
6251         * modules/mbscspn-tests (Makefile.am): Likewise.
6252         * modules/mbsinit-tests (Makefile.am): Likewise.
6253         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6254         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6255         * modules/mbspbrk-tests (Makefile.am): Likewise.
6256         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6257         * modules/mbsrchr-tests (Makefile.am): Likewise.
6258         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6259         * modules/mbsspn-tests (Makefile.am): Likewise.
6260         * modules/mbsstr-tests (Makefile.am): Likewise.
6261         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6262         * modules/quotearg-tests (Makefile.am): Likewise.
6263         * modules/regex-tests (Makefile.am): Likewise.
6264         * modules/strfmon_l-tests (Makefile.am): Likewise.
6265         * modules/strtod-tests (Makefile.am): Likewise.
6266         * modules/strtold-tests (Makefile.am): Likewise.
6267         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6268         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6269         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6270         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
6271         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6272         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6273         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6274         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6275         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6276         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6277         * modules/wcrtomb-tests (Makefile.am): Likewise.
6278         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6279         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6280         * modules/wcwidth-tests (Makefile.am): Likewise.
6281         * doc/posix-functions/setlocale.texi: Mention that the multithread-
6282         safety fix is also available in module 'setlocale'.
6284 2019-12-18  Bruno Haible  <bruno@clisp.org>
6286         hard-locale: Make multithread-safe.
6287         * lib/hard-locale.h (hard_locale): Move documentation to here.
6288         * lib/hard-locale.c: Don't include <stdlib.h>.
6289         (GLIBC_VERSION): Remove macro.
6290         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
6291         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
6292         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
6293         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
6294         (Link): New section.
6295         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
6296         $(LIB_HARD_LOCALE).
6298 2019-12-18  Bruno Haible  <bruno@clisp.org>
6300         hard-locale: Avoid test failure on Haiku.
6301         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
6303 2019-12-18  Bruno Haible  <bruno@clisp.org>
6305         setlocale-null: Handle NULL result from setlocale.
6306         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
6307         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
6308         from setlocale or _wsetlocale.
6310 2019-12-18  Bruno Haible  <bruno@clisp.org>
6312         hard-locale: Add test.
6313         * tests/test-hard-locale.c: New file.
6314         * tests/locale.c: New file.
6315         * modules/hard-locale-tests: New file.
6317 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6319         dfa: do not match invalid UTF-8
6320         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
6321         from 5 to 9 tokens; this is needed due to the changes to
6322         add_utf8_anychar.
6323         (charclass_index): 2nd arg is now pointer-to-const.
6324         (add_utf8_anychar): Match only valid UTF-8 byte sequences
6325         instead of allowing overlong encodings or surrogate halves.
6327         dfa: simplify charclass by assuming C99
6328         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
6329         (charclass_word): Now always uint_fast64_t.
6330         (CHARCLASS_PAIR): Remove.
6331         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
6333         fts: tune via calloc
6334         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
6336         dfa: tune via xzalloc
6337         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
6339 2019-12-17  Bruno Haible  <bruno@clisp.org>
6341         localcharset: Fix multithread-safety bug on Windows and OS/2.
6342         * lib/localcharset.h (locale_charset): Clarify when the result becomes
6343         invalid.
6344         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
6345         assemble the result.
6347 2019-12-17  Bruno Haible  <bruno@clisp.org>
6349         localcharset: Optimize code for native Windows.
6350         * lib/localcharset.c (locale_charset): Don't bother calling
6351         setlocale (LC_ALL, NULL) since we're not interested in its result.
6353 2019-12-17  Bruno Haible  <bruno@clisp.org>
6355         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
6356         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
6357         setlocale.
6358         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
6359         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
6360         * modules/nl_langinfo (Depends-on): Add setlocale-null.
6362 2019-12-17  Bruno Haible  <bruno@clisp.org>
6364         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
6365         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
6366         stack-allocated buffer to assemble each result and different static
6367         buffers to return it.
6368         * tests/test-nl_langinfo-mt.c: New file.
6369         * modules/nl_langinfo-tests (Files): Add it.
6370         (Depends-on): Add thread, nanosleep.
6371         (Makefile.am): Build test-nl_langinfo-mt test.
6373 2019-12-17  Bruno Haible  <bruno@clisp.org>
6375         langinfo: Document more details.
6376         * doc/posix-headers/langinfo.texi: List platform details.
6377         * doc/posix-functions/nl_langinfo.texi: Likewise.
6379 2019-12-17  Bruno Haible  <bruno@clisp.org>
6381         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
6382         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
6383         and Martin Storsjö <martin@martin.st>
6384         in <https://savannah.gnu.org/bugs/?57406>.
6385         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
6386         mingw.
6388 2019-12-17  Bruno Haible  <bruno@clisp.org>
6390         glob: Avoid warning on mingw.
6391         Reported by Christian Biesinger <cbiesinger@google.com> in
6392         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
6393         * lib/glob.c (__stat64): Undefine first.
6395 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
6397         xalloc: tune xzalloc for fresh allocations
6398         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
6399         because when the memory is freshly allocated from the OS via sbrk
6400         or mmap, calloc can avoid doing the memset.
6402         dfa: new function dfacopysyntax
6403         * lib/dfa.c (struct dfa): Move syntax member later so
6404         that dfacopysyntax can easily clear earlier members.
6405         (dfacopysyntax): New function, used by Gawk.
6407 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6409         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
6410         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
6411         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
6412         if not already defined.
6414         dfa: remove one dependency on MB_CUR_MAX
6415         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
6417         dfa: remove struct lexer_state.cur_mb_len
6418         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
6419         as it’s not needed and the code is simpler without it.
6420         All uses removed.
6422 2019-12-16  Bruno Haible  <bruno@clisp.org>
6424         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
6425         Reported by Arnold Robbins <arnold@skeeve.com>.
6426         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
6427         copied from lib/glthread/lock.h.
6428         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
6429         (setlocale_null_with_lock): If pthread_in_use() is false, use
6430         setlocale_null_unlocked directly.
6431         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
6432         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
6433         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
6434         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
6435         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
6436         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
6438 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
6440         dfa: make dfasyntax thread-safe
6441         Problem reported by Bruno Haible in:
6442         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
6443         * lib/dfa.c: Do not include locale.h.
6444         (struct dfa): Remove simple_locale member.
6445         All uses replaced by localeinfo.simple.
6446         (using_simple_locale): Remove; now present (with some
6447         changes) in localeinfo.c.
6448         (dfasyntax): No need to initialize removed member.
6450         localeinfo: record whether locale is simple
6451         * lib/localeinfo.c (using_simple_locale): New function,
6452         copied here from lib/dfa.c but with a change: it uses
6453         strcoll for its heuristic, instead of using setlocale.
6454         This lets it be thread-safe.
6455         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
6457 2019-12-15  Bruno Haible  <bruno@clisp.org>
6459         duplocale: Fix multithread-safety bug on AIX.
6460         * lib/duplocale.c: Don't include <stdlib.h>.
6461         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
6462         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
6463         Set LIB_DUPLOCALE.
6464         * modules/duplocale (Depends-on): Add setlocale-null.
6465         (Link): New section.
6466         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
6467         $(LIB_DUPLOCALE).
6469 2019-12-15  Bruno Haible  <bruno@clisp.org>
6471         setlocale-null: Add tests.
6472         * tests/test-setlocale_null.c: New file.
6473         * tests/test-setlocale_null-one.c: New file.
6474         * tests/test-setlocale_null-all.c: New file.
6475         * modules/setlocale-null-tests: New file.
6477         setlocale-null: New module.
6478         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
6479         setlocale_null): New declarations.
6480         * lib/setlocale_null.c: New file.
6481         * lib/setlocale-lock.c: New file.
6482         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
6483         * m4/setlocale_null.m4: New file.
6484         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
6485         GNULIB_SETLOCALE_NULL.
6486         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
6487         * modules/setlocale-null: New file.
6488         * doc/posix-functions/setlocale.texi: Mention the new module.
6490 2019-12-15  Bruno Haible  <bruno@clisp.org>
6492         lock tests: Skip test when no multithreading is enabled.
6493         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
6495 2019-12-14  Bruno Haible  <bruno@clisp.org>
6497         locale, duplocale, localename: Fix last patch.
6498         Reported by Daniel Richard G. in
6499         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
6500         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
6501         Don't define if locale_t does not exist.
6503 2019-12-13  Bruno Haible  <bruno@clisp.org>
6505         locale, duplocale, localename: Fix errors if locale_t does not exist.
6506         Reported by Daniel Richard G. in
6507         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
6508         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
6509         macros.
6510         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
6511         HAVE_NEWLOCALE.
6512         * tests/test-localename.c: Likewise.
6513         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
6514         HAVE_DUPLOCALE.
6515         * tests/test-locale-c++.cc: Likewise.
6517 2019-12-13  Bruno Haible  <bruno@clisp.org>
6519         wcstok: Fix test failure on HP-UX.
6520         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
6521         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
6523 2019-12-12  Bruno Haible  <bruno@clisp.org>
6525         strtod, strtold tests: Avoid test failure on AIX 7.2.
6526         * tests/test-strtod1.c (main): Allow implementations in which ',' and
6527         '.' both are radix characters.
6528         * tests/test-strtold1.c (main): Likewise.
6530 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6532         dfa: prefer ptrdiff_t for API, too
6533         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
6534         but do this only for internal use for now.
6535         * NEWS: Mention the API change.
6536         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
6537         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
6538         values known to be nonnegative.
6539         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
6540         Prefer idx_t or ptrdiff_t to size_t for API.
6541         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
6542         Prefer ptrdiff_t to size_t for API.
6544         stdalign: port to xlclang 16.01
6545         Problem reportd by Bruno Haible in:
6546         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
6547         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
6548         ((__aligned__ (...))) with xlclang, as a top-level
6549         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
6550         xlclang version 16.01.0000.0001; the alignment directive is ignored.
6552 2019-12-12  Bruno Haible  <bruno@clisp.org>
6554         duplocale: Fix test failure on AIX 7.2 with xlclang.
6555         * lib/duplocale.c: Include <stdlib.h>.
6556         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
6557         value.
6559 2019-12-12  Bruno Haible  <bruno@clisp.org>
6561         stddef: Document the AIX xlc issue.
6562         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
6564 2019-12-12  Bruno Haible  <bruno@clisp.org>
6566         duplocale: Don't attempt to override if locale_t does not exist.
6567         Reported by Daniel Richard G. in
6568         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
6569         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
6570         HAVE_DUPLOCALE to 0.
6572 2019-12-12  Bruno Haible  <bruno@clisp.org>
6574         wcwidth: Avoid test failure on AIX 7.2.
6575         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
6576         negative.
6577         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
6579 2019-12-12  Bruno Haible  <bruno@clisp.org>
6581         ilogbl: Work around Cygwin bug.
6582         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
6583         correct.
6584         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
6586 2019-12-12  Bruno Haible  <bruno@clisp.org>
6588         strtold: Work around Cygwin bug.
6589         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
6590         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
6591         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
6592         STRTOLD_HAS_UNDERFLOW_BUG is defined.
6593         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
6595 2019-12-12  Bruno Haible  <bruno@clisp.org>
6597         strtold: Fix autoconf test.
6598         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
6600 2019-12-11  Bruno Haible  <bruno@clisp.org>
6602         fsync tests: Skip test that is known to fail.
6603         * doc/posix-functions/fsync.texi: Update list of platforms.
6604         * tests/test-fsync.c (main): Skip test with read-only file descriptors
6605         that is known to fail on AIX and Cygwin.
6607 2019-12-11  Bruno Haible  <bruno@clisp.org>
6609         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
6610         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
6611         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
6612         HAVE_GETADDRINFO as a C macro.
6613         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
6614         declare as replacement functions.
6615         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
6616         define as no-op overrides.
6617         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
6618         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
6619         * modules/getaddrinfo (Depends-on, configure.ac): Test
6620         REPLACE_GETADDRINFO.
6621         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
6622         problem.
6623         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
6624         convention problems.
6626 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6628         dfa: prefer signed integers for internals
6629         Signed integers can be checked more easily for integer overflow.
6630         * lib/dfa.c (position, struct lexer_state, struct parser_state)
6631         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
6632         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
6633         (nsubtoks, copytoks, closure, alloc_position_set, delete)
6634         (replace, state_index, epsclosure, charclass_context)
6635         (state_separate_contexts, merge_nfa_state, dfaoptimize)
6636         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
6637         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
6638         (comsubs, inboth, allocmust):
6639         Prefer a signed to an unsigned integer when calculating indexes,
6640         unless the integer is part of the external API (a bigger deal,
6641         and to be done later).
6643         dfa: fix index overflow
6644         * lib/dfa.c (compare): Avoid integer overflow when analyzing
6645         very large regular expressions.
6647         dfa: update commentary for previous change
6648         * NEWS: Mention the change.
6649         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
6651 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6653         dfa: separate parse and compile phase
6654         ‘dfamust’ must be called after parsing and before tokens are
6655         reordered, but both are executed in the compilation phase.
6656         Token reordering was introduced in Gnulib commit
6657         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
6658         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
6659         * lib/dfa.c (dfaparse): Change it to global function.
6660         (dfacomp): If first argument is NULL, skip parse.
6661         * lib/dfa.h: (dfaparse): Add a prototype.
6663 2019-12-11  Bruno Haible  <bruno@clisp.org>
6665         unistd tests: Fix link error on MSVC.
6666         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
6667         $(LIB_GETLOGIN).
6669 2019-12-11  Bruno Haible  <bruno@clisp.org>
6671         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
6672         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
6673         and POSIX substitutes are supported in C++ mode.
6674         * NEWS: Likewise.
6676 2019-12-11  Bruno Haible  <bruno@clisp.org>
6678         stddef: Fix compilation error in C++ mode on MSVC.
6679         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
6680         instead, include <cstddef>.
6682 2019-12-11  Bruno Haible  <bruno@clisp.org>
6684         unistd: Fix compilation error in C++ mode on MSVC.
6685         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
6686         does not have <unistd.h>.
6688 2019-12-11  Bruno Haible  <bruno@clisp.org>
6690         locale: Fix compilation error in C++ mode on MSVC.
6691         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
6692         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
6693         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
6694         int_n_sep_by_space): Define as macros on MSVC.
6696 2019-12-11  Bruno Haible  <bruno@clisp.org>
6698         wchar: Fix compilation error in C++ mode on MSVC.
6699         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
6701 2019-12-11  Bruno Haible  <bruno@clisp.org>
6703         pthread-thread: Fix compilation error in C++ mode on MSVC.
6704         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
6705         _GL_CXXALIAS_RPL invocation.
6707 2019-12-08  Bruno Haible  <bruno@clisp.org>
6709         Fix compilation errors in C++ mode on Haiku.
6710         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
6711         non-glibc systems.
6712         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
6713         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
6714         posix_spawnattr_setschedparam): Likewise.
6715         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
6716         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6717         * lib/unistd.in.h (usleep): Likewise.
6719 2019-12-08  Bruno Haible  <bruno@clisp.org>
6721         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
6722         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
6723         * modules/fseeko (configure.ac-early): Require it instead of
6724         AC_FUNC_FSEEKO.
6725         * modules/ftello (configure.ac-early): Likewise.
6726         * modules/fflush (configure.ac-early): Likewise.
6728 2019-12-08  Bruno Haible  <bruno@clisp.org>
6730         Fix compilation error in C++ mode on HP-UX 11.
6731         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
6732         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
6734 2019-12-08  Bruno Haible  <bruno@clisp.org>
6736         Fix compilation errors on HP-UX 11/ia64.
6737         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
6738         _GL_FUNCDECL_SYS.
6740 2019-12-08  Bruno Haible  <bruno@clisp.org>
6742         Fix compilation error in C++ mode on OpenBSD.
6743         * lib/signal.in.h (signal): Declare on OpenBSD.
6745 2019-12-08  Bruno Haible  <bruno@clisp.org>
6747         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
6748         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
6749         instead of #error.
6751 2019-12-08  Bruno Haible  <bruno@clisp.org>
6753         Fix compilation errors in C++ mode on FreeBSD.
6754         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
6755         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
6756         * lib/threads.in.h (thrd_exit): Likewise.
6757         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
6759 2019-12-08  Bruno Haible  <bruno@clisp.org>
6761         Fix compilation errors in C++ mode on macOS and FreeBSD.
6762         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
6763         or FreeBSD with clang, use the approach without C preprocessor macro.
6765 2019-12-07  Bruno Haible  <bruno@clisp.org>
6767         Fix compilation errors in C++ mode on AIX with xlclang++.
6768         Reported by Christian Biesinger <cbiesinger@google.com> in
6769         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6770         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
6772 2019-12-07  Bruno Haible  <bruno@clisp.org>
6774         Document compilation error in C++ mode on NetBSD 8.0.
6775         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
6777 2019-12-07  Bruno Haible  <bruno@clisp.org>
6779         Fix compilation errors in C++ mode on Solaris 10.
6780         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
6781         to non-empty on Solaris with a non-GCC compiler.
6782         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
6784 2019-12-07  Bruno Haible  <bruno@clisp.org>
6786         Reword NEWS entry.
6787         * NEWS: Reword the latest NEWS entry.
6789 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
6791         Move xstrtol_fatal to a new xstrtol-error module.
6792         * lib/xstrtol.h: Stop including <getopt.h>.
6793         (xstrtol_fatal): Move ...
6794         * lib/xstrtol-error.h: ... here.  New file.
6795         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
6796         * tests/test-xstrtol.c: Likewise.
6797         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
6798         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
6799         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
6800         * modules/xstrtol-error: New file.
6801         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
6802         * MODULES.html.sh: Add xstrtol-error.
6803         * NEWS: Document the change.
6805 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
6807         nstrftime: better width support for %N, %z
6808         * lib/nstrftime.c (width_add, width_add1, width_cpy):
6809         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
6810         a new WIDTH parameter.
6811         (add, add1, cpy): Use these macros.
6812         (width_add): Do not treat digits == 0 as a special case,
6813         do not pad if padding is ‘-’, and do not use a negative width.
6814         (__strftime_internal): Redo formatting of nanoseconds and numeric
6815         timezones to avoid buffer misuse in unusual cases, and so that
6816         widths make more sense.  Add support for widths greater than 9 to
6817         the %N format; they are zero filled on the right.
6818         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
6820 2019-12-05  Bruno Haible  <bruno@clisp.org>
6822         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
6823         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
6824         set REPLACE_ISFINITE to 1.
6825         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
6826         REPLACE_ISINF to 1.
6827         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
6828         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
6829         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6830         * lib/threads.in.h (call_once): Likewise.
6831         * lib/iconv.in.h (iconv): Likewise.
6833 2019-12-05  Bruno Haible  <bruno@clisp.org>
6835         wchar: Add more C++ tests.
6836         Reported by Christian Biesinger <cbiesinger@google.com> in
6837         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
6838         * tests/test-wchar-c++3.cc: New file.
6839         * modules/wchar-c++-tests (Files): Add it.
6840         (Makefile.am): Compile it.
6842 2019-12-05  Bruno Haible  <bruno@clisp.org>
6844         Add more C++ tests.
6846         assert-h: Add C++ tests.
6847         * tests/test-assert-h-c++.cc: New file.
6848         * tests/test-assert-h-c++2.cc: New file.
6849         * modules/assert-h-c++-tests: New file.
6850         * modules/assert-h-tests: New file.
6852         ctype: Add C++ tests.
6853         * tests/test-ctype-c++.cc: New file.
6854         * tests/test-ctype-c++2.cc: New file.
6855         * modules/ctype-c++-tests: New file.
6856         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
6858         errno: Add C++ tests.
6859         * tests/test-errno-c++.cc: New file.
6860         * tests/test-errno-c++2.cc: New file.
6861         * modules/errno-c++-tests: New file.
6862         * modules/errno-tests (Depends-on): Add errno-c++-tests.
6864         float: Add C++ tests.
6865         * tests/test-float-c++.cc: New file.
6866         * tests/test-float-c++2.cc: New file.
6867         * modules/float-c++-tests: New file.
6868         * modules/float-tests (Depends-on): Add float-c++-tests.
6870         inttypes: Add more C++ tests.
6871         * tests/test-inttypes-c++2.cc: New file.
6872         * modules/inttypes-c++-tests (Files): Add it.
6873         (Makefile.am): Compile it.
6875         limits-h: Add C++ tests.
6876         * tests/test-limits-h-c++.cc: New file.
6877         * tests/test-limits-h-c++2.cc: New file.
6878         * modules/limits-h-c++-tests: New file.
6879         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
6881         stdarg: Add C++ tests.
6882         * tests/test-stdarg-c++.cc: New file.
6883         * tests/test-stdarg-c++2.cc: New file.
6884         * modules/stdarg-c++-tests: New file.
6885         * modules/stdarg-tests: New file.
6887         stdbool: Add C++ tests.
6888         * tests/test-stdbool-c++.cc: New file.
6889         * tests/test-stdbool-c++2.cc: New file.
6890         * modules/stdbool-c++-tests: New file.
6891         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
6893         stddef: Add C++ tests.
6894         * tests/test-stddef-c++.cc: New file.
6895         * tests/test-stddef-c++2.cc: New file.
6896         * modules/stddef-c++-tests: New file.
6897         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
6899         stdint: Add C++ tests.
6900         * tests/test-stdint-c++.cc: New file.
6901         * tests/test-stdint-c++2.cc: New file.
6902         * modules/stdint-c++-tests: New file.
6903         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
6905         wchar: Add more C++ tests.
6906         * tests/test-wchar-c++2.cc: New file.
6907         * modules/wchar-c++-tests (Files): Add it.
6908         (Makefile.am): Compile it.
6910         wctype-h: Add more C++ tests.
6911         * tests/test-wctype-h-c++2.cc: New file.
6912         * modules/wctype-h-c++-tests (Files): Add it.
6913         (Makefile.am): Compile it.
6915 2019-12-04  Bruno Haible  <bruno@clisp.org>
6917         Fix compilation errors in C++ mode with xlclang++ on AIX.
6918         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
6919         C++ mode on AIX.
6920         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
6921         without C preprocessor macro.
6922         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
6923         _GL_CXXALIAS_SYS.
6924         * lib/threads.in.h (thrd_exit): Likewise.
6926 2019-12-04  Bruno Haible  <bruno@clisp.org>
6928         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
6929         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
6930         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
6932 2019-12-04  Bruno Haible  <bruno@clisp.org>
6934         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
6935         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
6936         _GL_CXXALIASWARN invocation on non-glibc systems.
6937         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
6938         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
6939         iswctype, towlower, towupper): Likewise.
6941 2019-12-03  Bruno Haible  <bruno@clisp.org>
6943         Avoid hassles caused by [[noreturn]] in C++.
6944         Reported by Christian Biesinger <cbiesinger@google.com> in
6945         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
6946         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
6947         * lib/_Noreturn.h: Likewise.
6949 2019-12-02  Bruno Haible  <bruno@clisp.org>
6951         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
6952         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
6953         LIBMULTITHREAD.
6954         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
6955         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
6956         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
6957         gl_THREADLIB.
6958         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
6960 2019-12-02  Bruno Haible  <bruno@clisp.org>
6962         Fix some more link errors with --enable-threads=isoc.
6963         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
6964         * modules/pthread-rwlock (Depends-on): Likewise.
6966 2019-12-02  Bruno Haible  <bruno@clisp.org>
6968         Fix link errors with --enable-threads=posix on AIX.
6969         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
6970         program with $(LIBTHREAD).
6971         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
6972         program with $(LIBTHREAD).
6974 2019-12-02  Bruno Haible  <bruno@clisp.org>
6976         Fix link errors with --enable-threads=posix on AIX.
6977         * modules/mbrtowc (Link): New section.
6978         * modules/acl (Link): Likewise.
6979         * modules/argmatch (Link): Likewise.
6980         * modules/backup-rename (Link): Likewise.
6981         * modules/backupfile (Link): Likewise.
6982         * modules/closein (Link): Likewise.
6983         * modules/closeout (Link): Likewise.
6984         * modules/copy-file (Link): Likewise.
6985         * modules/csharpcomp (Link): Likewise.
6986         * modules/csharpexec (Link): Likewise.
6987         * modules/dfa (Link): Likewise.
6988         * modules/exclude (Link): Likewise.
6989         * modules/fnmatch (Link): Likewise.
6990         * modules/fnmatch-gnu (Link): Likewise.
6991         * modules/fnmatch-posix (Link): Likewise.
6992         * modules/glob (Link): Likewise.
6993         * modules/human (Link): Likewise.
6994         * modules/javacomp (Link): Likewise.
6995         * modules/javaexec (Link): Likewise.
6996         * modules/javaversion (Link): Likewise.
6997         * modules/mbfile (Link): Likewise.
6998         * modules/mbiter (Link): Likewise.
6999         * modules/mbmemcasecmp (Link): Likewise.
7000         * modules/mbmemcasecoll (Link): Likewise.
7001         * modules/mbrlen (Link): Likewise.
7002         * modules/mbscasecmp (Link): Likewise.
7003         * modules/mbscasestr (Link): Likewise.
7004         * modules/mbschr (Link): Likewise.
7005         * modules/mbscspn (Link): Likewise.
7006         * modules/mbsinit (Link): Likewise.
7007         * modules/mbslen (Link): Likewise.
7008         * modules/mbsncasecmp (Link): Likewise.
7009         * modules/mbsnlen (Link): Likewise.
7010         * modules/mbsnrtowcs (Link): Likewise.
7011         * modules/mbspbrk (Link): Likewise.
7012         * modules/mbspcasecmp (Link): Likewise.
7013         * modules/mbsrchr (Link): Likewise.
7014         * modules/mbsrtowcs (Link): Likewise.
7015         * modules/mbssep (Link): Likewise.
7016         * modules/mbsspn (Link): Likewise.
7017         * modules/mbsstr (Link): Likewise.
7018         * modules/mbstok_r (Link): Likewise.
7019         * modules/mbswidth (Link): Likewise.
7020         * modules/mbuiter (Link): Likewise.
7021         * modules/mkdir-p (Link): Likewise.
7022         * modules/propername (Link): Likewise.
7023         * modules/quote (Link): Likewise.
7024         * modules/quotearg (Link): Likewise.
7025         * modules/quotearg-simple (Link): Likewise.
7026         * modules/regex-quote (Link): Likewise.
7027         * modules/rpmatch (Link): Likewise.
7028         * modules/sh-quote (Link): Likewise.
7029         * modules/system-quote (Link): Likewise.
7030         * modules/trim (Link): Likewise.
7031         * modules/unistdio/ulc-asnprintf (Link): Likewise.
7032         * modules/unistdio/ulc-fprintf (Link): Likewise.
7033         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
7034         * modules/unistdio/ulc-vasprintf (Link): Likewise.
7035         * modules/unistdio/ulc-vfprintf (Link): Likewise.
7036         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
7037         * modules/unistdio/ulc-vsprintf (Link): Likewise.
7038         * modules/xfreopen (Link): Likewise.
7039         * modules/xmemcoll (Link): Likewise.
7040         * modules/yesno (Link): Likewise.
7041         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
7042         * modules/argmatch-tests (Makefile.am): Likewise.
7043         * modules/closein-tests (Makefile.am): Likewise.
7044         * modules/copy-file-tests (Makefile.am): Likewise.
7045         * modules/dfa-tests (Makefile.am): Likewise.
7046         * modules/fnmatch-tests (Makefile.am): Likewise.
7047         * modules/glob-tests (Makefile.am): Likewise.
7048         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7049         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7050         * modules/mbrtowc-tests (Makefile.am): Likewise.
7051         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7052         * modules/mbscasestr-tests (Makefile.am): Likewise.
7053         * modules/mbschr-tests (Makefile.am): Likewise.
7054         * modules/mbscspn-tests (Makefile.am): Likewise.
7055         * modules/mbsinit-tests (Makefile.am): Likewise.
7056         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7057         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7058         * modules/mbspbrk-tests (Makefile.am): Likewise.
7059         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7060         * modules/mbsrchr-tests (Makefile.am): Likewise.
7061         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7062         * modules/mbsspn-tests (Makefile.am): Likewise.
7063         * modules/mbsstr-tests (Makefile.am): Likewise.
7064         * modules/quotearg-tests (Makefile.am): Likewise.
7065         * modules/quotearg-simple-tests (Makefile.am): Likewise.
7066         * modules/readtokens-tests (Makefile.am): Likewise.
7067         * modules/regex-quote-tests (Makefile.am): Likewise.
7068         * modules/sh-quote-tests (Makefile.am): Likewise.
7069         * modules/system-quote-tests (Makefile.am): Likewise.
7070         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
7071         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7072         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
7073         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
7074         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
7075         * modules/yesno-tests (Makefile.am): Likewise.
7077 2019-12-02  Bruno Haible  <bruno@clisp.org>
7079         Simplify link sections.
7080         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
7081         * modules/lock (Link): Likewise.
7082         * modules/cond (Link): Likewise.
7083         * modules/tls (Link): Likewise.
7084         * modules/yield (Link): Likewise.
7085         * modules/regex (Link): Likewise.
7086         * modules/localename (Link): Likewise.
7087         * modules/unicase/locale-language (Link): Likewise.
7088         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
7090 2019-12-02  Bruno Haible  <bruno@clisp.org>
7092         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
7093         * tests/test-thread_self.c (main): Disable test on AIX.
7095 2019-12-01  Bruno Haible  <bruno@clisp.org>
7097         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
7098         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
7099         gl_THREADLIB_EARLY_BODY.
7100         (gl_THREADLIB_EARLY_BODY): Invoke it.
7101         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
7102         (gl_THREADLIB_BODY): Invoke it.
7103         (gl_PTHREADLIB): New macro.
7104         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
7105         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
7106         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
7107         * modules/pthread-h (Files): Add threadlib.m4.
7108         (Depends-on): Remove threadlib.
7109         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
7110         and _THREAD_SAFE here.
7111         (Link): Use LIBPTHREAD, not LIBTHREAD.
7112         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
7113         LIBMULTITHREAD.
7114         * modules/pthread-once (Link): Likewise.
7115         * modules/pthread-mutex (Link): Likewise.
7116         * modules/pthread-rwlock (Link): Likewise.
7117         * modules/pthread-cond (Link): Likewise.
7118         * modules/pthread-tss (Link): Likewise.
7119         * modules/pthread-spin (Link): Likewise.
7120         * modules/pthread (Link): Likewise.
7121         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
7122         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
7123         * modules/pthread-once-tests (test_pthread_once1_LDADD,
7124         test_pthread_once2_LDADD): Likewise.
7125         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
7126         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
7127         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
7128         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
7130 2019-12-01  Bruno Haible  <bruno@clisp.org>
7132         cond: State linking requirements.
7133         * modules/cond (Link): New section.
7135 2019-12-01  Bruno Haible  <bruno@clisp.org>
7137         threadlib: Remove unnecessary file (left over from 2019-07-06).
7138         * modules/threadlib (Files): Remove config.rpath.
7140 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
7142         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
7143         Reported by Dagobert Michelsen <dam@opencsw.org> in
7144         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
7145         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
7146         list of strings instead of one string.
7147         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
7148         * pygnulib/GLImport.py (execute): Likewise.
7150 2019-11-27  Bruno Haible  <bruno@clisp.org>
7152         openpty, forkpty: Fix build error on Solaris 11.4.
7153         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
7154         also in <termios.h>.
7155         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
7156         of the function also in <termios.h>.
7157         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
7158         * doc/glibc-functions/forkpty.texi: Likewise.
7160 2019-11-27  Bruno Haible  <bruno@clisp.org>
7162         New options --enable-threads=isoc and --enable-threads=isoc+posix.
7163         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
7164         --enable-threads=isoc and --enable-threads=isoc+posix.
7165         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
7166         When both the ISO C and the POSIX threads API are available, choose
7167         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
7168         --enable-threads=isoc+posix was specified. When only the ISO C threads
7169         API is available and --enable-threads=iso was specified, choose
7170         USE_ISOC_THREADS.
7171         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
7172         USE_ISOC_AND_POSIX_THREADS.
7173         * lib/glthread/lock.c: Likewise.
7174         * lib/glthread/cond.h: Likewise.
7175         * lib/glthread/cond.c: Likewise.
7176         * lib/glthread/tls.h: Likewise.
7177         * lib/glthread/tls.c: Likewise.
7178         * lib/glthread/yield.h: Likewise.
7179         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
7180         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
7181         * lib/glthread/thread.c: Likewise.
7182         * lib/glthread/threadlib.c: Likewise.
7183         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
7184         USE_ISOC_AND_POSIX_THREADS.
7185         * tests/test-cond.c: Consider USE_ISOC_THREADS and
7186         USE_ISOC_AND_POSIX_THREADS.
7187         * tests/test-tls.c: Likewise.
7188         * tests/test-thread_create.c (main): Likewise.
7189         * tests/test-pthread-cond.c: Likewise.
7190         * tests/test-pthread-mutex.c: Likewise.
7191         * tests/test-pthread-once2.c: Likewise.
7192         * tests/test-pthread-rwlock.c: Likewise.
7193         * tests/test-pthread-tss.c: Likewise.
7194         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
7195         USE_POSIX_THREADS.
7197 2019-11-24  Bruno Haible  <bruno@clisp.org>
7199         mbrtowc: Modernize autoconf test.
7200         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
7201         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
7202         try a UTF-8 locale.
7203         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
7205 2019-11-24  Bruno Haible  <bruno@clisp.org>
7207         Fix errors in C++ mode on mingw.
7208         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
7209         instead of _GL_CXXALIAS_SYS.
7210         * lib/signal.in.h (pthread_sigmask): Likewise.
7211         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
7212         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7213         Likewise.
7214         * lib/wchar.in.h (btowc): Likewise.
7216 2019-11-24  Bruno Haible  <bruno@clisp.org>
7218         sys_time: Fix errors in C++ mode on mingw.
7219         * lib/sys_time.in.h (timeval): Restore the redirection
7220         '#define timeval rpl_timeval', for when the symbol timeval is being used
7221         outside the 'gnulib' namespace.
7222         * lib/sys_select.in.h (select): In C++, write 'timeval', not
7223         'struct timeval'.
7225 2019-11-24  Bruno Haible  <bruno@clisp.org>
7227         iswctype: Fix errors in C++ mode on mingw.
7228         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
7229         is 1.
7230         * lib/iswctype.c (iswctype): Add another implementation, for the
7231         GNULIB_defined_wint_t case.
7232         * modules/iswctype (configure.ac): Compile iswctype.c also if
7233         GNULIB_OVERRIDES_WINT_T is 1.
7235 2019-11-24  Bruno Haible  <bruno@clisp.org>
7237         windows-timedmutex: Fix errors in C++ mode on mingw.
7238         * lib/windows-timedmutex.h: Add closing brace.
7240 2019-11-24  Bruno Haible  <bruno@clisp.org>
7242         Fix errors in C++ mode on Cygwin.
7243         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
7244         _GL_CXXALIAS_SYS.
7246 2019-11-24  Bruno Haible  <bruno@clisp.org>
7248         time_r: Fix for mingw (regression from 2019-11-16).
7249         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
7250         AC_LINK_IFELSE test only if the function does not appear to exist.
7252 2019-11-24  Bruno Haible  <bruno@clisp.org>
7254         wcstok: Add tests.
7255         * tests/test-wcstok.c: New file.
7256         * modules/wcstok-tests: New file.
7258 2019-11-24  Bruno Haible  <bruno@clisp.org>
7260         wcstok: Work around wrong signature on native Windows.
7261         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
7262         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
7263         REPLACE_WCSTOK.
7264         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
7265         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
7266         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
7267         * doc/posix-functions/wcstok.texi: Mention the problem.
7269 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
7271         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
7272         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
7273         remove workaround for GCC bug 91450 as the bug should be fixed
7274         there too.
7276 2019-11-21  Bruno Haible  <bruno@clisp.org>
7278         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
7279         Reported by Christian Biesinger <cbiesinger@google.com> in
7280         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
7281         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
7282         non-glibc systems.
7283         * lib/locale.in.h (localeconv, setlocale): Likewise.
7284         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
7285         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
7286         rint, round, trunc): Likewise.
7287         * lib/monetary.in.h (strfmon_l): Likewise.
7288         * lib/pthread.in.h (pthread_mutexattr_getrobust,
7289         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
7290         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
7291         pthread_spin_destroy): Likewise.
7292         * lib/signal.in.h (raise, signal): Likewise.
7293         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
7294         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
7295         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
7296         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
7297         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
7298         Likewise.
7299         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
7300         Likewise.
7301         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
7302         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
7303         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
7304         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
7305         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
7306         wcsftime): Likewise.
7307         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
7309 2019-11-21  Bruno Haible  <bruno@clisp.org>
7311         Fix various errors in _GL_CXXALIAS_SYS invocations.
7312         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
7313         _GL_CXXALIAS_SYS.
7314         * lib/pthread.in.h (pthread_mutexattr_gettype,
7315         pthread_mutexattr_getrobust): Likewise.
7316         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
7317         * lib/sys_socket.in.h (recv, send): Likewise.
7318         * lib/unistd.in.h (getdtablesize): Likewise.
7319         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
7320         'struct timeval'.
7322 2019-11-21  Bruno Haible  <bruno@clisp.org>
7324         math tests: Update after 2019-08-28 change.
7325         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
7326         return type of 'bool', not 'int'.
7328 2019-11-21  Bruno Haible  <bruno@clisp.org>
7330         pthread-spin: Fix errors in C++ mode.
7331         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
7332         functions as nonexistent when <pthread.h> exists but does not define
7333         the pthread_spinlock_t type.
7335 2019-11-21  Bruno Haible  <bruno@clisp.org>
7337         pthread-mutex: Fix errors in C++ mode.
7338         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
7339         pthread_mutexattr_getrobust exists. If not, define
7340         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7341         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
7342         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
7343         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
7344         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
7345         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
7346         definition.
7348 2019-11-19  Bruno Haible  <bruno@clisp.org>
7350         threads-h tests: Fix typo.
7351         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
7353 2019-11-19  Bruno Haible  <bruno@clisp.org>
7355         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
7356         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
7357         to 'const pthread_attr_t *'.
7358         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
7359         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
7361 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
7363         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
7364         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
7365         work around GCC bug 91450 as the bug should be fixed there.
7367 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7369         glob: get closer to glibc glob.c
7370         Omit differences from glibc when the differences don’t matter.
7371         * lib/glob.c [_LIBC]: Include shlib-compat.h.
7372         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
7373         (glob_lstat): New function.
7374         (glob_in_dir): Use it.
7375         (GLOB_ATTRIBUTE): Define to empty if not already defined.
7376         Use changed.
7378 2019-11-18  Bruno Haible  <bruno@clisp.org>
7380         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
7381         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
7382         UINTPTR_MAX): Consider _WIN64.
7383         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
7384         a pointer.
7386 2019-11-18  Bruno Haible  <bruno@clisp.org>
7388         stdint: Fix value of WINT_MAX when we override wint_t.
7389         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
7390         when GNULIB_OVERRIDES_WINT_T is 1.
7392 2019-11-18  Bruno Haible  <bruno@clisp.org>
7394         vcs-to-changelog: New module.
7395         * modules/vcs-to-changelog: New file.
7396         * MODULES.html.sh (func_all_modules): Add it.
7398 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7400         vcs-to-changelog: New script to generate ChangeLog-like output.
7401         Discussion:
7402         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
7403         * build-aux/vcs_to_changelog.py: New file.
7404         * build-aux/vcstocl/frontend_c.py: New file.
7405         * build-aux/vcstocl/misc_util.py: New file.
7406         * build-aux/vcstocl/vcs_git.py: New file.
7408 2019-11-18  Bruno Haible  <bruno@clisp.org>
7410         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
7411         Reported by Keith Marshall <keith@users.osdn.me> in
7412         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
7413         and <https://osdn.net/projects/mingw/ticket/39677>.
7414         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
7415         already been defined by mingw's <crtdefs.h>.
7417 2019-11-18  Bruno Haible  <bruno@clisp.org>
7419         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
7420         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
7421         conditionally enabled.
7423 2019-11-18  Bruno Haible  <bruno@clisp.org>
7425         gc: Mirror libgcrypt.m4 from libgcrypt.
7426         * config/srclistvars.sh (LIBGCRYPT): New variable.
7427         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
7429 2019-11-17  Bruno Haible  <bruno@clisp.org>
7431         locale, localename: Improve z/OS support.
7432         Reported by Daniel Richard G. in
7433         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
7434         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
7435         gl_LOCALE_H.
7436         (gl_LOCALE_H): Require it.
7437         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
7438         defined, don't even check for newlocale, duplocale, freelocale.
7439         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
7440         locale_t is not defined.
7442 2019-11-17  Bruno Haible  <bruno@clisp.org>
7444         havelib: Make libdirstems processing more flexible.
7445         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
7446         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
7447         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
7448         patch from 2017-02-19).
7449         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
7450         libdirs, even when the first one exists as a directory.
7452 2019-11-17  Bruno Haible  <bruno@clisp.org>
7454         havelib: Match the bitness when searching for libraries.
7455         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
7456         acl_is_expected_elfclass.
7457         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
7458         file exists, in ELF, also test whether it has the ELF class that
7459         corresponds to the host's bitness.
7461 2019-11-17  Bruno Haible  <bruno@clisp.org>
7463         host-cpu-c-abi: Add support for unknown CPUs.
7464         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
7465         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
7466         32-bit or 64-bit.
7468 2019-11-17  Bruno Haible  <bruno@clisp.org>
7470         havelib: Remove redundant code.
7471         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
7472         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
7474 2019-11-17  Bruno Haible  <bruno@clisp.org>
7476         havelib: Fix a bug in dependency processing.
7477         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
7478         of .la files, don't overwrite the value of additional_libdir for the
7479         next rounds.
7481 2019-11-16  Bruno Haible  <bruno@clisp.org>
7483         wctype-h: When overriding wint_t, override also the related functions.
7484         Reported by Christian Biesinger <cbiesinger@google.com> in
7485         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
7486         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
7487         REPLACE_ISWCNTRL to 1.
7488         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
7489         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
7490         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
7491         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
7492         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
7493         on mingw.
7494         * doc/posix-headers/wctype.texi: Likewise.
7496 2019-11-16  Bruno Haible  <bruno@clisp.org>
7498         time_r: Fix for mingw.
7499         Reported by Christian Biesinger <cbiesinger@google.com> in
7500         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
7501         * lib/time.in.h: On mingw, include <unistd.h>.
7502         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
7503         <time.h>. Test for localtime_r in a way that works when it is defined
7504         as an inline function.
7506 2019-11-13  Bruno Haible  <bruno@clisp.org>
7508         havelib: Revert last change.
7509         * build-aux/config.rpath: Revert last change. We can add msys2 support
7510         when it has been added to libtool.m4 upstream.
7512 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7514         config: add msys support
7515         Requested by Arnold Robbins in:
7516         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
7517         He also requested a change to config.guess, which I’ll forward
7518         upstream.
7519         * build-aux/ar-lib (func_file_conv):
7520         * build-aux/compile (func_file_conv):
7521         * build-aux/config.rpath (wl, with_gnu_ld)
7522         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
7523         Treat msys like cygwin.
7525 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7527         regex: now back in sync with glibc
7528         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
7529         regexec.c got merged into glibc and are now copies again.
7531 2019-10-27  Bruno Haible  <bruno@clisp.org>
7533         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
7534         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
7535         statement.
7536         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
7537         32-bit CPUs.
7539 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
7541         timespec-add, timespec-sub: simplify
7542         * lib/timespec-add.c (timespec_add):
7543         * lib/timespec-sub.c (timespec_sub):
7544         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
7545         work on unsigned integers.
7547 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
7549         nstrftime: speed up integer overflow checking
7550         * lib/nstrftime.c: Include intprops.h.
7551         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
7552         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
7553         instead of doing it by hand.
7554         * modules/nstrftime (Depends-on): Add intprops.
7556         Port better to GCC under macOS
7557         Work around macOS header that has ‘#define __has_builtin(x) 0’
7558         when compiled by GCC.  Apple really, really doesn’t want you to
7559         use GCC, apparently.  Rroblem reported by Akim Demaille in:
7560         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
7561         The fix is to not trust __has_builtin when being compiled by
7562         recent-enough GCC.
7563         * lib/intprops.h (__has_builtin)
7564         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
7565         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
7566         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
7567         Remove.  All uses removed.
7568         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
7569         directly, if defined and if not newer GCC.
7570         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
7571         New macro, that use __has_builtin directly, if defined and if
7572         not newer GCC.
7573         (assume): Use them.
7575 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
7577         maintainer-makefile: update rule for argmatch.
7578         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
7580 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
7582         bitset: let freeing functions accept NULL.
7583         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
7584         given NULL.
7585         * lib/bitset.h: Document that.
7586         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
7588 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
7590         inttypes: use more-robust test for int range
7591         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
7592         Problem reported by Dagobert Michelsen in:
7593         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
7594         * lib/inttypes.in.h: Rely only on limits.h when checking
7595         int range.
7597 2019-10-15  Bruno Haible  <bruno@clisp.org>
7599         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
7600         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
7601         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
7602         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
7603         term_ostream_set_hyperlink): New functions.
7604         (term_styled_ostream_get_hyperlink_ref,
7605         term_styled_ostream_get_hyperlink_id,
7606         term_styled_ostream_set_hyperlink): New function aliases.
7608 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7610         update-copyright: use en dashes in .texi ranges
7611         * build-aux/update-copyright: Match year ranges like "1998--2019",
7612         which are used in the Autoconf manual.  Also, update ranges in
7613         .tex, .texi, and .texinfo files to use en dashes instead of
7614         hyphens.
7616 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
7618         * config/srclist.txt: Remove posix/regex_internal.c for now.
7620 2019-10-13  Bruno Haible  <bruno@clisp.org>
7622         git-version-gen: Allow 'snapshot' as .tarball-version contents.
7623         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
7624         contents to the empty string.
7626 2019-10-12  Bruno Haible  <bruno@clisp.org>
7628         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
7629         * tests/test-intprops.c (main): Disable two more tests when using
7630         HP-UX cc.
7632 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7634         Simplify and regularize regex use of ‘assert’
7635         Also, tell GCC about the asserts even when compiling without
7636         debugging, to give it further optimization opportunities.
7637         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
7638         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
7639         (parse_expression, parse_bracket_exp):
7640         * lib/regex_internal.c (build_wcs_buffer)
7641         (build_wcs_upper_buffer, re_string_reconstruct)
7642         (re_string_context_at):
7643         * lib/regexec.c (re_search_stub, re_copy_regs)
7644         (re_search_internal, prune_impossible_nodes, check_matching)
7645         (check_halt_state_context, set_regs, sift_states_backward)
7646         (build_sifted_states, transit_state_mb, transit_state_bkref)
7647         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
7648         (match_ctx_add_subtop):
7649         Use it instead of plain ‘assert’.
7651 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
7653         regex: omit debug assignment when not debugging
7654         * lib/regexec.c (re_search_internal) [!DEBUG]:
7655         Remove unnecessary assignment.
7657         regex: tell compiler there’s at most 256 arcs out
7658         Partly this is to help the reader (and maybe help GCC);
7659         partly this is to pacify Coverity.
7660         * lib/regex_internal.h: Include verify.h.
7661         * lib/regexec.c (group_nodes_into_DFAstates):
7662         Tell the compiler that ndests cannot exceed SBC_MAX.
7663         * modules/regex (Depends-on): Add ‘verify’.
7665         regex: simplify by assuming C99
7666         * config/srclist.txt: Comment out regex_internal.h and regexec.c
7667         temporarily.
7668         * lib/regex_internal.h (lock_define, re_match_context_t):
7669         Simplify by assuming C99 macros and const.
7670         * lib/regexec.c (re_search_internal): Simplify by assuming C99
7671         initializers.  Remove unnecessary assignment, as mctx is now
7672         safely initialized earlier.
7674         regex: avoid copying of uninitialized storage
7675         * config/srclist.txt: Comment out regcomp.c temporarily.
7676         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
7677         Initialize even when not checking for lint, as the behavior is
7678         arguably undefined otherwise and Coverity warns about it.
7680 2019-10-06  Bruno Haible  <bruno@clisp.org>
7682         access tests: Fix test failure when run as root.
7683         * tests/test-access.c: Include root-uid.h.
7684         (geteuid): Define fallback.
7685         (main): Don't expect that writing to a read-only file would fail when
7686         running as root. Also, remove the created files at the end.
7687         * modules/access-tests (Depends-on): Add root-uid.
7688         (configure.ac): Test whether geteuid exists.
7690 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
7692         users.txt: add GNU nano
7693         Nano has been making use of gnulib since March 2017, version 2.8.0.
7695 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7697         bootstrap: simplify debugging of wget failures
7698         Problem reported by Tim Rühsen in:
7699         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
7700         * build-aux/bootstrap (po_download_command_format):
7701         Invoke wget with -nv instead of -q, to make debugging easier.
7703 2019-09-29  Bruno Haible  <bruno@clisp.org>
7705         avltree-list: Fix compilation warning (introduced on 2014-09-16).
7706         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
7707         'const' attribute.
7709 2019-09-29  Bruno Haible  <bruno@clisp.org>
7711         fbufmode: Fix compilation error on glibc >= 2.28 systems.
7712         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
7714 2019-09-28  Bruno Haible  <bruno@clisp.org>
7716         Update comments that refer to POSIX.
7717         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
7718         sentence about trailing slashes.
7719         * lib/fflush.c: Clarify the reasoning.
7720         * tests/test-fflush2.c: Cite the relevant sentence.
7722 2019-09-28  Bruno Haible  <bruno@clisp.org>
7724         access: Document limitations on Windows.
7725         Suggested by Zaretskii <eliz@gnu.org>.
7726         * doc/posix-functions/access.texi: Mention two limitations on Windows.
7728 2019-09-28  Bruno Haible  <bruno@clisp.org>
7730         findprog-in: Fix comment.
7731         Reported by Eli Zaretskii <eliz@gnu.org>.
7732         * lib/findprog.h (find_in_given_path): Extend description of EACCES
7733         condition.
7734         * lib/stat.c (rpl_stat): Fix typo in comment.
7735         * lib/utime.c (_gl_utimens_windows): Likewise.
7737 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7739         Update URLs and associated text
7740         (Thanks to Bruno Haible for proofreading this patch.)
7741         Prefer https: to http: in URLs where either will do, for the usual
7742         security reasons.  I also updated broken and/or moved URLs
7743         discovered during the process. In a few places I had to resort to
7744         archive.org, since I didn't find the originals elsewhere.
7746 2019-09-15  Paul Smith  <psmith@gnu.org>
7747             Bruno Haible  <bruno@clisp.org>
7749         findprog-in: Set errno when the search fails.
7750         * lib/findprog-in.c: Include <errno.h>.
7751         (find_in_given_path): Set errno before returning NULL.
7752         * lib/findprog.h (find_in_given_path): Update comment accordingly.
7753         Define the term "slash".
7755 2019-09-15  Bruno Haible  <bruno@clisp.org>
7757         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
7758         * modules/findprog (Depends-on): Add access.
7759         * modules/findprog-lgpl (Depends-on): Likewise.
7760         * modules/findprog-in (Depends-on): Likewise.
7762 2019-09-15  Bruno Haible  <bruno@clisp.org>
7764         access: Add tests.
7765         * tests/test-access.c: New file.
7766         * modules/access-tests: New file.
7768         access: New module.
7769         * lib/unistd.in.h (access): New declaration.
7770         * lib/access.c: New file.
7771         * m4/access.m4: New file.
7772         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
7773         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
7774         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
7775         REPLACE_ACCESS.
7776         * modules/access: New file.
7777         * tests/test-unistd-c++.cc (access): Check signature.
7778         * doc/posix-functions/access.texi: Mention the new module.
7780 2019-09-15  Bruno Haible  <bruno@clisp.org>
7782         fcntl-h: Fix compilation error of creat.c on MSVC.
7783         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
7784         defined.
7786 2019-09-15  Bruno Haible  <bruno@clisp.org>
7788         creat: Add tests.
7789         * tests/test-creat.c: New file, based on tests/test-open.h.
7790         * modules/creat-tests: New file.
7792         creat: New module.
7793         * lib/fcntl.in.h (creat): New declaration.
7794         * lib/creat.c: New file, based on lib/open.c.
7795         * m4/creat.m4: New file.
7796         * m4/open-slash.m4: New file, extracted from m4/open.m4.
7797         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
7798         Invoke gl_OPEN_TRAILING_SLASH_BUG.
7799         * modules/open (Files): Add m4/open-slash.m4.
7800         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
7801         REPLACE_CREAT.
7802         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
7803         * modules/creat: New file.
7804         * tests/test-fcntl-h-c++.cc (creat): Check signature.
7805         * doc/posix-functions/creat.texi: Mention the new module.
7807 2019-09-15  Bruno Haible  <bruno@clisp.org>
7809         open tests: Enhance test.
7810         * tests/test-open.h (test_open): Test the creation of an executable
7811         regular file. Also improve initial cleanup.
7813 2019-09-15  Bruno Haible  <bruno@clisp.org>
7815         intprops tests: Avoid build failure with HP-UX cc.
7816         * tests/test-intprops.c: Disable a check that makes HP cc choke with
7817         "error 4018: Macro param too large after substitution - use -H option.".
7819 2019-09-14  Bruno Haible  <bruno@clisp.org>
7821         Make autoconf tests work with -Werror=implicit-function-declaration.
7822         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
7823         towupper() declaration.
7824         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
7825         declaration.
7827 2019-09-14  Bruno Haible  <bruno@clisp.org>
7829         findprog-in: Better mimic the system on native Windows.
7830         Reported by Paul Smith <psmith@gnu.org>.
7831         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
7832         non-empty suffixes when the file name already contains a '.'.
7834 2019-09-10  Bruno Haible  <bruno@clisp.org>
7836         wctob: Fix autoconf test.
7837         Based on patch by Florian Weimer <fweimer@redhat.com>.
7838         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
7840 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
7842         xhash: provide hash_xinitialize.
7843         Suggested by Egor Pugin <egor.pugin@gmail.com>
7844         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
7845         * modules/xhash, lib/xhash.c: New.
7846         * lib/hash.h (hash_xinitialize): New.
7848 2019-09-09  Bruno Haible  <bruno@clisp.org>
7850         findprog-in: Make exec optimization optional.
7851         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
7852         (find_in_given_path): Add optimize_for_exec parameter.
7853         * lib/findprog-in.c (find_in_given_path): Likewise.
7855 2019-09-08  Bruno Haible  <bruno@clisp.org>
7857         Add option to assume the best, not the worst, when cross-compiling.
7858         Suggested by Jonas Termansen <sortie@maxsi.org>.
7859         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
7860         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
7861         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
7862         lt_cv_sys_argz_works.
7863         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
7864         ac_cv_func_calloc_0_nonnull.
7865         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
7866         --enable-cross-guesses for gl_cv_func_realpath_works.
7867         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
7868         gl_cv_func_cbrtl_ieee.
7869         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
7870         gl_cv_func_ceil_ieee.
7871         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
7872         gl_cv_func_ceilf_ieee.
7873         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
7874         gl_cv_func_ceill_ieee.
7875         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
7876         ac_cv_func_chown_works.
7877         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
7878         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
7879         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
7880         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
7881         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
7882         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
7883         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
7884         gl_cv_func_expl_works.
7885         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
7886         gl_cv_func_expm1_ieee.
7887         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
7888         gl_cv_func_expm1l_works.
7889         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
7890         gl_cv_func_open_directory_works.
7891         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
7892         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
7893         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
7894         gl_cv_func_fchownat_empty_filename_works.
7895         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
7896         gl_cv_func_fdopendir_works.
7897         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
7898         gl_cv_func_floor_ieee.
7899         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
7900         gl_cv_func_floorf_ieee.
7901         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
7902         gl_cv_func_fma_works.
7903         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
7904         gl_cv_func_fmaf_works.
7905         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
7906         gl_cv_func_fmal_works.
7907         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
7908         gl_cv_func_fmod_ieee.
7909         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
7910         gl_cv_func_fmodf_ieee.
7911         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
7912         gl_cv_func_fmodl_ieee.
7913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
7914         gl_cv_func_fpurge_works.
7915         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
7916         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
7917         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
7918         gl_cv_func_getcwd_null.
7919         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
7920         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
7921         gl_cv_func_working_getdelim.
7922         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
7923         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
7924         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
7925         gl_cv_func_getgroups_works.
7926         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
7927         am_cv_func_working_getline.
7928         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
7929         for gl_cv_func_getopt_gnu.
7930         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
7931         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
7932         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
7933         gl_cv_func_hypot_ieee.
7934         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
7935         gl_cv_func_hypotf_ieee.
7936         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
7937         gl_cv_func_hypotl_ieee.
7938         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
7939         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
7940         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
7941         gl_cv_func_link_works.
7942         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
7943         gl_cv_func_linkat_slash.
7944         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
7945         gl_cv_func_log_ieee.
7946         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
7947         gl_cv_func_logf_ieee.
7948         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
7949         gl_cv_func_logl_works.
7950         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
7951         gl_cv_func_log10_ieee.
7952         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
7953         gl_cv_func_log10f_ieee.
7954         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
7955         gl_cv_func_log10l_works.
7956         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
7957         gl_cv_func_log1p_ieee.
7958         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
7959         gl_cv_func_log1pf_ieee.
7960         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
7961         gl_cv_func_log1pl_ieee.
7962         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
7963         gl_cv_func_log2_ieee.
7964         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
7965         gl_cv_func_log2f_ieee.
7966         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
7967         --enable-cross-guesses for
7968         gl_cv_func_lstat_dereferences_slashed_symlink.
7969         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
7970         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
7971         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
7972         gl_cv_C_locale_sans_EILSEQ.
7973         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
7974         gl_cv_func_memchr_works.
7975         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
7976         gl_cv_func_memmem_works_always.
7977         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
7978         gl_cv_func_memmem_works_fast.
7979         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
7980         gl_cv_func_mkdir_trailing_slash_works,
7981         gl_cv_func_mkdir_trailing_dot_works.
7982         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
7983         gl_cv_func_mkfifo_works.
7984         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
7985         gl_cv_func_mknod_works.
7986         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
7987         gl_cv_func_working_mkstemp.
7988         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
7989         gl_cv_func_working_mktime.
7990         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
7991         gl_cv_func_modf_ieee.
7992         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
7993         gl_cv_func_modff_ieee.
7994         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
7995         gl_cv_func_modfl_ieee.
7996         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
7997         gl_cv_func_nanosleep.
7998         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
7999         gl_cv_func_perror_works.
8000         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
8001         gl_cv_func_printf_sizes_c99.
8002         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
8003         gl_cv_func_printf_infinite.
8004         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
8005         gl_cv_func_printf_infinite_long_double.
8006         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
8007         gl_cv_func_printf_directive_a.
8008         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
8009         gl_cv_func_printf_directive_f.
8010         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
8011         gl_cv_func_printf_flag_zero.
8012         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
8013         gl_cv_func_printf_enomem.
8014         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
8015         gl_cv_func_snprintf_truncation_c99.
8016         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
8017         gl_cv_func_snprintf_retval_c99.
8018         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
8019         gl_cv_func_snprintf_directive_n.
8020         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
8021         gl_cv_func_vsnprintf_zerosize_c99.
8022         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
8023         gl_cv_func_pselect_detects_ebadf.
8024         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8025         Obey --enable-cross-guesses for
8026         gl_cv_pthread_rwlock_rdlock_prefer_writer.
8027         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
8028         gl_cv_func_ptsname_sets_errno.
8029         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
8030         gl_cv_func_svid_putenv.
8031         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
8032         gl_cv_func_readlink_works.
8033         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
8034         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
8035         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
8036         gl_cv_func_re_compile_pattern_working.
8037         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
8038         gl_cv_func_remainder_ieee.
8039         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
8040         gl_cv_func_remainderf_ieee.
8041         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
8042         gl_cv_func_remainderl_ieee.
8043         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
8044         gl_cv_func_rintl_works.
8045         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
8046         gl_cv_func_rmdir_works.
8047         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
8048         gl_cv_func_round_ieee.
8049         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
8050         gl_cv_func_roundf_ieee.
8051         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
8052         gl_cv_func_roundl_ieee.
8053         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
8054         gl_cv_func_select_detects_ebadf.
8055         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
8056         gl_cv_func_setenv_works.
8057         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
8058         gl_cv_func_unsetenv_works.
8059         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
8060         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
8061         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
8062         gl_cv_func_sleep_works.
8063         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
8064         gl_cv_func_stat_file_slash.
8065         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
8066         gl_cv_func_stpncpy.
8067         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
8068         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
8069         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
8070         gl_cv_func_strcasestr_linear.
8071         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
8072         gl_cv_func_working_strerror.
8073         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
8074         gl_cv_func_strerror_0_works.
8075         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
8076         --enable-cross-guesses for gl_cv_func_strerror_r_works.
8077         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
8078         gl_cv_func_strstr_works_always.
8079         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
8080         gl_cv_func_strstr_linear.
8081         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
8082         gl_cv_func_strtod_works.
8083         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
8084         gl_cv_func_strtold_works.
8085         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
8086         gl_cv_func_symlink_works.
8087         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
8088         gl_cv_func_symlinkat_works.
8089         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
8090         gl_cv_func_trunc_ieee.
8091         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
8092         gl_cv_func_truncf_ieee.
8093         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
8094         gl_cv_func_truncl_ieee.
8095         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
8096         gl_cv_func_tzset_clobber.
8097         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
8098         gl_cv_func_ungetc_works.
8099         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
8100         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
8101         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
8102         gl_cv_func_usleep_works.
8103         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
8104         gl_cv_func_futimesat_works.
8105         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
8106         gl_cv_func_working_utimes.
8107         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
8108         gl_cv_func_wcwidth_works.
8109         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
8110         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
8111         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
8112         links for testing. Obey --enable-cross-guesses for
8113         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
8114         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
8116 2019-09-08  Bruno Haible  <bruno@clisp.org>
8118         Clarify that cross-compilation guesses are guesses.
8119         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
8120         cross-compiling.
8122 2019-09-08  Bruno Haible  <bruno@clisp.org>
8124         chown: Fix configure output (regression from 2019-03-23).
8125         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
8126         gl_cv_func_chown_follows_symlink variable.
8128 2019-09-08  Bruno Haible  <bruno@clisp.org>
8130         findprog-in: New module.
8131         Suggested by Paul Smith <psmith@gnu.org>.
8132         * lib/findprog.h (find_in_given_path): New declaration.
8133         * lib/findprog-in.c: New file, based on lib/findprog.c.
8134         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
8135         * modules/findprog-in: New file.
8137 2019-09-08  Bruno Haible  <bruno@clisp.org>
8139         findprog: Remove unused dependency.
8140         * modules/findprog (Depends-on): Remove strdup.
8142 2019-09-08  Bruno Haible  <bruno@clisp.org>
8144         findprog: Remove test that is obsolete since 2006-04-24.
8145         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
8147 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8149         bitset: style changes
8150         * lib/bitset/vector.c (vbitset_resize): Factor computation.
8151         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
8152         xzalloc to xcalloc.
8153         Suggested by Paul Eggert.
8155 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
8157         bitset: check memory allocation
8158         Reported by 江 祖铭 (Zu-Ming Jiang).
8159         With help from Paul Eggert.
8160         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
8161         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
8162         instead of realloc.
8163         When shrinking, accept failures.
8164         * lib/bitset/vector.c (vbitset_resize): Likewise.
8166 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
8168         scratch_buffer: sync from glibc
8169         * config/srclist.txt: Add the scratch_buffer source
8170         code from glibc, since these should be in sync.
8171         Autoupdate.
8173 2019-09-07  Bruno Haible  <bruno@clisp.org>
8175         doc: Update for glibc 2.30.
8176         * doc/glibc-functions/gettid.texi: New file.
8177         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
8178         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
8179         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
8180         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
8181         * doc/glibc-functions/sem_clockwait.texi: New file.
8182         * doc/glibc-functions/tgkill.texi: New file.
8183         * doc/glibc-functions/twalk_r.texi: New file.
8184         * doc/gnulib.texi: Include them.
8185         (Glibc semaphore.h): New section.
8186         * doc/pastposix-functions/h_errno.texi: Update.
8187         * doc/posix-functions/*.texi: Likewise.
8189 2019-09-06  Bruno Haible  <bruno@clisp.org>
8191         symlink tests: Avoid test failure on Linux with Lustre file system.
8192         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
8193         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
8194         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
8196 2019-09-01  Bruno Haible  <bruno@clisp.org>
8198         gitsub.sh: Add support for shallow-cloning of subdirectories.
8199         * top/gitsub.sh (func_usage): Document allowed git options with
8200         'git pull'.
8201         (func_pull): Accept GIT_OPTIONS argument.
8202         (pull): Parse git options before complaining about too many arguments.
8203         Pass the git options to func_pull.
8205 2019-08-29  Bruno Haible  <bruno@clisp.org>
8207         lock: Fix cross-compilation guesses.
8208         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
8209         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
8210         platforms.
8212 2019-08-28  Bruno Haible  <bruno@clisp.org>
8214         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
8215         Reported by Martin Storsjö <martin@martin.st> in
8216         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
8217         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
8218         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
8219         files from GCC 6 or newer, use an override through '#define', because
8220         the inline definitions in the platform's <cmath> cannot be overridden
8221         in another way.
8223 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8225         Revert macOS INT_MULTIPLY_WRAPV patch
8226         Problem reported by Bruno Haible in:
8227         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
8228         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
8229         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8230         Go back to working around the Clang bug on macOS.
8232 2019-08-27  Bruno Haible  <bruno@clisp.org>
8234         libtool-next-version: Fix error output.
8235         * build-aux/libtool-next-version (func_fatal_error): Fix the program
8236         name.
8238 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8240         Speed up INT_MULTIPLY_WRAPV on macOS
8241         Assume that __builtin_mul_overflow works OK with Clang on macOS.
8242         Mattias Engdegård says it’s safe to assume the relevant library
8243         is always available there.
8244         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
8245         New temporary internal macro.
8246         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
8247         No need to work around the Clang bug on macOS.
8249 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
8251         intprops.h, verify.h: port better to clang
8252         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8253         with Clang.  Problem reported privately by Mattias Engdegård.
8254         Also, insulate intprops.h and verify.h better against each other’s
8255         definitions of __has_builtin on non-Clang hosts.
8256         * lib/intprops.h (__has_builtin): Define a temporary substitute
8257         if __has_builtin is not already defined.
8258         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8259         New temporary internal macros.
8260         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
8261         Now two separate macros, replacing the old
8262         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
8263         __builtin_mul_overflow is like the rest.  All uses changed.
8264         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
8265         Adjust to above changes.
8266         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
8267         longer relevant.  All uses changed.
8268         * lib/verify.h (__has_builtin): Treat like intprops.h,
8269         so that the two .h files do not collide with each other.
8270         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
8271         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
8273 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
8275         intprops: say why not Clang __builtin_add_overflow
8276         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
8277         Mention Clang in comment, responding to a query from
8278         Mattias Engdegård.
8280 2019-08-24  Bruno Haible  <bruno@clisp.org>
8282         doc: Document most of the files outside of modules.
8283         * doc/gnulib.texi (Build Infrastructure Files,
8284         Release Management Files): New chapters.
8286 2019-08-24  Bruno Haible  <bruno@clisp.org>
8288         bootstrap: Keep in sync with the 'gettext' module.
8289         Reported by Assaf Gordon in
8290         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
8291         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
8292         * build-aux/po/remove-potcdate.sin: Likewise.
8294 2019-08-24  Bruno Haible  <bruno@clisp.org>
8296         crypto/gc-sha512: Add tests.
8297         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
8298         * modules/crypto/gc-sha512-tests: New file.
8300         crypto/gc-sha256: Add tests.
8301         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
8302         * modules/crypto/gc-sha256-tests: New file.
8304         crypto/gc-sha256, crypto/gc-sha512: New modules.
8305         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
8306         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
8307         (MAX_DIGEST_SIZE): Set to 64.
8308         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
8309         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
8310         (gc_sha256, gc_sha512): New functions.
8311         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
8312         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
8313         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
8315 2019-08-24  Bruno Haible  <bruno@clisp.org>
8317         crypto/gc-sha1 tests: Improve output when the test fails.
8318         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
8319         output.
8321 2019-08-24  Bruno Haible  <bruno@clisp.org>
8323         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
8324         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
8325         LIBGCRYPT_HAS_MD_SM3.
8326         * lib/gc-libgcrypt.c: Include sm3.h.
8327         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
8328         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
8329         implementation if libgcrypt does not support SM3.
8331 2019-08-24  Bruno Haible  <bruno@clisp.org>
8333         crypto/gc-md2: Optimize and clarify code.
8334         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
8335         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
8336         is not needed.
8338 2019-08-24  Bruno Haible  <bruno@clisp.org>
8340         crypto/gc-md2: Add comment.
8341         * lib/gc-libgcrypt.c: Add comment.
8343 2019-08-24  Bruno Haible  <bruno@clisp.org>
8345         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
8346         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
8347         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
8348         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
8349         variable.
8351 2019-08-24  Bruno Haible  <bruno@clisp.org>
8353         crypto/gc: Fix link error with --with-libgcrypt.
8354         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
8355         AC_LIB_HAVE_LINKFLAGS invocation.
8357 2019-08-24  Bruno Haible  <bruno@clisp.org>
8359         crypto/gc: Access the module indicators correctly.
8360         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
8361         * lib/gc-libgcrypt.c: Likewise.
8363 2019-08-24  Bruno Haible  <bruno@clisp.org>
8365         crypto/gc: Fix configuration with --with-libgcrypt.
8366         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
8367         * modules/crypto/gc (Files): Add it.
8368         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
8370 2019-08-24  Bruno Haible  <bruno@clisp.org>
8372         Remove unused file.
8373         * m4/stat-macros.m4: Remove file.
8375 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
8377         New strip-trailing-space option for srclist-update
8378         * config/srclist-update (fixfile): Support new option.
8379         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
8380         Use it.
8382 2019-08-20  Eric Blake  <eblake@redhat.com>
8384         accept4: Support SOCK_NONBLOCK, if defined
8385         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
8387         accept4: Fix compilation when native accept4() exists.
8388         Reported by Richard W.M. Jones <rjones@redhat.com> in
8389         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
8390         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
8392 2019-08-18  Bruno Haible  <bruno@clisp.org>
8394         Defeat -flto GCC optimization in math autoconf tests.
8395         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
8396         at <https://savannah.gnu.org/bugs/?56109>.
8397         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
8398         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
8399         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8400         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8401         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8402         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
8403         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8404         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
8405         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
8406         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8407         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8408         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8410 2019-08-17  Bruno Haible  <bruno@clisp.org>
8412         windows-spin: Implement declared functions.
8413         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8414         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
8415         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
8416         name.
8418 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
8420         intprops: port to Oracle Developer Studio 12.6
8421         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
8422         typos that were in a section not compiled by GCC.
8424 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
8426         intprops: support uchar, ushort _WRAPV dests
8427         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
8428         when __builtin_add_overflow etc. and _Generic are not used.
8429         (_GL_INT_OP_WRAPV): Use it to support destinations that
8430         are unsigned char or unsigned short, even in compilers
8431         that lack __typeof__ and are not C11-compatible.
8433         intprops: pacify picky GCC
8434         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
8435         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
8436         possibly-incorrect result.
8437         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
8438         about (A) used as a boolean, when A is an expression like 3 * 4.
8440         intprops: support unsigned *_WRAPV results
8441         Add support for unsigned, unsigned long, and unsigned long long
8442         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
8443         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
8444         bug with unsigned inputs reported by Eli Zaretskii in:
8445         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
8446         * config/srclist.txt: Break the glibc connection for intprops.h
8447         temporarily, while more testing is done in Gnulib-using apps.
8448         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
8449         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
8450         Support unsigned results no narrower than unsigned int.  Report
8451         overflow correctly if some arguments are unsigned.
8452         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
8453         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
8454         the right thing with narrow args.
8455         (_GL_INT_OP_CALC1): Remove.  All callers removed.
8456         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
8457         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
8458         * tests/test-intprops.c: Check for bugs and test new behavior.
8460 2019-08-14  Bruno Haible  <bruno@clisp.org>
8462         get_progname_of: New module.
8463         * lib/get_progname_of.h: New file.
8464         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
8465         * lib/getprogname.c (getprogname): Tweak coding style.
8466         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
8467         * modules/get_progname_of: New file.
8469 2019-08-14  Bruno Haible  <bruno@clisp.org>
8471         get_ppid_of: New module.
8472         * lib/get_ppid_of.h: New file.
8473         * lib/get_ppid_of.c: New file.
8474         * modules/get_ppid_of: New file.
8476 2019-08-13  Bruno Haible  <bruno@clisp.org>
8478         libtextstyle-optional tests: Support the NO_COLOR environment variable.
8479         * tests/test-libtextstyle.c (main): Do not emit styling when the
8480         environment variable NO_COLOR is set.
8482 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
8484         verify: improve diagnostic quality in recent GCC
8485         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
8486         useful line number containing the top-level caller of the macro.
8487         So, bring back the older way of issuing a diagnostic containing
8488         the top-level call’s arg, so that it is easier to diagnose
8489         ‘verify’ failures with recent GCC.
8490         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
8491         Bring back DIAGNOSTIC arg.  All callers changed.
8492         (verify): Just use _GL_VERIFY.
8494 2019-08-11  Bruno Haible  <bruno@clisp.org>
8496         localcharset: Add more aliases for OS/2.
8497         Based on patch by KO Myung-Hun <komh78@gmail.com> in
8498         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
8499         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
8501 2019-08-10  Eric Blake  <eblake@redhat.com>
8503         configmake: Update advice on usage.
8504         * modules/configmake (Include): No longer necessary to include
8505         last, since configmake.h itself worries about collision avoidance.
8507 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
8509         parse-datetime: fix 'T' military timezone handling
8510         * lib/parse-datetime.y (zone):
8511         follow-up to the previous commit: the 'T' case is handled outside the
8512         conversion table (used as either military timezone UTC-7 or ISO8601
8513         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
8514         timezone letters.
8516 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
8518         parse-datetime: fix military timezone letters
8519         Problem and trivial fix reported by Neil Hoggarth in:
8520         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
8521         * lib/parse-datetime.y (military_table):
8522         Do it the right way, not the RFC 822 way.
8524 2019-08-08  Eric Blake  <eblake@redhat.com>
8526         configmake: Avoid namespace pollution issue on mingw.
8527         * modules/configmake (Makefile.am): If the project uses
8528         <winsock2.h>, include that header before defining DATADIR.
8530 2019-07-28  Bruno Haible  <bruno@clisp.org>
8532         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
8533         * tests/test-mbrtowc.c (main): Fix expected value of wc.
8535 2019-07-24  Bruno Haible  <bruno@clisp.org>
8537         pthread-h: Fix definitions of types and macros on mingw.
8538         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
8539         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
8540         not in use.
8541         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
8542         'pthread-once' is not in use.
8543         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
8544         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
8545         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
8546         in use.
8547         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
8548         Define also when module 'pthread-rwlock' is not in use.
8549         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
8550         also when module 'pthread-cond' is not in use.
8551         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
8552         'pthread-tss' is not in use.
8553         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
8554         use.
8556 2019-07-24  Simon Josefsson  <simon@josefsson.org>
8558         crypto/gc: Cope with libgcrypt without SM3.
8559         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
8561 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
8563         backupfile: fix resource leak on memory failure
8564         Problem found by Coverity (CID 1484214).
8565         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
8567 2019-07-22  Bruno Haible  <bruno@clisp.org>
8569         Avoid missing-declarations warning in various tests.
8570         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
8571         test6, test_optional, test7, test8, test9, test10, test11, test12,
8572         test13, test14, test15, test_fun): Declare static.
8573         * tests/test-cnd.c (test_cnd_wait): Likewise.
8574         * tests/test-cond.c (test_cond): Likewise.
8576 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
8578         pthread tests: Avoid missing-declarations warning.
8579         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
8581 2019-07-19  Bruno Haible  <bruno@clisp.org>
8583         parse-datetime: Avoid warnings from bison versions >= 3.3.
8584         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
8585         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
8587 2019-07-19  Bruno Haible  <bruno@clisp.org>
8589         parse-datetime: Require Bison 2.4 or newer.
8590         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
8591         Code taken from gettext's intl.m4.
8592         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
8593         of YACC.
8595 2019-07-19  Bruno Haible  <bruno@clisp.org>
8597         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
8598         * lib/areadlink-with-size.c: Include <string.h>.
8599         * lib/areadlinkat-with-size.c: Likewise.
8600         * lib/xgethostname.c: Likewise.
8601         * lib/xgetdomainname.c: Likewise.
8603 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
8605         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
8606         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
8607         "%pure-parser".  The former is available since Bison 2.3b (2008),
8608         while the latter is marked as obsolete since version 3.4 (May 2019).
8610 2019-07-16  Bruno Haible  <bruno@clisp.org>
8612         update-copyright: Make it work again (regression from 2019-06-15).
8613         Reported by Brian C. Lane <bcl@redhat.com>.
8614         * build-aux/update-copyright: Add back the -0777, -p, -i options.
8616 2019-07-14  Bruno Haible  <bruno@clisp.org>
8618         doc: Update info about <pthread.h>.
8619         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
8620         of 'pthread'.
8622 2019-07-14  Bruno Haible  <bruno@clisp.org>
8624         pthread_sigmask tests: Use new multithread modules.
8625         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
8626         glthread/thread.h.
8627         (main_thread, killer_thread): Change type to pthread_t.
8628         (main): Update accordingly.
8629         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
8630         thread.
8632 2019-07-14  Bruno Haible  <bruno@clisp.org>
8634         pthread-tss: Add tests.
8635         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
8636         tests/test-tss.c.
8637         * modules/pthread-tss-tests: New file.
8639 2019-07-14  Bruno Haible  <bruno@clisp.org>
8641         pthread-cond: Add tests.
8642         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
8643         tests/test-cnd.c.
8644         * modules/pthread-cond-tests: New file.
8646 2019-07-14  Bruno Haible  <bruno@clisp.org>
8648         pthread-rwlock: Add tests.
8649         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
8650         * modules/pthread-rwlock-tests: New file.
8652 2019-07-14  Bruno Haible  <bruno@clisp.org>
8654         pthread-mutex: Add tests.
8655         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
8656         tests/test-mtx.c.
8657         * modules/pthread-mutex-tests: New file.
8659 2019-07-14  Bruno Haible  <bruno@clisp.org>
8661         pthread-once: Add tests.
8662         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
8663         tests/test-call_once.c.
8664         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
8665         tests/test-mtx.c.
8666         * modules/pthread-once-tests: New file.
8668 2019-07-14  Bruno Haible  <bruno@clisp.org>
8670         pthread-thread: Add tests.
8671         * tests/test-pthread-thread.c: New file, based on
8672         tests/test-thread_create.c and tests/test-thrd_create.c.
8673         * modules/pthread-thread-tests: New file.
8675 2019-07-14  Bruno Haible  <bruno@clisp.org>
8677         pthread: Turn into a convenience module.
8678         * lib/pthread.in.h: Remove declarations for extern inline functions.
8679         * lib/pthread.c: Remove file.
8680         * modules/pthread (Files): Remove it.
8681         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
8682         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
8683         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
8684         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
8685         GNULIB_PTHREAD.
8686         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
8688 2019-07-14  Bruno Haible  <bruno@clisp.org>
8690         pthread-spin: New module.
8691         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
8692         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
8693         inline definitions.
8694         * lib/pthread-spin.c: New file.
8695         * m4/pthread-spin.m4: New file.
8696         * modules/pthread-spin: New file.
8697         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
8698         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
8699         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
8700         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
8701         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
8703 2019-07-14  Bruno Haible  <bruno@clisp.org>
8705         pthread-tss: New module.
8706         * lib/pthread-tss.c: New file.
8707         * m4/pthread-tss.m4: New file.
8708         * modules/pthread-tss: New file.
8709         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
8710         * doc/posix-functions/pthread_setspecific.texi: Likewise.
8711         * doc/posix-functions/pthread_getspecific.texi: Likewise.
8712         * doc/posix-functions/pthread_key_delete.texi: Likewise.
8714 2019-07-14  Bruno Haible  <bruno@clisp.org>
8716         pthread-cond: New module.
8717         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
8718         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
8719         * lib/pthread-cond.c: New file.
8720         * m4/pthread-cond.m4: New file.
8721         * modules/pthread-cond: New file.
8722         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
8723         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
8724         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
8725         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
8726         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
8727         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
8728         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
8729         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
8731 2019-07-14  Bruno Haible  <bruno@clisp.org>
8733         pthread-rwlock: New module.
8734         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
8735         * m4/pthread-rwlock.m4: New file.
8736         * modules/pthread-rwlock: New file.
8737         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
8738         and the Android problem.
8739         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
8740         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
8741         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
8742         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
8743         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
8744         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
8745         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
8746         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
8747         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
8748         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
8750 2019-07-14  Bruno Haible  <bruno@clisp.org>
8752         pthread-mutex: New module.
8753         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
8754         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
8755         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
8756         pthread_mutex_unlock): Remove inline definitions.
8757         * lib/pthread-mutex.c: New file.
8758         * m4/pthread-mutex.m4: New file.
8759         * modules/pthread-mutex: New file.
8760         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
8761         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
8762         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
8763         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
8764         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
8765         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
8766         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
8767         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
8768         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
8769         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
8770         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
8771         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
8773 2019-07-14  Bruno Haible  <bruno@clisp.org>
8775         pthread-once: New module.
8776         * lib/pthread-once.c: New file.
8777         * m4/pthread-once.m4: New file.
8778         * modules/pthread-once: New file.
8779         * doc/posix-functions/pthread_once.texi: Mention the new module.
8781 2019-07-14  Bruno Haible  <bruno@clisp.org>
8783         pthread-thread: New module.
8784         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
8785         inline definitions.
8786         * lib/pthread-thread.c: New file.
8787         * m4/pthread-thread.m4: New file.
8788         * modules/pthread-thread: New file.
8789         * doc/posix-functions/pthread_create.texi: Mention the new module.
8790         * doc/posix-functions/pthread_attr_init.texi: Likewise.
8791         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
8792         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
8793         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
8794         * doc/posix-functions/pthread_self.texi: Likewise.
8795         * doc/posix-functions/pthread_equal.texi: Likewise.
8796         * doc/posix-functions/pthread_detach.texi: Likewise.
8797         * doc/posix-functions/pthread_join.texi: Likewise.
8798         * doc/posix-functions/pthread_exit.texi: Likewise.
8800 2019-07-14  Bruno Haible  <bruno@clisp.org>
8802         pthread-h: Prepare for adding new modules.
8803         * lib/pthread.in.h: Define the types and macros for each of the
8804         facilities separately.
8805         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
8806         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8807         HAVE_PTHREAD_PROCESS_SHARED.
8808         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
8809         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
8810         HAVE_PTHREAD_PROCESS_SHARED.
8811         * modules/pthread-h (Makefile.am): Substitute
8812         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
8813         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
8815 2019-07-14  Bruno Haible  <bruno@clisp.org>
8817         pthread-h: Add declarations of essential pthread functions.
8818         * lib/pthread.in.h: Include snippets.
8819         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
8820         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
8821         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
8822         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
8823         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
8824         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
8825         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
8826         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
8827         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
8828         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
8829         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
8830         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
8831         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
8832         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
8833         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
8834         pthread_key_create, pthread_setspecific, pthread_getspecific,
8835         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
8836         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
8837         declarations.
8838         (pthread_mutex_timedlock): Move declaration.
8839         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
8840         declared.
8841         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
8842         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
8843         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
8844         HAVE_* and REPLACE_* variables for the new functions.
8845         * modules/pthread-h (Depends-on): Add snippet/c++defs,
8846         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
8847         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
8848         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
8849         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
8850         variables for the new functions. Split the sed script, to avoid the
8851         limit of 99 commands of HP-UX sed.
8852         * tests/test-pthread-c++.cc: Check the signature of the new functions.
8854 2019-07-14  Bruno Haible  <bruno@clisp.org>
8856         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
8857         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
8858         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
8859         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
8860         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
8861         * modules/pthread-h (Depends-on): Add threadlib.
8862         (Link): Change to $(LIBTHREAD).
8863         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
8864         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
8866 2019-07-14  Bruno Haible  <bruno@clisp.org>
8868         pthread-h: Add C++ tests.
8869         * tests/test-pthread-c++.cc: New file.
8870         * modules/pthread-h-c++-tests: New file.
8872 2019-07-14  Bruno Haible  <bruno@clisp.org>
8874         pthread-h: Add tests.
8875         * tests/test-pthread.c: New file.
8876         * modules/pthread-h-tests: New file.
8878 2019-07-14  Bruno Haible  <bruno@clisp.org>
8880         pthread-h: New module.
8881         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
8882         is 1.
8883         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
8884         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
8885         <pthread.h> pollutes the namespace; instead, prepare for generating a
8886         pthread.h always. Substitute HAVE_PTHREAD_H here.
8887         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
8888         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
8889         * modules/pthread-h: New file, based on modules/pthread.
8890         * modules/pthread: Rely on 'pthread-h'.
8891         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
8892         Update.
8893         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
8894         pthread.
8896 2019-07-14  Bruno Haible  <bruno@clisp.org>
8898         sched_yield: New module.
8899         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
8900         (sched_yield): New declaration.
8901         * lib/sched_yield.c: New file.
8902         * m4/sched_yield.m4: New file.
8903         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
8904         provide a replacement sched.h always. Test whether sched_yield is
8905         declared.
8906         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
8907         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
8908         (Makefile.am): Provide a replacement sched.h always. Substitute
8909         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
8910         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
8911         * modules/sched_yield: New file.
8912         * doc/posix-functions/sched_yield.texi: Mention the new module.
8914 2019-07-14  Bruno Haible  <bruno@clisp.org>
8916         windows-spin: New module.
8917         * lib/windows-spin.h: New file.
8918         * lib/windows-spin.c: New file.
8919         * modules/windows-spin: New file.
8921 2019-07-14  Bruno Haible  <bruno@clisp.org>
8923         windows-timedrwlock: New module.
8924         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
8925         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
8926         windows-cond.c.
8927         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
8928         redefinition conflict with windows-timedrwlock.h.
8929         * modules/windows-timedrwlock: New file.
8931 2019-07-14  Bruno Haible  <bruno@clisp.org>
8933         windows-rwlock: New module.
8934         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
8935         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
8936         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
8937         windows-initguard.h.
8938         (gl_rwlock_t): Define using glwthread_rwlock_t.
8939         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
8940         (glthread_rwlock_init): Define using glwthread_rwlock_init.
8941         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
8942         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
8943         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
8944         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
8945         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
8946         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
8947         glthread_rwlock_destroy_func): Remove declarations.
8948         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
8949         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
8950         gl_waitqueue_notify_all, glthread_rwlock_init_func,
8951         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
8952         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
8953         functions.
8954         * modules/windows-rwlock: New file.
8955         * modules/lock (Depends-on): Add windows-rwlock.
8957 2019-07-14  Bruno Haible  <bruno@clisp.org>
8959         windows-thread: Add support for creating a thread in detached state.
8960         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
8961         (glwthread_thread_create): Add attr argument.
8962         * lib/windows-thread.c (glwthread_thread_create): Likewise.
8963         * lib/glthread/thread.h (glthread_create): Update.
8964         * lib/thrd.c (thrd_create): Update.
8966 2019-07-14  Bruno Haible  <bruno@clisp.org>
8968         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
8969         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
8970         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
8971         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
8972         * lib/windows-mutex.h: Update.
8973         * lib/windows-recmutex.h: Likewise.
8974         * lib/windows-timedmutex.h: Likewise.
8975         * lib/windows-timedrecmutex.h: Likewise.
8976         * lib/windows-cond.h: Likewise.
8977         * lib/glthread/lock.h: Likewise.
8978         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
8979         lib/windows-spinlock.h.
8980         * modules/windows-recmutex (Files): Likewise.
8981         * modules/windows-timedmutex (Files): Likewise.
8982         * modules/windows-timedrecmutex (Files): Likewise.
8983         * modules/windows-cond (Files): Likewise.
8984         * modules/threads-h (Files): Likewise.
8986 2019-07-14  Bruno Haible  <bruno@clisp.org>
8988         doc: Fix info about pthread API in HP-UX.
8989         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
8991 2019-07-14  Bruno Haible  <bruno@clisp.org>
8993         threads-h: Fix generation of threads.h.
8994         * modules/threads-h (Makefile.am): Insert the required header file
8995         snippets.
8997 2019-07-09  Bruno Haible  <bruno@clisp.org>
8999         striconveh test: Fix a compilation failure when iconv is not available.
9000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9001         * tests/test-striconveh.c (main): Move iconv_close invocations inside
9002         HAVE_ICONV.
9004 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
9006         argmatch: adjust columns for help2man.
9007         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
9008         requires column 20 or more, return 20.
9010 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
9012         areadlink-with-size: avoid realloc when size==0
9013         * lib/areadlink-with-size.c (areadlink_with_size):
9014         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
9015         Reallocate at the end to the actual size, to avoid memory waste,
9016         as suggested by Bruno Haible.  But when the guessed size is zero -
9017         useful when the size is unknown - do the initial small readlink
9018         into the stack, to avoid that realloc in the usual case.
9020 2019-07-06  Pádraig Brady  <P@draigBrady.com>
9022         areadlink-with-size: guess a buffer size with 0 size
9023         The size is usually taken from st_size, which can be zero,
9024         resulting in inefficient operation.
9025         Instead let zero select an initial memory allocation
9026         of 128 bytes, which most symlinks fit within.
9027         * lib/areadlink-with-size.c (areadlink_with_size):
9028         Start with a 128 byte buffer, for SIZE == 0.
9029         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
9031 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
9033         Replace manually crafted hex regexes with [:xdigit:]
9034         * build-aux/gitlog-to-changelog (parse_amend_file)
9035         (git_dir_option):
9036         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
9037         This patch is backported from Emacs (Bug#36167).
9039 2019-07-06  Bruno Haible  <bruno@clisp.org>
9041         error: Fix documentation.
9042         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
9043         module provides.
9044         * doc/glibc-functions/error_message_count.texi: Likewise.
9045         * doc/glibc-functions/error_one_per_line.texi: Likewise.
9046         * doc/glibc-functions/error_print_progname.texi: Likewise.
9048 2019-07-06  Bruno Haible  <bruno@clisp.org>
9050         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
9051         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
9052         and older is unsupported.
9053         * doc/**/*.texi: Update.
9055 2019-07-06  Bruno Haible  <bruno@clisp.org>
9057         doc: Remove documentation of Linux libc5 as a supported platform.
9058         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
9059         to Linux libc5.
9060         * doc/posix-functions/iswalpha.texi: Likewise.
9061         * doc/posix-functions/iswblank.texi: Likewise.
9062         * doc/posix-functions/iswcntrl.texi: Likewise.
9063         * doc/posix-functions/iswdigit.texi: Likewise.
9064         * doc/posix-functions/iswgraph.texi: Likewise.
9065         * doc/posix-functions/iswlower.texi: Likewise.
9066         * doc/posix-functions/iswprint.texi: Likewise.
9067         * doc/posix-functions/iswpunct.texi: Likewise.
9068         * doc/posix-functions/iswspace.texi: Likewise.
9069         * doc/posix-functions/iswupper.texi: Likewise.
9070         * doc/posix-functions/iswxdigit.texi: Likewise.
9071         * doc/posix-functions/snprintf.texi: Likewise.
9072         * doc/posix-functions/vsnprintf.texi: Likewise.
9074 2019-07-06  Bruno Haible  <bruno@clisp.org>
9076         doc: Remove documentation of Tandem/NSK as a supported platform.
9077         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
9078         Tandem/NSK.
9079         * doc/**/*.texi: Update.
9081 2019-07-06  Bruno Haible  <bruno@clisp.org>
9083         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
9084         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
9085         and older is unsupported.
9086         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
9087         Mac OS X 10.4 and older.
9088         * doc/posix-functions/asinl.texi: Likewise.
9089         * doc/posix-functions/atanl.texi: Likewise.
9090         * doc/posix-functions/cosl.texi: Likewise.
9091         * doc/posix-functions/expl.texi: Likewise.
9092         * doc/posix-functions/frexpl.texi: Likewise.
9093         * doc/posix-functions/gettimeofday.texi: Likewise.
9094         * doc/posix-functions/logl.texi: Likewise.
9095         * doc/posix-functions/mkstemp.texi: Likewise.
9096         * doc/posix-functions/sinl.texi: Likewise.
9097         * doc/posix-functions/sqrtl.texi: Likewise.
9098         * doc/posix-functions/tanl.texi: Likewise.
9099         * doc/posix-functions/wcswidth.texi: Likewise.
9100         * doc/**/*.texi: Update.
9102 2019-07-06  Bruno Haible  <bruno@clisp.org>
9104         doc: Remove documentation of AIX 4 as a supported platform.
9105         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
9106         unsupported.
9107         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
9108         workarounds.
9109         * doc/posix-functions/strnlen.texi: Likewise.
9110         * doc/posix-headers/inttypes.texi: Likewise.
9111         * doc/**/*.texi: Update.
9113 2019-07-06  Bruno Haible  <bruno@clisp.org>
9115         doc: Remove documentation of HP-UX 10 as a supported platform.
9116         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
9117         unsupported.
9118         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
9119         workarounds.
9120         * doc/posix-functions/gmtime_r.texi: Likewise.
9121         * doc/posix-functions/localtime_r.texi: Likewise.
9122         * doc/posix-functions/mkstemp.texi: Likewise.
9123         * doc/**/*.texi: Update.
9125 2019-07-06  Bruno Haible  <bruno@clisp.org>
9127         doc: Remove documentation of Interix 3.5 as a supported platform.
9128         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
9129         unsupported.
9130         * doc/posix-functions/select.texi: Don't mention Interix specific
9131         workarounds.
9132         * doc/posix-headers/signal.texi: Likewise.
9133         * doc/**/*.texi: Update.
9135 2019-07-06  Bruno Haible  <bruno@clisp.org>
9137         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
9138         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
9139         unsupported.
9140         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
9141         workarounds.
9142         * doc/posix-functions/nl_langinfo.texi: Likewise.
9143         * doc/posix-functions/remainder.texi: Likewise.
9144         * doc/posix-functions/towlower.texi: Likewise.
9145         * doc/posix-functions/towupper.texi: Likewise.
9146         * doc/posix-functions/vsnprintf.texi: Likewise.
9147         * doc/posix-functions/wcscat.texi: Likewise.
9148         * doc/posix-functions/wcschr.texi: Likewise.
9149         * doc/posix-functions/wcscmp.texi: Likewise.
9150         * doc/posix-functions/wcscpy.texi: Likewise.
9151         * doc/posix-functions/wcscspn.texi: Likewise.
9152         * doc/posix-functions/wcslen.texi: Likewise.
9153         * doc/posix-functions/wcsncat.texi: Likewise.
9154         * doc/posix-functions/wcsncmp.texi: Likewise.
9155         * doc/posix-functions/wcsncpy.texi: Likewise.
9156         * doc/posix-functions/wcspbrk.texi: Likewise.
9157         * doc/posix-functions/wcsrchr.texi: Likewise.
9158         * doc/posix-functions/wcsspn.texi: Likewise.
9159         * doc/posix-headers/langinfo.texi: Likewise.
9160         * doc/posix-headers/signal.texi: Likewise.
9161         * doc/posix-headers/wchar.texi: Likewise.
9162         * doc/posix-headers/wctype.texi: Likewise.
9163         * doc/**/*.texi: Update.
9165 2019-07-05  Bruno Haible  <bruno@clisp.org>
9167         doc: Remove documentation of OSF/1 as supported platform.
9168         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
9169         unsupported.
9170         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
9171         workarounds.
9172         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
9173         * doc/glibc-functions/ptsname_r.texi: Likewise.
9174         * doc/posix-functions/ceil.texi: Likewise.
9175         * doc/posix-functions/ceilf.texi: Likewise.
9176         * doc/posix-functions/ceill.texi: Likewise.
9177         * doc/posix-functions/fchdir.texi: Likewise.
9178         * doc/posix-functions/floor.texi: Likewise.
9179         * doc/posix-functions/floorf.texi: Likewise.
9180         * doc/posix-functions/fmod.texi: Likewise.
9181         * doc/posix-functions/fmodf.texi: Likewise.
9182         * doc/posix-functions/fmodl.texi: Likewise.
9183         * doc/posix-functions/log.texi: Likewise.
9184         * doc/posix-functions/logf.texi: Likewise.
9185         * doc/posix-functions/logl.texi: Likewise.
9186         * doc/posix-functions/log10.texi: Likewise.
9187         * doc/posix-functions/log10f.texi: Likewise.
9188         * doc/posix-functions/log10l.texi: Likewise.
9189         * doc/posix-functions/log2.texi: Likewise.
9190         * doc/posix-functions/log2f.texi: Likewise.
9191         * doc/posix-functions/log2l.texi: Likewise.
9192         * doc/posix-functions/mbrtowc.texi: Likewise.
9193         * doc/posix-functions/recv.texi: Likewise.
9194         * doc/posix-functions/recvfrom.texi: Likewise.
9195         * doc/posix-functions/remainder.texi: Likewise.
9196         * doc/posix-functions/remainderf.texi: Likewise.
9197         * doc/posix-functions/remainderl.texi: Likewise.
9198         * doc/posix-functions/round.texi: Likewise.
9199         * doc/posix-functions/roundf.texi: Likewise.
9200         * doc/posix-functions/roundl.texi: Likewise.
9201         * doc/posix-functions/send.texi: Likewise.
9202         * doc/posix-functions/sendto.texi: Likewise.
9203         * doc/posix-functions/setenv.texi: Likewise.
9204         * doc/posix-functions/snprintf.texi: Likewise.
9205         * doc/posix-functions/tcgetsid.texi: Likewise.
9206         * doc/posix-functions/trunc.texi: Likewise.
9207         * doc/posix-functions/truncf.texi: Likewise.
9208         * doc/posix-functions/truncl.texi: Likewise.
9209         * doc/posix-functions/ttyname_r.texi: Likewise.
9210         * doc/posix-functions/unsetenv.texi: Likewise.
9211         * doc/posix-functions/wcsrtombs.texi: Likewise.
9212         * doc/posix-headers/sys_select.texi: Likewise.
9213         * doc/posix-headers/wchar.texi: Likewise.
9214         * doc/posix-headers/wctype.texi: Likewise.
9215         * doc/**/*.texi: Update.
9217 2019-07-05  Bruno Haible  <bruno@clisp.org>
9219         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
9220         * doc/**/*.texi: Update.
9222 2019-07-05  Bruno Haible  <bruno@clisp.org>
9224         doc: Remove documentation of Solaris 8 and older as supported platforms.
9225         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
9226         unsupported.
9227         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
9228         workarounds.
9229         * doc/posix-functions/memcmp.texi: Likewise.
9230         * doc/posix-functions/rename.texi: Likewise.
9231         * doc/posix-functions/tzset.texi: Likewise.
9232         * doc/posix-headers/wctype.texi: Likewise.
9233         * doc/**/*.texi: Update.
9235 2019-07-05  Bruno Haible  <bruno@clisp.org>
9237         doc: Remove documentation of Interix 3.5 as a supported platform.
9238         * doc/**/*.texi: Update.
9240 2019-07-05  Bruno Haible  <bruno@clisp.org>
9242         doc: Remove documentation of BeOS as a supported platform.
9243         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
9244         unsupported.
9245         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
9246         * doc/posix-functions/getdelim.texi: Likewise.
9247         * doc/**/*.texi: Update.
9249 2019-07-05  Bruno Haible  <bruno@clisp.org>
9251         thread, lock, cond, tls: Remove support for Pth threads.
9252         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9253         --enable-threads=pth any more.
9254         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
9255         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
9256         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
9257         threads and ISO C11 threads.
9258         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
9259         * lib/glthread/lock.h: Likewise.
9260         * lib/glthread/lock.c: Likewise.
9261         * lib/glthread/cond.h: Likewise.
9262         * lib/glthread/cond.c: Likewise.
9263         * lib/glthread/tls.h: Likewise.
9264         * lib/glthread/tls.c: Likewise.
9265         * lib/glthread/yield.h: Likewise.
9266         * lib/regex_internal.h: Likewise.
9267         * tests/test-thread_create.c: Likewise.
9268         * tests/test-lock.c: Likewise.
9269         * tests/test-cond.c: Likewise.
9270         * tests/test-tls.c: Likewise.
9271         * tests/test-rwlock1.c: Don't include glthread/yield.h.
9272         (main): Sleep without calling gl_thread_yield.
9274 2019-07-05  Bruno Haible  <bruno@clisp.org>
9276         thread, lock, cond, tls: Remove support for old Solaris threads.
9277         Solaris >= 2.5.1 has POSIX threads.
9278         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
9279         --enable-threads=solaris any more.
9280         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
9281         * lib/glthread/thread.c: Update comment.
9282         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
9283         * lib/glthread/lock.h: Likewise.
9284         * lib/glthread/lock.c: Likewise.
9285         * lib/glthread/cond.h: Likewise.
9286         * lib/glthread/cond.c: Likewise.
9287         * lib/glthread/tls.h: Likewise.
9288         * lib/glthread/tls.c: Likewise.
9289         * lib/glthread/yield.h: Likewise.
9290         * lib/regex_internal.h: Likewise.
9291         * tests/test-thread_create.c: Likewise.
9292         * tests/test-lock.c: Likewise.
9293         * tests/test-cond.c: Likewise.
9294         * tests/test-tls.c: Likewise.
9296 2019-07-05  Bruno Haible  <bruno@clisp.org>
9298         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
9299         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
9300         needed size is equal to the allocated size.
9301         * lib/getcwd.c (__getcwd): Likewise.
9303 2019-07-05  Bruno Haible  <bruno@clisp.org>
9305         xgetdomainname: Don't return an excessive memory allocation.
9306         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
9307         before returning it.
9309 2019-07-05  Bruno Haible  <bruno@clisp.org>
9311         xgethostname: Don't return an excessive memory allocation.
9312         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
9313         returning it.
9315 2019-07-05  Bruno Haible  <bruno@clisp.org>
9317         areadlinkat-with-size: Don't return an excessive memory allocation.
9318         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
9319         before returning it.
9321 2019-07-05  Bruno Haible  <bruno@clisp.org>
9323         areadlink-with-size: Don't return an excessive memory allocation.
9324         Reported by Andreas Dilger <adilger@whamcloud.com>.
9325         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
9326         before returning it.
9328 2019-07-03  Bruno Haible  <bruno@clisp.org>
9330         renameatu: Fix test failure on MSVC.
9331         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
9332         empty string.
9334 2019-07-03  Bruno Haible  <bruno@clisp.org>
9336         mbrtowc: Fix invalid use of mbtowc() on MSVC.
9337         * lib/mbrtowc.c: Include glthread/lock.h.
9338         (mbtowc_lock): New variable.
9339         (mbrtowc): Treat UTF-8 encoding without locking. For the other
9340         encodings, explicitly reset the internal state of mbtowc, and protect
9341         this through a lock.
9342         * modules/mbrtowc (Depends-on): Add lock.
9344 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
9346         argmatch: don't define _ in the header.
9347         Reported by Jim Meyering.
9348         * lib/argmatch.h (N_, _): Don't define.
9349         Use gettext instead.
9350         * lib/argmatch.h (_): Define.
9351         * tests/test-argmatch.c (N_): Define.
9353 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
9355         verify: document ‘assume’ better
9356         * lib/verify.h: Reword doc (Bug#36370).
9358 2019-07-02  Bruno Haible  <bruno@clisp.org>
9360         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
9361         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
9362         "CPutf8".
9363         * lib/nl_langinfo.c (ctype_codeset): Likewise.
9365 2019-07-02  Bruno Haible  <bruno@clisp.org>
9367         getcwd: Fix crash when invoked with size = 0 on MSVC.
9368         * lib/getcwd.c: Include msvc-inval.h.
9369         (getcwd_nothrow): New function/macro.
9370         (getcwd_system): New macro.
9371         (__getcwd): Use it instead of getcwd.
9372         * modules/getcwd (Depends-on): Add msvc-inval.
9373         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
9375 2019-07-02  Bruno Haible  <bruno@clisp.org>
9377         nonblocking-pipe tests: Fix test failure on MSVC.
9378         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
9379         native Windows.
9381 2019-07-02  Bruno Haible  <bruno@clisp.org>
9383         usleep: Implement with millisecond resolution on native Windows.
9384         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
9385         * doc/pastposix-functions/usleep.texi: Update accordingly.
9387 2019-07-02  Bruno Haible  <bruno@clisp.org>
9389         lstat tests: Fix test failure on MSVC.
9390         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
9391         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9393 2019-07-02  Bruno Haible  <bruno@clisp.org>
9395         stat tests: Fix test failure on MSVC.
9396         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
9397         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
9399 2019-07-02  Bruno Haible  <bruno@clisp.org>
9401         getaddrinfo tests: Fix test failure on MSVC.
9402         * tests/test-getaddrinfo.c: Include sockets.h.
9403         (main): Invoke gl_sockets_startup.
9404         * modules/getaddrinfo-tests (Depends-on): Add sockets.
9406 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
9408         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
9409         * lib/poll.c: Call Windows native select() with Windows native timeval.
9411 2019-06-30  Bruno Haible  <bruno@clisp.org>
9413         argmatch: Fix compilation errors.
9414         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
9415         * tests/test-argmatch.c (main): Update after last-minute function names
9416         change.
9418 2019-06-30  Bruno Haible  <bruno@clisp.org>
9420         Include <stdlib.h> when needed.
9421         * lib/cnd.c: Include <stdlib.h>, needed for abort().
9422         * lib/fcntl.c: Likewise.
9423         * lib/mbscasestr.c: Likewise.
9424         * lib/mbssep.c: Likewise.
9425         * lib/mbsstr.c: Likewise.
9426         * lib/openat.c: Include <stdlib.h>, needed for free().
9427         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
9428         abort().
9430 2019-06-30  Bruno Haible  <bruno@clisp.org>
9432         Include <stdlib.h> when needed.
9433         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
9434         * lib/faccessat.c: Likewise.
9435         * lib/fchmodat.c: Likewise.
9436         * lib/fchownat.c: Likewise.
9437         * lib/fstatat.c: Likewise.
9438         * lib/mkfifoat.c: Likewise.
9439         * lib/mknodat.c: Likewise.
9440         * lib/readlinkat.c: Likewise.
9441         * lib/symlinkat.c: Likewise.
9442         * lib/utimensat.c: Likewise.
9443         * lib/mkdirat.c: Likewise. Include also the specification header.
9445 2019-06-30  Bruno Haible  <bruno@clisp.org>
9447         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
9448         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
9449         from gl_PREREQ_SYS_H_SOCKET.
9450         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
9451         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
9452         gl_PREREQ_SYS_H_WS2TCPIP.
9453         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
9454         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
9455         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
9457 2019-06-30  Bruno Haible  <bruno@clisp.org>
9459         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
9460         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
9461         REPLACE_INET_NTOP to 1 always.
9462         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
9463         REPLACE_INET_PTON to 1 always.
9465 2019-06-30  Bruno Haible  <bruno@clisp.org>
9467         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
9468         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
9469         not REPLACE_INET_NTOP.
9471 2019-06-30  Bruno Haible  <bruno@clisp.org>
9473         poll: Add comment.
9474         * lib/poll.c: Add comment about WSAPoll.
9476 2019-06-30  Bruno Haible  <bruno@clisp.org>
9478         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
9479         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
9480         * lib/poll.in.h: Include <winsock2.h>.
9481         (POLL*, pollfd): Override on native Windows.
9482         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9483         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
9484         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9486 2019-06-28  Bruno Haible  <bruno@clisp.org>
9488         accept4: Fix compilation error on OpenIndiana.
9489         Reported by Michal Nowak <mnowak@startmail.com>
9490         via Mark H Weaver <mhw@netris.org>.
9491         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
9492         whether it exists as a function.
9494 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
9496         strverscmp: sync from glibc
9497         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
9498         comments, include libc-config.h, define __strverscmp to be
9499         strverscmp, and don’t assume types line uint8_t and int8_t that
9500         that C99 doesn’t guarantee.
9501         [!_LIBC]: Include libc-config.h; define __strverscmp.
9502         Include stdint.h.
9503         (__strverscmp): Assume C99.  Use uint_least8_t
9504         and int_least8_t instead of unsigned char and signed char.
9505         * modules/strverscmp (Depends-on): Add libc-config, stdint.
9507 2019-06-25  Bruno Haible  <bruno@clisp.org>
9509         tss tests: Add tests for destructors and races.
9510         * tests/test-tss.c (worker_thread): Fix typo in debug message.
9511         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
9512         functions.
9513         (main): Invoke them.
9514         * modules/tls-tests (Depends-on): Add mtx.
9516 2019-06-25  Bruno Haible  <bruno@clisp.org>
9518         tls tests: Add tests for destructors and races.
9519         * tests/test-tls.c: Include glthread/lock.h.
9520         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
9521         functions.
9522         (main): Invoke them.
9523         * modules/tls-tests (Depends-on): Add lock.
9525 2019-06-25  Bruno Haible  <bruno@clisp.org>
9527         windows-tls: Implement TLS key destructors for native Windows.
9528         * lib/windows-tls.h (glwthread_tls_process_destructors): New
9529         declaration.
9530         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
9531         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
9532         (dtor_table_init_once, dtor_table_lock: New variables.
9533         (struct dtor): New type.
9534         (dtor_table, dtors_count, dtors_used, dtors_allocated,
9535         dtor_processing_threads): New variables.
9536         (dtor_table_initialize, dtor_table_ensure_initialized,
9537         dtor_table_shrink_used, glwthread_tls_process_destructors): New
9538         functions.
9539         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
9540         handle non-NULL destructors.
9541         * modules/windows-tls (Depends-on): Add windows-once.
9542         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
9543         Use the functions declared in windows-tls.h.
9544         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
9545         GLWTHREAD_DESTRUCTOR_ITERATIONS.
9546         * lib/windows-thread.c: Include windows-tls.h.
9547         (wrapper_func, glwthread_thread_exit): Invoke
9548         glwthread_tls_process_destructors.
9549         * modules/windows-thread (Depends-on): Add windows-tls.
9551 2019-06-25  Bruno Haible  <bruno@clisp.org>
9553         threadlib: Avoid autoconf warning "was expanded before it was required".
9554         * modules/threadlib (configure.ac): Require gl_THREADLIB.
9556 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
9558         argmatch: remove duplicate const qualifier
9559         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
9561 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
9563         unistd: stddef.h and sys/types.h namespace cleanup
9564         * lib/unistd.in.h [__GLIBC__]:
9565         Do not include stddef.h or sys/types.h.
9566         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
9567         supposed to declare off_t and ssize_t.  Problem found when looking
9568         at why @GNULIB_PWRITE@ was different from the newly-added
9569         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
9571 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9573         maintainer-makefile: restore portability to non-GNU awks
9574         Reported by Tim Rühsen.
9575         * top/maint.mk (AWK): New variable.  Use it.
9576         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
9578 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
9580         Document setvbuf _IOLBF problem
9581         * doc/posix-functions/setvbuf.texi (setvbuf):
9582         Document MS-Windows portability problem with _IOLBF.
9584         Document lseek SEEK_DATA/SEEK_HOLE
9585         * doc/posix-functions/lseek.texi (lseek):
9586         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
9588 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
9590         argmatch: put all the docs member last.
9591         Reported by Bruno Haible.
9592         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
9593         member before the docs done.
9594         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
9596 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
9598         argmatch: add support to generate the usage message.
9599         * lib/argmatch.c: Move some #includes and gettext support to...
9600         * lib/argmatch.h: here.
9601         (ARGMATCH_DEFINE_GROUP): New macro.
9602         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
9603         (argmatch_backup_group): New.
9604         (CHECK): New.
9605         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
9606         argmatch_backup_argument and argmatch_backup_usage.
9607         * modules/argmatch: We depend on c99.
9608         * doc/argmatch.texi (Recognizing Option Arguments): New.
9609         * doc/gnulib.texi: Use it.
9611 2019-06-21  Bruno Haible  <bruno@clisp.org>
9613         thrd: Add comment.
9614         * lib/thrd.c (pthread_main_func): Add comment.
9616 2019-06-21  Bruno Haible  <bruno@clisp.org>
9618         threads-h: Define 'thread_local' if and only if it actually works.
9619         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
9620         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
9621         Oracle Solaris Studio C. Compile a simple program, to see whether
9622         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
9623         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
9624         * lib/threads.in.h (thread_local): Undefine if it does not work.
9625         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
9626         (Link): Mention LIBTHREADLOCAL.
9627         * tests/test-threads.c: Don't check that thread_local is defined.
9628         * tests/test-thread_local.c: New file.
9629         * modules/threads-h-tests (Files): Add it and macros.h.
9630         (Depends-on): Add thrd and stdint.
9631         (configure.ac): Test whether 'alarm' is declared.
9632         (Makefile.am): Arrange to build and link test-thread_local.
9633         * doc/posix-headers/threads.texi: Mention the platforms that don't
9634         support 'thread_local'.
9636 2019-06-20  Bruno Haible  <bruno@clisp.org>
9638         threads-h: Simplify link dependencies.
9639         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
9640         Don't set LTLIBSTDTHREAD.
9641         * modules/thrd (Link): Simplify accordingly.
9642         * modules/mtx (Link): Likewise.
9643         * modules/cnd (Link): Likewise.
9644         * modules/tss (Link): Likewise.
9645         * modules/threads (Link): Likewise.
9647 2019-06-20  Bruno Haible  <bruno@clisp.org>
9649         threads-h: Fix link error on FreeBSD 11.
9650         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
9651         also with -lpthread.
9653 2019-06-20  Bruno Haible  <bruno@clisp.org>
9655         threadlib: Fix typo (regression from today).
9656         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
9658 2019-06-20  Bruno Haible  <bruno@clisp.org>
9660         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
9661         * lib/windows-thread.c: Include <errno.h>.
9662         * lib/windows-tls.c: Likewise.
9664 2019-06-20  Bruno Haible  <bruno@clisp.org>
9666         tss tests: Small improvement.
9667         * tests/test-tss.c (test_tss): Pass a different id to each thread.
9669 2019-06-20  Bruno Haible  <bruno@clisp.org>
9671         threads: New module.
9672         * modules/threads: New file.
9674 2019-06-20  Bruno Haible  <bruno@clisp.org>
9676         tss: Add tests.
9677         * tests/test-tss.c: New file, based on tests/test-tls.c.
9678         * modules/tss-tests: New file.
9680 2019-06-20  Bruno Haible  <bruno@clisp.org>
9682         cnd: Add tests.
9683         * tests/test-cnd.c: New file, based on tests/test-cond.c.
9684         * modules/cnd-tests: New file.
9686 2019-06-20  Bruno Haible  <bruno@clisp.org>
9688         mtx: Add tests.
9689         * tests/test-mtx.c: New file, based on tests/test-lock.c.
9690         * tests/test-call_once.c: New file, based on tests/test-once.c.
9691         * modules/mtx-tests: New file.
9693 2019-06-20  Bruno Haible  <bruno@clisp.org>
9695         thrd: Add tests.
9696         * tests/test-thrd_create.c: New file, based on
9697         tests/test-thread_create.c.
9698         * tests/test-thrd_current.c: New file, based on
9699         tests/test-thread_self.c.
9700         * modules/thrd-tests: New file.
9702 2019-06-20  Bruno Haible  <bruno@clisp.org>
9704         tss: New module.
9705         * lib/tss.c: New file.
9706         * modules/tss: New file.
9707         * doc/posix-functions/tss_create.texi: Mention the new module.
9708         * doc/posix-functions/tss_set.texi: Likewise.
9709         * doc/posix-functions/tss_get.texi: Likewise.
9710         * doc/posix-functions/tss_delete.texi: Likewise.
9712 2019-06-20  Bruno Haible  <bruno@clisp.org>
9714         cnd: New module.
9715         * lib/cnd.c: New file.
9716         * modules/cnd: New file.
9717         * doc/posix-functions/cnd_init.texi: Mention the new module.
9718         * doc/posix-functions/cnd_wait.texi: Likewise.
9719         * doc/posix-functions/cnd_timedwait.texi: Likewise.
9720         * doc/posix-functions/cnd_signal.texi: Likewise.
9721         * doc/posix-functions/cnd_broadcast.texi: Likewise.
9722         * doc/posix-functions/cnd_destroy.texi: Likewise.
9724 2019-06-20  Bruno Haible  <bruno@clisp.org>
9726         mtx: New module.
9727         * lib/mtx.c: New file.
9728         * modules/mtx: New file.
9729         * doc/posix-functions/call_once.texi: Mention the new module.
9730         * doc/posix-functions/mtx_init.texi: Likewise.
9731         * doc/posix-functions/mtx_lock.texi: Likewise.
9732         * doc/posix-functions/mtx_trylock.texi: Likewise.
9733         * doc/posix-functions/mtx_timedlock.texi: Likewise.
9734         * doc/posix-functions/mtx_unlock.texi: Likewise.
9735         * doc/posix-functions/mtx_destroy.texi: Likewise.
9737 2019-06-20  Bruno Haible  <bruno@clisp.org>
9739         thrd: New module.
9740         * lib/thrd.c: New file.
9741         * m4/thrd.m4: New file.
9742         * modules/thrd: New file.
9743         * doc/posix-functions/thrd_current.texi: Mention the new module.
9744         * doc/posix-functions/thrd_detach.texi: Likewise.
9745         * doc/posix-functions/thrd_equal.texi: Likewise.
9746         * doc/posix-functions/thrd_exit.texi: Likewise.
9747         * doc/posix-functions/thrd_sleep.texi: Likewise.
9748         * doc/posix-functions/thrd_yield.texi: Likewise.
9749         * doc/posix-functions/thrd_create.texi: Mention the new module and the
9750         AIX bug.
9751         * doc/posix-functions/thrd_join.texi: Mention the new module and the
9752         AIX and Solaris bugs.
9754 2019-06-20  Bruno Haible  <bruno@clisp.org>
9756         threads-h: Add tests.
9757         * tests/test-threads.c: New file.
9758         * modules/threads-h-tests: New file.
9759         * tests/test-threads-c++.cc: New file.
9760         * modules/threads-h-c++-tests: New file.
9762 2019-06-20  Bruno Haible  <bruno@clisp.org>
9764         threads-h: New module.
9765         * lib/threads.in.h: New file.
9766         * m4/threads.m4: New file.
9767         * m4/yield.m4 (gl_YIELD): Update comment.
9768         * modules/threads-h: New file.
9769         * modules/yields (configure.ac): Use AC_REQUIRE.
9770         * doc/posix-headers/threads.texi: Mention the new module and the AIX
9771         bugs.
9773 2019-06-20  Bruno Haible  <bruno@clisp.org>
9775         windows-thread: New module.
9776         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
9777         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
9778         * lib/glthread/thread.h: Include windows-thread.h.
9779         (gl_thread_t): Define using glwthread_thread_t.
9780         (glthread_create): Define using glwthread_thread_create.
9781         (glthread_join): Define using glwthread_thread_join.
9782         (gl_thread_self): Define using glwthread_thread_self.
9783         (gl_thread_exit): Define using glwthread_thread_exit.
9784         (glthread_create_func, glthread_join_func, gl_thread_self_func,
9785         gl_thread_exit_func): Remove declarations.
9786         * lib/glthread/thread.c (self_key): Remove variable.
9787         (do_init_self_key, init_self_key): Remove functions.
9788         (struct gl_thread_struct): Remove type.
9789         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
9790         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
9791         functions.
9792         * modules/windows-thread: New file.
9793         * modules/thread (Depends-on): Add windows-thread.
9795 2019-06-20  Bruno Haible  <bruno@clisp.org>
9797         windows-tls: New module.
9798         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
9799         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
9800         * lib/glthread/tls.h: Include windows-tls.h.
9801         (gl_tls_key_t): Define using glwthread_tls_key_t.
9802         * modules/windows-tls: New file.
9803         * modules/tls (Depends-on): Add windows-tls.
9805 2019-06-20  Bruno Haible  <bruno@clisp.org>
9807         windows-cond: New module.
9808         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
9809         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
9810         * lib/glthread/cond.h: Include windows-cond.h.
9811         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
9812         (gl_cond_t): Define using glwthread_cond_t.
9813         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
9814         (glthread_cond_init): Define using glwthread_cond_init.
9815         (glthread_cond_wait): Define using glwthread_cond_wait.
9816         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
9817         (glthread_cond_signal): Define using glwthread_cond_signal.
9818         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
9819         (glthread_cond_destroy): Define using glwthread_cond_destroy.
9820         (glthread_cond_init_func, glthread_cond_wait_func,
9821         glthread_cond_timedwait_func, glthread_cond_signal_func,
9822         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9823         declarations.
9824         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
9825         types.
9826         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9827         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
9828         glthread_cond_init_func, glthread_cond_wait_func,
9829         glthread_cond_timedwait_func, glthread_cond_signal_func,
9830         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
9831         functions.
9832         * modules/windows-cond: New file.
9833         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
9835 2019-06-20  Bruno Haible  <bruno@clisp.org>
9837         windows-timedrecmutex: New module.
9838         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
9839         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
9840         * modules/windows-timedrecmutex: New file.
9842 2019-06-20  Bruno Haible  <bruno@clisp.org>
9844         windows-timedmutex: New module.
9845         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
9846         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
9847         * modules/windows-timedmutex: New file.
9849 2019-06-20  Bruno Haible  <bruno@clisp.org>
9851         windows-recmutex: New module.
9852         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
9853         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
9854         * lib/glthread/lock.h: Include windows-recmutex.h.
9855         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
9856         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
9857         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
9858         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
9859         (glthread_recursive_lock_unlock): Define using
9860         glwthread_recmutex_unlock.
9861         (glthread_recursive_lock_destroy): Define using
9862         glwthread_recmutex_destroy.
9863         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
9864         glthread_recursive_lock_unlock_func,
9865         glthread_recursive_lock_destroy_func): Remove declarations.
9866         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
9867         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
9868         glthread_recursive_lock_destroy_func): Remove functions.
9869         * modules/windows-recmutex: New file.
9870         * modules/lock (Depends-on): Add windows-recmutex.
9872 2019-06-20  Bruno Haible  <bruno@clisp.org>
9874         windows-mutex: New module.
9875         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
9876         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
9877         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
9878         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
9879         (gl_spinlock_t): Remove type.
9880         (gl_lock_t): Define using glwthread_mutex_t.
9881         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
9882         (glthread_lock_init): Define using glwthread_mutex_init.
9883         (glthread_lock_lock): Define using glwthread_mutex_lock.
9884         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
9885         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
9886         (glthread_lock_init_func, glthread_lock_lock_func,
9887         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9888         declarations.
9889         Use glwthread_spinlock_t instead of gl_spinlock_t.
9890         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
9891         GLWTHREAD_SPINLOCK_INIT.
9892         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
9893         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
9894         functions.
9895         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
9896         gl_spinlock_t.
9897         * modules/windows-mutex: New file.
9898         * modules/lock (Depends-on): Add windows-mutex.
9900 2019-06-20  Bruno Haible  <bruno@clisp.org>
9902         windows-once: New module.
9903         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
9904         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
9905         * lib/glthread/lock.h: Include windows-once.h.
9906         (gl_once_t): Define using glwthread_once_t.
9907         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
9908         (glthread_once): Define using glwthread_once.
9909         (glthread_once_func): Remove declaration.
9910         * lib/glthread/lock.c (glthread_once_func): Remove function.
9911         * modules/windows-once: New file.
9912         * modules/lock (Depends-on): Add windows-once.
9914 2019-06-20  Bruno Haible  <bruno@clisp.org>
9916         lock, cond: Avoid possible counter wraparound on Windows.
9917         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
9918         field of the guard unchanged if it was already positive.
9919         (glthread_rwlock_rdlock_func): Likewise.
9920         (glthread_rwlock_wrlock_func): Likewise.
9921         (glthread_recursive_lock_lock_func): Likewise.
9922         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
9923         (glthread_cond_timedwait_func): Likewise.
9925 2019-06-20  Bruno Haible  <bruno@clisp.org>
9927         cond: Make glthread_cond_timedwait more reliable on Windows.
9928         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
9929         condition variable before looking at the current time.
9931 2019-06-20  Bruno Haible  <bruno@clisp.org>
9933         pthread_mutex_timedlock: New module.
9934         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
9935         new declaration.
9936         * lib/pthread_mutex_timedlock.c: New file.
9937         * m4/pthread_mutex_timedlock.m4: New file.
9938         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
9939         whether pthread_mutex_timedlock is declared.
9940         (gl_PTHREAD_MODULE_INDICATOR): New macro.
9941         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
9942         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
9943         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
9944         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
9945         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
9946         * modules/pthread_mutex_timedlock: New file.
9947         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
9948         module.
9950 2019-06-20  Bruno Haible  <bruno@clisp.org>
9952         thread, lock, cond, tls: Recognize C11 multithreaded applications.
9953         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
9954         * lib/glthread/thread.h (c11_threads_in_use): New macro.
9955         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9956         * lib/glthread/lock.h (c11_threads_in_use): New macro.
9957         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9958         * lib/glthread/cond.h (c11_threads_in_use): New macro.
9959         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9960         * lib/glthread/tls.h (c11_threads_in_use): New macro.
9961         (pthread_in_use, pth_in_use, thread_in_use): Use it.
9963 2019-06-20  Bruno Haible  <bruno@clisp.org>
9965         tls tests: Small improvements.
9966         * tests/test-tls.c: Include <stdint.h>.
9967         (worker_thread): Avoid gcc warning on 64-bit mingw.
9968         (test_tls): Pass a different id to each thread.
9969         * modules/tls-tests (Depends-on): Add stdint.
9971 2019-06-20  Bruno Haible  <bruno@clisp.org>
9973         cond tests: Simplify.
9974         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
9976 2019-06-20  Bruno Haible  <bruno@clisp.org>
9978         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
9979         * tests/test-lock.c (test_once): Don't reference fire_signal if
9980         !ENABLE_LOCKING.
9982 2019-06-19  Bruno Haible  <bruno@clisp.org>
9984         nanosleep: Relicense under LGPLv2+.
9985         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
9986         * modules/nanosleep (License): Change to LGPLv2+.
9988 2019-06-19  Bruno Haible  <bruno@clisp.org>
9990         Reorder pieces of header in perl scripts.
9991         The desired order is
9992         - Prologue part 1 (2 lines with #!)
9993         - Program short description
9994         - Copyright and license notice
9995         - Written-by notice
9996         - Program short description (optional)
9997         - Program long description (optional)
9998         - Prologue part 2
9999         - Time stamp
10000         - Code
10001         Reported by Paul Eggert.
10002         * build-aux/announce-gen: Reorder header.
10003         * build-aux/gitlog-to-changelog: Likewise.
10004         * build-aux/useless-if-before-free: Likewise.
10005         * build-aux/prefix-gnulib-mk: Add copyright notice and short
10006         description.
10007         * build-aux/update-copyright: Likewise. Add short description. Bump
10008         time-stamp-line-limit to 200.
10010 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
10012         verify-tests: work around xlc bug
10013         Problem reported by Bruno Haible in:
10014         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
10015         * tests/test-verify.c (item): Move the arithmetic inside the
10016         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
10018 2019-06-16  Bruno Haible  <bruno@clisp.org>
10020         Restore Emacs time-stamp hook applicability.
10021         Reported by Darshit Shah <darnir@gnu.org>.
10022         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
10023         * build-aux/announce-gen: Likewise.
10024         * build-aux/gitlog-to-changelog: Likewise.
10025         * build-aux/prefix-gnulib-mk: Likewise.
10026         * build-aux/update-copyright: Likewise.
10028 2019-06-15  Bruno Haible  <bruno@clisp.org>
10030         Fix scripts to have valid executable format on Alpine Linux.
10031         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10032         Idea by Paul Eggert.
10033         * build-aux/useless-if-before-free: Use a prologue that starts with
10034         '#!/bin/sh'.
10035         * build-aux/announce-gen: Likewise.
10036         * build-aux/gitlog-to-changelog: Likewise.
10037         * build-aux/prefix-gnulib-mk: Likewise.
10038         * build-aux/update-copyright: Likewise.
10039         * tests/test-update-copyright.sh: Update test program accordingly.
10041 2019-06-10  Bruno Haible  <bruno@clisp.org>
10043         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
10044         Reported by Nikita Ermakov <arei@altlinux.org> in
10045         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
10046         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
10047         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
10049 2019-06-10  Bruno Haible  <bruno@clisp.org>
10051         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
10052         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10053         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
10054         a copy of the path argument.
10055         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10056         it.
10058 2019-06-10  Bruno Haible  <bruno@clisp.org>
10060         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
10061         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
10062         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
10063         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
10064         a copy of the path argument.
10065         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
10066         it.
10068 2019-06-10  Bruno Haible  <bruno@clisp.org>
10070         posix_spawn_file_actions_addfchdir: Add tests.
10071         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
10072         * tests/test-posix_spawn5.c: New file.
10073         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
10075 2019-06-10  Bruno Haible  <bruno@clisp.org>
10077         posix_spawn_file_actions_addfchdir: New module.
10078         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
10079         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
10080         union member 'fchdir_action'.
10081         * lib/spawn_faction_addfchdir.c: New file.
10082         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
10083         * m4/posix_spawn_faction_addfchdir.m4: New file.
10084         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
10085         'posix_spawn_file_actions_addfchdir' is present and whether
10086         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
10087         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
10088         posix_spawn_file_actions_addfchdir is declared.
10089         (gl_SPAWN_H_DEFAULTS): Initialize
10090         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10091         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10092         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10093         * modules/spawn (Makefile.am): Substitute
10094         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10095         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
10096         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
10097         * modules/posix_spawn_file_actions_addfchdir: New file.
10098         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
10099         signature.
10100         * doc/posix-functions/posix_spawn.texi: Mention the new module.
10101         * doc/posix-functions/posix_spawnp.texi: Likewise.
10102         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
10103         Likewise.
10105 2019-06-10  Bruno Haible  <bruno@clisp.org>
10107         doc: Document existence of posix_spawn_file_actions_addchdir module.
10108         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
10109         the posix_spawn_file_actions_addchdir module.
10111 2019-06-10  Bruno Haible  <bruno@clisp.org>
10113         posix_spawn-internal: Fix module description.
10114         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
10115         from here...
10116         * modules/posix_spawnp (configure.ac): ... and here...
10117         * modules/posix_spawn-internal (configure.ac): ... to here.
10119 2019-06-10  Bruno Haible  <bruno@clisp.org>
10121         doc: Update and improve documentation of glibc functions.
10122         This is a series of commits that
10123         - updates the documentation to the state of glibc 2.29,
10124         - adds references to Linux man pages and glibc documentation,
10125         - marks Linux specific functions as such.
10126         These are the commits:
10127         doc: Update after removal of crypt functions from glibc 2.28.
10128         doc: Remove mention of function vm86 (does not exist on x86_64).
10129         doc: Remove mention of functions that are gone from glibc.
10130         doc: Mention that glibc no longer provides h_errno.
10131         doc: Mention the availability of specific functions in glibc versions.
10132         doc: Mention eaccess.
10133         doc: Add references to Linux man pages.
10134         doc: Add references to glibc documentation.
10135         doc: Mention inotify_* functions.
10136         doc: Mention ppoll.
10137         doc: Mention sched_getcpu.
10138         doc: Mention sync_file_range.
10139         doc: Mention epoll_pwait.
10140         doc: Mention eventfd, eventfd_read, eventfd_write.
10141         doc: Mention signalfd.
10142         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
10143         doc: Mention epoll_create1.
10144         doc: Mention getauxval.
10145         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
10146         doc: Mention nextdown, nextup.
10147         doc: Mention more ISO TS 18661-1 <math.h> functions.
10148         doc: Mention ISO TS 18661-1 <fenv.h> functions.
10149         doc: Mention getrandom, getentropy.
10150         doc: Mention strfromf, strfromd, strfroml.
10151         doc: Mention preadv2, pwritev2.
10152         doc: Mention copy_file_range.
10153         doc: Mention memfd_create.
10154         doc: Mention mlock2.
10155         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
10156         doc: Mention more ISO TS 18661-1 <math.h> functions.
10157         doc: Mention renameat2.
10158         doc: Mention statx.
10159         doc: Mention the ISO C11 multithreading header and functions.
10160         doc: Mention getcpu.
10161         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
10162         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
10163         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
10164         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
10165         doc: Some glibc functions also exist on Solaris 11.
10166         doc: Some glibc functions also exist on Solaris 11.4.
10167         doc: Some glibc functions also exist on FreeBSD.
10168         doc: Some glibc functions also exist on BeOS.
10169         doc: Some glibc functions also exist on Haiku.
10170         doc: Mark functions which exist only on Linux.
10171         doc: Mark functions which exist only on Linux and illumos.
10173 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
10175         copy-file: fix typo
10176         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
10178         copy-file-range: simplify into a stub
10179         Based on a comment by Florian Weimer in:
10180         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
10181         It turns out that Emacs (which will use this module) won’t need an
10182         emulation and I suspect other programs won’t either, because these
10183         programs will need to fall back on read+write anyway.  Perhaps I
10184         am wrong and other programs will be able to use an emulation; if
10185         so, this patch can be reverted.
10186         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
10187         Just call it copy_file_range.
10188         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
10189         Check via AC_LINK_IFELSE.
10190         * modules/copy-file-range (Depends-on): Remove modules no longer used.
10192 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
10194         copy-file: prefer copy_file_range
10195         * lib/copy-file.c: Do not include xalloc.h.
10196         (qcopy_file_preserving): Allocate a buffer only if
10197         copy_file_range does not suffice.  If the allocation fails
10198         don't give up; just use a small stack-based buffer.
10199         Prefer copy_file_range if it works.
10200         * modules/copy-file (Depends-on): Add copy-file-range.
10201         Remove xalloc.
10203         copy-file-range: new module
10204         * MODULES.html.sh: Add copy-file-range.
10205         * lib/copy-file-range.c, m4/copy-file-range.m4:
10206         * modules/copy-file-range: New files.
10207         * lib/unistd.in.h (copy_file_range): Declare.
10208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
10209         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
10210         * modules/unistd (unistd.h): Substitute them.
10212 2019-05-28  Bruno Haible  <bruno@clisp.org>
10214         binary-io: Attempted use of O_BINARY on consoles no longer fails.
10215         Reported by KO Myung-Hun <komh78@gmail.com> in
10216         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
10217         * lib/binary-io.h (__gl_setmode_check): Remove function.
10218         (set_binary_mode): Declare as notinline on DJGPP and EMX.
10219         * lib/binary-io.c (__gl_setmode_check): Remove function.
10220         (set_binary_mode): Define here on DJGPP and EMX. Inline
10221         __gl_setmode_check. In case of a tty, don't return an error code.
10223 2019-05-28  James Youngman  <jay@gnu.org>
10225         dirent-safer: Make opendir_safer usable from C++.
10226         * lib/dirent-safer.h: use extern "C".
10228 2019-05-28  James Youngman  <jay@gnu.org>
10230         canonicalize: Make canonicalize_filename_mode usable from C++.
10231         * lib/canonicalize.h: use extern "C".
10233 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
10235         prefix-gnulib-mk: Fix CPPFLAGS migration.
10236         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
10237         _a part of the library name.
10239 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10241         flexmember: update comments again
10242         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
10244         flexmember: update comment
10245         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
10247 2019-05-20  Bruno Haible  <bruno@clisp.org>
10249         setlocale: Improve fallback on macOS.
10250         * lib/setlocale.c (search): Optimize away a redundant strcmp()
10251         invocation.
10252         (locales_with_principal_territory): New array.
10253         (langcmp, get_main_locale_with_same_language): New functions.
10254         (locales_with_principal_language): New array.
10255         (terrcmp, get_main_locale_with_same_territory): New functions.
10256         (rpl_setlocale): When setlocale_single failed, try again with a locale
10257         that is more likely to exist. Don't warn if the environment variable
10258         SETLOCALE_VERBOSE is not set.
10260 2019-05-19  Bruno Haible  <bruno@clisp.org>
10262         localename: Fix default on macOS.
10263         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
10264         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
10265         (gl_locale_name_environ, gl_locale_name_default): Remove code for
10266         HAVE_CFLOCALECOPYCURRENT.
10267         * lib/localename.h (gl_locale_name_default): Update.
10269 2019-05-19  Karl Berry  <karl@freefriends.org>
10271         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
10272         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
10273         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
10275 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
10277         maintainer-makefile: catch uses of $< in non-implicit rules
10278         * top/maint.mk (sc_prohibit_magic_number_exit): New.
10280 2019-05-18  Bruno Haible  <bruno@clisp.org>
10282         threadlib: Provide an easy way to avoid mingw's winpthreads library.
10283         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
10284         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
10285         gl_use_threads accordingly.
10287 2019-05-18  Bruno Haible  <bruno@clisp.org>
10289         pthread_sigmask: Fix compilation error with --enable-threads=windows.
10290         Reported by Tim Rühsen in
10291         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
10292         and Michele Locati in
10293         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
10294         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
10295         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
10296         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
10297         in use and regardless which threads API is chosen.
10299 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
10301         close-stream, closein, closeout: simplify
10302         I noticed this opportunity for simplification while drafting a
10303         new, related module that I haven’t had time to finish yet.
10304         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
10305         * modules/close-stream (Files): Remove m4/close-stream.m4.
10306         (configure.ac): Omit gl_CLOSE_STREAM.
10307         * modules/closein (Files): Remove m4/closein.m4
10308         (configure.ac): Omit gl_CLOSEIN.
10309         * modules/closeout (Files): Remove m4/closeout.m4.
10310         (configure.ac): Omit gl_CLOSEOUT.
10312 2019-05-12  Bruno Haible  <bruno@clisp.org>
10314         libtool-next-version: New program.
10315         * build-aux/libtool-next-version: New file.
10317 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
10318             Bruno Haible  <bruno@clisp.org>
10320         version-etc: Ease translation.
10321         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
10322         URLs and formatting newlines out of translatable string.
10324 2019-05-11  Bruno Haible  <bruno@clisp.org>
10326         gnupload: Explain how to create symlinks.
10327         * build-aux/gnupload (usage): Add an example that creates symlinks.
10329 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
10331         fpucw: port to gcc -pedantic
10332         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
10333         Use __extension__ if using ({ ... }).
10335         crypto/af_alg: port to strict C compilers
10336         * lib/af_alg.c: Include af_alg.h regardless, so that the
10337         compilation unit is nonempty.
10339 2019-05-10  Bruno Haible  <bruno@clisp.org>
10341         base64: Avoid false positive warning from Coverity.
10342         Reported by Kamil Dudka <kdudka@redhat.com>.
10343         Idea by Paul Eggert.
10344         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
10345         '& 0x3f' to the array index expressions. This convinces Coverity that
10346         there is no out-of-bounds array reference, regardless of the input.
10348 2019-05-09  Bruno Haible  <bruno@clisp.org>
10350         gettext: Update to gettext 0.20.
10351         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
10352         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
10353         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
10354         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
10355         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
10356         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
10357         (configure.ac): Request infrastructure compatible with gettext 0.20.
10358         * m4/glibc2.m4: Remove file.
10359         * m4/intdiv0.m4: Remove file.
10360         * m4/intl.m4: Remove file.
10361         * m4/intldir.m4: Remove file.
10362         * m4/intmax.m4: Remove file.
10363         * m4/printf-posix.m4: Remove file.
10364         * m4/uintmax_t.m4: Remove file.
10365         * m4/gettext.m4: Update from gettext 0.20.
10366         * m4/po.m4: Likewise.
10368 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
10370         verify: remove verify_true
10371         * NEWS: Mention this.
10372         * lib/verify.h (verify_true): Remove.
10373         * tests/test-verify.c (item): Test verify_expr, not verify_true.
10375         Support C2X and C++17 static_assert
10376         C2X and C++17 finally added support for a simple, single-argument
10377         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
10378         doing back in 2005.  Implement static_assert on older platforms.
10379         The only remaining advantage of ‘verify’ is a shorter name.
10380         * doc/posix-headers/assert.texi (assert.h):
10381         * doc/verify.texi (Compile-time Assertions):
10382         Modernize for C2X and C++17.
10383         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
10384         New macros.
10385         (_GL_HAVE__STATIC_ASSERT): Remove.
10386         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
10387         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
10388         string.  All callers changed.
10389         (_GL_VERIFY): Require 3 or more args, of which only the first 2
10390         are used.  All callers changed.
10391         (_Static_assert): Allow either 1 or 2 args, and define if
10392         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
10393         !_GL_HAVE__STATIC_ASSERT.
10394         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
10395         of defining if !_GL_HAVE_STATIC_ASSERT.
10396         (verify_expr, verify): Don’t bother trying to copy the expression
10397         into the diagnostic, since 1-argument static_assert doesn’t.
10398         (verify): Prefer 1-argument _Static_assert if it works.
10399         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
10401 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10403         Fix _GL_HAVE__STATIC_ASSERT typo
10404         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
10405         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
10407 2019-05-05  Bruno Haible  <bruno@clisp.org>
10409         wcwidth: Ensure width 1, not 2, for ambiguous characters.
10410         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
10411         via Akim Demaille <akim.demaille@gmail.com>.
10412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
10413         en_US.UTF-8 locale, since that is more likely to be present than an
10414         fr_FR.UTF-8 locale.
10415         * tests/test-wcwidth.c (main): Check the width of U+2202.
10416         * doc/posix-functions/wcwidth.texi: Mention the issue.
10418 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
10420         Port manywarnings to GCC 9
10421         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
10422         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
10423         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
10424         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
10425         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
10426         --help=warnings output.
10427         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
10428         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
10429         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
10431 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
10433         Sync lib/mktime-internal.h from glibc
10434         * config/srclist.txt: Add entry for lib/mktime-internal.h.
10435         * lib/mktime-internal.h: Autoupdate.
10437 2019-04-28  Bruno Haible  <bruno@clisp.org>
10439         tls tests: Prevent that the test takes too long.
10440         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
10441         (main): Let the test fail if it takes more than 10 minutes.
10442         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
10444 2019-04-27  Bruno Haible  <bruno@clisp.org>
10446         lock tests: Prevent that the test takes too long.
10447         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
10448         (main): Let the test fail if it takes more than 10 minutes.
10449         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
10451 2019-04-27  Bruno Haible  <bruno@clisp.org>
10453         localename: Fix crash on mingw (regression from 2018-11-23).
10454         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
10455         locale name that is null.
10457 2019-04-27  Bruno Haible  <bruno@clisp.org>
10459         Fix gcc warnings on 64-bit mode mingw.
10460         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
10461         * lib/gl_array_list.c: Likewise.
10462         * lib/gl_array_map.c: Likewise.
10463         * lib/gl_array_set.c: Likewise.
10464         * lib/gl_carray_list.c: Likewise.
10465         * lib/gl_sublist.c: Likewise.
10466         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
10467         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
10468         * lib/gl_hash_map.c (uintptr_t): Likewise.
10469         * lib/gl_hash_set.c (uintptr_t): Likewise.
10470         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
10471         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
10472         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
10473         * lib/iconv.c (uintptr_t): Likewise.
10474         * lib/iconv_close.c (uintptr_t): Likewise.
10475         * tests/test-lock.c: Include <stdint.h>.
10476         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
10477         'long'.
10478         * modules/clean-temp (Depends-on): Add stdint.
10479         * modules/array-list (Depends-on): Likewise.
10480         * modules/array-map (Depends-on): Likewise.
10481         * modules/array-set (Depends-on): Likewise.
10482         * modules/carray-list (Depends-on): Likewise.
10483         * modules/sublist (Depends-on): Likewise.
10484         * modules/lock-tests (Depends-on): Likewise.
10486 2019-04-27  Bruno Haible  <bruno@clisp.org>
10488         error: Tweak indentation.
10489         * lib/error.c: Correct indentation.
10491 2019-04-27  Bruno Haible  <bruno@clisp.org>
10493         term-style-control: Fix gcc warning on mingw.
10494         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
10495         of i.
10497 2019-04-26  Bruno Haible  <bruno@clisp.org>
10499         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
10500         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
10502 2019-04-26  Bruno Haible  <bruno@clisp.org>
10504         relocatable-prog: Fix gcc warning on mingw.
10505         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
10506         on EMX.
10508 2019-04-02  Bruno Haible  <bruno@clisp.org>
10510         gitsub.sh: New file.
10511         * top/gitsub.sh: New file.
10513 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
10515         argmatch: use void* for raw memory pointers
10516         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
10517         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
10518         to "values", keep char* for strings.
10520 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
10522         prefix-gnulib-mk: fix the support for gnulib-po
10523         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
10524         Don't touch HAVE_* variables.
10525         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
10527 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
10529         di-set: allow free with 'ino_map' being NULL.
10530         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
10531         is NULL.  Bug introduced in commit 3703dbbe88dd.
10532         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
10533         as a test.
10535 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
10537         * lib/str-two-way.h: Fix comment typo.
10539 2019-04-13  Bruno Haible  <bruno@clisp.org>
10541         x-to-1: Restore ability to use original calling convention.
10542         * build-aux/x-to-1.in: Add comments. Accept the original form of
10543         HELP2MAN argument as well as the form expected since 2012-12-12.
10545 2019-04-13  Bruno Haible  <bruno@clisp.org>
10547         x-to-1: Avoid failure due to missing perl modules.
10548         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
10549         needs are installed.
10551 2019-04-13  Bruno Haible  <bruno@clisp.org>
10553         openmp-init: New module.
10554         * modules/openmp-init: New file.
10555         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
10556         the changes from 2019-04-09.
10558 2019-04-12  Bruno Haible  <bruno@clisp.org>
10560         signbit: Fix compilation error when gnulib's math.h exists twice.
10561         * lib/math.in.h (GNULIB_defined_signbit): New macro.
10563 2019-04-12  Bruno Haible  <bruno@clisp.org>
10565         openmp: Fix compilation error on platforms without OpenMP.
10566         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
10568 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
10570         mountlist: make parsing /proc/self/mountinfo more robust
10571         Cater for the following issues with mountinfo parsing (the first
10572         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
10573         in <https://bugs.gnu.org/35137>).
10574         1. The fields source, target, mntroot and fstype may contain characters
10575         like '\r'; sscanf(3) fails to read such values with the %s format
10576         specifier because it would stop at such characters.
10577         Example: "mount -t tmpfs tmpfs /foo^Mbar".
10578         The only true separator in that file is the ' ' character.
10579         2. The source field may be an empty string, which happens e.g. with
10580         "mount -t tmpfs '' /target".
10581         3. The fstype field may contain mangled characters as well which need
10582         unescaping.
10583         * lib/mountlist.c (terminate_at_blank): Add utility function.
10584         (read_file_system_list): In the block trying to read the mountinfo file,
10585         avoid using sscanf(3) with %s format; instead, parse the above fields
10586         separated by spaces one by one.
10587         This also handles the case when the source field is an empty string.
10588         Unescape the fstype field.
10590 2019-04-09  Bruno Haible  <bruno@clisp.org>
10592         openmp: Add workaround for 32-bit programs on AIX.
10593         * lib/omp.in.h: New file.
10594         * lib/omp-init.c: New file, based on lib/nproc.c.
10595         * m4/omp_h.m4: New file.
10596         * modules/openmp (Files): Add them.
10597         (Depends-on): Add include_next, c-ctype, setenv.
10598         (configure.ac): Invoke gl_OMP_H.
10599         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
10600         (Include): Mention <omp.h>.
10602 2019-04-09  Bruno Haible  <bruno@clisp.org>
10604         nproc: Fix return value for privileged processes.
10605         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
10606         getpid().
10608 2019-04-07  Bruno Haible  <bruno@clisp.org>
10610         Add copyright notices in several files.
10611         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
10612         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
10613         * lib/libunistring.valgrind: Likewise.
10614         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
10615         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
10616         * lib/memchr.valgrind: Likewise.
10617         * lib/memchr2.valgrind: Likewise.
10618         * lib/rawmemchr.valgrind: Likewise.
10619         * lib/relocatable.valgrind: Likewise.
10620         * lib/strchrnul.valgrind: Likewise.
10622 2019-03-25  Bruno Haible  <bruno@clisp.org>
10624         term-style-control tests: Fix link error.
10625         Reported by Tom G. Christensen in
10626         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
10627         * modules/term-style-control-tests (Makefile.am): Link
10628         test-term-style-control-hello and test-term-style-control-yes against
10629         LIBINTL.
10631 2019-03-24  Bruno Haible  <bruno@clisp.org>
10633         term-style-control: Add tests.
10634         * tests/test-term-style-control-hello.c: New file.
10635         * tests/test-term-style-control-yes.c: New file.
10636         * modules/term-style-control-tests: New file.
10638         term-style-control: New module.
10639         * lib/term-style-control.h: New file, based on libtextstyle's
10640         term-ostream.oo.h and term-ostream.oo.c.
10641         * lib/term-style-control.c: New file, based on libtextstyle's
10642         term-ostream.oo.c.
10643         * modules/term-style-control: New file.
10645 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10647         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
10648         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
10649         C++98 appears to be supported by Clang, but not by GCC nor ICC.
10651 2019-03-23  Bruno Haible  <bruno@clisp.org>
10653         Support cross-compilation to musl libc.
10654         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
10655         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
10656         musl libc.
10657         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10658         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
10659         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10660         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10661         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10662         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
10663         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10664         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
10665         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10666         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
10667         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
10668         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
10669         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10670         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10671         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
10672         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
10673         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
10674         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10675         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
10676         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10677         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10678         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10679         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
10680         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10681         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
10682         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
10683         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
10684         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
10685         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
10686         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
10687         * m4/log.m4 (gl_FUNC_LOG): Likewise.
10688         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
10689         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
10690         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
10691         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
10692         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
10693         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
10694         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
10695         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
10696         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
10697         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
10698         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
10699         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
10700         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10701         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
10702         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
10703         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
10704         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
10705         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
10706         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
10707         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
10708         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
10709         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10710         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
10711         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10712         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
10713         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
10714         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
10715         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
10716         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10717         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10718         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10719         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10720         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
10721         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10722         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10723         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10724         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
10725         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10726         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
10727         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10728         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10729         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10730         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
10731         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
10732         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
10733         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10736 2019-03-23  Bruno Haible  <bruno@clisp.org>
10738         posix_spawn_file_actions_*: Document musl libc bugs.
10739         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10740         the bug.
10741         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
10742         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
10743         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
10744         cross-compiling to a musl system, guess no.
10745         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
10746         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
10748 2019-03-23  Bruno Haible  <bruno@clisp.org>
10750         futimens: Document musl libc bug.
10751         * doc/posix-functions/futimens.texi: Mention the bug.
10752         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
10753         cross-compiling, guess no on glibc and musl systems.
10755 2019-03-23  Bruno Haible  <bruno@clisp.org>
10757         Clarify that cross-compilation guesses are guesses.
10758         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
10759         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
10760         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
10761         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
10762         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
10763         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
10764         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
10765         gl_cv_glob_lists_symlinks.
10766         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
10767         'guessing ' to ac_cv_func_malloc_0_nonnull.
10768         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
10769         'guessing ' to ac_cv_func_realloc_0_nonnull.
10770         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
10771         'guessing ' to gl_cv_func_poll.
10772         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
10773         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
10774         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
10776 2019-03-23  Bruno Haible  <bruno@clisp.org>
10778         strtold: Fix typo.
10779         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
10781 2019-03-23  Bruno Haible  <bruno@clisp.org>
10783         noreturn: In C++ mode with clang, use _Noreturn as fallback.
10784         Reported by Akim Demaille.
10785         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
10786         [[noreturn]] would not work, use _Noreturn instead.
10788 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
10790         libtextstyle-optional: Fix compiler warnings.
10791         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
10792         as unused.
10794 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10796         bitset: fix memory leaks
10797         Reported by Bruno Haible.
10798         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
10799         * lib/bitset/vector.c (vbitset_free): New.
10800         (vbitset_vtable): Use it.
10802 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10804         bitset: minor changes
10805         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
10806         * lib/bitset/table.c: Formatting changes.
10807         Remove useless braces.
10808         Prefer using else in cascades of if/else-if with returns.
10809         * lib/bitset/vector.c: Reduce scopes.
10811 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
10813         bitset: expose bitset_resize
10814         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
10815         * tests/test-bitset.c (check_attributes): Check bitset_resize.
10816         (main): Use a variable bitset as reference, since fixed does not support resize.
10818 2019-03-19  Bruno Haible  <bruno@clisp.org>
10820         doc: Document the 'stdnoreturn' and 'noreturn' modules.
10821         Reported by Akim Demaille.
10822         * doc/noreturn.texi: New file.
10823         * doc/gnulib.texi: Include it.
10825 2019-03-19  Bruno Haible  <bruno@clisp.org>
10827         doc: Document how to use 'static inline'.
10828         * doc/static-inline.texi: New file.
10829         * doc/gnulib.texi: Include it.
10831 2019-03-19  Bruno Haible  <bruno@clisp.org>
10833         libtextstyle-optional: Add tests.
10834         * tests/test-libtextstyle.c: New file, based on libtextstyle's
10835         adhoc-tests/hello.c.
10836         * tests/test-libtextstyle-default.css: New file, copied from
10837         libtextstyle's adhoc-tests/hello-default.css.
10838         * modules/libtextstyle-optional-tests: New file.
10840         libtextstyle-optional: New module.
10841         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
10842         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
10843         * modules/libtextstyle-optional: New file.
10845 2019-03-19  Bruno Haible  <bruno@clisp.org>
10847         c-stack: Make signal handlers more reliable.
10848         * lib/c-stack.c (progname): New variable.
10849         (die): Use it.
10850         (c_stack_action): Initialize it.
10851         (segv_handler): Save and restore errno.
10853 2019-03-19  Bruno Haible  <bruno@clisp.org>
10855         Help making signal handlers more reliable.
10856         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
10857         _GL_ASYNC_SAFE into config.h.
10858         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
10859         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
10860         argument.
10861         * lib/fatal-signal.c (action_t, uninstall_handlers,
10862         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
10863         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
10864         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
10865         _GL_ASYNC_SAFE.
10866         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
10867         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
10869 2019-03-18  Bruno Haible  <bruno@clisp.org>
10871         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
10872         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
10873         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
10875 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10877         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
10878         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
10879         GCC 4.8.
10881 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
10883         fts: minor simplification
10884         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
10886 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
10888         bitset, timevar: Depend on c99.
10889         Reported by Bruno Haible.
10890         * modules/bitset, modules/timevar (Depends-on): Add c99.
10892 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
10894         bitset: a bit (...) more tests
10895         * tests/test-bitset.c (check_attributes): Check zero and ones.
10897 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
10899         bitset: fix overflows.
10900         Reported by Bruno Haible.
10901         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
10902         * lib/bitset/table.c (tbitset_test): last_bit is the position of
10903         the bit in the array of bitset_word, so be sure to take its modulo
10904         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
10905         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
10907 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
10909         bitset: style changes.
10910         * lib/bitset/table.c: Use NULL, not 0, for pointers.
10911         Formatting changes.
10912         (tbitset_list): Reduce scopes.
10914 2019-03-16  Bruno Haible  <bruno@clisp.org>
10916         fatal-signal: Pass the signal number to the action.
10917         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
10918         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
10919         (fatal_signal_handler): Pass the signal number to the action.
10920         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
10921         signal number as parameter.
10922         (create_temp_dir): Update.
10923         * lib/wait-process.c (cleanup_slaves_action): New function.
10924         (register_slave_subprocess): Update at_fatal_signal invocation.
10925         * NEWS: Mention the change.
10927 2019-03-16  Bruno Haible  <bruno@clisp.org>
10929         fatal-signal: Add function that lists the fatal signals.
10930         * lib/fatal-signal.h (get_fatal_signals): New declaration.
10931         * lib/fatal-signal.c (get_fatal_signals): New function.
10933 2019-03-14  Bruno Haible  <bruno@clisp.org>
10935         isatty: Make it return true in Cygwin consoles on native Windows.
10936         * lib/isatty.c: Include <string.h>.
10937         (GetProcAddress): New macro.
10938         (GetNamedPipeClientProcessIdFuncType): New type.
10939         (GetNamedPipeClientProcessIdFunc): New variable.
10940         (QueryFullProcessImageNameFuncType): New type.
10941         (QueryFullProcessImageNameFunc): New variable.
10942         (initialized): New variable.
10943         (initialize): New function.
10944         (IsCygwinConsoleHandle): New function.
10945         (isatty): Invoke it.
10946         * doc/posix-functions/isatty.texi: Mention the issue.
10948 2019-03-14  Bruno Haible  <bruno@clisp.org>
10950         all: Update URLs to msdn.microsoft.com.
10951         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
10952         was moved to docs.microsoft.com.
10954 2019-03-13  Bruno Haible  <bruno@clisp.org>
10956         gnulib-tool: Clarify the coding style.
10957         Suggested by Pavel Raiskup <praiskup@redhat.com>.
10958         * gnulib-tool: Add comment about coding style.
10960 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
10962         strtod: fix clash with strtold
10963         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
10964         * lib/strtod.c (compute_minus_zero, minus_zero):
10965         Simplify by remving the macro / external variable,
10966         and having just a function.  User changed.  This avoids
10967         the need for an external variable that might clash.
10969 2019-03-10  Bruno Haible  <bruno@clisp.org>
10971         alloca-opt: Fix conflict mingw's new <alloca.h> file.
10972         Reported by Eli Zaretskii <eliz@gnu.org>.
10973         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
10974         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
10975         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
10977 2019-03-10  Bruno Haible  <bruno@clisp.org>
10979         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
10980         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
10981         is in use.
10982         * tests/test-printf-posix2.c: Likewise.
10984 2019-03-10  Bruno Haible  <bruno@clisp.org>
10986         uninorm tests: Free allocated memory.
10987         * tests/uninorm/test-u32-normalize-big.h
10988         (struct normalization_test_file): Remove 'const' from allocated member.
10989         (free_normalization_test_file): New declaration.
10990         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
10991         memory.
10992         (free_normalization_test_file): New function.
10993         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
10994         'struct normalization_test_file' contents.
10995         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
10996         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
10997         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
10999 2019-03-10  Bruno Haible  <bruno@clisp.org>
11001         di-set: Fix memory leak.
11002         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
11003         not free().
11005 2019-03-10  Bruno Haible  <bruno@clisp.org>
11007         tests: Free allocated memory.
11008         Reported by <deltatau@protonmail.com> via Assaf Gordon.
11009         * tests/test-astrxfrm.c (main): Free allocated memory.
11010         * tests/test-bitset.c (compare, check_attributes): Free allocated
11011         bitsets.
11012         * tests/test-filenamecat.c (main): Free allocated memory.
11013         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
11014         * tests/test-freadptr.c (main): Likewise.
11015         * tests/test-freadptr2.c (main): Free allocated memory.
11016         * tests/test-freadseek.c (main): Likewise.
11017         * tests/test-gc-arcfour.c (main): Close allocated context.
11018         * tests/test-gc-arctwo.c (main): Likewise.
11019         * tests/test-gc-des.c (main): Close all allocated contexts.
11020         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
11021         * tests/test-pipe-filter-ii1.c (main): Likewise.
11022         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
11023         allocated file actions.
11024         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
11025         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
11026         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
11027         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
11028         * tests/test-strfmon_l.c (main): Free allocated locales.
11029         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
11030         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
11031         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11032         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11033         * tests/unistr/test-chr.h (main): Free input32.
11034         * tests/unistr/test-strchr.h (test_strchr): Likewise.
11036 2019-03-10  Bruno Haible  <bruno@clisp.org>
11038         tests: Prepare for using valgrind.
11039         * tests/*.sh: Invoke all test programs through ${CHECKER}.
11040         * tests/*/*.sh: Likewise.
11041         * tests/test-freadptr.c (main): Update accordingly.
11042         * tests/test-freadseek.c (main): Likewise.
11044 2019-03-09  Bruno Haible  <bruno@clisp.org>
11046         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
11047         * lib/get-rusage-as.c (get_rusage_as): When compiled by
11048         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
11049         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
11050         before exiting.
11052 2019-03-09  Jim Meyering  <meyering@fb.com>
11054         test-userspec.c: don't print NULL
11055         * tests/test-userspec.c (main): A test release of gcc,
11056         9.0.1 20190310, warned that this test would attempt to
11057         print a NULL pointer via a %s printf format.  Fix that
11058         and remove the unnecessary preceding "!diag" conjunct.
11059         Also add a comment.
11061 2019-03-03  Bruno Haible  <bruno@clisp.org>
11063         getloadavg: Write NULL for the null pointer.
11064         Reported by Michal Privoznik <mprivozn@redhat.com>.
11065         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
11067 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
11069         alloca, tsearch-tests: Write NULL for the null pointer.
11070         * lib/alloca.c (i00afunc): Write NULL instead of 0.
11071         * tests/test-tsearch.c (mangle_tree): Likewise.
11073 2019-03-09  Bruno Haible  <bruno@clisp.org>
11075         strfmon_l: Fix -fsanitize=address finding.
11076         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
11077         <string.h>.
11078         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
11079         (directive_t, directives_t): New types.
11080         (fmon_parse): New function.
11081         (rpl_strfmon_l): Don't call va_arg more often than needed for the
11082         format string. Consume 'long double' arguments in places where the
11083         format string indicates so.
11084         * modules/strfmon_l (Depends-on): Add 'stdbool'.
11086 2019-03-09  Bruno Haible  <bruno@clisp.org>
11088         crypto/des: Fix undefined behaviour.
11089         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
11090         shift operations on 'int'.
11092 2019-03-09  Bruno Haible  <bruno@clisp.org>
11094         Fix undefined behaviour.
11095         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
11096         'unsigned int', to avoid shift operations on 'int'.
11097         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
11098         * tests/test-count-leading-zeros.c (main): Use a random number that has
11099         as many bits as TYPE, not only 2*15 or 2*31 bits.
11100         * tests/test-count-trailing-zeros.c (main): Likewise.
11101         * tests/test-count-one-bits.c (main): Likewise.
11102         * tests/test-memmem.c: Don't include "null-ptr.h".
11103         (main): Use zerosize_ptr() instead of null_ptr().
11104         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
11106 2019-03-08  Bruno Haible  <bruno@clisp.org>
11108         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
11109         Reported by Jeffrey Walton <noloader@gmail.com>.
11110         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
11111         invoke memset with a zero size.
11112         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
11113         Likewise.
11114         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
11115         Adjust accordingly.
11117 2019-03-08  Bruno Haible  <bruno@clisp.org>
11119         unistr/*, uniconv/*: Fix undefined behaviour.
11120         Reported by Jeffrey Walton <noloader@gmail.com>.
11121         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
11122         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
11123         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
11124         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11126 2019-03-08  Bruno Haible  <bruno@clisp.org>
11128         unistr/u8-cmp: Fix undefined behaviour.
11129         Reported by Jeffrey Walton <noloader@gmail.com>.
11130         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
11132 2019-03-08  Bruno Haible  <bruno@clisp.org>
11134         unictype/numeric: Fix undefined behaviour.
11135         Reported by Jeffrey Walton <noloader@gmail.com>.
11136         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
11137         on shift overflow, caught by "gcc -fsanitize=undefined".
11138         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
11139         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
11140         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
11142 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
11144         git-version-gen: fix --version copyright year
11145         * build-aux/git-version-gen, build-aux/move-if-change (version):
11146         --version output copyright year is now taken from script year,
11147         so that it no longer needs to be updated by hand.
11149 2019-03-04  Bruno Haible  <bruno@clisp.org>
11151         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
11152         This approach supports relocatable installation of shared libraries
11153         which depend on other shared libraries from the same package.
11154         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11155         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
11156         wrapper around the original LIBTOOL.
11157         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
11158         token '@loader_path' instead of '$ORIGIN'.
11159         * build-aux/libtool-reloc: New file.
11160         * modules/relocatable-prog (Files): Add it.
11161         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11162         the recent changes. Document the need to set the *_LDFLAGS of libraries.
11163         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
11164         Makefile.am, not in configure.ac.
11166 2019-03-04  Bruno Haible  <bruno@clisp.org>
11168         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
11169         * build-aux/install-reloc: Revert change.
11170         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
11172 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11174         nstrftime: support the ‘+’ flag
11175         * lib/nstrftime.c (add, __strftime_internal):
11176         Add support for the ‘+’ flag introduced in POSIX.1-2017.
11177         (__strftime_internal): New arg ‘width’.  All uses changed.
11178         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
11180 2019-02-24  Bruno Haible  <bruno@clisp.org>
11182         relocatable-prog: Improve verbose output.
11183         * build-aux/install-reloc (func_verbose): Escape characters that would
11184         be interpreted by the shell.
11186 2019-02-24  Bruno Haible  <bruno@clisp.org>
11188         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
11189         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
11190         "sys/stat.h".
11191         * lib/lstat.c: Likewise.
11192         * lib/fstat.c: Likewise.
11193         * lib/fstatat.c: Likewise.
11195 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
11197         long-options: add parse_gnu_standard_options_only
11198         Discussed in https://bugs.gnu.org/33468 .
11200         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
11201         (parse_gnu_standard_options_only): Add function to process
11202         the GNU default options --help and --version and fail for
11203         any other unknown long or short option. See
11204         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
11205         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
11206         * modules/long-options (depends-on): Add stdbool, exitfail.
11207         * top/maint.mk (sc_prohibit_long_options_without_use): Update
11208         syntax-check rule, add new function name.
11210 2019-02-23  Bruno Haible  <bruno@clisp.org>
11212         relocatable-prog: Update documentation.
11213         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
11214         the recent changes.
11216 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
11218         nstrftime: tweak arg order
11219         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
11220         All callers changed.  Suggested by TAMUKI Shoichi in:
11221         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
11223 2019-02-23  Bruno Haible  <bruno@clisp.org>
11225         relocatable-prog: Use wrapper-free installation also on Mac OS X.
11226         Reported by Paul Smith <psmith@gnu.org>.
11227         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
11228         (func_relativize): New function, from gnulib-tool.
11229         Handle mode 'macosx' through invocations of 'otool' and
11230         'install_name_tool'.
11231         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
11232         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
11233         'install-reloc' invocation with mode 'macosx'.
11235 2019-02-23  Bruno Haible  <bruno@clisp.org>
11237         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
11238         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11239         Hurd with glibc >= 2.27.
11241 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
11243         nstrftime: merge glibc strftime changes
11244         This incorporates:
11245         2019-02-11 Fix a few whitespace arrangement inconsistencies
11246         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
11247         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
11248         2019-01-11 strftime: use the "L_" macro with character literals
11249         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
11250         callers changed.  Default width of %Ey is now 2.  This is needed
11251         for proper handling of Japanese dates starting on 2019-05-01.
11253 2019-02-19  Bruno Haible  <bruno@clisp.org>
11255         relocatable-prog: Use $ORIGIN trick on more platforms.
11256         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
11257         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
11258         Solaris >= 10, Haiku. But don't use it on Android.
11259         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
11260         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
11262 2019-02-19  Bruno Haible  <bruno@clisp.org>
11264         progreloc: Speed up executable lookup on various platforms.
11265         * lib/progreloc.c: Include <errno.h>.
11266         (safe_read, full_read): New functions.
11267         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
11268         prefer the information from the /proc file system to a PATH search.
11270 2019-02-19  Bruno Haible  <bruno@clisp.org>
11272         progreloc: Simplify code for Android.
11273         * lib/progreloc.c (executable_fd): Don't define on Android.
11274         (maybe_executable, find_executable): Don't use executable_fd on Android.
11276 2019-02-15  Bruno Haible  <bruno@clisp.org>
11278         gnulib-tool: Support --import with just a few tests, not --with-tests.
11279         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
11280         'inctests' when generating files; use 'inctests' only for computing the
11281         transitive closure.
11283 2019-02-14  Bruno Haible  <bruno@clisp.org>
11285         gnulib-tool: Improve handling of multiple --local-dir options.
11286         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
11287         options work.
11288         * gnulib-tool (func_path_prepend): Remove function.
11289         (func_path_foreach): Make IFS handling more robust.
11290         (local_gnulib_path): Collect --local-dir values using func_path_append,
11291         not func_path_prepend.
11292         (func_determine_path_separator): Make IFS handling more robust.
11293         (func_lookup_file_cb): New function.
11294         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
11295         func_lookup_local_file. Apply the patches in the reverse order of their
11296         origin in $local_gnulib_path.
11297         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
11298         * NEWS: Mention that the first --local-dir option is the one with
11299         highest priority.
11301 2019-02-10  Bruno Haible  <bruno@clisp.org>
11303         libtextstyle: New module.
11304         * m4/libtextstyle.m4: New file.
11305         * modules/libtextstyle: New file.
11307 2019-02-05  Bruno Haible  <bruno@clisp.org>
11309         declared.sh: Fix bug with variables of pointer type.
11310         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
11311         before the symbol to be omitted if the preceding character is a '*'.
11313 2019-02-04  Bruno Haible  <bruno@clisp.org>
11315         Add script for running tests under valgrind.
11316         * build-aux/run-test: New file, from GNU libunistring.
11317         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
11318         as well.
11320 2019-02-04  Bruno Haible  <bruno@clisp.org>
11322         declared.sh: Fix --version output.
11323         * build-aux/declared.sh (func_version): Update package name.
11325 2019-02-03  Bruno Haible  <bruno@clisp.org>
11327         Add script for determining the set of symbols to export from a library.
11328         * build-aux/declared.sh: New file, from GNU libunistring.
11329         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
11330         Mention it.
11332 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
11334         vla: add commentary about VLA_ELEMS
11335         * lib/vla.h (VLA_ELEMS): Add commentary,
11336         some inspired by Bruno Haible’s proposal in:
11337         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
11339         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
11340         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
11341         assume the C99 signatures for strtod and strtold.  Programs that
11342         require stricter adherence to C99 should also use the strtod and
11343         strtold modules as needed, and we no longer need the
11344         HAVE_C99_STRTOLD macro.
11345         * NEWS: Mention this.
11346         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
11347         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
11348         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
11349         (Files): Remove m4/c-strtod.m4.
11350         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
11351         exists.
11353 2019-02-02  Bruno Haible  <bruno@clisp.org>
11355         fma: Improve code style.
11356         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
11358 2019-02-02  Colin Watson  <cjwatson@debian.org>
11360         *-map tests: Fix compilation error.
11361         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
11362         * tests/test-hash_map.c: Likewise.
11363         * tests/test-linkedhash_map.c: Likewise.
11365 2019-01-31  Bruno Haible  <bruno@clisp.org>
11367         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
11368         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
11369         GNULIB_defined_strtold_function): New macros.
11370         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
11371         (STRTOD): Ignore HAVE_C99_STRTOLD.
11372         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
11373         deemed buggy. But do use it on platforms where uselocale exists and is
11374         usable.
11375         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
11376         deemed buggy. On platforms where uselocale exists and is usable, use
11377         uselocale and strtod/strtold.
11378         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
11379         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
11380         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
11381         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
11382         (Depends-on): Add strtod.
11383         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
11384         (Depends-on): Add strtold.
11386 2019-01-31  Bruno Haible  <bruno@clisp.org>
11388         strtod, strtold: Use the locale's decimal point.
11389         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
11390         (decimal_point_char): New function, copied from lib/vasnprintf.c.
11391         (parse_number): Add a radixchar argument. Use it instead of '.'.
11392         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
11393         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
11394         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
11395         * tests/test-strtod1.c: New file.
11396         * tests/test-strtod1.sh: New file.
11397         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
11398         locale-fr.m4 and its dependencies.
11399         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11400         (Makefile.am): Arrange to compile test-strtod1.c and run
11401         test-strtod1.sh.
11402         * tests/test-strtold1.c: New file.
11403         * tests/test-strtold1.sh: New file.
11404         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
11405         locale-fr.m4 and its dependencies.
11406         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
11407         (Makefile.am): Arrange to compile test-strtold1.c and run
11408         test-strtold1.sh.
11410 2019-01-31  Bruno Haible  <bruno@clisp.org>
11412         strtod, strtold tests: Simplify tests.
11413         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
11414         * tests/test-strtold.c (main): Likewise.
11416 2019-01-31  Bruno Haible  <bruno@clisp.org>
11418         strtod, strtold: Avoid unnecessary rounding errors.
11419         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
11420         decimal to DOUBLE conversion.
11422 2019-01-31  Bruno Haible  <bruno@clisp.org>
11424         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
11425         * lib/strtod.c (STRTOD): When there is an extra character after the
11426         exponent marker 'p', reparse the number.
11427         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
11428         * doc/posix-functions/strtold.texi: Likewise.
11430 2019-01-29  Bruno Haible  <bruno@clisp.org>
11432         strtold: Add tests.
11433         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
11434         * modules/strtold-tests: New file.
11436 2019-01-29  Bruno Haible  <bruno@clisp.org>
11438         strtold: New module.
11439         * lib/stdlib.in.h (strtold): New declaration.
11440         * lib/strtold.c: New file.
11441         * lib/strtod.c: Consider USE_LONG_DOUBLE.
11442         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
11443         USE_LDEXP): New macros.
11444         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
11445         USE_LONG_DOUBLE.
11446         (underlying_strtod): Remove function. Replace with some macros.
11447         Re-add the code for a missing underlying function that was removed on
11448         2013-02-19.
11449         * m4/strtold.m4: New file.
11450         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
11451         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
11452         REPLACE_STRTOLD.
11453         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
11454         REPLACE_STRTOLD.
11455         * modules/strtold: New file.
11456         * doc/posix-functions/strtold.texi: Document the new module.
11458 2019-01-29  Bruno Haible  <bruno@clisp.org>
11460         strtod: Fix compilation error on IRIX 6.5.
11461         * modules/strtod (Depends-on): Add 'math'.
11463 2019-01-28  Bruno Haible  <bruno@clisp.org>
11465         Fix build error when building a shared libunistring on Android.
11466         * tests/uninorm/test-nfc.c (n): Don't define on Android.
11467         (main): Add 'volatile', to defeat a GCC optimization that would
11468         eliminate the reference.
11469         * tests/uninorm/test-nfd.c (n): Don't define on Android.
11470         (main): Add 'volatile', to defeat a GCC optimization that would
11471         eliminate the reference.
11472         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
11473         (main): Add 'volatile', to defeat a GCC optimization that would
11474         eliminate the reference.
11475         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
11476         (main): Add 'volatile', to defeat a GCC optimization that would
11477         eliminate the reference.
11479 2019-01-27  Bruno Haible  <bruno@clisp.org>
11481         Avoid build errors due to wrong references between modules.
11482         * lib/uninorm/canonical-decomposition.c: Include
11483         "uninorm/decomposition-table.h", not "decomposition-table.h".
11484         * lib/uninorm/decomposition.c: Likewise.
11485         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
11486         not "decompose-internal.h".
11487         * lib/uninorm/u16-normalize.c: Likewise.
11488         * lib/uninorm/u32-normalize.c: Likewise.
11489         * lib/uninorm/uninorm-filter.c: Likewise.
11490         * lib/uninorm/nfkc.c: Likewise.
11491         * lib/uninorm/nfkd.c: Likewise.
11492         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
11493         "caseprop.h".
11494         * lib/unicase/u8-ct-totitle.c: Likewise.
11495         * lib/unicase/u8-prefix-context.c: Likewise.
11496         * lib/unicase/u8-suffix-context.c: Likewise.
11497         * lib/unicase/u16-casemap.c: Likewise.
11498         * lib/unicase/u16-ct-totitle.c: Likewise.
11499         * lib/unicase/u16-prefix-context.c: Likewise.
11500         * lib/unicase/u16-suffix-context.c: Likewise.
11501         * lib/unicase/u32-casemap.c: Likewise.
11502         * lib/unicase/u32-ct-totitle.c: Likewise.
11503         * lib/unicase/u32-prefix-context.c: Likewise.
11504         * lib/unicase/u32-suffix-context.c: Likewise.
11505         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
11506         "unicasemap.h".
11507         * lib/unicase/u8-toupper.c: Likewise.
11508         * lib/unicase/u8-ct-tolower.c: Likewise.
11509         * lib/unicase/u8-ct-toupper.c: Likewise.
11510         * lib/unicase/u16-tolower.c: Likewise.
11511         * lib/unicase/u16-toupper.c: Likewise.
11512         * lib/unicase/u16-ct-tolower.c: Likewise.
11513         * lib/unicase/u16-ct-toupper.c: Likewise.
11514         * lib/unicase/u32-tolower.c: Likewise.
11515         * lib/unicase/u32-toupper.c: Likewise.
11516         * lib/unicase/u32-ct-tolower.c: Likewise.
11517         * lib/unicase/u32-ct-toupper.c: Likewise.
11518         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
11519         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
11520         * lib/unicase/u16-ct-casefold.c: Likewise.
11521         * lib/unicase/u32-ct-casefold.c: Likewise.
11523 2019-01-27  Bruno Haible  <bruno@clisp.org>
11525         gperf: Fix error when this module is required by some test module.
11526         * modules/gperf (Applicability): Set to 'all'.
11528 2019-01-27  Bruno Haible  <bruno@clisp.org>
11530         tmpfile: Add support for Android.
11531         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
11532         works.
11533         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
11534         Android.
11535         * modules/tmpfile (Depends-on): Add 'stdbool'.
11536         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
11537         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
11539 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
11541         bitsetv: allow free on NULL.
11542         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
11544 2019-01-27  Bruno Haible  <bruno@clisp.org>
11546         test-framework-sh: Improve maintainability.
11547         * tests/init.sh: Clarify what belongs together. Reorder definitions.
11549 2019-01-27  Bruno Haible  <bruno@clisp.org>
11551         tests: Don't assume that /tmp exists.
11552         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
11553         * tests/test-copy-acl-1.sh: Likewise.
11554         * tests/test-file-has-acl-1.sh: Likewise.
11555         * tests/test-copy-file-1.sh: Likewise.
11557 2019-01-27  Bruno Haible  <bruno@clisp.org>
11559         tests: Accommodate a shell that is not in /bin/sh.
11560         * tests/init.sh (setup_): Set srcdir and builddir.
11561         (BOURNE_SHELL): New variable.
11562         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
11563         * modules/file-has-acl-tests (Depends-on): Likewise.
11564         * modules/copy-file-tests (Depends-on): Likewise.
11565         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
11566         scripts through $BOURNE_SHELL.
11567         * tests/test-set-mode-acl-2.sh: Likewise.
11568         * tests/test-copy-acl-1.sh: Likewise.
11569         * tests/test-copy-acl-2.sh: Likewise.
11570         * tests/test-file-has-acl-1.sh: Likewise.
11571         * tests/test-file-has-acl-2.sh: Likewise.
11572         * tests/test-copy-file-1.sh: Likewise.
11573         * tests/test-copy-file-2.sh: Likewise.
11574         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
11575         invoker.
11576         * tests/test-copy-acl.sh (builddir): Likewise.
11577         * tests/test-file-has-acl.sh (builddir): Likewise.
11578         * tests/test-copy-file.sh (builddir): Likewise.
11579         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
11580         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
11581         * tests/test-vc-list-files-git.sh: Likewise.
11583 2019-01-27  Bruno Haible  <bruno@clisp.org>
11585         tests: Fix some "unused variable" warnings.
11586         * tests/test-fts.c (fts_dealloc): Remove unused variable.
11587         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
11588         * tests/test-striconveh.c (main): Move some variable into the
11589         '#if HAVE_ICONV'.
11590         * tests/test-striconveha.c (main): Likewise.
11591         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
11592         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
11593         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
11594         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
11595         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11596         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
11597         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
11598         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
11599         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
11600         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
11601         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
11602         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
11603         * tests/test-tsearch.c (main): Move some variable into the
11604         '#if HAVE_INITSTATE'.
11606 2019-01-27  Bruno Haible  <bruno@clisp.org>
11608         unigbrk/uc-grapheme-breaks: Fix build failure.
11609         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
11610         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
11612 2019-01-27  Bruno Haible  <bruno@clisp.org>
11614         mountlist: Merge two .m4 files.
11615         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
11616         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
11617         * m4/ls-mntd-fs.m4: Remove file.
11618         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
11620 2019-01-27  Bruno Haible  <bruno@clisp.org>
11622         tests: Enable Linux specific tests on Android.
11623         * tests/test-flock.c (main): Treat Android like Linux.
11624         * tests/test-openat-safer.c (main): Likewise.
11626 2019-01-27  Bruno Haible  <bruno@clisp.org>
11628         relocatable-prog: Use Linux code on Android.
11629         * lib/progreloc.c: Treat Android like Linux.
11631 2019-01-26  Bruno Haible  <bruno@clisp.org>
11633         getloadavg: Add support for Android.
11634         * lib/getloadavg.c: Treat Android like Linux.
11636 2019-01-26  Bruno Haible  <bruno@clisp.org>
11638         vma-iter: Add support for Android.
11639         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
11640         * lib/vma-iter.c: Treat Android like Linux.
11641         * lib/get-rusage-data.c (get_rusage_data): Likewise.
11643 2019-01-26  Bruno Haible  <bruno@clisp.org>
11645         fts: Optimize on Android.
11646         * lib/fts.c: Treat Android like Linux.
11648 2019-01-26  Bruno Haible  <bruno@clisp.org>
11650         fts: Add support for Android.
11651         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
11652         defined by this module and the ones in libc.
11653         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
11655 2019-01-26  Bruno Haible  <bruno@clisp.org>
11657         mountlist: Use Linux code on Android.
11658         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
11659         (unescape_tab, read_file_system_list): Enable Linux code on Android
11660         as well.
11661         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
11662         and endmntent.
11663         * modules/mountlist (Depends-on): Add 'getline'.
11665 2019-01-26  Bruno Haible  <bruno@clisp.org>
11667         localename tests: Fix test failure on Android.
11668         * modules/localename-tests (Depends-on): Add 'setlocale'.
11670 2019-01-26  Bruno Haible  <bruno@clisp.org>
11672         mountlist: Port better to Android.
11673         * lib/mountlist.c (MOUNTED): Redefine on Android.
11674         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
11675         Android.
11677 2019-01-26  Bruno Haible  <bruno@clisp.org>
11679         striconveh: Fix use of uninitialized iconv_t.
11680         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
11681         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
11682         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
11684 2019-01-26  Bruno Haible  <bruno@clisp.org>
11686         nonblocking-socket-tests: Fix test failure on Android 4.3.
11687         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
11688         also on Android.
11690 2019-01-26  Bruno Haible  <bruno@clisp.org>
11692         sh-filename: Add support for Android 4.3.
11693         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
11695 2019-01-26  Bruno Haible  <bruno@clisp.org>
11697         ptsname_r: Work around bug on Android 4.3.
11698         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
11699         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
11700         correct.
11701         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
11702         is defined, just fix the return value.
11703         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
11704         The behaviour of musl libc is nothing to be "fixed", since it is
11705         compliant with the next POSIX standard.
11707 2019-01-26  Bruno Haible  <bruno@clisp.org>
11709         ttyname_r: Work around bug on Android 4.3.
11710         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
11711         * lib/ttyname_r.c (ttyname_r): Implement for Android.
11712         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
11713         * doc/posix-functions/ttyname.texi: Likewise.
11715 2019-01-25  Bruno Haible  <bruno@clisp.org>
11717         getprogname: Port to Android 4.3.
11718         * lib/getprogname.c (getprogname): On Android, take only the last
11719         component of __progname.
11721 2019-01-25  Bruno Haible  <bruno@clisp.org>
11723         wcrtomb: Work around bug on Android 4.3.
11724         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
11725         the C locale.
11726         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
11727         which does not have the 'wctomb' function.
11728         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
11729         * tests/test-wcrtomb.c (main): Accept argument '5'.
11730         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
11732 2019-01-25  Bruno Haible  <bruno@clisp.org>
11734         setlocale: Work around bug on Android 4.3.
11735         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
11736         the "C" locale.
11737         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
11738         * doc/posix-functions/setlocale.texi: Mention the Android bug.
11740 2019-01-24  Bruno Haible  <bruno@clisp.org>
11742         memchr: Work around bug on Android <= 5.0.
11743         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
11744         * doc/posix-functions/memchr.texi: Mention the Android bug.
11746 2019-01-24  Bruno Haible  <bruno@clisp.org>
11748         random: Fix compilation error on Android 4.3.
11749         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
11750         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
11751         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
11752         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
11753         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
11755         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11756         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
11757         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
11758         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
11759         REPLACE_INITSTATE, REPLACE_SETSTATE.
11760         * doc/posix-functions/random.texi: Correct the description of the
11761         situation on Android.
11762         * doc/posix-functions/srandom.texi: Likewise.
11763         * doc/posix-functions/rand.texi: Likewise.
11764         * doc/posix-functions/srand.texi: Likewise.
11766 2019-01-24  Bruno Haible  <bruno@clisp.org>
11768         mbtowc: Fix compilation error on Android 4.3.
11769         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
11770         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
11771         HAVE_MBTOWC.
11772         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
11773         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
11774         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
11775         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
11776         * doc/posix-functions/mbtowc.texi: Mention the change.
11778 2019-01-24  Bruno Haible  <bruno@clisp.org>
11780         fdatasync: Fix compilation error on Android 4.3.
11781         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
11782         test whether fdatasync() exists.
11784 2019-01-24  Bruno Haible  <bruno@clisp.org>
11786         unlinkat: Fix compilation error on Android 4.3.
11787         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
11788         also on Android.
11789         * doc/posix-functions/unlinkat.texi: Mention the issue.
11791 2019-01-24  Bruno Haible  <bruno@clisp.org>
11793         renameat: Fix compilation error on Android 4.3.
11794         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
11795         * doc/posix-functions/renameat.texi: Mention the issue.
11797 2019-01-24  Bruno Haible  <bruno@clisp.org>
11799         fchownat: Fix compilation error on Android 4.3.
11800         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
11801         use.
11802         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
11803         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
11804         * doc/posix-functions/fchownat.texi: Mention the issue.
11806 2019-01-23  Bruno Haible  <bruno@clisp.org>
11808         gnulib-tool: Support running testdirs on Android.
11809         * build-aux/test-driver.diff: New file.
11810         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
11811         build-aux/test-driver after running automake.
11813 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11815         relocatable-prog: avoid warnings from Automake
11816         * modules/relocatable-prog: Don't declare PHONY dependencies in
11817         Automake conditionals.
11819 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
11821         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
11822         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
11824 2019-01-23  Bruno Haible  <bruno@clisp.org>
11826         threadlib: Revert commit from 2018-06-25. We now have a better fix.
11827         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
11828         preceding -Wl,--as-needed option. Don't check whether the linker
11829         supports --as-needed/--no-as-needed and --push-state/--pop-state.
11831 2019-01-23  Bruno Haible  <bruno@clisp.org>
11833         thread: Force linking with -lpthread, even when --as-needed is in use.
11834         Reported by Richard W.M. Jones <rjones@redhat.com> in
11835         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
11836         * lib/glthread/thread.h (pthread_create): Don't declare weak.
11838 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
11839             Bruno Haible  <bruno@clisp.org>
11841         relocatable: avoid compiler warnings (-Wshadow)
11842         * lib/relocatable.c (compute_curr_prefix): Rename local variables
11843         to avoid name collisions with global variables.
11845 2019-01-22  Bruno Haible  <bruno@clisp.org>
11847         vasnprintf: Don't use %n on Android.
11848         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
11849         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
11850         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
11852 2019-01-22  Bruno Haible  <bruno@clisp.org>
11854         *printf: Support cross-compilation to Android.
11855         * m4/printf.m4: Add cross-compilation guesses for Android.
11857 2019-01-21  Bruno Haible  <bruno@clisp.org>
11859         diacrit: Mark deprecated.
11860         * modules/diacrit (Status, Notice): Mark as deprecated.
11861         * NEWS: Mention it.
11863 2019-01-20  Bruno Haible  <bruno@clisp.org>
11865         rintl: Override broken implementation on NetBSD.
11866         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
11867         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
11868         REPLACE_RINTL.
11869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
11870         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
11871         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
11872         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
11874 2019-01-20  Bruno Haible  <bruno@clisp.org>
11876         log10l: Work around inaccurate implementation on NetBSD.
11877         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
11878         * lib/log10l.c: Comment out too simplistic override.
11879         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
11881 2019-01-20  Bruno Haible  <bruno@clisp.org>
11883         logl: Work around inaccurate implementation on NetBSD.
11884         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
11885         * lib/logl.c: Comment out unused code.
11886         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
11888 2019-01-20  Bruno Haible  <bruno@clisp.org>
11890         expm1l: Work around inaccurate implementation on NetBSD.
11891         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
11892         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
11893         REPLACE_EXPM1L.
11894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
11895         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
11896         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
11897         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
11899 2019-01-20  Bruno Haible  <bruno@clisp.org>
11901         expl: Work around inaccurate implementation on NetBSD.
11902         * lib/math.in.h (expl): Test also REPLACE_EXPL.
11903         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
11904         REPLACE_EXPL.
11905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
11906         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
11907         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
11908         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
11910 2019-01-20  Bruno Haible  <bruno@clisp.org>
11912         exp2l: Work around inaccurate implementation on NetBSD.
11913         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
11914         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
11916 2019-01-20  Bruno Haible  <bruno@clisp.org>
11918         floor, floorl: Avoid autoconf warnings.
11919         * modules/floor (configure.ac): Use AC_REQUIRE.
11920         * modules/floorl (configure.ac): Likewise.
11922 2019-01-20  Bruno Haible  <bruno@clisp.org>
11924         Defeat current GCC optimizations in math autoconf tests.
11925         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
11926         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11927         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11928         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11929         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11930         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11931         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11932         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11933         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11934         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11935         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11936         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11937         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11938         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11939         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
11940         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
11941         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
11942         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11943         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11944         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11945         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11946         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11947         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11948         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11949         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11950         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11951         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11952         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11953         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11954         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11955         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11956         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11957         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11958         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11959         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11960         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11961         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11962         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11964 2019-01-19  Pádraig Brady  <P@draigBrady.com>
11966         gettext: support disabling use of VLAs
11967         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
11969 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
11971         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
11972         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
11974 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
11976         fcntl: Fix syntax error (regression from 2018-10-05).
11977         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
11979 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
11981         relocatable: improve documentation.
11982         * doc/relocatable-maint.texi (Supporting Relocation): For
11983         substitutions performed by config.status, we need more variables
11984         (for instance datarootdir defaults to '${prefix}/share' so we need
11985         prefix).
11987 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
11989         backup: update dependencies
11990         * modules/backup-rename (Depends-on): It now depends on opendirat
11991         instead of opendir.  It also uses stdint, and xalloc-oversized.
11992         But no longer dirfd.
11993         * modules/backupfile (Depends-on): Add xalloc-oversized.
11995 2019-01-13  Bruno Haible  <bruno@clisp.org>
11997         getcwd: Fix test failure when building on a Linux 9p file system.
11998         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
11999         EINVAL from mkdir like ENAMETOOLONG.
12000         * tests/test-getcwd.c (test_long_name): Likewise.
12002 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
12004         Fix typos found by codespell.
12005         * lib/*.[hc]: Fix typos in comments.
12006         * pygnulib/*.py: Fix typos in error messages and comments.
12008 2019-01-12  Bruno Haible  <bruno@clisp.org>
12010         doc: Fix documentation about container data types.
12011         Reported by Werner Lemberg <wl@gnu.org>.
12012         * doc/containers.texi (Container data types): Fix typo.
12014 2019-01-10  Bruno Haible  <bruno@clisp.org>
12016         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
12017         Reported by Reuben Thomas <rrt@sc3d.org>.
12018         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
12020 2019-01-06  Bruno Haible  <bruno@clisp.org>
12022         maintainer-makefile: Make the configure.ac section optional.
12023         * top/maint.mk (GREP, SED): Define if not defined.
12025 2019-01-06  Bruno Haible  <bruno@clisp.org>
12027         localename: Assume setlocale function.
12028         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
12029         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
12031 2019-01-06  Bruno Haible  <bruno@clisp.org>
12033         doc: Add documentation about container data types.
12034         * doc/containers.texi: New file.
12035         * doc/gnulib.texi (Particular Modules): Include it.
12037 2019-01-06  Bruno Haible  <bruno@clisp.org>
12039         doc: Update documentation about 'progname' module.
12040         * doc/progname.texi: Rename from doc/error.texi. Change node name and
12041         title. Rewrite.
12042         * doc/gnulib.texi (Particular Modules): Update.
12044 2019-01-06  Bruno Haible  <bruno@clisp.org>
12046         doc: Document the xstdopen and *-safer modules.
12047         * doc/xstdopen.texi: New file.
12048         * doc/gnulib.texi (Particular Modules): Include it.
12050 2019-01-06  Bruno Haible  <bruno@clisp.org>
12052         xstdopen: Add tests.
12053         * tests/test-xstdopen.c: New file.
12054         * tests/test-xstdopen.sh: New file.
12055         * modules/xstdopen-tests: New file.
12057         xstdopen: New module.
12058         * lib/xstdopen.h: New file.
12059         * lib/xstdopen.c: New file.
12060         * modules/xstdopen: New file.
12062 2019-01-06  Bruno Haible  <bruno@clisp.org>
12064         stdopen: Fix compilation error with IRIX cc.
12065         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
12067 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
12069         xfreopen need not include stdio--.h
12070         * lib/xfreopen.c: Do not include stdio--.h.
12072         xfreopen need not depend on freopen-safer
12073         * modules/xfreopen (Depends-on):
12074         Depend on freopen, not freopen-safer.
12076         stdopen: modernize and simplify
12077         * lib/stdopen.c: Update copyright date
12078         Do not include sys/types.h; no longer needed these days.
12079         (stdopen): Use C99-style decl in loop.  Return int errno
12080         value, rather than just a bool.  Do not worry about fd mismatches,
12081         since the caller cares only if 0, 1, 2 are occupied.
12082         * lib/stdopen.h: No need to include <stdbool.h>.
12083         * m4/stdopen.m4: Remove.
12084         * modules/stdopen: New file.
12086         stdopen: copy from last use in coreutils
12087         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
12088         New files, taken from their last commit in coreutils
12089         2007-07-23T12:35:58Z!jim@meyering.net
12090         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
12092 2019-01-05  Bruno Haible  <bruno@clisp.org>
12094         argp: Don't pass an invalid argument to dgettext().
12095         Reported by He X <xw897002528@gmail.com>.
12096         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
12097         dgettext().
12099 2019-01-05  Bruno Haible  <bruno@clisp.org>
12101         argp: Don't pass an invalid argument to dgettext().
12102         Reported by He X <xw897002528@gmail.com>.
12103         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
12104         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
12105         dgettext().
12107 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
12109         stdioext: port to newer 32-bit Android
12110         Problem reported by Tom Yan in:
12111         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
12112         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
12113         (fp_) [__ANDROID__]: Use it.
12115 2019-01-04  Bruno Haible  <bruno@clisp.org>
12117         lock: Fix link error with --enable-threads=pth.
12118         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
12119         Mark as weak.
12121 2019-01-04  Bruno Haible  <bruno@clisp.org>
12123         Fix link errors in unit tests.
12124         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12125         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
12126         * modules/array-map-tests (Makefile.am): Link test-array_map against
12127         libintl.
12128         * modules/array-set-tests (Makefile.am): Link test-array_set against
12129         libintl.
12130         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
12131         libintl.
12132         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
12133         libintl.
12134         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
12135         against libintl.
12136         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
12137         against libintl.
12139 2019-01-04  Bruno Haible  <bruno@clisp.org>
12141         Fix incorrect 'Link' sections.
12142         * modules/regex (Link): Mention the link requirement of module 'lock'.
12143         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
12145 2019-01-04  Bruno Haible  <bruno@clisp.org>
12147         Fix some 'Link' sections.
12148         * modules/c-stack (Link): Add link directive from the 'gettext-h'
12149         dependency.
12150         * modules/getaddrinfo (Link): Likewise.
12152 2019-01-04  Bruno Haible  <bruno@clisp.org>
12154         Remove redundant 'Link' sections.
12155         * modules/canon-host (Link): Remove section.
12156         * modules/timevar (Link): Likewise.
12158 2019-01-04  Bruno Haible  <bruno@clisp.org>
12160         Remove incorrect 'Link' sections.
12161         * modules/acl (Link): Remove section. Use combined 'Link' sections from
12162         the dependencies instead.
12163         * modules/crypto/md5 (Link): Likewise.
12164         * modules/crypto/sha1 (Link): Likewise.
12165         * modules/crypto/sha256 (Link): Likewise.
12166         * modules/crypto/sha512 (Link): Likewise.
12167         * modules/faccessat (Link): Likewise.
12168         * modules/fdutimensat (Link): Likewise.
12169         * modules/iconv_open-utf (Link): Likewise.
12170         * modules/propername (Link): Likewise.
12171         * modules/qacl (Link): Likewise.
12172         * modules/unicodeio (Link): Likewise.
12173         * modules/utimecmp (Link): Likewise.
12174         * modules/utimensat (Link): Likewise.
12175         * modules/xstriconv (Link): Likewise.
12176         * modules/xstriconveh (Link): Likewise.
12178 2019-01-04  Bruno Haible  <bruno@clisp.org>
12180         gnulib-tool: New option --extract-recursive-link-directive.
12181         * gnulib-tool (func_usage): Document the new options
12182         --extract-recursive-dependencies, --extract-recursive-link-directive.
12183         (func_verify_module): Document output variables.
12184         (func_get_dependencies_recursively): New function.
12185         (func_get_link_directive_recursively): New function.
12186         Use them to implement the new options
12187         --extract-recursive-dependencies, --extract-recursive-link-directive.
12188         * doc/gnulib-tool.texi (Link-time requirements): New section.
12190 2019-01-04  Bruno Haible  <bruno@clisp.org>
12192         Clarify meaning of 'Link' section in module description.
12193         * doc/gnulib.texi (Module description): Clarify the meaning of the
12194         'Link' section versus the one of the dependencies.
12195         * NEWS: Mention the change.
12197 2019-01-04  Bruno Haible  <bruno@clisp.org>
12199         pselect: Fix module description.
12200         * modules/pselect (Link): Put one link option per line.
12202 2019-01-04  Bruno Haible  <bruno@clisp.org>
12204         cosl: Fix module description.
12205         * modules/cosl (Link): Fix typo.
12206         * modules/mathl (configure.ac): Likewise.
12208 2019-01-04  Bruno Haible  <bruno@clisp.org>
12210         c-xvasprintf: Fix module dependencies.
12211         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
12213 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
12215         bootstrap: die when some submodules are not initialized
12216         * build-aux/bootstrap: Make sure all submodules are initialized.
12218 2019-01-04  Bruno Haible  <bruno@clisp.org>
12220         bitsetv: Fix module dependencies.
12221         * lib/bitsetv.c: Include xalloc.h.
12222         * modules/bitsetv (Depends-on): Add 'xalloc'.
12224 2019-01-04  Bruno Haible  <bruno@clisp.org>
12226         xmemdup0: Remove redundant code.
12227         * lib/xmemdup0.h (xalloc_die): Remove declaration.
12229 2019-01-04  Bruno Haible  <bruno@clisp.org>
12231         backupfile: Fix module dependencies.
12232         * modules/backupfile (Depends-on): Add 'xalloc'.
12234 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
12236         bitset, crypto/gc: fix conflicts with Solaris 11
12237         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
12238         avoid clash with Solaris 11 <sys/bitset.h>.
12239         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
12240         with Solaris 11 <xorg/gc.h>.
12242 2019-01-04  Bruno Haible  <bruno@clisp.org>
12244         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
12245         Reported by Andy Fiddaman <andy@omniosce.org>.
12246         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
12248 2019-01-03  Eric Blake  <eblake@redhat.com>
12250         maintainer-makefile: fix typo in previous patch
12251         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
12252         of Roman's work.
12254 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
12256         maintainer-makefile: prefer $(GREP) over grep
12257         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
12258         defined.
12259         * top/maint.mk: Use it everywhere.
12261         maintainer-makefile: split long argument lines
12262         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
12263         it would be too long for exec limits on BSD.
12265 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12267         mkfifo: bring back HAVE_MKFIFO macro
12268         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
12269         Problem reported by Andrew Janke in:
12270         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
12272 2018-12-21  Bruno Haible  <bruno@clisp.org>
12274         Assume Autoconf >= 2.63.
12275         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
12276         versions < 2.60.
12278 2018-12-21  Bruno Haible  <bruno@clisp.org>
12280         memcmp: Mention the clang bug.
12281         * tests/test-memcmp.c: Add comment about a known test failure.
12282         * doc/posix-functions/memcmp.texi: Mention the clang bug.
12284 2018-12-20  Jim Meyering  <meyering@fb.com>
12286         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
12287         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
12288           echo '123-x'|LC_ALL=C grep -E '.\bx'
12289         The goal is to revert the first, but reverting it requires to restore
12290         the function deleted in the second. I ran this to restore the deleted
12291         function:
12292           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
12293             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
12294             | patch -R -p1
12295         * lib/dfa.c (charclass_context): Restore deleted function.
12296         Reverting the primary commit removes this change:
12297         dfa: Simplify a building state
12298         * lib/dfa.c (build_state): Simplify a building state.
12300 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
12302         version-etc: allow zero authors
12303         * lib/version-etc.c (version_etc_arn): If no authors are given,
12304         omit authorship info instead of dumping core.
12306 2018-12-19  Bruno Haible  <bruno@clisp.org>
12308         lchown tests: Be more permissive regarding errno values.
12309         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
12310         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
12311         alternative to ENOSYS.
12312         * modules/lchown-tests (Depends-on): Add 'errno'.
12313         * modules/fchownat-tests (Depends-on): Likewise.
12315 2018-12-18  Bruno Haible  <bruno@clisp.org>
12317         duplocale: Avoid test failure on AIX 7.
12318         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
12319         (configure.ac): Invoke gt_FUNC_USELOCALE.
12320         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
12321         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
12322         works.
12324 2018-12-18  Bruno Haible  <bruno@clisp.org>
12326         localename: Fix test failure on AIX 7.
12327         Reported by Assaf Gordon in
12328         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
12329         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
12330         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
12331         instead of ac_cv_func_uselocale.
12332         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
12333         HAVE_USELOCALE.
12334         * lib/localename-table.h: Likewise.
12335         * lib/localename-table.c: Likewise.
12336         * tests/test-localename.c: Likewise.
12337         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
12339 2018-12-18  Bruno Haible  <bruno@clisp.org>
12341         localename: Update comments regarding Cygwin.
12342         * lib/localename.c: Update comment.
12343         * doc/posix-functions/uselocale.texi: Update platforms list.
12344         * doc/posix-functions/newlocale.texi: Likewise.
12345         * doc/posix-functions/duplocale.texi: Likewise.
12346         * doc/posix-functions/freelocale.texi: Likewise.
12348 2018-12-16  Bruno Haible  <bruno@clisp.org>
12350         c-stack: Fix for Linux/sparc.
12351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
12352         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
12354 2018-12-16  Bruno Haible  <bruno@clisp.org>
12356         localename: Avoid test failure on some glibc systems.
12357         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
12358         Unset environment variables that might disturb the first setlocale call,
12359         and verify that this setlocale call succeeds.
12361 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
12363         random: Fix build error on native Windows (regression from 2018-06-21).
12364         * lib/random.c (__srandom, __initstate, __setstate, __random,
12365         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
12366         to the symbols without '__' prefix.
12368 2018-12-16  Bruno Haible  <bruno@clisp.org>
12370         obstack, libc-config: Support HP-UX cc in C99 mode.
12371         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
12372         compiler, even when in C99 mode.
12373         * lib/cdefs.h (__flexarr): Likewise.
12374         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
12376 2018-12-16  Bruno Haible  <bruno@clisp.org>
12378         localename: Fix test failure on OpenBSD >= 6.2.
12379         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
12380         locale system. Define HAVE_FAKE_LOCALES in this case.
12381         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
12382         HAVE_USELOCALE.
12383         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
12384         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
12385         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
12386         platforms list.
12387         * doc/posix-functions/newlocale.texi: Likewise.
12388         * doc/posix-functions/duplocale.texi: Update platforms list.
12389         * doc/posix-functions/freelocale.texi: Likewise.
12391 2018-12-16  Bruno Haible  <bruno@clisp.org>
12393         duplocale tests: Re-enable the test on platforms without <monetary.h>.
12394         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
12395         of the test, on platforms without <monetary.h>.
12397 2018-12-16  Bruno Haible  <bruno@clisp.org>
12399         localename: Update comments.
12400         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
12402 2018-12-15  Jim Meyering  <meyering@fb.com>
12404         regex: fix indentation
12405         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
12407 2018-12-15  Bruno Haible  <bruno@clisp.org>
12409         openat-safer tests: Avoid test failure on NetBSD 8.
12410         * tests/test-openat-safer.c (main): Execute a Linux specific test only
12411         on Linux.
12413 2018-12-15  Jim Meyering  <meyering@fb.com>
12415         regex: work around a bug in glibc-2.27 and prior
12416         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
12417         assertion for /0|()0|\1|0/.
12418         * tests/test-regex.c (main): Add the same test here.
12420 2018-12-15  Bruno Haible  <bruno@clisp.org>
12422         localename: Fix use of uninitialized shell variable.
12423         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
12424         gt_cv_locale_solaris114 always before use. Remove assignment without
12425         effect.
12427 2018-12-15  Bruno Haible  <bruno@clisp.org>
12429         dfa tests: Avoid test failure on Alpine Linux.
12430         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
12431         command found on Alpine Linux.
12433 2018-12-15  Jim Meyering  <meyering@fb.com>
12435         dfa: avoid new warnings from gcc
12436         These would prevent building with -Werror and a Dec snapshot of gcc.
12437         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
12438         Rename each inner instance to "p".
12439         (charclass_context): Remove unused static function.
12441 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
12443         mkdir-p: improve diagnostic for FUSE mounts
12444         Problem reported by Niklas Hambüchen in:
12445         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
12446         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
12447         errno to mkdir errno if the stat errno is likely more interesting.
12449 2018-12-14  Bruno Haible  <bruno@clisp.org>
12451         hash-map: Add tests.
12452         * tests/test-hash_map.c: New file.
12453         * modules/hash-map-tests: New file.
12455         linkedhash-map: Add tests.
12456         * tests/test-linkedhash_map.c: New file.
12457         * modules/linkedhash-map-tests: New file.
12459         array-map: Add tests.
12460         * tests/test-array_map.c: New file.
12461         * modules/array-map-tests: New file.
12463         xmap: New module.
12464         * lib/gl_xmap.h: New file.
12465         * lib/gl_xmap.c: New file.
12466         * modules/xmap: New file.
12468         hash-map: New module.
12469         * lib/gl_hash_map.h: New file.
12470         * lib/gl_hash_map.c: New file.
12471         * modules/hash-map: New file.
12473         linkedhash-map: New module.
12474         * lib/gl_linkedhash_map.h: New file.
12475         * lib/gl_linkedhash_map.c: New file.
12476         * lib/gl_anyhash1.h: Update comments.
12477         * lib/gl_anyhash2.h: Likewise.
12478         * modules/linkedhash-map: New file.
12480         array-map: New module.
12481         * lib/gl_array_map.h: New file.
12482         * lib/gl_array_map.c: New file.
12483         * modules/array-map: New file.
12485         map: New module.
12486         * lib/gl_map.h: New file.
12487         * lib/gl_map.c: New file.
12488         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
12489         conflict with gl_map.h.
12490         * modules/map: New file.
12492 2018-12-13  Bruno Haible  <bruno@clisp.org>
12494         select tests: Avoid test failure on Cygwin.
12495         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
12497 2018-12-13  Bruno Haible  <bruno@clisp.org>
12499         localtime-buffer: Avoid endless recursion in localtime and gmtime.
12500         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
12502 2018-12-13  Bruno Haible  <bruno@clisp.org>
12504         localeconv tests: Avoid test failure on Cygwin.
12505         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
12506         'mon_grouping' tests.
12508 2018-12-11  Bruno Haible  <bruno@clisp.org>
12510         omap: Don't dispose the old value when the function returns it.
12511         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
12512         here.
12513         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12514         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
12515         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
12516         here.
12518         array-omap, avltree-omap, rbtree-omap: Tweak style.
12519         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
12520         false.
12521         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
12523         rbtree-omap: Add tests.
12524         * tests/test-rbtree_omap.c: New file.
12525         * modules/rbtree-omap-tests: New file.
12527         avltree-omap: Add tests.
12528         * tests/test-avltree_omap.c: New file.
12529         * modules/avltree-omap-tests: New file.
12531         array-omap: Add tests.
12532         * tests/test-array_omap.c: New file.
12533         * modules/array-omap-tests: New file.
12535         xomap: New module.
12536         * lib/gl_xomap.h: New file.
12537         * lib/gl_xomap.c: New file.
12538         * modules/xomap: New file.
12540         rbtree-omap: New module.
12541         * lib/gl_rbtree_omap.h: New file.
12542         * lib/gl_rbtree_omap.c: New file.
12543         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
12544         Parameterize.
12545         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
12546         * modules/rbtree-omap: New file.
12547         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
12548         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
12550         avltree-omap: New module.
12551         * lib/gl_avltree_omap.h: New file.
12552         * lib/gl_avltree_omap.c: New file.
12553         * lib/gl_avltree_ordered.h: Code moved to here from
12554         lib/gl_avltree_oset.c. Parameterize.
12555         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
12556         * lib/gl_anytree_omap.h: New file.
12557         * modules/avltree-omap: New file.
12558         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
12559         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
12561         array-omap: New module.
12562         * lib/gl_array_omap.h: New file.
12563         * lib/gl_array_omap.c: New file.
12564         * modules/array-omap: New file.
12566         omap: New module.
12567         * lib/gl_omap.h: New file.
12568         * lib/gl_omap.c: New file.
12569         * modules/omap: New file.
12571 2018-12-11  Bruno Haible  <bruno@clisp.org>
12573         hash-set, linkedhash-set: Reduce code duplication.
12574         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
12575         lib/gl_anyhash_set1.h.
12576         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
12577         lib/gl_anyhash_set2.h. Parameterize.
12578         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
12579         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
12580         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
12581         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
12582         * lib/gl_rbtreehash_list.c: Likewise.
12583         * lib/gl_linkedhash_list.c: Likewise.
12584         (hash_resize_after_add): Remove function.
12585         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
12586         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
12587         * gl_hash_set.c: Likewise.
12588         * modules/avltreehash-list (Files, Makefile.am): Update file list.
12589         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
12590         * modules/linkedhash-list (Files, Makefile.am): Likewise.
12591         * modules/linkedhash-set (Files, Makefile.am): Likewise.
12592         * modules/hash-set (Files, Makefile.am): Likewise.
12594 2018-12-11  Bruno Haible  <bruno@clisp.org>
12596         array-set: Optimize.
12597         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
12598         outside the loop, not inside the loop.
12600 2018-12-11  Bruno Haible  <bruno@clisp.org>
12602         times: Fix tests.
12603         * tests/test-times.c (doublecmp): Implement a total order.
12605 2018-12-11  Bruno Haible  <bruno@clisp.org>
12607         array-set, linkedhash-set, hash-set: Fix tests.
12608         * tests/test-array_set.c (cmp_objects_in_array): New function.
12609         (check_equals): Use it.
12610         * tests/test-hash_set.c: Likewise.
12611         * tests/test-linkedhash_set.c: Likewise.
12613 2018-12-08  Bruno Haible  <bruno@clisp.org>
12615         Fix comments.
12616         * lib/gl_list.h (gl_list_free): Clarify what it does.
12617         * lib/gl_oset.h (gl_oset_free): Likewise.
12618         * lib/gl_set.h (gl_set_free): Likewise.
12619         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
12620         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
12621         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
12622         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
12624 2018-12-03  Bruno Haible  <bruno@clisp.org>
12626         hash-set: Add tests.
12627         * tests/test-hash_set.c: New file.
12628         * modules/hash-set-tests: New file.
12630         linkedhash-set: Add tests.
12631         * tests/test-linkedhash_set.c: New file.
12632         * modules/linkedhash-set-tests: New file.
12634         array-set: Add tests.
12635         * tests/test-array_set.c: New file.
12636         * modules/array-set-tests: New file.
12638         xset: New module.
12639         * lib/gl_xset.h: New file.
12640         * lib/gl_xset.c: New file.
12641         * modules/xset: New file.
12643         hash-set: New module.
12644         * lib/gl_hash_set.h: New file.
12645         * lib/gl_hash_set.c: New file.
12646         * modules/hash-set: New file.
12648         linkedhash-set: New module.
12649         * lib/gl_linkedhash_set.h: New file.
12650         * lib/gl_linkedhash_set.c: New file.
12651         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
12652         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
12653         * lib/gl_anyhash_primes.h: New file, extracted from
12654         lib/gl_anyhash_list2.h.
12655         * lib/gl_anyhash_list2.h: Include it.
12656         (primes, next_prime): Remove definitions.
12657         * modules/linkedhash-set: New file.
12658         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
12659         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12660         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
12661         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12662         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
12663         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
12665         array-set: New module.
12666         * lib/gl_array_set.h: New file.
12667         * lib/gl_array_set.c: New file.
12668         * modules/array-set: New file.
12670         set: New module.
12671         * lib/gl_set.h: New file.
12672         * lib/gl_set.c: New file.
12673         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
12674         gl_set.h.
12675         * modules/set: New file.
12677 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
12679         bison: don't force the Yacc mode
12680         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
12681         errors when Bison features are used in the grammar file.  Some of
12682         these features (such as %expect) were flagged non-yacc recently.  Most
12683         of the time, -y is actually used to please Automake's ylwrap which
12684         expects the output to be y.tab.c.
12685         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
12687 2018-12-01  Bruno Haible  <bruno@clisp.org>
12689         gnupload: Document short options.
12690         * build-aux/gnupload (usage): Document the short options.
12692 2018-11-28  Ben Elliston  <bje@gnu.org>
12694         gnupload: Support option -h as alias of --help.
12695         * build-aux/gnupload: Support -h.
12697 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
12699         memrchr: port better to clang
12700         * lib/memrchr.c (__memrchr): Cast to void * instead of to
12701         longword *, to pacify clang -Wcast-align (Bug#33544).
12703 2018-11-29  Eric Blake  <eblake@redhat.com>
12705         docs: mention printf %m considerations
12706         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
12707         is not portable, and is easy enough to work around.
12708         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
12709         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
12710         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
12711         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
12712         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12713         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12714         * doc/posix-functions/printf.texi (printf): Likewise.
12715         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
12716         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
12717         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
12718         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12719         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12720         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12721         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12722         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12723         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
12724         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
12725         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12726         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12728 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
12730         bitset: rename ebitset/expandable.* as tbitset/table.*
12731         See
12732         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
12733         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
12734         * lib/bitset/table.h, lib/bitset/table.c: these.
12735         Rename all the ebitset* symbols as tbitset*.
12736         Adjust dependencies.
12738 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12740         bitset: check the operations
12741         * tests/test-bitset.c (bitset_random): New.
12742         Use it.
12743         * lib/bitset/expandable.c (ebitset_not): Fix typo.
12745 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12747         bitset: properly use false/true instead of 0/1 for Booleans
12748         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
12749         0/1, as Booleans.
12751 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
12753         bitset: rename BITSET_VARRAY as BITSET_VECTOR
12754         For consistency with the name of the file.
12755         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
12756         * lib/bitset/stats.c, lib/bitset/vector.c
12757         (BITSET_VARRAY): Rename as...
12758         (BITSET_VECTOR): this.
12760 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
12762         strerror_r-posix: memmove, not memcpy
12763         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
12764         since the source and destination might overlap in the call
12765         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
12766         Simplify.
12768 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12770         bitsetv: new module
12771         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
12773 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12775         bitset: add tests and doc
12776         First stabs at providing a documentation and test for the bitset
12777         module.
12778         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
12780 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
12782         bitset: new module
12783         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
12784         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
12785         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
12786         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
12787         * lib/bitset/vector.h, modules/bitset:
12788         New.
12790 2018-11-23  Bruno Haible  <bruno@clisp.org>
12792         localename: Fix gettext test failures on mingw.
12793         * lib/localename.c (gl_locale_name_posix): Convert the result of
12794         gl_locale_name_environ to XPG syntax.
12796 2018-11-23  Karl Berry  <karl@freefriends.org>
12798         * config/srclistvars.txt,
12799         * config/srclist.txt: remove all gettext references;
12800         the gettext maintainers will sync as needed.
12802 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
12804         mktime: add libc-config dependency
12805         I missed this when we synced from glibc.
12806         * modules/mktime (Depends-on): Add libc-config.
12808 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
12810         longlong: fix comment typo
12811         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
12813 2018-11-11  Bruno Haible  <bruno@clisp.org>
12815         havelib: Remove the need to include asm-underscore.m4.
12816         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
12817         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
12818         gl_HOST_CPU_C_ABI.
12819         * modules/havelib (Files): Add host-cpu-c-abi.m4.
12820         (Depends-on): Remove host-cpu-c-abi.
12822 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
12824         parse-datetime: simplify test for mktime failure
12825         * lib/parse-datetime.y (mktime_ok): Simplify.
12826         Remove args TZ and T; no longer needed.  Callers changed.
12828         posixtm: simplify test for mktime failure
12829         * lib/posixtm.c (posixtime): Simplify.
12831         nstrftime: simplify test for mktime failure
12832         * lib/nstrftime.c (__strftime_internal): Simplify.
12834 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12836         gnulib-common.m4: port _Noreturn to C++
12837         Problem reported by Akim Demaille in:
12838         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
12839         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
12840         Merge adjustments from _Noreturn.h and from glibc into the non-C++
12841         version.
12842         * lib/_Noreturn.h: Match gnulib-common.
12844 2018-10-30  Bruno Haible  <bruno@clisp.org>
12846         gnu-make: Fix for NetBSD 8 'make'.
12847         Reported by Reuben Thomas in
12848         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
12849         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
12850         output, ignoring exit codes.
12852 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
12854         maintainer-makefile: fix syntax-check rule for "same.h"
12855         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
12856         for 'same_nameat', too.
12858 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
12860         havelib: fix nested ‘configure’ chatter
12861         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
12862         AC_CACHE_CHECK calls, which resulted in confusing output like
12863         “checking for the common suffixes of directories in the library
12864         search path... checking for 64-bit host... no lib,lib”.
12866         backupfile: tweak for better code
12867         * lib/backupfile.c: Sort include directives, and remove
12868         unnecessary <limits.h> include.
12869         (FALLTHROUGH): New macro, copied from other modules.
12870         (backupfile_internal): Use it to avoid code duplication.
12871         This lets GCC 8.2.1 generate better code by inlining the
12872         call to check_extension.
12874 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
12876         backupfile: new dir_fd args
12877         New module opendirat with code taken from fts.
12878         Use this module to let backupfile use a directory file descriptor.
12879         * NEWS: Document the incompatible change.
12880         * lib/backup-find.c (find_backup_file_name):
12881         * lib/backup-rename.c (backup_file_rename):
12882         New arg DIR_FD.
12883         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
12884         (SIZE_MAX): Remove.
12885         Include opendirat.h rather than dirent--.h.
12886         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
12887         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
12888         (backupfile_internal): New arg DIR_FD.  All callers changed.
12889         * lib/fts.c: Include opendirat.h.
12890         (opendirat): Move to opendirat.c.
12891         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
12892         * modules/backupfile (Depends-on): Remove dirfd, opendir.
12893         Add opendirat.
12894         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
12895         Add opendirat.
12897 2018-10-23  Bruno Haible  <bruno@clisp.org>
12899         localename: Simplify support for per-thread locales on Solaris 11.4.
12900         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
12901         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
12902         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
12903         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
12904         specific code.
12905         * lib/localename-table.h: Update comments.
12906         * lib/localename-table.c: Update comments.
12907         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
12908         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
12909         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
12910         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
12911         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
12912         HAVE_NAMELESS_LOCALES here.
12913         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
12914         m4/intlsolaris.m4.
12915         * modules/gettext (Files): Likewise.
12917 2018-10-22  Bruno Haible  <bruno@clisp.org>
12919         std-gnu11: Support Autoconf versions < 2.64.
12920         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
12921         when _AC_DO_LIMIT does not exist.
12923 2018-10-22  Bruno Haible  <bruno@clisp.org>
12925         Assume Autoconf >= 2.63.
12926         * DEPENDENCIES: Mention the requirement.
12928         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
12929         (func_get_filelist): Don't list m4/onceonly.m4 any more.
12930         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
12931         * m4/onceonly.m4: Remove file.
12933         * m4/openmp.m4: Remove file.
12934         * modules/openmp (Files): Remove m4/openmp.m4.
12936         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
12937         htmldir, dvidir, pdfdir, psdir, localedir.
12938         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
12940         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
12941         Autoconf < 2.60.
12942         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
12943         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
12945         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
12946         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
12947         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
12949         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
12950         exists.
12951         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
12953         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
12954         Autoconf < 2.61.
12956         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
12957         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
12958         Autoconf >= 2.52.
12960         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
12961         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
12962         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
12964 2018-10-22  Bruno Haible  <bruno@clisp.org>
12966         Assume Automake >= 1.11.
12967         * m4/configmake.m4: Update comments.
12968         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
12969         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
12970         of 'eval'.
12971         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
12972         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
12973         requires Automake >= 1.11.
12975 2018-10-22  Bruno Haible  <bruno@clisp.org>
12977         localename: Fix typo in comment.
12978         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
12980 2018-10-22  Bruno Haible  <bruno@clisp.org>
12982         Fix failure of 'gnulib-tool --create-testdir' with all modules.
12983         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
12985 2018-10-21  Bruno Haible  <bruno@clisp.org>
12987         locale: Ease integration with GNU libintl.
12988         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
12989         GNULIB_defined_freelocale): New macros.
12991 2018-10-21  Bruno Haible  <bruno@clisp.org>
12993         localename: Fine-tune support for per-thread locales on Solaris 11.4.
12994         * lib/localename-table.h: New file, extracted from lib/localename.c.
12995         * lib/localename-table.c: Likewise.
12996         * lib/localename.c: Include localename-table.h.
12997         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
12998         locale_hash_function instead of pointer_hash.
12999         * modules/localename (Files): Add lib/localename-table.h,
13000         lib/localename-table.c.
13001         (lib_SOURCES): Add localename-table.c.
13002         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
13003         for Solaris 11.4 locale system only on Solaris. Test for it
13004         independently whether getlocalename_l exists.
13005         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
13006         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
13007         HAVE_NAMELESS_LOCALES.
13008         * modules/gettext (Files): Add m4/intlsolaris.m4.
13010 2018-10-21  Bruno Haible  <bruno@clisp.org>
13012         Small update from gettext.
13013         * m4/intl.m4: Update from gettext:
13014         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
13015         mode on AIX.
13016         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
13017         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
13019 2018-10-16  Bruno Haible  <bruno@clisp.org>
13021         mountlist: Remove support for Cray with UNICOS 9.
13022         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13023         MOUNTED_LISTMNTENT.
13024         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
13026 2018-10-16  Bruno Haible  <bruno@clisp.org>
13028         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
13029         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
13030         STAT_STATFS2_FS_DATA.
13031         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
13032         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13033         MOUNTED_GETMNT.
13034         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
13035         * lib/getloadavg.c (decstation): Remove definition and case.
13036         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
13037         * lib/getgroups.c: Likewise.
13038         * doc/posix-functions/getgroups.texi: Likewise.
13039         * lib/time.in.h: Update comments.
13041 2018-10-16  Bruno Haible  <bruno@clisp.org>
13043         getloadavg: Remove support for ConvexOS.
13044         * lib/getloadavg.c: Remove convex case.
13046 2018-10-16  Bruno Haible  <bruno@clisp.org>
13048         getloadavg: Remove support for Sony NEWS.
13049         * lib/getloadavg.c: Remove sony_news case.
13051 2018-10-16  Bruno Haible  <bruno@clisp.org>
13053         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
13054         * lib/fsusage.c: Remove _SEQUENT_ case.
13055         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13056         * lib/mountlist.c: Don't test for MNTTABNAME.
13057         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
13058         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
13059         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
13060         * lib/stat-size.h: Don't mention the Sequent bug.
13061         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
13063 2018-10-16  Bruno Haible  <bruno@clisp.org>
13065         fsusage: Remove support for AIX 3.
13066         * lib/fsusage.c: Remove code for AIX 3.
13067         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
13069 2018-10-16  Bruno Haible  <bruno@clisp.org>
13071         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
13072         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
13073         * lib/fsusage.c: Remove code for AIX PS/2.
13074         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
13075         * lib/getloadavg.c: Likewise.
13077 2018-10-16  Bruno Haible  <bruno@clisp.org>
13079         getloadavg: Remove support for HP-UX on m68k.
13080         * lib/getloadavg.c: Remove hp9000s300 case.
13082 2018-10-16  Bruno Haible  <bruno@clisp.org>
13084         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
13085         * lib/fsusage.c: Remove DOLPHIN case.
13086         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
13087         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
13089 2018-10-16  Bruno Haible  <bruno@clisp.org>
13091         getloadavg: Remove support for Alliant FX/2800.
13092         * lib/getloadavg.c: Remove alliant case.
13094 2018-10-16  Bruno Haible  <bruno@clisp.org>
13096         getloadavg: Remove support for tek4300.
13097         * lib/getloadavg.c: Remove tek4300 case.
13099 2018-10-16  Bruno Haible  <bruno@clisp.org>
13101         getloadavg: Remove support for Ardent.
13102         * lib/getloadavg.c: Remove ardent case.
13104 2018-10-16  Bruno Haible  <bruno@clisp.org>
13106         mountlist: Remove support for SVR2.
13107         Reported by Andrew Borodin <aborodin@vmail.ru> in
13108         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
13109         * lib/mountlist.c: Remove MOUNTED_FREAD case.
13110         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
13111         MOUNTED_FREAD.
13113 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
13115         libc-config: merge from glibc
13116         * lib/cdefs.h (__glibc_has_attribute): New macro.
13118         regex: depend on libc-config
13119         * modules/regex (Depends-on): Add libc-config.
13120         This is needed after the recent autoupdate from glibc.
13122 2018-10-14  Bruno Haible  <bruno@clisp.org>
13124         localename: Add support for per-thread locales on Solaris 11.4.
13125         * lib/locale.in.h (newlocale, freelocale): New declarations.
13126         (duplocale): Declare also when the 'localename' module requests it.
13127         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
13128         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
13129         (struniq): Update.
13130         (struct locale_categories_names, struct locale_hash_node): New types.
13131         (LOCALE_HASH_TABLE_SIZE): New constant.
13132         (locale_hash_table, locale_lock): New variables.
13133         (pointer_hash, get_locale_t_name): New functions.
13134         (newlocale, duplocale, freelocale): New overridden functions.
13135         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
13136         * m4/intlsolaris.m4: New file.
13137         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
13138         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
13139         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
13140         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
13141         declared.
13142         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
13143         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13144         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
13145         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
13146         * modules/localename (Files): Add intlsolaris.m4.
13147         (Depends-on): Add 'locale'.
13148         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
13149         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
13150         the signatures.
13152 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
13154         timevar: use gethrxtime to get wall clock time
13155         clock_gettime is not portable.  gethrxtime takes the best available
13156         option to get the wall clock time, including clock_gettime (monotonic
13157         clock), and gettime (non monotonic).
13158         Also, using xtime_t instead of float preserves the precision.
13159         Suggested by Bruno Haible.
13160         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
13161         * modules/timevar (Depends-on): We need gethrxtime.
13162         We no longer use times().
13163         (Link): Update.
13164         * lib/timevar.h (timevar_time_def): Use xtime_t.
13165         * lib/timevar.c (set_to_current_time): Use gethrxtime.
13166         (timevar_print): Instead of checking whether the timings themselves
13167         are large enough for the timevar to be printed, check the percentages.
13169 2018-10-14  Bruno Haible  <bruno@clisp.org>
13171         wcsnrtombs: Work around Solaris 11.4 bug.
13172         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
13173         macro.
13174         (gl_FUNC_WCSNRTOMBS): Invoke it.
13175         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
13177 2018-10-14  Bruno Haible  <bruno@clisp.org>
13179         mbsnrtowcs: Work around Solaris 11.4 bug.
13180         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
13181         macro.
13182         (gl_FUNC_MBSNRTOWCS): Invoke it.
13183         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
13185 2018-10-14  Bruno Haible  <bruno@clisp.org>
13187         doc: Update for Solaris 11.4.
13188         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
13189         mention Solaris 11.4.
13190         * m4/printf.m4: Update comments about Solaris.
13191         * m4/log.m4: Likewise.
13192         * m4/log10.m4: Likewise.
13193         * m4/logb.m4: Likewise.
13194         * m4/logbf.m4: Likewise.
13195         * m4/logbl.m4: Likewise.
13196         * m4/rename.m4: Likewise.
13197         * m4/wcrtomb.m4: Likewise.
13198         * m4/hostent.m4: Likewise.
13199         * m4/servent.m4: Likewise.
13201 2018-10-14  Bruno Haible  <bruno@clisp.org>
13203         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
13204         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
13205         pointer.
13206         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
13207         pointer.
13208         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
13209         pointer.
13210         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
13211         pointer.
13212         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
13213         pointer.
13215 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13217         bootstrap: fix wget command for po files.
13218         * build-aux/bootstrap (po_download_command_format): Fix comment,
13219         and adjust callers.
13221 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13223         timevar: improve the output format
13224         Suggested by Bruno Haible.
13225         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
13226         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
13227         wall, since its resolution is much higher.
13229 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
13231         timevar: expect that getrusage is available.
13232         Don't keep both times and getrusage as backend: both are guaranteed by
13233         gnulib, a single one suffices.  Using getrusage is open to possibly
13234         tracking other types of resources in the future.
13235         * modules/timevar (Depends-on): Add getrusage.
13236         (configure.ac): Remove gl_TIMEVAR.
13237         (Files): Remove m4/timevar.m4.
13238         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
13239         * lib/timevar.h (timevar_enabled): Clarify documentation.
13240         * lib/timevar.c: Remove all the code about times.
13241         Remove all the CPP guards about getrusage: expect it to be present
13242         (courtesy of gnulib).
13244 2018-10-12  Bruno Haible  <bruno@clisp.org>
13246         mountlist: Improve support for Solaris in 64-bit mode.
13247         Reported by David Wood <David.Wood@deshaw.com> in
13248         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
13249         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
13250         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
13251         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
13253 2018-10-12  Bruno Haible  <bruno@clisp.org>
13255         mountlist: Add support for Minix.
13256         Reported by Assaf Gordon in
13257         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
13258         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
13259         AC_CHECK_FUNCS to check for 'getmntinfo'.
13260         * lib/mountlist.c: Update comments.
13262 2018-10-12  Bruno Haible  <bruno@clisp.org>
13264         Make better use of Autoconf.
13265         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
13266         * m4/manywarnings.m4: Likewise.
13267         * m4/manywarnings-c++.m4: Likewise.
13268         * m4/socklen.m4: Likewise.
13269         * m4/sockpfaf.m4: Likewise.
13270         * m4/stdarg.m4: Likewise.
13271         * m4/visibility.m4: Likewise.
13272         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
13273         indentation.
13274         * m4/ls-mntd-fs.m4: Likewise.
13276 2018-10-11  Bruno Haible  <bruno@clisp.org>
13278         mountlist: Modernize platform lists.
13279         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
13280         platforms, deemphasizing the obsolete ones.
13281         * lib/mountlist.c: Likewise.
13283 2018-10-11  Bruno Haible  <bruno@clisp.org>
13285         getprogname: Add support for 32-bit programs on HP-UX.
13286         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
13287         try the similar functions 32-bit programs on 64-bit HP-UX.
13289 2018-10-11  Bruno Haible  <bruno@clisp.org>
13291         getprogname: Work around program name truncation when possible.
13292         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
13293         possibly use pst_cmd instead.
13295 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13297         fts: cleanup after FTS_NOATIME removal
13298         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
13299         (FTS_STOP): Shrink to minimal values.  We don’t need to
13300         worry about binary compatibility in Gnulib, and the old way
13301         of doing things had a hole in the user options that caused
13302         FTS_OPTIONMASK to not work as desired.
13304 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
13306         fts: remove FTS_NOATIME
13307         This reverts commit da4d6974013c822af1498941e32db774b2031765.
13308         We cannot guarantee that O_NOATIME works: e.g. openat fails
13309         with EPERM if the effective user ID of the caller does not match
13310         the owner of the file and the caller is not privileged.
13311         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
13312         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
13313         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
13314         (FTS_OPTIONMASK): Adjust.
13315         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
13316         (fd_ring_check): Likewise.
13318 2018-10-08  Bruno Haible  <bruno@clisp.org>
13320         csharpcomp*, csharpexec*: Remove support for pnet.
13321         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
13322         HAVE_CSCC.
13323         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
13324         Don't test HAVE_CSCC.
13325         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
13326         (compile_csharp_class): Don't invoke it.
13327         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
13328         HAVE_ILRUN.
13329         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
13330         Don't test HAVE_ILRUN.
13331         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
13332         (execute_csharp_program): Don't invoke it.
13333         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
13334         any more.
13336 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
13338         renameatu: prefer renameat2 to syscall
13339         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
13340         Use renameat2 instead of syscall (Bug#32796).
13341         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
13343 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13345         bootstrap, gnulib-tool: use https instead of insecure rsync
13346         * build-aux/bootstrap (download_po_files, po_download_command_format):
13347         Don't try using rsync; always use wget over https to fetch PO files.
13348         * gnulib-tool (func_import): Likewise.
13349         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13351 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
13353         bootstrap, gnulib-tool: correct the translations wget command
13354         * build-aux/bootstrap (po_download_command_format2): Restrict
13355         recursion to a single level.
13356         * gnulib-tool (func_import): Likewise.
13357         * pygnulib/GLImport.py (GLImport.execute): Likewise.
13359 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13361         doc: the gnulib snapshots are not maintained
13362         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
13364 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
13366         timevar: add to lib_SOURCES
13367         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
13369 2018-10-07  Bruno Haible  <bruno@clisp.org>
13371         dirent: Update documentation.
13372         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
13374 2018-10-05  Bruno Haible  <bruno@clisp.org>
13376         strpbrk: Make it possible to namespace the defined symbol.
13377         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
13379 2018-10-05  Bruno Haible  <bruno@clisp.org>
13381         strcspn: Make it possible to namespace the defined symbol.
13382         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
13384 2018-10-05  Bruno Haible  <bruno@clisp.org>
13386         raise: Make it possible to namespace the defined symbol.
13387         * lib/raise.c (raise): Undefine only after the replacement function has
13388         been defined.
13389         (raise): Renamed from rpl_raise.
13390         (raise_nothrow): Move to the end of the compilation unit.
13392 2018-10-05  Bruno Haible  <bruno@clisp.org>
13394         memcmp: Make it possible to namespace the defined symbol.
13395         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
13397 2018-10-05  Bruno Haible  <bruno@clisp.org>
13399         explicit_bzero: Make it possible to namespace the defined symbol.
13400         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
13401         glibc.
13403 2018-10-05  Bruno Haible  <bruno@clisp.org>
13405         mkdir-p: Depend on 'mkdir'.
13406         * modules/mkdir-p (Depends-on): Add 'mkdir'.
13408 2018-10-05  Bruno Haible  <bruno@clisp.org>
13410         tempname: Depend on 'mkdir'.
13411         Reported by Maarten Bosmans <mkbosmans@gmail.com>
13412         at <https://savannah.gnu.org/bugs/?33379>.
13413         * modules/tempname (Depends-on): Add 'mkdir'.
13415 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
13417         timevar: rely on gnulib modules for time portability.
13418         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
13419         * m4/timevar.m4: Don't check for clock_t and struct tms,
13420         guaranteed by gnulib.
13421         * lib/timevar.h: Use extern "C" protection.
13422         Include <stdio.h> for FILE.
13423         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
13424         they are guaranteed by gnulib.
13425         Remove uses of clock as (now useless) fallback.
13427 2018-10-04  Bruno Haible  <bruno@clisp.org>
13429         sh-filename: New module.
13430         * m4/sh-filename.m4: New file.
13431         * modules/sh-filename: New file.
13432         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
13433         "/bin/sh".
13434         * tests/test-posix_spawn1.c (main): Likewise.
13435         * tests/test-posix_spawn2.c (main): Likewise.
13436         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
13437         is_envjavac_gcj43): Likewise.
13438         * lib/javaexec.c (execute_java_class): Likewise.
13439         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
13440         * modules/posix_spawnp-tests (Depends-on): Likewise.
13441         * modules/javacomp (Depends-on): Likewise.
13442         * modules/javaexec (Depends-on): Likewise.
13444 2018-10-04  Bruno Haible  <bruno@clisp.org>
13446         spawn-pipe tests: Avoid test failure on native Windows.
13447         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
13448         that fd 2 is closed.
13450 2018-10-04  Bruno Haible  <bruno@clisp.org>
13452         fcntl: Make it possible to namespace the defined symbol.
13453         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
13454         been defined.
13455         (fcntl): Renamed from rpl_fcntl.
13456         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
13457         from fcntl.
13458         (klibc_fcntl): Move to the end of the compilation unit.
13460 2018-10-02  Bruno Haible  <bruno@clisp.org>
13462         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
13463         * tests/test-vasnprintf.c (test_function): Change the test added on
13464         2018-09-23 to check only the 18 most significant digits.
13466         vasnprintf tests: Avoid test failure on Cygwin.
13467         * tests/test-vasnprintf.c (test_function): Change the test added on
13468         2018-09-23 to check only the 42 most significant digits.
13470 2018-10-01  Bruno Haible  <bruno@clisp.org>
13472         mkostemp, mkostemps: Update documentation.
13473         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
13474         * doc/glibc-functions/mkostemps.texi: Likewise.
13476 2018-10-01  Tom Tromey  <tom@tromey.com>
13478         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
13479         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
13480         on OS X.
13482 2018-09-30  Pádraig Brady  <P@draigBrady.com>
13484         hmac-*: refactor to remove repetitive code
13485         * lib/hmac.c: A new parameterized single implementation.
13486         * lib/hmac-md5.c: Define parameters and include implementation.
13487         * lib/hmac-sha1.c: Likewise.
13488         * lib/hmac-sha256.c: Likewise.
13489         * lib/hmac-sha512.c: Likewise.
13490         * modules/crypto/hmac-md5: Reference the new implementation file.
13491         * modules/crypto/hmac-sha1: Likewise.
13492         * modules/crypto/hmac-sha256: Likewise.
13493         * modules/crypto/hmac-sha512: Likewise.
13494         * tests/test-hmac-md5.c: Refactor common code to a single function.
13495         * tests/test-hmac-sha1.c: Likewise.
13496         * tests/test-hmac-sha256.c: Likewise.
13497         * tests/test-hmac-sha512.c: Likewise.
13499 2018-09-30  Zhang Qing  <zhangqingl@126.com>
13501         hmac-sha512: fix hash for keys > blocksize (128 bytes)
13502         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
13503         key length to that output by sha512, not the blocksize.
13504         Otherwise uninitialized data from the stack
13505         is used when computing the hash.
13506         * tests/test-hmac-sha512.c: Add a shortened key test case.
13507         Reported at https://github.com/coreutils/gnulib/pull/5
13509 2018-09-30  Bruno Haible  <bruno@clisp.org>
13511         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
13512         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
13513         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
13514         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
13515         'unsigned int' before comparison with an unsigned value.
13517 2018-09-30  Bruno Haible  <bruno@clisp.org>
13519         grantpt: Remove unnecessary dependency.
13520         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
13522 2018-09-30  Bruno Haible  <bruno@clisp.org>
13524         timevar: Small tweaks.
13525         * lib/timevar.h: Fix comments. Add parameter names to function
13526         declarations.
13527         * lib/timevar.c: Include timevar.h immediately after config.h.
13528         * lib/timevar.def: Fix comments.
13529         * modules/timevar (Maintainer): List Akim Demaille.
13531 2018-09-30  Bruno Haible  <bruno@clisp.org>
13533         timevar: Include documentation in gnulib manual.
13534         * doc/timevar.texi: Change node and section name to 'Profiling of
13535         program phases'.
13536         In the code snippets, tweak the #includes and use GNU coding style.
13537         * doc/gnulib.texi: Include timevar.texi.
13539 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
13541         timevar: import from Bison.
13542         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
13543         New files.
13544         * lib/timevar.def: New file.
13545         * doc/timevar.texi: New file.
13547 2018-09-26  Bruno Haible  <bruno@clisp.org>
13549         javacomp-script, javacomp: Add preliminary support for Java 12..17.
13550         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
13551         * lib/javacomp.c (default_target_version): Likewise.
13553 2018-09-26  Bruno Haible  <bruno@clisp.org>
13555         javacomp-script, javacomp: Add support for Java 11.
13556         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
13557         target-version 11.
13558         * lib/javaversion.h: Update comments.
13559         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
13560         source_version_index, get_goodcode_snippet, get_failcode_snippet,
13561         TARGET_VERSION_BOUND, target_version_index,
13562         corresponding_classfile_version): Accept source_version 11 and
13563         target_version 11.
13564         * lib/javacomp.h: Update comments accordingly.
13566 2018-09-23  Bruno Haible  <bruno@clisp.org>
13568         vasnprintf: Fix heap memory overrun bug.
13569         Reported by Ben Pfaff <blp@cs.stanford.edu> in
13570         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
13571         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
13572         memory.
13573         * tests/test-vasnprintf.c (test_function): Add another test.
13575 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13577         maint: mktime.c now shared with glibc
13578         * config/srclist.txt: intprops.h, timegm.c and mktime.c
13579         are now the same in Gnulib and glibc.
13581         mktime: fix _LIBC typo
13582         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
13584 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13586         dfa: optimization for state merge
13587         * lib/dfa.c (merge2): New function.
13588         (merge_nfa_state): Use it.
13590 2018-09-18  Jim Meyering  <meyering@fb.com>
13592         dfa: trivial comment fix: s/is/if/
13593         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
13595 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13597         dfa: use more-informative function name
13598         * lib/dfa.c (maybe_disable_superset_dfa):
13599         Rename from dfautf8noss.  Use change.
13601         dfa: tweak allocation performance
13602         * lib/dfa.c (merge_nfa_state, dfaoptimize):
13603         Prefer ptrdiff_t for indexes some more.
13604         Use char for flags, as it’s wide enough.
13605         Allocate queue and flags together, with one malloc call.
13606         No need to use xnmalloc since the multiplication and
13607         addition cannot overflow (it’s already been checked by
13608         earlier allocation).  Prefer memset to open-coding.
13610         dfa: prune states as we go
13611         * lib/dfa.c (prune): Remove.
13612         dfa: reorder enum for efficiency
13613         (merge_nfa_state): Prune as we go instead of at the end.
13614         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
13616         * lib/dfa.c (END): Now -1 again.  Reorder other elements
13617         of the enumeration to make it easier for GCC to generate
13618         efficient code by using fewer comparisons to check for
13619         ranges of values.
13620         (atom): Take advantage of the reordering.
13622 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
13624         dfa: optimize alternation in NFA
13625         Even when similar states exist in alternation, the DFA treats them
13626         as separate items, which may complicate the transition in NFA and
13627         cause slowdown.  This change assembles the states into one.  For
13628         example, ab|ac is changed into a(b|c).  This change speeds-up
13629         matching for many branched patterns.  For example, grep speeds up
13630         more than 30× in:
13632           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
13633           time -p env LC_ALL=C grep -vf in in
13635         * lib/dfa.c (prune): New function.
13636         (merge_nfa_state): New function.  It merges similar NFA states.
13637         (dfaoptimize): New function.  It seeks merged and removed nodes.
13638         (dfaanalyze): Call new function.
13639         (dfautf8noss): Change name from dfaoptimize because of addition of new
13640         function.
13641         (dfacomp): Update caller.
13643         dfa: simplify initial state
13644         Simplifying the initial state enables easier optimization of the NFA.
13645         * lib/dfa.c (enum token): Add new element BEG.
13646         (prtok): Adjust due to adding element BEG.
13647         (dfaparse): Put BEG at a head of tokens.
13648         (state_index): Adjust due to adding element BEG.
13649         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
13650         build initial state.
13651         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
13653 2018-09-18  Bruno Haible  <bruno@clisp.org>
13655         file-has-acl: Fix test failure on Cygwin 2.9.
13656         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
13657         * lib/acl-internal.h: Likewise.
13658         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
13659         * lib/acl-internal.c: Update comments regarding Cygwin.
13660         * lib/acl_entries.c: Likewise.
13661         * lib/file-has-acl.c: Likewise.
13662         (file_has_acl): For Cygwin, use a different way to determine whether
13663         the "default" ACL of a directory is nontrivial.
13664         * lib/get-permissions.c: Update comments regarding Cygwin.
13665         * lib/set-permissions.c: Likewise.
13667 2018-09-18  Bruno Haible  <bruno@clisp.org>
13669         stat-time tests: Fix test failure on Cygwin.
13670         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
13672 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13674         doc: OS X 10.11 lacked ns time functions
13675         According to <https://github.com/zeromq/libzmq/issues/2175>,
13676         nanosecond-resolution timestamp functions were introduced
13677         in macOS 10.12, so document the last version (OS X 10.11)
13678         where they were absent.
13680         gettime: nanotime never existed
13681         Problem reported by Bruno Haible in:
13682         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
13683         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
13684         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
13686 2018-09-18  Bruno Haible  <bruno@clisp.org>
13688         doc: Update statement about target platforms.
13689         Reported by Simon Sobisch.
13690         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
13691         restrictions on MSVC versions.
13693 2018-09-18  Bruno Haible  <bruno@clisp.org>
13695         posix_spawn tests: Fix link error on 64-bit Cygwin.
13696         * tests/test-posix_spawn1.c (environ): Remove declaration.
13697         * tests/test-posix_spawn2.c (environ): Likewise.
13698         * tests/test-posix_spawn3.c (environ): Likewise.
13699         * tests/test-posix_spawn4.c (environ): Likewise.
13700         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
13701         * modules/posix_spawnp-tests (Depends-on): Likewise.
13703 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
13705         timespec: new function current_timespec
13706         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
13707         and don’t worry about it failing on a CLOCK_REALTIME arg.
13708         POSIX requires it to succeed and I don’t know of any
13709         counterexamples where the fallbacks would work.
13710         (current_timespec): New function, taken from Emacs.  It is more
13711         convenient than gettime, and can help register allocation.
13712         * lib/timespec.h: Include arg-nonnull.h.
13713         (current_timespec): New declaration.
13714         (gettime, settime): Declare args to be nonnull.
13715         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
13717 2018-09-16  Bruno Haible  <bruno@clisp.org>
13719         setlocale: Improve locale handling on macOS 10.12 or newer.
13720         * lib/setlocale.c: Include header files for CoreFoundation. Declare
13721         gl_locale_name_canonicalize.
13722         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
13723         and LC_MESSAGES.
13724         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
13726 2018-09-16  Bruno Haible  <bruno@clisp.org>
13728         Update list of locale names with scripts on macOS.
13729         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
13730         match Mac OS X 10.13 and recent glibc.
13732 2018-09-16  Bruno Haible  <bruno@clisp.org>
13734         gettext: Use newer macOS APIs when possible.
13735         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
13736         CFLocaleCopyPreferredLanguages.
13738 2018-09-16  Bruno Haible  <bruno@clisp.org>
13740         localename: Revisit macOS specific code.
13741         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
13742         Fix comments about Mac OS X versions.
13744 2018-09-15  Bruno Haible  <bruno@clisp.org>
13746         setlocale: Improve support for locales not supported by libc.
13747         Reported by Dapeng Gao <peter@dpgao.cc> at
13748         <https://savannah.gnu.org/bugs/?54479>.
13749         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
13750         (libintl_setlocale): Use a more error-tolerant strategy when the locale
13751         to be set is not supported by libc: Emit warnings instead of failing.
13753 2018-09-15  Bruno Haible  <bruno@clisp.org>
13755         strstr, strcasestr: Add workaround against glibc-2.28 bug.
13756         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
13757         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
13758         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
13759         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
13760         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
13761         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
13762         * doc/glibc-functions/strcasestr.texi: Likewise.
13764 2018-09-14  Bruno Haible  <bruno@clisp.org>
13766         doc: Fix bottom of top-level page.
13767         Reported by Akim Demaille <akim.demaille@gmail.com> in
13768         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
13769         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
13770         mode.
13771         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
13772         accordingly.
13774 2018-09-12  Bruno Haible  <bruno@clisp.org>
13776         Add test case from a recent glibc bug.
13777         * tests/test-strstr.c (main): Add test of long needle.
13778         * tests/test-strcasestr.c (main): Likewise.
13779         * tests/test-c-strstr.c (main): Likewise.
13780         * tests/test-c-strcasestr.c (main): Likewise.
13781         * tests/test-memmem.c (main): Likewise.
13783 2018-09-12  Bruno Haible  <bruno@clisp.org>
13785         Apply Eric Blake's improvements from 2011-02-25 to more tests.
13786         * tests/test-c-strstr.c (main): Add the same tests here as well.
13788 2018-09-12  Bruno Haible  <bruno@clisp.org>
13790         Apply Jim Meyering's fix from 2015-01-11 to more tests.
13791         * tests/test-memmem.c (main): Free haystack.
13792         * tests/test-strcasestr.c (main): Likewise.
13793         * tests/test-c-strcasestr.c (main): Likewise.
13795 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
13797         xstrtol: fix missing-TYPE_SIGNED typo
13798         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
13800 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
13802         timespec: fix resolution confusion
13803         In normal usage, clock resolution is given in seconds, but the
13804         code was mistakenly using inverse seconds and calling it
13805         “resolution”.  Fix this, partly by renaming two identifiers.
13806         The old names will be kept for a bit, to ease transition.
13807         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
13808         New constants, replacing TIMESPEC_RESOLUTION and
13809         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
13810         All uses changed.
13812 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
13814         mktime: simplify in prep for glibc merge
13815         * lib/mktime.c, lib/timegm.c [_LIBC]:
13816         Include mktime-internal.h (a small file just for glibc)
13817         instead of using a typedef.
13819 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
13821         intprops: minor clarification of code
13822         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
13823         Use _GL_INT_CONVERT rather than reinventing it.
13825 2018-09-07  Bruno Haible  <bruno@clisp.org>
13827         Fix a comment.
13828         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
13830 2018-09-07  Bruno Haible  <bruno@clisp.org>
13832         posix_spawn_file_actions_addchdir: Add tests.
13833         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
13834         * tests/test-posix_spawn4.c: New file.
13835         * modules/posix_spawn_file_actions_addchdir-tests: New file.
13837 2018-09-07  Bruno Haible  <bruno@clisp.org>
13839         posix_spawn_file_actions_addchdir: New module.
13840         Suggested by Eric Blake in
13841         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
13842         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
13843         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
13844         union member 'chdir_action'.
13845         * lib/spawn_faction_addchdir.c: New file.
13846         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
13847         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
13848         HAVE_WORKING_POSIX_SPAWN.
13849         * lib/spawn_faction_adddup2.c: Likewise.
13850         * lib/spawn_faction_addopen.c: Likewise.
13851         * m4/posix_spawn_faction_addchdir.m4: New file.
13852         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13853         'posix_spawn_file_actions_addchdir' is present and whether
13854         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
13855         instead of HAVE_WORKING_POSIX_SPAWN.
13856         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13857         posix_spawn_file_actions_addchdir is declared.
13858         (gl_SPAWN_H_DEFAULTS): Initialize
13859         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13860         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13861         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13862         * modules/spawn (Makefile.am): Substitute
13863         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13864         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
13865         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
13866         * modules/posix_spawn_file_actions_addchdir: New file.
13867         * modules/posix_spawn_file_actions_addclose (Depends-on,
13868         configure.ac): Test also REPLACE_POSIX_SPAWN.
13869         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
13870         configure.ac): Likewise.
13871         * modules/posix_spawn_file_actions_addopen (Depends-on,
13872         configure.ac): Likewise.
13873         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
13874         signature.
13875         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13876         * doc/posix-functions/posix_spawnp.texi: Likewise.
13878 2018-09-06  Bruno Haible  <bruno@clisp.org>
13880         stddef: Override max_align_t on NetBSD 8.0/x86.
13881         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
13882         the value of __alignof__ (max_align_t).
13883         * doc/posix-headers/stddef.texi: Mention the issue.
13885 2018-09-06  Bruno Haible  <bruno@clisp.org>
13887         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
13888         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
13889         system fcntl.
13890         * doc/posix-functions/fcntl.texi: Document the issue.
13892 2018-09-06  Bruno Haible  <bruno@clisp.org>
13894         count-trailing-zeros tests: Rely on limits-h module.
13895         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
13896         definition.
13897         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
13899 2018-09-06  Bruno Haible  <bruno@clisp.org>
13901         count-leading-zeros tests: Rely on limits-h module.
13902         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
13903         definition.
13904         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
13906 2018-09-06  Bruno Haible  <bruno@clisp.org>
13908         count-one-bits tests: Rely on limits-h module.
13909         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
13910         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
13912 2018-09-06  Bruno Haible  <bruno@clisp.org>
13914         xstrtoll: Rely on limits-h module.
13915         * lib/xstrtol.c: Don't include intprops.h.
13916         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
13917         * modules/xstrtol (Depends-on): Remove 'intprops'.
13918         * modules/xstrtoll (Depends-on): Add 'limits-h'.
13920 2018-09-06  Bruno Haible  <bruno@clisp.org>
13922         strtoll, strtoull: Rely on limits-h module.
13923         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
13924         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
13925         * modules/strtoll (Depends-on): Add limits-h.
13926         * modules/strtoull (Depends-on): Likewise.
13928 2018-09-06  Bruno Haible  <bruno@clisp.org>
13930         intprops tests: Fix compilation error with pre-C99 compiler.
13931         * tests/test-intprops.c (verify_stmt): New macro.
13932         (VERIFY, main): Use it.
13934 2018-09-06  Bruno Haible  <bruno@clisp.org>
13936         limits-h: Provide numerical limits macros.
13937         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
13938         IRIX and for GCC.
13939         (WORD_BIT, LONG_BIT): Define.
13940         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
13941         <limits.h> does not define LLONG_MAX or WORD_BIT.
13942         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
13943         TYPE_MAXIMUM): New macros, from intprops.h.
13944         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
13945         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
13946         provides.
13948 2018-09-05  Bruno Haible  <bruno@clisp.org>
13950         fcntl: Don't access nonexistent optional argument.
13951         Reported by Frank Busse <f.busse@imperial.ac.uk> in
13952         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
13953         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
13954         don't consume an argument. For actions that take an 'int' argument,
13955         consume an 'int' argument.
13957 2018-09-05  Eric Blake  <eblake@redhat.com>
13959         doc: mention environ pitfall
13960         * doc/posix-functions/environ.texi (environ): Assigning NULL to
13961         environ is a glibc extension.
13963 2018-09-03  Bruno Haible  <bruno@clisp.org>
13965         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
13966         Reported by Antoine Luong <antoine.luong@c-s.fr> in
13967         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
13968         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
13969         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
13970         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
13972 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13974         mktime: fix unlikely race+overflow bug
13975         Problem reported by Alexandre Oliva in:
13976         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
13977         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
13978         to avoid an unlikely race if the compiler delays a load and
13979         if this cascades into a signed integer overflow.
13981 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
13983         mktime, timegm: simplify glibc time64_t
13984         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
13985         Now long int, not time_t, since long int is the longstanding type
13986         for this in glibc and there is no need to change it even if time_t
13987         becomes 64 bits - even int would do, though this would be a change
13988         to the glibc generated code.  When this change is merged into
13989         glibc, it should simplify the time_t vs time64_t situation.
13991         mktime, timegm: simplify merge to glibc
13992         Move code around to make a merge to glibc easier to audit.
13993         This should not change behavior.
13994         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
13995         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
13996         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
13997         simplify later conditionals; default the others to zero.  In uses
13998         of these conditionals, explicitly spell out how _LIBC affects
13999         things, so it’s easier to review from a glibc viewpoint.
14000         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
14001         compartmentalize tzset issues.  Move system-dependent tzsettish
14002         code here from mktime.
14003         (mktime): Move tzsettish code to my_tzset, and move
14004         localtime_offset to within mktime so that it doesn’t
14005         need a separate ifdef.
14007 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
14009         intprops: avoid evaluation of some expressions
14010         This makes EXPR_SIGNED (e) easier to use, as it no longer
14011         evaluates the expression E.  Formerly, E was required to be free
14012         of side effects.
14013         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
14014         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
14015         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
14017 2018-08-23  Bruno Haible  <bruno@clisp.org>
14019         getcwd: Add cross-compilation guesses.
14020         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
14021         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
14022         Based on a patch by Paul Eggert.
14023         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
14024         guesses for all GNU systems.
14026 2018-08-19  Bruno Haible  <bruno@clisp.org>
14028         glob-h: Formalize side effects from other modules.
14029         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
14030         * m4/glob.m4 (gl_GLOB): Invoke it.
14032         fnmatch-h: Formalize side effects from other modules.
14033         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
14034         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
14036         limits-h: Formalize side effects from other modules.
14037         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
14038         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
14040 2018-08-19  Bruno Haible  <bruno@clisp.org>
14042         getpass: Move declaration to <unistd.h>.
14043         * lib/unistd.in.h (getpass): New declaration.
14044         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
14045         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
14046         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
14047         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
14048         On glibc systems, don't set REPLACE_GETPASS to 1.
14049         * modules/getpass (Depends-on): Add 'unistd'.
14050         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
14051         (Include): Specify <unistd.h> instead of "getpass.h".
14052         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
14053         (configure.ac): Sync with the configure.ac section of modules/getpass.
14054         (Include): Specify <unistd.h> instead of "getpass.h".
14055         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
14056         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
14057         REPLACE_GETPASS.
14058         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
14059         REPLACE_GETPASS.
14060         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
14061         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
14062         and musl.
14063         * NEWS: Mention the change.
14065 2018-08-19  Bruno Haible  <bruno@clisp.org>
14067         glob: Fix over-optimization due to attribute __nonnull__.
14068         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
14070 2018-08-19  Bruno Haible  <bruno@clisp.org>
14072         glob: Fix another compilation error when glob.h is not replaced.
14073         Reported by Reuben Thomas <rrt@sc3d.org> in
14074         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
14075         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
14076         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
14078 2018-08-18  Bruno Haible  <bruno@clisp.org>
14080         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
14081         Reported by Reuben Thomas <rrt@sc3d.org> in
14082         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
14083         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
14084         in config.h.
14086 2018-08-18  Bruno Haible  <bruno@clisp.org>
14088         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
14089         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
14090         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
14091         Solution proposed by Eli Zaretskii.
14092         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
14093         * lib/gettimeofday.c (GetProcAddress): Likewise.
14094         * lib/link.c (GetProcAddress): Likewise.
14095         * lib/physmem.c (GetProcAddress): Likewise.
14096         * lib/poll.c (GetProcAddress): Likewise.
14097         * lib/select.c (GetProcAddress): Likewise.
14098         * lib/stat-w32.c (GetProcAddress): Likewise.
14100 2018-08-18  Bruno Haible  <bruno@clisp.org>
14102         glob: Fix another compilation error when glob.h is not replaced.
14103         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
14104         * lib/globfree.c: Include <libc-config.h>.
14106 2018-08-18  Bruno Haible  <bruno@clisp.org>
14108         glob: Fix compilation error when glob.h is not replaced.
14109         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
14110         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
14111         * lib/glob_pattern_p.c: Include <libc-config.h>.
14112         * modules/glob (Depends-on): Add libc-config.
14114 2018-08-18  Bruno Haible  <bruno@clisp.org>
14116         scratch_buffer: Add tests.
14117         * tests/test-scratch-buffer.c: New file.
14118         * modules/scratch_buffer-tests: New file.
14120 2018-08-18  Bruno Haible  <bruno@clisp.org>
14122         scratch_buffer: Fix include file.
14123         Reported by Reuben Thomas <rrt@sc3d.org> in
14124         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
14125         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
14126         double-inclusion guard.
14128 2018-08-18  Bruno Haible  <bruno@clisp.org>
14130         glob-h: Revert Paul Eggert's revert.
14131         * m4/glob_h.m4: Revert to previous state.
14132         * modules/glob-h: Likewise.
14134 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14136         glob-h: always build glob.h
14137         This works around a problem reported by Reuben Thomas in:
14138         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
14139         This workaround always builds glob.h, even on platforms that
14140         do not need it; perhaps this could be improved someday.
14141         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
14142         is always created now.
14143         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
14145 2018-08-13  Bruno Haible  <bruno@clisp.org>
14147         monetary: Simplify m4 code.
14148         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
14149         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
14151 2018-08-13  Bruno Haible  <bruno@clisp.org>
14153         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
14154         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
14155         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
14156         and by Paul J. Lucas <paul@lucasmail.org> in
14157         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
14158         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
14160 2018-08-11  Bruno Haible  <bruno@clisp.org>
14162         setlocale: Trivial simplification.
14163         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
14165 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14167         verify: port 'assume' to traditional tools
14168         * lib/verify.h (assume): Port better to Oracle Studio 12.6
14169         and other tools that use /*NOTREACHED*/ comments.
14171 2018-08-10  Bruno Haible  <bruno@clisp.org>
14173         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
14174         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
14175         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
14176         'fnmatch-gnu' is in use.
14178 2018-08-07  Bruno Haible  <bruno@clisp.org>
14180         glob-h: Add tests.
14181         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
14182         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
14183         tests/test-glob-h.c.
14184         * modules/glob-h-tests: New file.
14185         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
14186         conditions.
14187         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
14188         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
14190 2018-08-07  Bruno Haible  <bruno@clisp.org>
14192         glob-h: New module.
14193         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
14194         replacements.
14195         * lib/glob.c: Include <config.h>.
14196         * m4/glob_h.m4: New file.
14197         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
14198         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14199         REPLACE_GLOB_PATTERN_P as appropriate.
14200         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
14201         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
14202         * modules/glob-h: New file.
14203         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
14204         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
14205         lstat, sys_stat. Change conditions.
14206         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
14207         REPLACE_GLOB_PATTERN_P. Set module indicator.
14208         (Makefile.am): Remove code that is moved to glob-h.
14209         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
14210         * modules/posixcheck (Depends-on): Add glob-h.
14212 2018-08-06  Bruno Haible  <bruno@clisp.org>
14214         Force generation of substitute .h file when C++ support is enabled.
14215         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
14216         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
14217         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
14218         FNMATCH_H to non-empty.
14219         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
14220         ICONV_H to non-empty.
14221         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
14222         MONETARY_H to non-empty.
14223         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
14224         non-empty.
14226 2018-08-06  Bruno Haible  <bruno@clisp.org>
14228         fnmatch-h: Fix test compilation error on mingw (regression from today).
14229         * lib/fnmatch.in.h: Fix conditions.
14231 2018-08-06  Bruno Haible  <bruno@clisp.org>
14233         sys_resource: Relicense under LGPLv2+.
14234         John Malmberg's approval is in
14235         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
14236         * modules/sys_resource (License): Change to LGPLv2+.
14238 2018-08-06  Bruno Haible  <bruno@clisp.org>
14240         fnmatch-h: Add tests.
14241         * tests/test-fnmatch-h.c: New file.
14242         * modules/fnmatch-h-tests: New file.
14243         * tests/test-fnmatch-h-c++.cc: New file.
14244         * modules/fnmatch-h-c++-tests: New file.
14246 2018-08-06  Bruno Haible  <bruno@clisp.org>
14248         fnmatch-h: New module.
14249         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
14250         replacements.
14251         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
14252         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
14253         'posixcheck' warning.
14254         * m4/fnmatch_h.m4: New file.
14255         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
14256         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
14257         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
14258         as appropriate.
14259         * modules/fnmatch-h: New file.
14260         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
14261         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
14262         conditions.
14263         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
14264         indicator.
14265         (Makefile.am): Remove code that is moved to fnmatch-h.
14266         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
14267         REPLACE_FNMATCH.
14268         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
14269         * modules/posixcheck (Depends-on): Add fnmatch-h.
14271 2018-08-06  Bruno Haible  <bruno@clisp.org>
14273         Enable more C++ tests.
14274         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
14275         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
14276         * modules/strings-tests (Depends-on): Add strings-c++-tests.
14277         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
14278         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
14280 2018-08-06  Bruno Haible  <bruno@clisp.org>
14282         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
14283         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
14284         getopt.h.
14285         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
14287 2018-08-05  Bruno Haible  <bruno@clisp.org>
14289         utime-h: Generate header file when module 'posixcheck' is in use.
14290         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
14291         UTIME_H to non-empty.
14293 2018-08-05  Bruno Haible  <bruno@clisp.org>
14295         monetary: Generate header file when module 'posixcheck' is in use.
14296         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
14297         use, set MONETARY_H to non-empty.
14299 2018-08-05  Bruno Haible  <bruno@clisp.org>
14301         iconv-h: Generate header file when module 'posixcheck' is in use.
14302         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
14303         set ICONV_H to non-empty.
14305 2018-08-05  Bruno Haible  <bruno@clisp.org>
14307         Optimize the "checking whether ... is declared without a macro" checks.
14308         Suggested by Paul Eggert in
14309         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
14310         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
14311         Gnulib module 'posixcheck' is not in use.
14313 2018-08-05  Bruno Haible  <bruno@clisp.org>
14315         iconv-h: Enable 'posixcheck' warnings.
14316         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
14317         iconv_open.
14318         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
14320 2018-08-05  Bruno Haible  <bruno@clisp.org>
14322         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
14323         * m4/extern-inline.m4: Add more comments.
14324         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
14325         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
14326         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
14328 2018-08-04  Bruno Haible  <bruno@clisp.org>
14330         New module 'posixcheck'.
14331         * modules/posixcheck: New file.
14332         * m4/posixcheck.m4: New file.
14333         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
14334         (Which modules?): Reference it.
14336 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
14338         dfa: fix memory leak
14339         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
14341 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
14343         ieee754-h: new module
14344         It looks like Emacs can use this for some NaN processing.
14345         Emacs uses it only on double NaNs so it should be safe.
14346         * MODULES.html.sh (func_all_modules): Add ieee754-h.
14347         * config/srclist.txt: Mention ieee754.h in a comment.
14348         * doc/glibc-headers/ieee754.texi (ieee754.h):
14349         Gnulib now has a substitute that should work
14350         except for long double and for non-IEEE platforms.
14351         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
14352         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
14354 2018-07-27  Bruno Haible  <bruno@clisp.org>
14356         iswcntrl: Mention minor problem on macOS.
14357         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
14359 2018-07-26  Colin Watson  <cjwatson@debian.org>
14361         bootstrap, gnulib-tool: fix translations rsync
14362         Previously, we created files such as $pobase/Makefile.in.in and then the
14363         subsequent rsync would immediately delete them.
14364         * build-aux/bootstrap (po_download_command_format): Avoid deleting
14365         non-.po files in target directory when rsyncing translations.
14366         * gnulib-tool (func_import): Likewise.
14367         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14369 2018-07-25  Jim Meyering  <meyering@fb.com>
14371         bootstrap: reinstate definition fo gnulib_mk.
14372         That variable is used at least by cppi.
14373         * build-aux/bootstrap (gnulib_mk): Restore definition.
14374         This reverts the deletion from v0.1-1844-gc66dba9ba.
14376 2018-07-23  Bruno Haible  <bruno@clisp.org>
14378         doc: For module names, use texinfo markup @code{} or @samp{}.
14379         * doc/alloca.texi: Mark gnulib module names with @code.
14380         * doc/alloca-opt.texi: Likewise.
14381         * doc/quote.texi: Likewise.
14382         * doc/posix-functions/freopen.texi: Likewise.
14383         * doc/posix-functions/open.texi: Likewise.
14384         * doc/posix-functions/readlink.texi: Likewise.
14385         * doc/posix-functions/readlinkat.texi: Likewise.
14386         * doc/posix-functions/stdout.texi: Likewise.
14387         * doc/posix-functions/stderr.texi: Likewise.
14388         * doc/posix-functions/unlink.texi: Likewise.
14389         * doc/posix-functions/unlinkat.texi: Likewise.
14390         * doc/posix-functions/utime.texi: Likewise.
14391         * doc/posix-functions/utimensat.texi: Likewise.
14392         * doc/posix-functions/utimes.texi: Likewise.
14393         * doc/posix-headers/stdint.texi: Likewise.
14394         * doc/glibc-functions/futimesat.texi: Likewise.
14395         * doc/glibc-functions/lutimes.texi: Likewise.
14396         * doc/glibc-functions/memmem.texi: Likewise.
14398 2018-07-23  Werner LEMBERG  <wl@gnu.org>
14400         doc: Avoid some overfull lines in the TeX output.
14401         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
14402         @example.
14403         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
14404         newline before the long URL.
14405         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
14406         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
14407         Add line breaks in code snippets.
14409 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14411         hard-locale: simplify by removing hard-locale.m4
14412         * m4/hard-locale.m4: Remove.
14413         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
14414         (configure.ac): Do not call gl_HARD_LOCALE.
14416         gnulib-tool: limit line length for git send-email
14417         * gnulib-tool (func_import): Break actioncmd log line
14418         into multiple lines.
14420 2018-07-16  Bruno Haible  <bruno@clisp.org>
14422         ffs: Ensure declaration on mingw.
14423         Reported by Daniel P. Berrangé <berrange@redhat.com>
14424         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
14425         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
14426         also declared.
14428 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
14430         regex-tests: add dependency
14431         * modules/regex-tests (Depends-on): Add gettext-h.
14432         This is needed given the recent changes to regex,
14433         which no longer depends on gettext-h.
14435 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14437         regex: now in sync with glibc
14438         * config/srclist.txt: Gnulib and glibc regex code
14439         are synchronized again.
14441 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14443         renameatu: rename from renameat2
14444         It's looking like Glibc will add a renameat2 function
14445         that is incompatible with Gnulib renameat2; see:
14446         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
14447         To help avoid future confusion, rename renameat2 to something else.
14448         Use the name 'renameatu', as the Gnulib function is close to the
14449         Glibc function.  Perhaps someday there will also be a renameat2
14450         Gnulib module, which mimicks the future glibc renameat2, but that
14451         can wait as nobody seems to need such a module now.
14452         * NEWS: Mention this.
14453         * lib/renameatu.c: Rename from lib/renameat2.c.
14454         * lib/renameatu.h: Rename from lib/renameat2.h.
14455         * modules/renameatu: Rename from modules/renameat2.
14456         * modules/renameatu-tests: Rename from modules/renameat2-tests.
14457         All uses of "renameat2" in identifiers or file name
14458         changed to "renameatu", except for two instances in
14459         lib/renameatu.c that deal with the Linux kernel's
14460         renameat2 syscall.
14462 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14464         gnulib-tool: minor tweaks for --gnu-make
14465         * gnulib-tool: Do not allow --gnu-make in test modes,
14466         since they all require automake.
14467         (func_emit_lib_Makefile_am): Don’t emit automake comment
14468         if --gnu-make.
14470         regex: work around conditional-dependencies glitch
14471         * modules/regex (Depends-on): Add langinfo.
14472         Without this change, I had problems building an experimental
14473         version of GNU Emacs.  The symptom of the bug was a message
14474         ‘./configure: line 12726: test: =: unary operator expected’.
14475         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
14476         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
14477         was unset.  Although gl_FUNC_NL_LANGINFO has
14478         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
14479         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
14480         --conditional-dependencies sometimes arranges for the
14481         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
14482         code.  Since the regex code includes <langinfo.h> it should be
14483         depending on the langinfo module anyway, and this happens to work
14484         around the bug, so install that as a workaround for now.  To
14485         reproduce the original problem, run the following shell script on
14486         the version of Gnulib just before this patch was installed.
14487                 rm -fr foo
14488                 mkdir foo
14489                 cat >foo/configure.ac <<'EOF'
14490                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
14491                 gl_EARLY
14492                 gl_INIT
14493                 AC_OUTPUT
14494                 EOF
14495                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
14496                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
14497                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
14498                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
14499                 cd foo
14500                 aclocal -I m4
14501                 autoconf
14502                 ./configure --with-included-regex
14504 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14506         wchar: fix bug when checking for ‘inline’
14507         I discovered this when looking into using the regex module
14508         with Emacs.
14509         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
14510         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
14511         conftest1.c and conftest2.c but these files were not created.
14512         As far as I can see, this check never worked and nobody reported
14513         it until now, which is a bit worrisome.
14515 2018-06-30  Jim Meyering  <meyering@fb.com>
14517         bootstrap: s/--option val/--option=val/
14518         * build-aux/bootstrap (gnulib_tool_options): Change the
14519         spelling of "--option val" pairs to "--option=val", for
14520         aesthetics, and also so that this file no longer triggers
14521         a common help2man syntax-check warning when copied into
14522         projects like grep, gzip, etc.
14524 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
14526         manywarnings: omit -Wswitch-default
14527         This should make things more consistent, as we already ignore
14528         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
14529         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
14530         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
14531         Add -Wswitch-default.
14532         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
14533         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14534         Remove -Wswitch-default.
14536         regex: revert most trimming
14537         Problems reported by Bruno Haible in:
14538         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
14539         * modules/regex (Depends-on): Add lock, memcmp, memmove,
14540         and wctype back in.  lock because regex users shouldn’t
14541         need to know that regex needs locking, and the rest because
14542         gnulib-tool should ordinarily ignore them anyway.
14544 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14546         regex: trim module dependencies
14547         * modules/regex (Depends-on): Remove gettext-h and lock,
14548         since the regex code should work OK without these modules,
14549         and Emacs uses it that way.  Also remove memcmp, memmove,
14550         and wctype, as these modules are obsolete and should not be
14551         needed any more.
14553 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14555         regex: glibc does not use intprops.h
14556         Maybe we can talk glibc into using intprops.h someday, but
14557         now doesn’t seem to be a good time.
14558         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
14559         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
14560         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
14562 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
14564         regex: port to recently proposed glibc regex merge
14565         This patch is inspired by Adhemerval Zanella's recent proposal
14566         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
14567         to merge glibc and Gnulib regex.  It aims to simplify the merge on
14568         the glibc side, without keeping Gnulib portable.
14569         * lib/regex.h: Fix a problem with glibc installed-header checking,
14570         as follows:
14571         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
14572         (_Restrict_arr_): Prefer __restrict_arr if defined,
14573         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
14574         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
14575         (build_wcs_upper_buffer, build_upper_buffer)
14576         (re_string_translate_buffer, re_string_context_at):
14577         Move decls here from lib/regex_internal.h, for glibc internal tests.
14578         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
14579         glibc BZ #18496.
14580         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
14581         -Wunused-value.
14582         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
14583         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
14584         (bitset_mask): Now static inline, and without any __attribute__
14585         ((unused)) decoration, for glibc internal tests.
14587 2018-06-25  Bruno Haible  <bruno@clisp.org>
14589         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
14590         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
14591         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
14592         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
14593         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
14594         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
14595         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
14596         / -lthread / -lpth does not get optimized away by a preceding
14597         --as-needed option.
14599 2018-06-25  Bruno Haible  <bruno@clisp.org>
14601         Continue to use spaces for indentation, not tabs.
14602         * MODULES.html.sh: Untabify.
14603         * doc/regex.texi: Likewise.
14604         * lib/acl-internal.c: Likewise.
14605         * lib/dfa.c: Likewise.
14606         * lib/exclude.c: Likewise.
14607         * lib/exclude.h: Likewise.
14608         * lib/get-permissions.c: Likewise.
14609         * lib/gettimeofday.c: Likewise.
14610         * lib/parse-datetime.y: Likewise.
14611         * lib/pselect.c: Likewise.
14612         * lib/set-permissions.c: Likewise.
14613         * lib/time.in.h: Likewise.
14614         * m4/canonicalize.m4: Likewise.
14615         * m4/gc.m4: Likewise.
14616         * m4/gnulib-common.m4: Likewise.
14617         * m4/pthread_sigmask.m4: Likewise.
14618         * m4/vararrays.m4: Likewise.
14619         * tests/test-digest.h: Likewise.
14620         * tests/test-fcntl-h.c: Likewise.
14621         * tests/test-timespec.c: Likewise.
14622         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
14624 2018-06-25  Bruno Haible  <bruno@clisp.org>
14626         manywarnings: Don't enable -Wjump-misses-init warnings by default.
14627         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
14628         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
14629         -Wjump-misses-init.
14631 2018-06-25  Jim Meyering  <meyering@fb.com>
14633         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
14634         * lib/acl-internal.h (free_permission_context): Remove that
14635         attribute directive.  Otherwise, it would provoke this from GCC 9:
14636         lib/acl-internal.h:300:3: error: 'const' attribute on function \
14637           returning 'void' [-Werror=attributes]
14639 2018-06-24  Jim Meyering  <meyering@fb.com>
14641         parse-datetime: accommodate gcc-4.8.5
14642         Bruno Haible reported the build failure in
14643         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
14644         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
14645         on declaration of new local.
14647 2018-06-24  Bruno Haible  <bruno@clisp.org>
14649         af_alg: Fail in continuable manner on Linux/powerpc64le.
14650         Reported by Assaf Gordon <assafgordon@gmail.com>
14651         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
14652         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
14653         byte send() as the first round.
14655 2018-06-24  Bruno Haible  <bruno@clisp.org>
14657         af_alg: Fix state of stream after sendfile() succeeds.
14658         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
14659         the stream is correctly positioned afterwards.
14660         * modules/crypto/af_alg (Depends-on): Add fflush.
14661         * tests/test-digest.h (test_digest_on_files): Verify that after the
14662         operation the stream is positioned at end of file.
14664 2018-06-24  Jim Meyering  <meyering@fb.com>
14666         canon-host: take GCC9's advice rather than ignoring warning
14667         Pádraig Brady suggested not to ignore this GCC9 advice.
14668         * lib/canon-host.c: Undo preceding change.
14669         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
14671         parse-datetime.y: avoid spurious GCC 9 warning
14672         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
14673         a function local prior to the first "goto fail".  The prior use would
14674         evoke this:
14675         parse-datetime.y: In function 'parse_datetime2':
14676         parse-datetime.y:1791:19: error: jump skips variable initialization \
14677           [-Werror=jump-misses-init]
14678         parse-datetime.y:2385:2: note: label 'fail' defined here
14679         parse-datetime.y:188:43: note: '({anonymous})' declared here
14680         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
14682         canon-host.c: avoid spurious GCC 9 warning
14683         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
14685         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
14686         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
14687         * m4/manywarnings.m4: Remove them.
14688         Otherwise, building coreutils, I would see this:
14689         cc1: error: deprecated command line option '-Wchkp' [-Werror]
14690         cc1: error: -Wabi won't warn about anything [-Werror=abi]
14691         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
14692           which is also used by default
14693         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
14695 2018-06-24  Bruno Haible  <bruno@clisp.org>
14697         af_alg tests: Add another test.
14698         * tests/test-digest.h (test_digest_on_files): Also check a large file
14699         with a skipped header.
14700         * tests/test-md5.c: Include macros.h.
14701         * tests/test-sha1.c: Likewise.
14702         * tests/test-sha256.c: Likewise.
14703         * tests/test-sha512.c: Likewise.
14704         * modules/crypto/md5-tests (Files): Add tests/macros.h.
14705         * modules/crypto/sha1-tests (Files): Likewise.
14706         * modules/crypto/sha256-tests (Files): Likewise.
14707         * modules/crypto/sha512-tests (Files): Likewise.
14709 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14711         maint: clarify comments about sticky EOF
14712         * lib/af_alg.c: Be more direct that we can't
14713         assume stickiness of EOF for portability reasons.
14714         * lib/md5.c: Clarify that this isn't just a glibc issue.
14715         * lib/sha1.c: Likewise.
14716         * lib/sha256.c: Likewise.
14717         * lib/sha512.c: Likewise.
14719 2018-06-24  Bruno Haible  <bruno@clisp.org>
14721         af_alg: Comment and style improvements.
14722         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
14723         (afalg_buffer, afalg_stream): Improve comments.
14725 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14727         af_alg: disable kernel hash functions by default
14728         All the kernel routines were seen to be significantly slower
14729         with these relatively recent components on an i3-2310M system:
14730           kernel-4.10.6-200.fc25.x86_64
14731           openssl-1.0.2m-1.fc25.x86_64
14732         sha1 was nearly twice as slow in the kernel for example.
14733         Further considerations why this should not be the default, at:
14734         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
14736         * m4/af_alg.m4: Require --with-linux-crypto to enable.
14737         * m4/gl-openssl.m4: Tweak accordingly.
14739 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14741         af_alg: avoid hangs when reading from streams
14742         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
14743         and thus avoid doing a fread() when feof() is set.
14744         * lib/md5.c: Ensure feof() is called before fread().
14745         * lib/sha1.c: Likewise.
14746         * lib/sha256.c: Likewise.
14747         * lib/sha512.c: Likewise.
14749 2018-06-24  Pádraig Brady  <P@draigBrady.com>
14751         af_alg: fix error handling when hash not returned
14752         * lib/af_alg.c (afalg_stream): Handle the case where we've
14753         successfully written data to the kernel in the read/write loop,
14754         but the kernel doesn't respond with the hash.
14756 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
14758         libc-config: merge from glibc
14759         * lib/cdefs.h (__inline, __restrict):
14760         Copy from current glibc.  This fixes glibc bug 17721,
14761         which Gnulib had already fixed in a different way.
14762         (__nonnull): Lessen the distance from glibc by using the
14763         glibc definition inside an ‘#ifndef __nonnull’.
14764         (__attribute_nonstring__): New macro, copied from
14765         current glibc.
14766         * lib/libc-config.h (__attribute_nonstring__): New undef.
14767         (__restrict): Remove; workaround no longer needed.
14768         Keep the __inline workaround, though, as it uses HAVE___INLINE to
14769         support more compilers than the glibc __inline can.
14771 2018-06-24  Bruno Haible  <bruno@clisp.org>
14773         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
14774         * lib/mbrtowc.c (enc_t): New enum type.
14775         (locale_enc, locale_enc_cached): New functions.
14776         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
14777         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
14778         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
14779         instead.
14780         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
14781         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
14782         * modules/wcwidth (configure.ac): Invoke it.
14784 2018-06-24  Bruno Haible  <bruno@clisp.org>
14786         wchar-single: Fix test failure in wcwidth tests.
14787         * tests/test-wcwidth.c (main): If the wchar-single module is present,
14788         skip the tests in the C locale.
14790 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14792         crypto: mention --without-linux-crypto in --with-openssl --help
14793         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
14794         routines take precedence in --with-openssl help output.
14796 2018-06-23  Pádraig Brady  <P@draigBrady.com>
14798         wchar-single: a new module to enable optimizations in wchar replacements
14799         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
14800         GNULIB_WCHAR_SINGLE is enabled.
14801         * lib/wcwidth.c (wcwidth): Likewise.
14803 2018-06-23  Bruno Haible  <bruno@clisp.org>
14805         libc-config: Fix conflict with FreeBSD include files.
14806         * lib/cdefs.h (__nonnull): Remove definition.
14807         * lib/libc-config.h (__nonnull): Remove undefinition.
14809 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14811         random_r: do not crash if state is unaligned
14812         Problem reported by Bruce Korb in:
14813         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
14814         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
14815         with 'cc -O2 -xmemalign=8s'.
14816         * lib/random_r.c: Include string.h, for memcpy.
14817         (get_int32, set_int32): New functions.
14818         (__srandom_r, __initstate_r, __setstate_r, __random_r):
14819         Use them to avoid assumption that state pointer is aligned.
14820         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
14821         * tests/test-random_r.c (test_failed): New function.
14822         (main): Use it, to test for alignment bugs.
14824         random_r: omit unnecessary include
14825         * lib/random_r.c: Do not include limits.h.
14827         random, random_r: merge from glibc
14828         * lib/random.c, lib/random_r.c:
14829         Include libc-config.h if !_LIBC, not config.h unilaterally.
14830         * lib/random.c:
14831         Do not include stdint.h or time.h; not needed.
14832         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
14833         (unsafe_state): Rename from generator.  All uses changed.
14834         Use C99-style initializers.
14835         (__random, __srandom, __initstate, __setstate): Rename from
14836         non-underscored version, but define it to non-underscored version
14837         on Gnulib.  Add a lock.
14838         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
14839         Likewise.
14840         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
14841         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
14842         (__srandom_r): Use int32_t instead of long int where int32_t will do.
14843         (__random_r): Use uint32 to fix glibc bug 17343.
14844         * modules/random, modules/random_r (Depends-on): Add libc-config.
14845         Depend on stdint only if $HAVE_RANDOM = 0.
14847 2018-06-19  Jim Meyering  <meyering@fb.com>
14849         README-release: also run any check-very-expensive tests
14850         * top/README-release: Adjust instructions so they run the
14851         check-very-expensive tests when there is such a target.
14853 2018-06-18  Bruno Haible  <bruno@clisp.org>
14855         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
14856         * m4/pthread_rwlock_rdlock.m4: Add comment.
14857         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
14858         are reader-preferring in glibc.
14859         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
14860         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
14862 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
14864         crypto: use byteswap
14865         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
14866         * lib/sm3.c: Include <byteswap.h>.
14867         (SWAP): Use its macros rather than reinventing the wheel.
14868         * modules/crypto/md4, modules/crypto/md5-buffer:
14869         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
14870         * modules/crypto/sha512-buffer, modules/crypto/sm3:
14871         (Depends-on): Add byteswap.
14873 2018-06-17  Pádraig Brady  <P@draigBrady.com>
14875         gendocs.sh: fix support for legacy --texi2html
14876         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
14877         to the default makeinfo invocation.
14878         Reported by Bruce Korb
14880 2018-06-17  Bruno Haible  <bruno@clisp.org>
14882         gettext po infrastructure: Update from current gettext git.
14883         Reported by Akim Demaille <akim@lrde.epita.fr>.
14884         * build-aux/po/Makefile.in.in: Update from current gettext git.
14885         * build-aux/po/remove-potcdate.sin: Likewise.
14886         * config/srclist.txt: Temporarily disable sync for these files.
14888 2018-06-17  Bruno Haible  <bruno@clisp.org>
14890         getloadavg: Return 0 on Windows without Cygwin.
14891         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
14893 2018-06-17  Paul Smith  <psmith@gnu.org>
14895         getloadavg: Allow building on Windows without Cygwin
14896         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
14897         * m4/getloadavg.m4: Check for unistd.h.
14899 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
14901         Port crypto/af_alg to GCC 4.8.4
14902         Problem reported by Peter Simons in:
14903         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
14904         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
14906 2018-05-27  Colin Watson  <cjwatson@debian.org>
14908         bootstrap: document source fetching in --help
14909         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
14911 2018-04-09  Colin Watson  <cjwatson@debian.org>
14913         bootstrap: allow non-submodule control of gnulib
14914         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
14915         bootstrap.conf when fetching gnulib using "git clone" or via
14916         GNULIB_SRCDIR.
14918 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14920         crypto: omit stream ops Emacs doesn’t need
14921         * lib/md5.c (md5_stream):
14922         * lib/sha1.c (sha1_stream):
14923         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
14924         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
14925         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
14926         defined.  Emacs needs this, as it does not use the stream
14927         operations and doesn’t need all the af_alg stuff we’ve recently
14928         added.  Perhaps a similar change is needed to the other crypto
14929         modules, but this patch changes only those needed for Emacs.
14930         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
14931         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
14932         New modules, used by Emacs.
14933         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
14934         * modules/crypto/sha512: Rewrite to depend on the new modules.
14936 2018-05-20  Pádraig Brady  <P@draigBrady.com>
14938         fts: avoid a memory leak edge case
14939         * lib/fts.c (fts_open): Set an appropriate fts_level
14940         so that an immediate fts_close() will free the allocation.
14941         * tests/test-fts.c (fts_dealloc): Add a test case which
14942         will trigger under valgrind or address sanitizer.
14943         Fixes https://bugs.gnu.org/31439
14945 2018-05-20  Bruno Haible  <bruno@clisp.org>
14947         wcwidth tests: Fix link error.
14948         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
14949         $(LIBUNISTRING).
14951 2018-05-20  Bruno Haible  <bruno@clisp.org>
14953         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
14954         * modules/regex (Files): Add m4/glibc21.m4.
14956 2018-05-20  Bruno Haible  <bruno@clisp.org>
14958         localcharset: Optimize.
14959         * lib/localcharset.c (alias_table): Comment out no-op mappings for
14960         platforms where these don't matter. This reduces the table size,
14961         which in turn reduces the lookup time.
14963 2018-05-19  Bruno Haible  <bruno@clisp.org>
14965         localcharset: Map the locale encodings found in newer OSes.
14966         * lib/localcharset.c (alias_table): Add mapping for locale encodings
14967         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
14968         IRIX 6.5, Minix 3.3.
14969         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
14971 2018-05-19  Bruno Haible  <bruno@clisp.org>
14973         localcharset: Move mapping tables into the code. Use a binary search.
14974         * lib/localcharset.h: Document the GNU canonical names for character
14975         encodings here.
14976         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
14977         relocatable.h, configmake.h.
14978         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
14979         macros.
14980         (charset_aliases): Remove variable.
14981         (get_charset_aliases): Remove function.
14982         (struct table_entry): New type.
14983         (alias_table, locale_table): New constants.
14984         (locale_charset): Use the alias_table or locale_table to get the
14985         canonicalized encoding name.
14986         * lib/config.charset: Remove file.
14987         * lib/ref-add.sin: Remove file.
14988         * lib/ref-del.sin: Remove file.
14989         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
14990         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
14991         * modules/localcharset (Notice): Remove.
14992         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
14993         glibc21.m4.
14994         (Depends-on): Remove configmake.
14995         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
14996         (Makefile.am): Simplify.
14997         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
14999 2018-05-19  Bruno Haible  <bruno@clisp.org>
15001         localcharset: Add a manual test.
15002         * tests/test-localcharset.c: New file.
15003         * modules/localcharset-tests: New file.
15005 2018-05-19  Bruno Haible  <bruno@clisp.org>
15007         localcharset: Remove support for obsolete platforms.
15008         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
15009         Mac OS X 10.2. Comment out dubious entry for Solaris.
15011 2018-05-19  Jim Meyering  <meyering@fb.com>
15013         gnupload: adjust comment
15014         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
15015         more likely we'll remove the just-added code in a year or two.
15017 2018-05-19  Bruno Haible  <bruno@clisp.org>
15019         gnupload: Fix "gpg-agent is not available in this session" error.
15020         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
15022 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15024         crypto/af_alg: fix --help
15025         * m4/af_alg.m4: Avoid spurious newline in --help output.
15027 2018-05-13  Bruno Haible  <bruno@clisp.org>
15029         nl_langinfo: Fix compilation error on Android.
15030         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
15031         INT_CURR_SYMBOL, etc. only if these items are defined.
15033 2018-05-13  Bruno Haible  <bruno@clisp.org>
15035         truncate: Fix compilation error on Android.
15036         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
15037         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
15038         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
15039         HAVE_TRUNCATE.
15040         * modules/truncate: Likewise.
15041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
15042         not HAVE_TRUNCATE.
15043         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
15044         HAVE_TRUNCATE.
15045         * doc/posix-functions/truncate.texi: Mention the issue.
15047 2018-05-13  Bruno Haible  <bruno@clisp.org>
15049         pthread: Fix compilation error on Android.
15050         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
15051         recursive inclusion of this file.
15053 2018-05-13  Bruno Haible  <bruno@clisp.org>
15055         posix_spawn: Fix compilation error on Android.
15056         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
15057         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
15058         (posix_spawn_file_actions_t): Consider also the case
15059         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
15061 2018-05-13  Bruno Haible  <bruno@clisp.org>
15063         tsearch: Move from K&R C to ANSI C.
15064         * lib/tsearch.c (tfind): Convert definition to ANSI C.
15066 2018-05-13  Bruno Haible  <bruno@clisp.org>
15068         tsearch: Fix compilation error on Android.
15069         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
15070         is 0.
15071         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
15072         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
15073         GNULIB_defined_tsearch is true.
15074         (twalk): Define only if GNULIB_defined_twalk is true.
15075         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
15076         is 0.
15077         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
15078         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
15079         * modules/search (Makefile.am): Substitute HAVE_TWALK.
15081 2018-05-13  Bruno Haible  <bruno@clisp.org>
15083         imaxdiv: Fix compilation error on Android.
15084         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
15085         is not defined.
15086         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
15087         HAVE_DECL_IMAXDIV, is 0.
15088         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
15089         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
15091 2018-05-13  Bruno Haible  <bruno@clisp.org>
15093         Support selective inclusion mechanism of recent mingw.org header files.
15094         Reported by Eli Zaretskii <eliz@gnu.org>.
15095         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
15096         __need_ssize_t, or __need_time_t is defined, just include the system's
15097         <sys/types.h>.
15098         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
15099         include the system's <locale.h>.
15101 2018-05-13  Bruno Haible  <bruno@clisp.org>
15103         Avoid compilation error due to 'mmap' on Android.
15104         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
15105         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
15106         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
15107         Undefine on Android.
15109 2018-05-13  Bruno Haible  <bruno@clisp.org>
15111         Add cross-compilation guesses for Linux systems without glibc.
15112         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
15113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
15114         * m4/link.m4 (gl_FUNC_LINK): Likewise.
15115         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15116         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
15117         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15118         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15119         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15120         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
15121         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
15122         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
15123         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15124         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15125         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15126         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15127         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
15128         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15129         * m4/utimens.m4 (gl_UTIMENS): Likewise.
15131 2018-05-13  Bruno Haible  <bruno@clisp.org>
15133         getpagesize: Fix compilation error on Android.
15134         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
15135         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
15136         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
15137         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
15138         HAVE_GETPAGESIZE accordingly.
15139         * modules/getcwd (Files): Add m4/getpagesize.m4.
15141 2018-05-13  Bruno Haible  <bruno@clisp.org>
15143         tcgetsid: Fix compilation error on Android.
15144         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
15145         AC_CHECK_FUNC.
15147 2018-05-13  Bruno Haible  <bruno@clisp.org>
15149         getpass: Fix configure test for Android.
15150         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
15151         AC_CHECK_FUNC.
15153 2018-05-13  Bruno Haible  <bruno@clisp.org>
15155         ffs: Fix compilation error on Android.
15156         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
15158 2018-05-13  Bruno Haible  <bruno@clisp.org>
15160         mkfifo: Fix compilation error on Android.
15161         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
15162         AC_CHECK_FUNC.
15164 2018-05-13  Bruno Haible  <bruno@clisp.org>
15166         c-strtod: Fix configure test for Android.
15167         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
15168         AC_CHECK_FUNC.
15170 2018-05-13  Bruno Haible  <bruno@clisp.org>
15172         random: Fix compilation error on Android.
15173         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
15174         AC_CHECK_FUNC.
15176 2018-05-13  Bruno Haible  <bruno@clisp.org>
15178         grantpt: Fix compilation error on Android.
15179         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
15180         AC_CHECK_FUNC.
15182 2018-05-13  Bruno Haible  <bruno@clisp.org>
15184         stdioext: Fix compilation errors with newer Android headers.
15185         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
15186         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
15187         fallbacks for Android.
15188         * lib/fpending.c: Update comments.
15189         * lib/fpurge.c: Likewise.
15190         * lib/freadable.h: Likewise.
15191         * lib/freadable.c: Likewise.
15192         * lib/freadahead.c: Likewise.
15193         * lib/freading.h: Likewise.
15194         * lib/freadptr.c: Likewise.
15195         * lib/fseterr.c: Likewise.
15196         * lib/fwritable.h: Likewise.
15197         * lib/fwritable.c: Likewise.
15198         * lib/fwriting.h: Likewise.
15199         * lib/fwriting.c: Likewise.
15201 2018-05-13  Bruno Haible  <bruno@clisp.org>
15203         doc: Add info about Android versions 2.0 to 8.1.
15204         * doc/**/*.texi: Add info about functions in all released versions of
15205         Bionic.
15207 2018-05-12  Bruno Haible  <bruno@clisp.org>
15209         fseeko: On mingw, don't use the hidden function _fseeki64.
15210         Reported by Eli Zaretskii <eliz@gnu.org>.
15211         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
15212         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
15214 2018-05-12  Bruno Haible  <bruno@clisp.org>
15216         glob: Choose 'dirent_type' in a way that works better on mingw.
15217         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
15218         * lib/glob.c (dirent_type): Define as uint_fast32_t.
15220 2018-05-12  Bruno Haible  <bruno@clisp.org>
15222         execute, spawn-pipe: Avoid warning about redefining 'close'.
15223         Reported by Eli Zaretskii <eliz@gnu.org>.
15224         * lib/execute.c: Undefine 'close' before redefining it.
15225         * lib/spawn-pipe.c: Likewise.
15227 2018-05-12  Bruno Haible  <bruno@clisp.org>
15229         nanosleep: Avoid test failure on mingw when it has nanosleep.
15230         Reported by Eli Zaretskii <eliz@gnu.org>.
15231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
15232         If it does not exist, use a simpler test program that does not call
15233         alarm().
15235 2018-05-10  Bruno Haible  <bruno@clisp.org>
15237         lock, cond, thread, tls: Use a different symbol as libpthread witness.
15238         Reported by Devin Hussey <husseydevin@gmail.com>.
15239         Based on a patch by Paul Eggert.
15240         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
15241         as witness of libpthread.
15242         * lib/glthread/cond.h (pthread_in_use): Likewise.
15243         * lib/glthread/thread.h (pthread_in_use): Likewise.
15244         * lib/glthread/tls.h (pthread_in_use): Likewise.
15246 2018-05-10  Bruno Haible  <bruno@clisp.org>
15248         cond tests: Fix compilation error on Solaris.
15249         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
15250         macro.
15252 2018-05-10  Bruno Haible  <bruno@clisp.org>
15254         doc: Add partial info about Android 4.3.
15255         * doc/*-functions/*.texi: Add info about functions that were added
15256         to Bionic between Android 4.3 and Android 9.0.
15258 2018-05-10  Bruno Haible  <bruno@clisp.org>
15260         doc: Add info about Android 9.0.
15261         * doc/**/*.texi: Add info about functions and headers in Bionic from
15262         Android 9.0.
15264 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
15266         af_alg: fix my typo in afalg_buffer
15267         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
15268         (afalg_stream): Simplify and avoid the need for a runtime test
15269         at the end.
15271         af_alg: recover better from crypto failures
15272         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
15273         input stream is seekable, by repositioning the stream back to
15274         where it was, possibly by just calling sendfile with an offset
15275         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
15276         cases, which lets our callers try again with user-mode code.
15277         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
15278         instead of on fflush and lseek.
15280         af_alg: distiguish I/O errors better
15281         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
15282         not -EIO, if it’s OK for the caller to try again with user-mode code.
15283         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
15284         some other error number) if fflush fails, as the caller should not
15285         try again that case.
15287         af_alg: avoid gotos
15288         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
15289         gotos, as they were a source of unreliability and made the code a
15290         bit harder to follow.
15292         af_alg: don’t leak file descriptors into children
15293         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
15294         This code should be compiled only on recent GNU/Linux platforms
15295         so we shouldn’t have to also depend on the accept4 module.
15297         af_alg: coalesce socket creation
15298         * lib/af_alg.c (alg_socket): New function.
15299         (afalg_buffer, afalg_stream): Use it.  This avoids some
15300         code duplication and gotos.
15302         af_alg: fix file descriptor leak
15303         * lib/af_alg.c (afalg_stream): Close leak.
15305         af_alg: Pacify --enable-gcc-warnings on GCC 8
15306         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
15307         and checking to pacify gcc -Wjump-misses-init on GCC 8.
15309 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15311         af_alg: Pacify --enable-gcc-warnings
15312         Problem reported by Assaf Gordon in:
15313         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
15314         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
15315         gcc -Wjump-misses-init.
15316         * lib/sha512.c (shaxxx_stream): Now static.
15318 2018-05-06  Bruno Haible  <bruno@clisp.org>
15320         af_alg: Add ability to use Linux kernel crypto API on data in memory.
15321         * lib/af_alg.h (afalg_buffer): New declaration.
15322         * lib/af_alg.c (afalg_buffer): New function.
15324 2018-05-06  Bruno Haible  <bruno@clisp.org>
15326         af_alg: Avoid warnings.
15327         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
15328         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
15330 2018-05-06  Bruno Haible  <bruno@clisp.org>
15332         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
15333         * tests/bench-digest.h: New file.
15334         * tests/bench-md5.c: New file.
15335         * tests/bench-sha1.c: New file.
15336         * tests/bench-sha224.c: New file.
15337         * tests/bench-sha256.c: New file.
15338         * tests/bench-sha384.c: New file.
15339         * tests/bench-sha512.c: New file.
15340         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
15341         tests/bench-digest.h.
15342         (Depends-on): Add getrusage, gettimeofday.
15343         (Makefile.am): Add variables to build bench-md5.
15344         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
15345         tests/bench-digest.h.
15346         (Depends-on): Add getrusage, gettimeofday.
15347         (Makefile.am): Add variables to build bench-sha1.
15348         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
15349         tests/bench-sha256.c, tests/bench-digest.h.
15350         (Depends-on): Add getrusage, gettimeofday.
15351         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
15352         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
15353         tests/bench-sha512.c, tests/bench-digest.h.
15354         (Depends-on): Add getrusage, gettimeofday.
15355         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
15357 2018-05-06  Bruno Haible  <bruno@clisp.org>
15359         af_alg: Fix a resource leak.
15360         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
15361         New local variable 'result'.
15363 2018-05-06  Bruno Haible  <bruno@clisp.org>
15365         af_alg: Fix bug with streams that are not at position 0.
15366         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
15367         assume that the stream is positioned at position 0.
15368         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
15369         of the stream.
15370         * lib/md5.h (md5_stream): Likewise.
15371         * lib/sha1.h (sha1_stream): Likewise.
15372         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
15373         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
15374         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
15376         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
15377         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
15378         stream that is not positioned at the beginning.
15380 2018-05-06  Bruno Haible  <bruno@clisp.org>
15382         af_alg: Add configure option to enable/disable use of Linux crypto API.
15383         Suggested by Assaf Gordon <assafgordon@gmail.com>.
15384         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
15385         USE_LINUX_CRYPTO_API.
15386         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
15387         * lib/af_alg.c: Likewise.
15389 2018-05-06  Bruno Haible  <bruno@clisp.org>
15391         Followup to 'af_alg: New module.'.
15392         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
15393         * modules/crypto/sha1 (Depends-on): Likewise.
15394         * modules/crypto/sha256 (Depends-on): Likewise.
15395         * modules/crypto/sha512 (Depends-on): Likewise.
15397 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15399         crypto/{md5,sha1,sha256,sha512}: simplify
15400         * lib/md5.c (md5_stream):
15401         * lib/sha1.c (sha1_stream):
15402         * lib/sha256.c (shaxxx_stream):
15403         Simplify, partly by assuming C99.
15404         * lib/sha256.c (shaxxx_stream):
15405         New function, which implements both sha256 and sha224.
15406         Simplify, partly by assuming C99.
15407         (sha256_stream, sha224_stream):
15408         Use it to avoid code duplication, removing a FIXME.
15409         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15410         Likewise.
15412         af_alg: Improve comments.
15413         * lib/af_alg.h: Use imperatives and tighten up wording.
15415 2018-05-05  Bruno Haible  <bruno@clisp.org>
15417         af_alg: Improve comments.
15418         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
15420 2018-05-05  Bruno Haible  <bruno@clisp.org>
15422         af_alg: New module.
15423         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
15424         * lib/af_alg.c: Include "af_alg.h" before the other header files.
15425         * lib/md5.c: Include "af_alg.h" unconditionally.
15426         (md5_stream): Invoke afalg_stream unconditionally.
15427         * lib/sha1.c: Include "af_alg.h" unconditionally.
15428         (sha1_stream): Invoke afalg_stream unconditionally.
15429         * lib/sha256.c: Include "af_alg.h" unconditionally.
15430         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
15431         * lib/sha512.c: Include "af_alg.h" unconditionally.
15432         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
15433         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
15434         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
15435         * modules/crypto/af_alg: New file.
15436         * modules/crypto/md5 (Files): Remove files that are now in the
15437         'crypto/af_alg' module.
15438         (Depends-on): Add crypto/af_alg.
15439         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15440         (Makefile.am): Don't mention af_alg.c here.
15441         * modules/crypto/sha1 (Files): Remove files that are now in the
15442         'crypto/af_alg' module.
15443         (Depends-on): Add crypto/af_alg.
15444         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15445         (Makefile.am): Don't mention af_alg.c here.
15446         * modules/crypto/sha256 (Files): Remove files that are now in the
15447         'crypto/af_alg' module.
15448         (Depends-on): Add crypto/af_alg.
15449         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15450         (Makefile.am): Don't mention af_alg.c here.
15451         * modules/crypto/sha512 (Files): Remove files that are now in the
15452         'crypto/af_alg' module.
15453         (Depends-on): Add crypto/af_alg.
15454         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
15455         (Makefile.am): Don't mention af_alg.c here.
15457 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15459         crypto tests: pacify GCC
15460         * tests/test-digest.h (test_digest_on_files):
15461         Don’t assume digest size fits in int (!).
15463         af_alg: minor style improvements
15464         * lib/af_alg.c (afalg_stream): Prefer C99 style
15465         decl-after-statement, since we’re already assuming C99.  Clarify
15466         by strengthening the bind test and omit unnecessary assignment.
15468 2018-05-05  Bruno Haible  <bruno@clisp.org>
15470         af_alg: Fix bug on empty files.
15471         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
15472         stream is empty.
15474 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15476         sys-limits.h: new file for crypto and safe I/O
15477         * lib/af_alg.c: Include sys-limits.h.
15478         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
15479         (afalg_stream): Also reject negative sizes for sendfile; they
15480         should not happen and the code is a bit cleaner and faster this way.
15481         * lib/safe-read.c: Include sys-limits.h.
15482         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
15483         * lib/sys-limits.h: New file, with values and commentary derived
15484         from the old safe-read.c and from GNU Emacs sysdep.c.
15485         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15486         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
15487         Add lib/sys-limits.h to Files section.
15489 2018-05-05  Bruno Haible  <bruno@clisp.org>
15491         af_alg: Improve function signature.
15492         * lib/af_alg.h (afalg_stream): Swap second and third argument.
15493         * lib/af_alg.c (afalg_stream): Likewise.
15494         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
15496 2018-05-05  Bruno Haible  <bruno@clisp.org>
15498         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
15499         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
15500         * modules/crypto/sha1 (Depends-on): Likewise.
15501         * modules/crypto/sha256 (Depends-on): Likewise.
15502         * modules/crypto/sha512 (Depends-on): Likewise.
15504 2018-05-05  Bruno Haible  <bruno@clisp.org>
15506         crypto/{md5,sha1,sha256,sha512}: Fix module description.
15507         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
15508         * modules/crypto/sha1 (Depends-on): Likewise.
15509         * modules/crypto/sha256 (Depends-on): Likewise.
15510         * modules/crypto/sha512 (Depends-on): Likewise.
15512 2018-05-05  Bruno Haible  <bruno@clisp.org>
15514         af_alg: Add documentation.
15515         * lib/af_alg.h: Add comments.
15517 2018-05-05  Bruno Haible  <bruno@clisp.org>
15519         sha512: Add tests.
15520         * tests/test-sha512.c: New file.
15521         * modules/crypto/sha512-tests: New file.
15523 2018-05-05  Bruno Haible  <bruno@clisp.org>
15525         sha256: Add tests.
15526         * tests/test-sha256.c: New file.
15527         * modules/crypto/sha256-tests: New file.
15529 2018-05-05  Bruno Haible  <bruno@clisp.org>
15531         sha1 tests: Add test for sha1_stream.
15532         * tests/test-sha1.c: Include test-digest.h.
15533         (main): Invoke test_digest_on_files on 'sha1_stream'.
15534         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
15536 2018-05-05  Bruno Haible  <bruno@clisp.org>
15538         md5 tests: Add test for md5_stream.
15539         * tests/test-digest.h: New file.
15540         * tests/test-md5.c: Include test-digest.h.
15541         (main): Invoke test_digest_on_files on 'md5_stream'.
15542         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
15544 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15546         md5sum: Use AF_ALG when available.
15547         * lib/md5.c: Include af_alg.h.
15548         (md5_stream): Use afalg_stream when available.
15549         * modules/crypto/md5 (Files): Add the af_alg files.
15550         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15551         (Makefile.am): Add af_alg.c.
15553 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15555         sha512sum: Use AF_ALG when available.
15556         * lib/sha512.c: Include af_alg.h.
15557         (sha512_stream, sha384_stream): Use afalg_stream when available.
15558         * modules/crypto/sha512 (Files): Add the af_alg files.
15559         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15560         (Makefile.am): Add af_alg.c.
15562 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15564         sha256sum: Use AF_ALG when available.
15565         * lib/sha256.c: Include af_alg.h.
15566         (sha256_stream, sha224_stream): Use afalg_stream when available.
15567         * modules/crypto/sha256 (Files): Add the af_alg files.
15568         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15569         (Makefile.am): Add af_alg.c.
15571 2018-04-28  Matteo Croce  <mcroce@redhat.com>
15573         sha1sum: Use AF_ALG when available.
15574         * lib/af_alg.h: New file.
15575         * lib/af_alg.c: New file.
15576         * lib/sha1.c: Include af_alg.h.
15577         (sha1_stream): Use afalg_stream when available.
15578         * m4/linux-if-alg.m4: New file.
15579         * modules/crypto/sha1 (Files): Add the new files.
15580         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
15581         (Makefile.am): Add af_alg.c.
15583 2018-05-05  Bruno Haible  <bruno@clisp.org>
15585         all: Replace more http URLs by https URLs.
15586         * lib/localename.c: Use https: URL.
15587         * lib/timespec.h: Likewise.
15589 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15591         maint: port more modules to GCC 8
15592         * lib/dirname.h (base_name):
15593         * lib/exclude.h (new_exclude):
15594         * lib/xstrndup.h (xstrndup):
15595         Add malloc attribute.
15596         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
15597         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
15598         This pacifies GCC 8.
15599         * m4/gnulib-common.m4 (gl_COMMON_BODY):
15600         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
15602 2018-05-03  Bruno Haible  <bruno@clisp.org>
15604         Simplify code. Drop support for Borland C++ on Windows.
15605         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
15606         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
15607         'defined _WIN32'.
15608         * lib/canonicalize-lgpl.c: Likewise.
15609         * lib/classpath.c: Likewise.
15610         * lib/clean-temp.c: Likewise.
15611         * lib/csharpexec.c: Likewise.
15612         * lib/ctime.c: Likewise.
15613         * lib/dosname.h: Likewise.
15614         * lib/dup2.c: Likewise.
15615         * lib/errno.in.h: Likewise.
15616         * lib/error.c: Likewise.
15617         * lib/euidaccess.c: Likewise.
15618         * lib/execute.c: Likewise.
15619         * lib/fcntl.in.h: Likewise.
15620         * lib/fcntl.c: Likewise.
15621         * lib/filename.h: Likewise.
15622         * lib/findprog.c: Likewise.
15623         * lib/flock.c: Likewise.
15624         * lib/fopen.c: Likewise.
15625         * lib/freopen.c: Likewise.
15626         * lib/fstat.c: Likewise.
15627         * lib/fsync.c: Likewise.
15628         * lib/gc-gnulib.c: Likewise.
15629         * lib/get-rusage-data.c: Likewise.
15630         * lib/getaddrinfo.c: Likewise.
15631         * lib/getdelim.c: Likewise.
15632         * lib/getdtablesize.c: Likewise.
15633         * lib/gethostname.c: Likewise.
15634         * lib/getlogin.c: Likewise.
15635         * lib/getlogin_r.c: Likewise.
15636         * lib/getopt.c: Likewise.
15637         * lib/getpagesize.c: Likewise.
15638         * lib/getpass.c: Likewise.
15639         * lib/getrusage.c: Likewise.
15640         * lib/gettimeofday.c: Likewise.
15641         * lib/glob.c: Likewise.
15642         * lib/inttypes.in.h: Likewise.
15643         * lib/isapipe.c: Likewise.
15644         * lib/javaexec.c: Likewise.
15645         * lib/link.c: Likewise.
15646         * lib/localcharset.c: Likewise.
15647         * lib/localename.h: Likewise.
15648         * lib/localename.c: Likewise.
15649         * lib/localtime.c: Likewise.
15650         * lib/lseek.c: Likewise.
15651         * lib/mbsinit.c: Likewise.
15652         * lib/mkdir.c: Likewise.
15653         * lib/msvc-nothrow.h: Likewise.
15654         * lib/nanosleep.c: Likewise.
15655         * lib/nl_langinfo.c: Likewise.
15656         * lib/nonblocking.c: Likewise.
15657         * lib/nproc.c: Likewise.
15658         * lib/open.c: Likewise.
15659         * lib/openpty.c: Likewise.
15660         * lib/pathmax.h: Likewise.
15661         * lib/pipe-filter-aux.c: Likewise.
15662         * lib/pipe-filter-gi.c: Likewise.
15663         * lib/pipe-filter-ii.c: Likewise.
15664         * lib/pipe.c: Likewise.
15665         * lib/pipe2.c: Likewise.
15666         * lib/poll.c: Likewise.
15667         * lib/popen.c: Likewise.
15668         * lib/posix_openpt.c: Likewise.
15669         * lib/printf-parse.c: Likewise.
15670         * lib/progreloc.c: Likewise.
15671         * lib/putenv.c: Likewise.
15672         * lib/read.c: Likewise.
15673         * lib/relocatable.c: Likewise.
15674         * lib/rename.c: Likewise.
15675         * lib/same-inode.h: Likewise.
15676         * lib/secure_getenv.c: Likewise.
15677         * lib/select.c: Likewise.
15678         * lib/sethostname.c: Likewise.
15679         * lib/setlocale.c: Likewise.
15680         * lib/sigaction.c: Likewise.
15681         * lib/sigprocmask.c: Likewise.
15682         * lib/sleep.c: Likewise.
15683         * lib/spawn-pipe.h: Likewise.
15684         * lib/spawn-pipe.c: Likewise.
15685         * lib/spawni.c: Likewise.
15686         * lib/stat-time.h: Likewise.
15687         * lib/stat-w32.c: Likewise.
15688         * lib/stat.c: Likewise.
15689         * lib/stdio.in.h: Likewise.
15690         * lib/stdio-impl.h: Likewise.
15691         * lib/stdio-read.c: Likewise.
15692         * lib/stdio-write.c: Likewise.
15693         * lib/stdlib.in.h: Likewise.
15694         * lib/strerror_r.c: Likewise.
15695         * lib/strftime-fixes.c: Likewise.
15696         * lib/sys_stat.in.h: Likewise.
15697         * lib/sys_types.in.h: Likewise.
15698         * lib/sys_wait.in.h : Likewise.
15699         * lib/system-quote.h: Likewise.
15700         * lib/system-quote.c: Likewise.
15701         * lib/tmpdir.c: Likewise.
15702         * lib/tzset.c: Likewise.
15703         * lib/uname.c: Likewise.
15704         * lib/unistd.in.h: Likewise.
15705         * lib/utime.in.h: Likewise.
15706         * lib/utime.c: Likewise.
15707         * lib/utimecmp.c: Likewise.
15708         * lib/utimens.c: Likewise.
15709         * lib/vasnprintf.c: Likewise.
15710         * lib/vma-iter.h: Likewise.
15711         * lib/vma-iter.c: Likewise.
15712         * lib/wait-process.c: Likewise.
15713         * lib/wcsftime.c: Likewise.
15714         * lib/wctype.in.h: Likewise.
15715         * lib/write.c: Likewise.
15716         * tests/nap.h: Likewise.
15717         * tests/test-cloexec.c: Likewise.
15718         * tests/test-dup-safer.c: Likewise.
15719         * tests/test-dup2.c: Likewise.
15720         * tests/test-dup3.c: Likewise.
15721         * tests/test-fcntl.c: Likewise.
15722         * tests/test-get-rusage-data.c: Likewise.
15723         * tests/test-getaddrinfo.c: Likewise.
15724         * tests/test-getlogin.h: Likewise.
15725         * tests/test-isatty.c: Likewise.
15726         * tests/test-localename.c: Likewise.
15727         * tests/test-mbrtowc-w32.c: Likewise.
15728         * tests/test-nonblocking.c: Likewise.
15729         * tests/test-nonblocking-pipe-main.c: Likewise.
15730         * tests/test-nonblocking-socket-main.c: Likewise.
15731         * tests/test-nonblocking-socket.h: Likewise.
15732         * tests/test-pipe.c: Likewise.
15733         * tests/test-pipe2.c: Likewise.
15734         * tests/test-poll.c: Likewise.
15735         * tests/test-pthread_sigmask1.c: Likewise.
15736         * tests/test-select.h: Likewise.
15737         * tests/test-sethostname2.c: Likewise.
15738         * tests/test-sigprocmask.c: Likewise.
15739         * tests/test-spawn-pipe-child.c: Likewise.
15740         * tests/test-stat-time.c: Likewise.
15741         * tests/test-system-quote-main.c: Likewise.
15742         * tests/test-utimens-common.h: Likewise.
15743         * tests/test-wcrtomb-w32.c: Likewise.
15744         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
15745         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15746         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
15747         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
15748         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
15749         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15750         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15751         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15752         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15753         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
15754         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
15755         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
15756         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
15757         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
15758         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
15759         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15761 2018-05-02  Bruno Haible  <bruno@clisp.org>
15763         localename: Fix test failures on mingw.
15764         * lib/localename.c (gl_locale_name_thread): Remove code specific to
15765         native Windows.
15766         (gl_locale_name_posix): Move code specific to native Windows here.
15767         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15768         Accept result without charset suffix, as it appears on mingw.
15770 2018-04-28  Paul Smith  <psmith@gnu.org>
15772         bootstrap: Avoid gnulib operations if not needed
15773         * build-aux/bootstrap: Remove unused variable gnulib_mk.
15774         Set $gnulib_extra_files early so it can be overridden in .conf.
15775         Remove redundant --import flag from $gnulib_tool_options.
15776         Set $use_gnulib to false if no gnulib modules or files are needed.
15777         If $use_gnulib is false, don't do anything related to gnulib.
15778         A lot of this is just whitespace (indentation) changes.
15780 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
15782         manywarnings: port to GCC 8.0
15783         * build-aux/gcc-warning.spec: Add -Wcatch-value,
15784         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
15785         fact that the GCC help message now mentions operands for
15786         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
15787         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
15788         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
15789         and -Wunused-const-variable.
15790         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
15791         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
15792         -Wmissing-attributes, -Wmultistatement-macros,
15793         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
15794         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
15796 2018-04-24  Bruno Haible  <bruno@clisp.org>
15798         sys_socket: Make SO_REUSEPORT available across platforms.
15799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15800         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
15801         * doc/posix-headers/sys_socket.texi: Mention the issue.
15802         * tests/test-poll.c (SO_REUSEPORT): Remove.
15803         * tests/test-select.h: Include <sys/socket.h>.
15804         (SO_REUSEPORT): Remove.
15805         * modules/select-tests (Depends-on): Add 'sys_socket'.
15807 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
15809         localcharset: short-circuit the search for an alias on a Mac
15810         * lib/localcharset.c (get_charset_aliases): Add a tautological
15811         UTF-8 entry to speed up the search for this case.
15812         Most machines default to a UTF-8 locale nowadays, so begin the
15813         list of aliases with a dummy UTF-8 entry so it will be found
15814         immediately and a time-consuming search through the rest of
15815         the list is avoided.
15817 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
15819         fts: add comment
15820         * lib/fts.c (fts_build): Explain why ==, not >.
15821         See remark by Bernhard Voelker in:
15822         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
15824         fts: fix bug in find across filesystems
15825         This fixes a bug I introduced last summer.
15826         Problem reported by Kamil Dudka in:
15827         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
15828         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
15829         (leaf_optimization):
15830         New arg for file descriptor.  All callers changed.
15831         (fts_build): Check for whether inodes should be sorted
15832         before closing the directory.
15834 2018-04-07  Bruno Haible  <bruno@clisp.org>
15836         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
15837         Reported by Genki Sky <sky@genki.is>.
15838         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
15839         version 0.9.10 or newer.
15840         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
15841         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
15842         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
15843         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
15844         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
15846 2018-04-07  Bruno Haible  <bruno@clisp.org>
15848         execute: Update comment.
15849         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
15851 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15853         fts: treat CIFS like NFS
15854         Problem reported by Kamil Dudka in:
15855         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
15856         * lib/fts.c (S_MAGIC_CIFS): New macro.
15857         (dirent_inode_sort_may_be_useful, leaf_optimization):
15858         Treat CIFS like NFS.
15860 2018-03-28  Bruno Haible  <bruno@clisp.org>
15862         c-stack: Fix possible build failure on some platforms.
15863         * lib/c-stack.c (die): Define whenever this function is referenced.
15865 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
15867         time_rz: fix workaround for Mac OS X 10.6 infloop
15868         Problems reported by Charles A. Roelli (Bug#27736#117).
15869         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
15870         Also, discard output, which clutters the 'configure' log.
15872 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15874         havelib: port to Solaris 10 /bin/sh
15875         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
15876         instead of '! test EXPR'.
15878 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
15880         time_rz: work around Mac OS X 10.6 infloop
15881         * doc/posix-functions/localtime.texi:
15882         * doc/posix-functions/localtime_r.texi: Mention the bug.
15883         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
15884         better to fix localtime and localtime_r instead, but that would be
15885         more work and is not needed to fix the Emacs problem.
15886         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
15888 2018-03-24  Jim Meyering  <meyering@fb.com>
15890         test-version-etc.sh: don't use diff directly: use init.sh's compare
15891         We'd rather not sacrifice readable "diff -u" output even for
15892         "diff -c" output (not supported by busybox) or for even less
15893         readable ed-style "diff" output.  So use init.sh's compare function
15894         * tests/test-version-etc.sh: Source init.sh and add "." to path.
15895         Remove "./" from invocation of test-version-etc, so we use path.
15896         And s/diff/compare/.
15897         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
15898         to get init.sh.
15899         Prompted by Eric Blake's comments in
15900         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
15902 2018-03-24  Bruno Haible  <bruno@clisp.org>
15904         javacomp-script, javacomp: Add support for Java 10.
15905         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
15906         target-version 10.
15907         * lib/javaversion.h: Update comments.
15908         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15909         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15910         TARGET_VERSION_BOUND, target_version_index,
15911         corresponding_classfile_version): Accept source_version 10 and
15912         target_version 10.
15913         * lib/javacomp.h: Update comments accordingly.
15915 2018-03-24  Bruno Haible  <bruno@clisp.org>
15917         javacomp-script, javacomp: Update comments.
15918         * m4/javacomp.m4: Update comments regarding gcj.
15919         * lib/javacomp.h: Likewise.
15921 2018-03-24  Bruno Haible  <bruno@clisp.org>
15923         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
15924         * lib/javaversion.h: Update comments.
15925         * lib/javacomp.h: Likewise.
15926         * lib/javacomp.c (default_target_version, source_version_index,
15927         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
15928         "1.9".
15929         (TARGET_VERSION_BOUND): Bump to 9.
15930         (target_version_index, corresponding_classfile_version): Recognize "9"
15931         instead of "1.9".
15932         (get_source_version_for_javac): New function.
15933         (is_envjavac_nongcj_usable, is_javac_usable): Add
15934         source_version_for_javac argument.
15935         (compile_java_class): Determine and pass source_version_for_javac.
15936         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
15937         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
15938         appropriate.
15940 2018-03-23  Jim Meyering  <meyering@fb.com>
15942         test-version-etc.sh: port to diff without -c
15943         * tests/test-version-etc.sh: Don't use diff's -c option.
15944         This caused spurious test failure on Alpine Linux, which
15945         uses busybox's diff. Reported by Assaf Gordon in
15946         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
15948 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
15950         c-stack: port to recent GCC build
15951         Problem reported by The Fireplace (Bug#30913).
15952         * lib/c-stack.c (die): Define only if used.
15954 2018-03-20  Bruno Haible  <bruno@clisp.org>
15956         euidaccess: Port to native Windows.
15957         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
15958         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
15960 2018-03-19  Bruno Haible  <bruno@clisp.org>
15962         javacomp: Add support for Java 7, 8, 9.
15963         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
15964         source_version_index, get_goodcode_snippet, get_failcode_snippet,
15965         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
15966         and target_version 1,7, 1.8, 1.9.
15967         * lib/javacomp.h: Update comments accordingly.
15969 2018-03-19  Bruno Haible  <bruno@clisp.org>
15971         javacomp-script: Add support for Java 9.
15972         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
15973         target-version 1.9.
15975 2018-03-16  Bruno Haible  <bruno@clisp.org>
15977         glob: Don't compile replacements on recent glibc systems.
15978         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
15979         REPLACE_GLOB is 0, include the system's <glob.h> and use
15980         _GL_CXXALIAS_SYS.
15981         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
15982         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
15983         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
15984         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
15985         Remove snippet/warn-on-use.
15986         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
15987         (Makefile.am): Create glob.h always. Update list of substitutions in
15988         glob.h. Don't depend on $(WARN_ON_USE_H).
15990 2018-03-16  Bruno Haible  <bruno@clisp.org>
15992         glob: Fix link error on native Windows.
15993         * modules/glob (Depends-on): Add 'lstat'.
15995 2018-03-15  Bruno Haible  <bruno@clisp.org>
15997         glob: Fix compilation error in C++ mode.
15998         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
16000 2018-03-15  Bruno Haible  <bruno@clisp.org>
16002         host-cpu-c-abi: Support for RISC-V CPU.
16003         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
16004         riscv32 and riscv64 ABIs.
16005         References:
16006         https://github.com/riscv/riscv-toolchain-conventions
16007         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
16008         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
16010 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
16012         fflush: be more paranoid about libio.h change
16013         Suggested by Eli Zaretskii in:
16014         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
16015         * lib/fbufmode.c (fbufmode):
16016         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16017         (disable_seek_optimization, rpl_fflush):
16018         * lib/fpending.c (__fpending):
16019         * lib/fpurge.c (fpurge):
16020         * lib/freadable.c (freadable):
16021         * lib/freadahead.c (freadahead):
16022         * lib/freading.c (freading):
16023         * lib/freadptr.c (freadptr):
16024         * lib/freadseek.c (freadptrinc):
16025         * lib/fseeko.c (fseeko):
16026         * lib/fseterr.c (fseterr):
16027         * lib/fwritable.c (fwritable):
16028         * lib/fwriting.c (fwriting):
16029         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
16031 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
16033         maint: write-file-hooks -> before-save-hook
16034         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
16035         it's time to use the recommended replacement.
16036         Problem reported by Glenn Morris in:
16037         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
16038         * build-aux/announce-gen, build-aux/bootstrap:
16039         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
16040         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
16041         * build-aux/gnu-web-doc-update, build-aux/gnupload:
16042         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
16043         * build-aux/update-copyright, build-aux/useless-if-before-free:
16044         * build-aux/vc-list-files:
16045         Update hook usage for files where Gnulib is the canonical source.
16047 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
16049         binary-io: pacify gcc -Wunused-parameter
16050         Problem reported by Reuben Thomas in:
16051         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
16052         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
16053         Use _GL_UNUSED where appropriate.
16055         fflush: adjust to glibc 2.28 libio.h removal
16056         Problem reported by Daniel P. Berrangé in:
16057         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
16058         * lib/fbufmode.c (fbufmode):
16059         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16060         (disable_seek_optimization, rpl_fflush):
16061         * lib/fpending.c (__fpending):
16062         * lib/fpurge.c (fpurge):
16063         * lib/freadable.c (freadable):
16064         * lib/freadahead.c (freadahead):
16065         * lib/freading.c (freading):
16066         * lib/freadptr.c (freadptr):
16067         * lib/freadseek.c (freadptrinc):
16068         * lib/fseeko.c (fseeko):
16069         * lib/fseterr.c (fseterr):
16070         * lib/fwritable.c (fwritable):
16071         * lib/fwriting.c (fwriting):
16072         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
16073         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
16074         Define if not already defined.
16076 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
16078         environ: fix link error on 32-bit Cygwin
16079         Problem reported for GNU Emacs by Ken Brown in:
16080         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
16081         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
16083 2018-02-24  Bruno Haible  <bruno@clisp.org>
16085         mbrtowc tests: Fix regression on glibc.
16086         Reported by Bernhard Voelker.
16087         * tests/test-mbrtowc.c (main): Fix expected value of wc.
16089 2018-02-24  Bruno Haible  <bruno@clisp.org>
16091         striconveha, uniconv/*: Avoid test failures on musl libc.
16092         * tests/iconvsupport.c: New file.
16093         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
16094         does not support the ISO-2022-JP-2 encoding.
16095         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16096         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16097         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16098         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16099         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16100         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16101         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
16102         (Makefile.am): Link test-striconveha with iconvsupport.o.
16103         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
16104         tests/iconvsupport.c.
16105         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
16106         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
16107         tests/iconvsupport.c.
16108         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
16109         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
16110         tests/iconvsupport.c.
16111         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
16112         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
16113         tests/iconvsupport.c.
16114         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
16115         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
16116         tests/iconvsupport.c.
16117         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
16118         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
16119         tests/iconvsupport.c.
16120         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
16122 2018-02-24  Bruno Haible  <bruno@clisp.org>
16124         localename: Add support for musl libc.
16125         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
16126         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
16127         on Linux platforms which define NL_LOCALE_NAME.
16129 2018-02-24  Bruno Haible  <bruno@clisp.org>
16131         mbrtowc tests: Don't make assumptions about the charset the C locale.
16132         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
16133         particular mapping in the C locale.
16135 2018-02-24  Bruno Haible  <bruno@clisp.org>
16137         ptsname_r: Don't expect that this function sets errno.
16138         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
16139         from ptsname_r().
16140         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
16142 2018-02-23  Bruno Haible  <bruno@clisp.org>
16144         xmalloca: pacify gcc -Wbad-function-cast
16145         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
16147 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
16149         nl_langinfo: pacify gcc -Wunused-function
16150         * lib/nl_langinfo.c (ctype_codeset): Do not define if
16151         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
16152         this case.  Without this change, I got a diagnostic when building
16153         coreutils on Fedora 27 with gcc 7.3.1 20180130.
16155         same: pacify gcc -Wunused-variable
16156         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
16157         Omit unused variable.
16159         malloca: pacify gcc -Wbad-function-cast
16160         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
16161         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
16162         To pacify GCC, I had to cast alloca’s result to some type other
16163         than void * before casting that to uintptr_t.
16165 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
16167         utimecmp: new function utimecmpat
16168         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
16169         Do not include utimens.h.
16170         (utimecmpat): New function, generalizing utimecmp.
16171         (utimecmp): Now a thin layer around utimecmpat.
16172         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
16173         utimensat instead of on lstat and utimens.
16175         same: new function same_nameat
16176         * lib/same.c: Include fcntl.h.
16177         * lib/same.c (same_nameat): New function, generalizing same_name.
16178         (same_name): Now a thin layer around same_nameat.
16179         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
16180         * modules/same (Depends-on): Depend on fstatat, openat.
16182 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
16184         warnings: Add support for Objective C.
16185         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
16186         macro.
16188 2018-02-17  Bruno Haible  <bruno@clisp.org>
16190         lock: Fix test-once1 crash on FreeBSD11.
16191         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
16192         'pthread_create', not 'pthread_cancel'.
16194 2018-02-17  Bruno Haible  <bruno@clisp.org>
16196         lock: Add test of gl_once.
16197         * tests/test-once.c: New file.
16198         * modules/lock-tests (Files): Add it.
16199         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
16201 2018-02-17  Bruno Haible  <bruno@clisp.org>
16203         thread: Fix compilation error on IRIX.
16204         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
16205         needed; include it outside the C++ extern "C" {} block.
16206         * doc/posix-headers/pthread.texi: Mention the problem with
16207         pthread_atfork on IRIX.
16209 2018-02-04  Bruno Haible  <bruno@clisp.org>
16211         nl_langinfo: Override the system's nl_langinfo() when needed.
16212         Reported by Jim Meyering.
16213         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
16214         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
16216 2018-02-04  Bruno Haible  <bruno@clisp.org>
16218         signal-h, monetary, strings: Fix build failure in some cases.
16219         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16220         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
16221         as delimiter in sed command, not '|'.
16222         * modules/monetary (Makefile.am): Likewise.
16223         * modules/strings (Makefile.am): Likewise.
16225 2018-02-03  Jim Meyering  <meyering@fb.com>
16227         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
16228         * top/maint.mk (sc_file_system): Don't complain about
16229         "/proc/filesystems".
16231 2018-02-03  Bruno Haible  <bruno@clisp.org>
16233         stdlib: Fix compilation error on OpenIndiana.
16234         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
16235         <sys/time.h>.
16236         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
16237         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
16239 2018-02-03  Bruno Haible  <bruno@clisp.org>
16241         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
16242         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
16243         and use $EGREP instead of 'grep -E'.
16244         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
16245         'grep -E'.
16247 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
16249         malloca: Add a compile-time verification.
16250         * lib/malloca.c (small_t): Verify that it is wide enough.
16251         * modules/malloca (Depends-on): Add verify.
16253 2018-02-02  Bruno Haible  <bruno@clisp.org>
16255         malloca: Add an argument check.
16256         Suggested by Paul Eggert.
16257         * lib/malloca.c (freea): Check against an invalid argument.
16259 2018-02-02  Bruno Haible  <bruno@clisp.org>
16261         localename: Add support for OpenIndiana.
16262         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
16263         Solaris 11 variants with uselocale() but without getlocalename_l().
16265 2018-02-02  Bruno Haible  <bruno@clisp.org>
16267         malloca, xmalloca: Make multithread-safe.
16268         Reported by Florian Weimer <fweimer@redhat.com>.
16269         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
16270         * lib/malloca.h (malloca): In the stack allocation case, return a
16271         pointer that is a multiple of 2 * sa_alignment_max.
16272         (sa_increment): Remove enum item.
16273         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
16274         a pointer that is a multiple of 2 * sa_alignment_max.
16275         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
16276         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
16277         HASH_TABLE_SIZE, mmalloca_results): Remove.
16278         (small_t): New type.
16279         (mmalloca, free): Rewritten.
16280         * lib/malloca.valgrind: Remove file.
16281         * modules/malloca (Files): Remove it.
16282         (Depends-on): Remove verify.
16284 2018-01-31  Bruno Haible  <bruno@clisp.org>
16286         environ: Fix link error on 64-bit Cygwin.
16287         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
16288         __declspec(dllimport) attribute.
16289         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
16291 2018-01-30  Bruno Haible  <bruno@clisp.org>
16293         get-rusage-data: Add support for Minix 3.
16294         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
16296 2018-01-30  Bruno Haible  <bruno@clisp.org>
16298         vma-iter: Add support for Minix 3.
16299         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
16300         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
16302 2018-01-27  Bruno Haible  <bruno@clisp.org>
16304         Fix malfunction of socket functions on HP-UX in 64-bit mode.
16305         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
16306         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
16307         _HPUX_ALT_XOPEN_SOCKET_API.
16308         * modules/accept (Depends-on): Add 'extensions'.
16309         * modules/getpeername (Depends-on): Likewise.
16310         * modules/getsockname (Depends-on): Likewise.
16311         * modules/getsockopt (Depends-on): Likewise.
16312         * modules/recvfrom (Depends-on): Likewise.
16313         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
16314         * doc/posix-functions/getpeername.texi: Likewise.
16315         * doc/posix-functions/getsockname.texi: Likewise.
16316         * doc/posix-functions/getsockopt.texi: Likewise.
16317         * doc/posix-functions/recvfrom.texi: Likewise.
16319 2018-01-27  Bruno Haible  <bruno@clisp.org>
16321         getsockname tests: More tests.
16322         * tests/test-getsockname.c (open_server_socket): New function, mostly
16323         copied from test-poll.c.
16324         (main): Check that getsockname fills in addr.
16325         * modules/getsockname-tests (Depends-on): Add the necessary
16326         dependencies.
16327         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
16329 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
16331         manywarnings: fix maintainer comment
16332         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
16333         it does not mistakenly think that ‘-1)’ is an option.
16335 2018-01-26  Bruno Haible  <bruno@clisp.org>
16337         langinfo: Fix last commit.
16338         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16339         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
16341 2018-01-24  Bruno Haible  <bruno@clisp.org>
16343         langinfo, nl_langinfo: Add support for alternative month names.
16344         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
16345         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
16346         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
16347         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
16348         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
16349         * doc/posix-functions/nl_langinfo.texi: Likewise.
16351 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16353         Merge strftime.c changes from glibc
16354         This incorporates:
16355         2017-11-14 [BZ #10871] Implement alternative month names
16356         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
16357         2017-06-20 Use locale_t, not __locale_t, throughout glibc
16358         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
16359         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
16360         Use locale_t, not __locale_t.
16361         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
16362         (__strftime_internal): Add support for alternate months.
16364 2018-01-23  Bruno Haible  <bruno@clisp.org>
16366         doc: Mention another prerequisite for using Gnulib.
16367         Reported at <https://stackoverflow.com/questions/48378214/>.
16368         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
16369         AC_CONFIG_HEADERS.
16371 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
16373         build: GuixSD doesn't have /bin/bash
16374         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
16376 2018-01-21  Bruno Haible  <bruno@clisp.org>
16378         Avoid test failures on Microsoft Windows Subsystem for Linux.
16379         * tests/test-fcntl.c (main): Allow a different errno.
16380         * tests/test-rename.h (test_rename): Likewise.
16381         * tests/test-renameat.c (main): Likewise.
16382         * tests/test-renameat2.c (main): Likewise.
16384 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
16386         filenamecat: make base a suffix of result
16387         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
16388         (mfile_name_concat): Always make BASE a suffix of the result, as
16389         cp expects this.  To implement this, separate with '.' instead of
16390         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
16391         * tests/test-filenamecat.c (main): Adjust tests to match
16392         current behavior.  Check that BASE_IN_RESULT points to
16393         a copy of BASE and is a suffix of the resultk, and that DIR
16394         is a prefix of the result that is no longer than the prefix
16395         indicated by BASE_IN_RESULT.
16397 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
16399         update-copyright: Handle use of ©
16400         * build-aux/update-copyright ($circle_c_re): Update regex to
16401         handle use of © in headers.
16403 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
16405         Fix -Wundef warning in user-included header lib/cdefs.h.
16406         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
16408 2018-01-04  Bruno Haible  <bruno@clisp.org>
16410         pthread_sigmask: Avoid compilation error on mingw.
16411         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16412         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
16413         macro.
16415 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16417         test-framework-sh: ‘ps -ef’, not ‘ps ef’
16418         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
16419         Suggested by Bob Proulx (Bug#29968).
16420         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
16422 2018-01-02  Eric Blake  <eblake@redhat.com>
16424         stat-time: silence -Wunused-parameter regression
16425         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16426         Prefer attribute over cast-to-void.
16427         (stat_time_normalize): Mark st as potentially unused.
16429 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
16431         test-framework-sh: avoid netstat
16432         Problem reported by Kristýna Streitová (Bug#29947).
16433         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
16434         deprecated on SuSE and it's not that important anyway.
16436 2018-01-01  Jim Meyering  <meyering@fb.com>
16438         update-copyright: add code to handle more special cases
16439         After running "make update-copyright" this year, five files
16440         required additional manual changes.  Automate those adjustments
16441         for next year.
16442         * Makefile (_year_and_prev): Define.
16443         (update-copyright): Add perl commands to induce this year's post-
16444         update-copyright adjustments.
16446 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
16448         version-etc: new year
16449         * build-aux/gendocs.sh (version):
16450         * doc/gendocs_template:
16451         * doc/gendocs_template_min:
16452         * doc/gnulib.texi:
16453         * lib/version-etc.c (COPYRIGHT_YEAR):
16454         Update copyright dates by hand in templates and the like.
16456         maint: fix 'make update-copyright'
16457         * Makefile (update-copyright): Adjust to 2016-11-23 change
16458         to config/srclist-update, which changed the format of srclist.txt.
16460 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
16462         chdir-safer: remove this module
16463         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
16464         * NEWS: Document removal.
16465         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
16466         * modules/chdir-safer: Remove these files.
16468 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
16470         Add cross-compilation results for GNU/Hurd.
16471         * m4/calloc.m4: Add GNU/Hurd guess.
16472         * m4/cbrtl.m4: Likewise.
16473         * m4/ceil.m4: Likewise.
16474         * m4/ceilf.m4: Likewise.
16475         * m4/ceill.m4: Likewise.
16476         * m4/chown.m4: Likewise.
16477         * m4/duplocale.m4: Likewise.
16478         * m4/exp2l.m4: Likewise.
16479         * m4/expm1.m4: Likewise.
16480         * m4/fchdir.m4: Likewise.
16481         * m4/floor.m4: Likewise.
16482         * m4/floorf.m4: Likewise.
16483         * m4/fmod.m4: Likewise.
16484         * m4/fmodf.m4: Likewise.
16485         * m4/fmodl.m4: Likewise.
16486         * m4/getcwd.m4: Likewise.
16487         * m4/getgroups.m4: Likewise.
16488         * m4/gettimeofday.m4: Likewise.
16489         * m4/hypot.m4: Likewise.
16490         * m4/hypotf.m4: Likewise.
16491         * m4/hypotl.m4: Likewise.
16492         * m4/link-follow.m4: Likewise.
16493         * m4/link.m4: Likewise.
16494         * m4/linkat.m4: Likewise.
16495         * m4/log.m4: Likewise.
16496         * m4/log10.m4: Likewise.
16497         * m4/log10f.m4: Likewise.
16498         * m4/log1p.m4: Likewise.
16499         * m4/log1pf.m4: Likewise.
16500         * m4/log1pl.m4: Likewise.
16501         * m4/log2.m4: Likewise.
16502         * m4/log2f.m4: Likewise.
16503         * m4/logf.m4: Likewise.
16504         * m4/lstat.m4: Likewise.
16505         * m4/malloc.m4: Likewise.
16506         * m4/mbrlen.m4: Likewise.
16507         * m4/mbrtowc.m4: Likewise.
16508         * m4/mkdir.m4: Likewise.
16509         * m4/mkfifo.m4: Likewise.
16510         * m4/mknod.m4: Likewise.
16511         * m4/mkstemp.m4: Likewise.
16512         * m4/modf.m4: Likewise.
16513         * m4/modff.m4: Likewise.
16514         * m4/modfl.m4: Likewise.
16515         * m4/printf.m4: Likewise.
16516         * m4/pselect.m4: Likewise.
16517         * m4/ptsname.m4: Likewise.
16518         * m4/putenv.m4: Likewise.
16519         * m4/readlink.m4: Likewise.
16520         * m4/realloc.m4: Likewise.
16521         * m4/remainder.m4: Likewise.
16522         * m4/remainderf.m4: Likewise.
16523         * m4/remainderl.m4: Likewise.
16524         * m4/rmdir.m4: Likewise.
16525         * m4/round.m4: Likewise.
16526         * m4/roundf.m4: Likewise.
16527         * m4/roundl.m4: Likewise.
16528         * m4/select.m4: Likewise.
16529         * m4/setenv.m4: Likewise.
16530         * m4/signbit.m4: Likewise.
16531         * m4/sleep.m4: Likewise.
16532         * m4/stat.m4: Likewise.
16533         * m4/strerror.m4: Likewise.
16534         * m4/strtok_r.m4: Likewise.
16535         * m4/symlink.m4: Likewise.
16536         * m4/symlinkat.m4: Likewise.
16537         * m4/trunc.m4: Likewise.
16538         * m4/truncf.m4: Likewise.
16539         * m4/truncl.m4: Likewise.
16540         * m4/tzset.m4: Likewise.
16541         * m4/ungetc.m4: Likewise.
16542         * m4/usleep.m4: Likewise.
16543         * m4/wcwidth.m4: Likewise.
16545 2017-12-28  Bruno Haible  <bruno@clisp.org>
16547         gnulib-tool: Make --conditional-dependencies work better.
16548         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
16549         * gnulib-tool (Options): Don't reject the combination of
16550         --conditional-dependencies with --with-tests.
16551         (func_emit_autoconf_snippets): Add argument referenceable_modules.
16552         Don't reference $modules.
16553         (func_import, func_create_testdir): Pass it.
16555 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16557         regex: use re_malloc etc. consistently
16558         Problem and original patch reported by Arnold Robbins in:
16559         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
16560         * lib/regcomp.c (re_comp):
16561         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
16562         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
16564 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
16565             Paul Eggert  <eggert@cs.ucla.edu>
16567         glob: Silence warning about void pointer arithmetic.
16568         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
16569         arithmetic.
16571 2017-12-15  Bruno Haible  <bruno@clisp.org>
16573         spawn-pipe: Silence a clang warning.
16574         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
16575         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
16576         in this file.
16578 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
16580         explicit_bzero: port to macOS + Clang 9.0.0
16581         Problem reported by Marcus Johnson (Bug#29658).
16582         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
16583         Don’t use asm.
16585 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16587         doc: Improve explanation of supporting relocatable libraries.
16588         * doc/relocatable-maint.texi (Supporting Relocation): Explain
16589         properly how to build the relocatable module for
16590         libraries. (Method and example code from Bruno Haible.)
16592 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
16594         doc: Use better texinfo tags in a few cases.
16595         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
16596         instead of @samp in a few places.
16598 2017-12-11  Bruno Haible  <bruno@clisp.org>
16600         unistr/base: Update comment.
16601         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
16603 2017-12-10  Pádraig Brady  <P@draigBrady.com>
16605         test-faccessat.c: unlink temp file to avoid subsequent test failure
16606         * tests/test-faccessat.c: Remove the file to avoid failure
16607         to open the file on subsequent runs due to being created
16608         with no permissions.
16610 2017-12-10  Bruno Haible  <bruno@clisp.org>
16612         doc: New sect. "Modifying the build rules of a Gnulib import directory".
16613         * doc/gnulib-tool.texi (Modified build rules): New node.
16615 2017-12-10  Bruno Haible  <bruno@clisp.org>
16617         doc: Tweak wording.
16618         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
16619         "binaries".
16621 2017-12-05  Sam Steingold  <sds@gnu.org>
16622             Bruno Haible  <bruno@clisp.org>
16624         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
16625         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
16626         AC_EGREP_CPP pattern.
16628 2017-12-03  Bruno Haible  <bruno@clisp.org>
16630         all: Replace more http URLs by https URLs.
16631         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
16632         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
16633         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
16634         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
16636 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
16638         Port better to CentOS 5
16639         Problems reported by Tom G. Christensen in:
16640         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
16641         * doc/glibc-functions/strverscmp.texi (strverscmp):
16642         Document strverscmp bug with glibc 2.9 and earlier.
16643         * doc/posix-functions/tzset.texi (tzset):
16644         Document that TZ with angle brackets is POSIX-2001 and later.
16645         * tests/test-nstrftime.c: Include unistd.h.
16646         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
16647         (TZ): Use it to skip tests with angle brackets in TZ,
16648         for older systems.
16650         stat: add missing module dependencies
16651         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
16652         Add stat-time.
16654 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
16656         stat: fix compilation failure on macOS Sierra
16657         Reported by Marius Schamschula <mschamschula@gmail.com> in:
16658         https://savannah.gnu.org/bugs/?52546
16659         * lib/stat.c: Add missing include of stat-time.h.
16661 2017-11-28  Jim Meyering  <meyering@fb.com>
16663         test-faccessat.c: correct BASE definition to avoid parallel test failure
16664         * tests/test-faccessat.c (BASE): Define using this file's name, not
16665         that of test-lstat.c.  Using the latter caused this test to fail
16666         sometimes when run concurrently with test-lstat.
16668 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16670         unicase: fix VPATH build
16671         * modules/unicase/special-casing (Makefile.am): Ensure that the
16672         base directory is created when generating
16673         unicase/special-casing.h.
16675 2017-11-27  Daiki Ueno  <ueno@gnu.org>
16677         libunistring: update to Unicode 9.0.0
16678         * lib/gen-uni-tables.c (fill_properties): Recognize
16679         Sentence_Terminal and Prepended_Concatenation_Mark.
16680         (is_property_default_ignorable_code_point): Exclude U+08E2.
16681         (fill_arabicshaping): Allow missing whitespace when parsing;
16682         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
16683         (output_blocks): Increase the element size of the level1 table to
16684         accommodate more blocks.
16685         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
16686         Update each class according to the standard.
16687         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
16688         E_Base_GAZ characters.
16689         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
16690         Glue_After_Zwj, and E_Base_GAZ characters.
16691         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
16692         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
16693         enum value.
16694         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
16695         value.
16696         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
16697         LBP_ZWJ, LBP_EB, and LBP_EM.
16698         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
16699         enum value.
16700         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
16701         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
16702         declaration.
16703         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
16704         (uniwbrk_table): Implement WB14.
16705         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
16706         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
16707         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
16708         uc-is-grapheme-break.
16709         * modules/unigbrk/uc-grapheme-breaks: New module.
16710         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
16711         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
16712         enum value.
16713         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
16714         * lib/unigbrk/u-grapheme-breaks.h: New file.
16715         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
16716         u-grapheme-breaks.h instead of uc_is_grapheme_break.
16717         * lib/unigbrk/uc-grapheme-breaks.c: New file.
16718         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
16719         29.
16720         * tests/unigbrk/test-uc-gbrk-prop.c
16721         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16722         GBP_GAZ, and GBP_EBG.
16723         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
16724         * tests/unigbrk/test-uc-is-grapheme-break.c
16725         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
16726         GBP_GAZ, and GBP_EBG.
16727         (main): Skip unsupported rules involving 3 or more characters,
16728         namely GB10, GB12, and GB13.
16729         * lib/uniwidth/width.c (nonspacing_table_data): Update.
16730         * all generated files under lib/uni* and tests/uni*: Regenerate.
16731         * all the affected modules: Bump version.
16733 2017-11-26  Bruno Haible  <bruno@clisp.org>
16735         strfmon_l: Fix compilation error with glibc 2.5.
16736         Reported by Tom G. Christensen <tgc@jupiterrise.com>
16737         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
16738         * lib/monetary.in.h: Include also <locale.h>.
16740 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16742         posixtm: remove PDS_LEADING_YEAR
16743         This changes the API slightly, in a hopefully-innocuous way.
16744         Without this change the code had undefined behavior when a
16745         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
16746         Problem reported by Pádraig Brady in:
16747         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
16748         * NEWS: Mention this.
16749         * lib/posixtm.c (posix_time_parse): Treat the absence of
16750         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
16751         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
16752         present, but define it as zero, for compatibility with existing
16753         source code).  All other PDS_* values moved up.
16754         * tests/test-posixtm.c (LY): New macro.
16755         (T): Use it.  Do not expect a particular numeric encoding
16756         for PDS_CENTURY etc.
16758 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
16760         stat: work around Solaris bug with tv_nsec < 0
16761         * doc/posix-functions/fstat.texi (fstat):
16762         * doc/posix-functions/fstatat.texi (fstatat):
16763         * doc/posix-functions/lstat.texi (lstat):
16764         * doc/posix-functions/stat.texi (stat):
16765         Mention Solaris 11 bug.
16766         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
16767         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
16768         * lib/lstat.c (rpl_lstat):
16769         * lib/stat.c (rpl_stat):
16770         Normalize resulting timestamps.
16771         * lib/fstatat.c (normal_fstatat): New function.
16772         (rpl_fstatat): Use it.
16773         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
16774         (stat_time_normalize): New function.
16775         * m4/fstat.m4 (gl_FUNC_FSTAT):
16776         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
16777         * m4/lstat.m4 (gl_FUNC_LSTAT):
16778         * m4/stat.m4 (gl_FUNC_STAT):
16779         Replace on Solaris.
16780         * modules/fstat (Depends-on):
16781         * modules/fstatat (Depends-on):
16782         Add stat-time.
16783         * modules/stat-time (Depends-on): Add errno, intprops.
16785 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
16787         regex: merge from glibc
16788         * lib/regcomp.c (init_word_char): Add comments.
16790 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16792         regex: merge from glibc
16793         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
16794         * lib/regex_internal.h (internal_function): Remove.
16795         All uses removed.
16797 2017-11-20  Bruno Haible  <bruno@clisp.org>
16799         crypto/gc-sm3: Fix buffer overrun.
16800         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
16801         Reported by Coverity.
16803 2017-11-12  Jim Meyering  <meyering@fb.com>
16805         maint: shorten https://lists.gnu.org/archive/html/... links
16806         Each /archive/html/ part can be replace with /r/.
16807         Run this to induce the change:
16808         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
16809         * ChangeLog: Perform that substitution.
16810         * Makefile: Likewise.
16811         * STATUS-libposix: Likewise.
16812         * build-aux/bootstrap: Likewise.
16813         * doc/maintain.texi: Likewise.
16814         * gnulib-tool: Likewise.
16815         * lib/allocator.h: Likewise.
16816         * lib/argp-ba.c: Likewise.
16817         * lib/argp-pv.c: Likewise.
16818         * lib/canon-host.c: Likewise.
16819         * lib/canonicalize-lgpl.c: Likewise.
16820         * lib/float.in.h: Likewise.
16821         * lib/fstat.c: Likewise.
16822         * lib/getdelim.c: Likewise.
16823         * lib/getprogname.c: Likewise.
16824         * lib/glthread/thread.h: Likewise.
16825         * lib/intprops.h: Likewise.
16826         * lib/mbsrtowcs-state.c: Likewise.
16827         * lib/safe-read.c: Likewise.
16828         * lib/signal.in.h: Likewise.
16829         * lib/stat.c: Likewise.
16830         * lib/stdbool.in.h: Likewise.
16831         * lib/stdio-impl.h: Likewise.
16832         * lib/stdio.in.h: Likewise.
16833         * lib/sysexits.in.h: Likewise.
16834         * lib/timespec.h: Likewise.
16835         * lib/wcsrtombs-state.c: Likewise.
16836         * m4/alloca.m4: Likewise.
16837         * m4/extern-inline.m4: Likewise.
16838         * m4/fstatat.m4: Likewise.
16839         * m4/gnulib-common.m4: Likewise.
16840         * m4/lib-ignore.m4: Likewise.
16841         * m4/printf.m4: Likewise.
16842         * m4/regex.m4: Likewise.
16843         * m4/stat-size.m4: Likewise.
16844         * m4/std-gnu11.m4: Likewise.
16845         * m4/stdbool.m4: Likewise.
16846         * m4/sys_types_h.m4: Likewise.
16847         * m4/threadlib.m4: Likewise.
16848         * m4/vararrays.m4: Likewise.
16849         * pygnulib/GLImport.py: Likewise.
16850         * tests/test-exp.h: Likewise.
16851         * tests/test-exp2.h: Likewise.
16852         * tests/test-expm1.h: Likewise.
16853         * tests/test-fflush2.c: Likewise.
16854         * tests/test-getopt_long.h: Likewise.
16855         * tests/test-intprops.c: Likewise.
16856         * tests/test-log.h: Likewise.
16857         * tests/test-log10.h: Likewise.
16858         * tests/test-log1p.h: Likewise.
16859         * tests/test-log2.h: Likewise.
16860         * tests/test-printf-posix.h: Likewise.
16861         * tests/test-regex.c: Likewise.
16862         * tests/test-snprintf-posix.h: Likewise.
16863         * tests/test-sprintf-posix.h: Likewise.
16864         * tests/test-stdalign.c: Likewise.
16865         * tests/test-stdbool.c: Likewise.
16866         * tests/test-vasnprintf-posix.c: Likewise.
16867         * tests/test-vasprintf-posix.c: Likewise.
16868         * top/maint.mk: Likewise.
16870 2017-11-12  Bruno Haible  <bruno@clisp.org>
16872         faccessat: Make the last change more robust.
16873         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
16874         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
16876 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16878         faccessat: port to macOS (Bug#29231)
16879         macOS faccessat has the same bug that lstat does: if the file
16880         name ends in '/' it ignores the trailing slash.
16881         Problem reported for Emacs by Vincent Zhang.
16882         * doc/posix-functions/faccessat.texi (faccessat): Document this.
16883         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
16884         around the initial includes.  Include errno.h, string.h, sys/stat.h.
16885         (orig_faccessat) [HAVE_FACCESSAT]: New function.
16886         Include "unistd.h" after defining it.
16887         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
16888         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
16889         Handle in the usual way.
16890         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
16891         lstat dereferences symlinks, since faccessat is likely to
16892         have the same problem.
16893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
16894         * modules/faccessat (Depends-on): Add fstatat.
16895         Depend if REPLACE_FACCESSAT is 1, too.
16896         (configure.ac): Link if REPLACE_FACCESSAT is 1.
16897         * modules/faccessat-tests (Depends-on): Add symlink.
16898         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
16899         * tests/test-faccessat.c (main): Test for the bug.
16901 2017-11-11  Bruno Haible  <bruno@clisp.org>
16903         getprogname: Fix compilation error on IRIX.
16904         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
16905         'namesize'.
16907 2017-11-11  Bruno Haible  <bruno@clisp.org>
16909         year2038: Tweak last patch.
16910         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
16912 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
16914         year2038: be more insistent about 64-bit time_t
16915         Applications requiring access to arbitrary files should not be
16916         built with 32-bit time_t on hosts that have 64-bit timestamps,
16917         as this can lead to real trouble at runtime.
16918         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
16919         Check on all systems, not just MinGW.  Use a heuristic involving
16920         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
16921         output a failure or just a warning, to make it more likely that
16922         builders will select 64-bit time_t.
16924 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16926         havelib: fix typo in previous change
16927         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
16929         Don’t use AC_EGREP_CPP if affected by CFLAGS
16930         * m4/float_h.m4 (gl_FLOAT_H):
16931         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
16932         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
16933         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
16934         * m4/year2038.m4 (gl_YEAR2038):
16935         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
16936         likely to be affected by the choice of CFLAGS, since CFLAGS are
16937         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
16938         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
16940         fstatat: pacify GCC on unusual platform
16941         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
16942         Omit, as it’s unused in this case.
16944 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
16946         timespec: prefer ‘assume’ to ‘assure’
16947         This avoids some runtime tests.  The rest of the module makes
16948         similar assumptions and there is little point to testing here.
16949         * lib/timespec.h: Include verify.h instead of assure.h.
16950         (timespec_cmp): Use ‘assume’, not ‘assure’.
16951         Also, remove an unnecessary cast to ‘int’, as lots of other
16952         code in this module now causes -Wconversion to complain, and
16953         this is a problem with -Wconversion not with the code.
16955         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
16957         Port recent gnulib-tool change to Dash
16958         * gnulib-tool (func_create_testdir): Don't assume that the shell
16959         retokenizes after expanding "$@" inside the call to
16960         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
16962 2017-10-27  Jim Meyering  <meyering@fb.com>
16964         timespec.h: use "assure" to avoid a spurious warning
16965         * lib/timespec.h: Include "assure.h" and use it to help
16966         gcc7's -Wstrict-overflow avoid a false positive warning
16967         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
16968         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
16969         * modules/timespec (Depends-on): Add assure.
16971 2017-10-29  Bruno Haible  <bruno@clisp.org>
16973         Avoid several test failures with traditional locales on Haiku.
16974         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
16975         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
16976         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
16977         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
16978         LOCALE_ZH_CN=none.
16980 2017-10-29  Bruno Haible  <bruno@clisp.org>
16982         strerror_r-posix: Fix behaviour and test failure on Haiku.
16983         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
16984         are positive. Work around return value 0 instead of ERANGE on Haiku.
16985         For unknown error numbers, use a format string consistent with perror().
16986         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
16987         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
16988         are positive.
16990 2017-10-29  Bruno Haible  <bruno@clisp.org>
16992         get-rusage-data: Avoid crash on Haiku.
16993         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
16995 2017-10-29  Bruno Haible  <bruno@clisp.org>
16997         get-rusage-as: Avoid crash on Haiku.
16998         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
17000 2017-10-29  Bruno Haible  <bruno@clisp.org>
17002         ilogbl: Ensure replacement on Haiku.
17003         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
17004         REPLACE_ILOGBL if ilogbl does not work.
17005         (gl_FUNC_ILOGBL_WORKS): New macro.
17006         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
17007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
17008         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
17009         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
17010         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
17012 2017-10-29  Bruno Haible  <bruno@clisp.org>
17014         expl: Ensure replacement on Haiku.
17015         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
17016         zero.
17017         * doc/posix-functions/expl.texi: Mention the Haiku problem.
17019 2017-10-29  Bruno Haible  <bruno@clisp.org>
17021         math: Fix test failure on Haiku.
17022         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
17023         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
17024         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
17025         * doc/posix-headers/math.texi: Mention the Haiku problem.
17027 2017-10-29  Bruno Haible  <bruno@clisp.org>
17029         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
17030         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
17031         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
17033 2017-10-29  Bruno Haible  <bruno@clisp.org>
17035         crypto/*: Verify that the header file is self-contained.
17036         * tests/test-gc-*.c: Include the module's header file immediately after
17037         <config.h>.
17038         * tests/test-hmac-*.c: Likewise.
17039         * tests/test-arcfour.c: Likewise.
17040         * tests/test-arctwo.c: Likewise.
17041         * tests/test-des.c: Likewise.
17042         * tests/test-md2.c: Likewise.
17043         * tests/test-md4.c: Likewise.
17044         * tests/test-md5.c: Likewise.
17045         * tests/test-rijndael.c: Likewise.
17046         * tests/test-sha1.c: Likewise.
17047         * tests/test-sm3.c: Likewise.
17049 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17050             Bruno Haible  <bruno@clisp.org>
17052         crypto/gc: fix build failure with -Werror=suggest-attribute=const
17053         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
17055 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17057         New module: crypto/gc-sm3
17058         * lib/gc.h: Declare SM3-related stuffs.
17059         * lib/gc-gnulib.c: Support sm3 in internal functions.
17060         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
17061         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
17062         * modules/crypto/gc-sm3: Define gc-sm3 module.
17063         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
17064         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
17065         * MODULES.html.sh: List gc-sm3 module.
17067 2017-10-29  Bruno Haible  <bruno@clisp.org>
17069         random, random_r: Mention different prototypes on Haiku.
17070         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
17071         * doc/glibc-functions/random_r.texi: Likewise.
17072         * doc/glibc-functions/initstate_r.texi: Likewise.
17073         * doc/glibc-functions/setstate_r.texi: Likewise.
17075 2017-10-28  Bruno Haible  <bruno@clisp.org>
17077         posix_spawn: Avoid spurious message in configure output.
17078         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
17079         'cmp' command.
17081 2017-10-28  Bruno Haible  <bruno@clisp.org>
17083         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
17084         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
17085         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
17087 2017-10-28  Bruno Haible  <bruno@clisp.org>
17089         ioctl: Override non-POSIX declaration on Haiku.
17090         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
17091         * lib/sys_ioctl.in.h: Add comment about Haiku.
17092         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
17093         * doc/glibc-headers/sys_ioctl.texi: Likewise.
17095 2017-10-28  Bruno Haible  <bruno@clisp.org>
17097         crypto/sm3: Add overview documentation to the .h file.
17098         * lib/sm3.h: Add comments.
17100 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17102         New module: crypto/sm3
17103         This new module can be used to compute SM3 message digest of files or
17104         memory blocks according to the specification GM/T 004-2012
17105         Cryptographic Hash Algorithm SM3, published by State Cryptography
17106         Administration, China.
17107         The official SM3 cryptographic hash algorithm specification is
17108         available at
17109         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
17110         * lib/sm3.h: Declare the APIs of sm3 module.
17111         * lib/sm3.c: Implement SM3 hash algorithm.
17112         * m4/sm3.m4: m4 file for sm3 module.
17113         * modules/crypto/sm3: Define sm3 module.
17114         * tests/test-sm3.c: Implement SM3 test case.
17115         * modules/crypto/sm3-tests: Define sm3 test module.
17116         * MODULES.html.sh: List sm3 module.
17118 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17120         gc-libgcrypt: fix undefined enum type in switch statement
17121         Resolve the following build failure:
17122         lib/gc-libgcrypt.c: In function 'gc_hash_open':
17123         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
17124         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
17125              case 0:
17126              ^~~~
17127         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
17128         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
17130 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
17132         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
17133         Resolve the following build failure:
17134         lib/gc-libgcrypt.c: In function 'gc_hash_read':
17135         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
17136         in signedness [-Werror=pointer-sign]
17137             digest = gcry_md_read (ctx->gch, 0);
17138                    ^
17139         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
17141 2017-10-26  Bruno Haible  <bruno@clisp.org>
17143         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
17144         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
17145         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
17147 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
17149         glob: fix another heap buffer overflow
17150         Problem reported by Tim Rühsen in:
17151         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
17152         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
17154 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17156         quotearg: pacify compiler re unsigned
17157         * lib/quotearg.c (quotearg_n_options):
17158         Rewrite to avoid diagnostic from overly-picky compiler.
17159         Problem reported by Sami Kerola in:
17160         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
17162         glob: fix heap buffer overflow
17163         * lib/glob.c (glob): Fix off-by-one error introduced into
17164         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
17165         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
17166         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
17167         Fix suggested by Bruno Haible.
17169 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
17171         glob: pacify fuzzer for mempcpy
17172         Problem reported by Tim Rühsen in:
17173         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
17174         * lib/glob.c (glob): Do not pass NULL to mempcpy.
17176 2017-10-12  Bruno Haible  <bruno@clisp.org>
17178         doc: Fix syntax error (regression from 2017-10-03).
17179         * doc/posix-functions/strncpy.texi: Fix syntax error.
17181 2017-10-12  Bruno Haible  <bruno@clisp.org>
17183         doc: Update for Solaris 11.3.
17184         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
17185         mention Solaris 11.3.
17186         * m4/log2.m4: Fix comments.
17187         * m4/log2f.m4: Likewise.
17188         * m4/printf.m4: Update comments.
17189         * m4/rename.m4: Likewise.
17190         * m4/strncat.m4: Likewise.
17192         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
17194 2017-10-10  Bruno Haible  <bruno@clisp.org>
17196         doc: Improve doc about ioctl.
17197         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
17198         prototype.
17200 2017-10-09  Bruno Haible  <bruno@clisp.org>
17202         wcwidth: Don't use obsolete syntax of 'test'.
17203         Reported by Eric Blake.
17204         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
17205         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
17207 2017-10-09  Bruno Haible  <bruno@clisp.org>
17209         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
17210         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
17211         and Daniel P. Berrange <berrange@redhat.com>.
17212         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
17213         on glibc systems. The getopt-pfx-core.h file declares exactly what
17214         unistd.h needs, nothing more.
17216 2017-10-08  Bruno Haible  <bruno@clisp.org>
17218         vma-iter: Improve support for FreeBSD.
17219         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
17220         vma_iterate.
17221         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
17223 2017-10-08  Bruno Haible  <bruno@clisp.org>
17225         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
17226         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
17228 2017-10-07  KO Myung-Hun  <komh@chollian.net>
17230         test-framework-sh: Fix 'invalid path dir' error.
17231         On OS/2, a path separator is ';' not ':'. And ':' is used as a
17232         separator between a drive letter and directory parts.
17233         As a result, an absolute path such as x:/path/to/dir on OS/2 is
17234         treated as an invalid path dir.
17235         * tests/init.sh (PATH_SEPARATOR): Set at startup.
17236         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
17237         instead of hard coded ':'.
17239 2017-10-07  Bruno Haible  <bruno@clisp.org>
17241         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
17242         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
17243         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
17244         (rof_open): On Linux, do multiple read() calls and make sure
17245         MIN_LEFTOVER bytes are left when read() returns.
17247 2017-10-07  Bruno Haible  <bruno@clisp.org>
17249         vma-iter: Improve support for GNU/Hurd.
17250         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
17251         API, not the /proc file system.
17253 2017-10-07  Bruno Haible  <bruno@clisp.org>
17255         test-framework-sh: Don't require bash on Windows and OS/2.
17256         Reported by KO Myung-Hun.
17257         * tests/test-init.sh: Use 'shopt' only when running in bash.
17259 2017-10-06  KO Myung-Hun  <komh@chollian.net>
17261         wcwidth: check a macro version of wcwidth () as well
17262         * lib/wchar.in.h: Revert commit from 2016-01-14.
17263         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
17265 2017-10-06  Bruno Haible  <bruno@clisp.org>
17267         getopt-posix: Clarify copyright header.
17268         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
17269         * lib/getopt-pfx-core.h: Likewise.
17270         * lib/getopt-pfx-ext.h: Likewise.
17271         * lib/getopt-cdefs.in.h: Likewise.
17273 2017-10-03  Bruno Haible  <bruno@clisp.org>
17275         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
17276         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
17277         gl_HOST_CPU_C_ABI.
17279 2017-10-03  Bruno Haible  <bruno@clisp.org>
17281         doc: warn about misuse of strncpy and wcsncpy.
17282         * doc/posix-functions/strcpy.texi: Describe requirements on prior
17283         memory allocation.
17284         * doc/posix-functions/wcscpy.texi: Likewise.
17285         * doc/posix-functions/strncpy.texi: Describe what this function is not
17286         useful for.
17287         * doc/posix-functions/wcsncpy.texi: Likewise.
17289 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
17291         fsuage: fix typo in previous change
17292         * lib/fsusage.c: Remove stray include of full-read.h.
17293         Problem reported by Sam Steingold for macOS (Bug#28669).
17295 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
17297         fsusage: remove SVR2 support
17298         SVR2 was obsolete by 1986 and is no longer supported by anybody,
17299         and its code was getting in the way of use of this module by
17300         Emacs, which has its own ‘read’ function anyway.
17301         * lib/fsusage.c: Do not include sys/filsys.h.
17302         (get_fs_usage): Remove SVR2-specific code.
17303         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
17304         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
17305         * modules/fsusage (Depends-on): Do not depend on full-read.
17307         Simplify autoupdate of licenses
17308         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
17309         place.
17311 2017-10-01  Bruno Haible  <bruno@clisp.org>
17313         vma-iter: Add support for GNU/Hurd.
17314         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
17315         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17317 2017-09-30  Bruno Haible  <bruno@clisp.org>
17319         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
17320         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
17321         fail when module 'largefile' is in use.
17322         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
17323         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
17324         Don't test HAVE_SYS_PROCFS_H.
17326 2017-09-30  Bruno Haible  <bruno@clisp.org>
17328         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
17329         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
17330         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
17331         * modules/havelib (Depends-on): Add host-cpu-c-abi.
17333 2017-09-30  Bruno Haible  <bruno@clisp.org>
17335         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
17336         * lib/uniname/uniname.c (unicode_name_character): Add braces around
17337         scope of local variables.
17339 2017-09-28  Bruno Haible  <bruno@clisp.org>
17341         string: code style
17342         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
17343         substitutable variables.
17344         * modules/string (Makefile.am): Likewise.
17346 2017-09-26  Bruno Haible  <bruno@clisp.org>
17348         uniname/uniname-tests: Tighten code.
17349         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
17350         local variables into one.
17352 2017-09-26  Bruno Haible  <bruno@clisp.org>
17354         vma-iter: Improvements for Linux and BSD platforms.
17355         - Add support for DragonFly BSD.
17356         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
17357         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
17358         Read the entire file into memory in a single system call.
17359         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
17360         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
17362 2017-09-26  Bruno Haible  <bruno@clisp.org>
17364         vma-iter: Provide the protection flags on FreeBSD.
17365         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
17366         skip three fields between the addresses and the protection flags.
17368 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17370         glob: remove bogus extern decl
17371         * lib/glob.c (__glob_pattern_type): Remove now-spurious
17372         extern declaration.  Problem reported by Adhemerval Zanella in:
17373         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
17375 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17377         uniname/uniname-tests: integer overflow fix
17378         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
17379         Check for integer overflow.
17381         duplocale-tests: fix unlikely crash
17382         * tests/test-duplocale.c (get_locale_dependent_values):
17383         Don’t crash with absurdly long month names.
17385         maint: fix overflow checking in nap.h
17386         * modules/chown-tests:
17387         * modules/fchownat-tests, modules/fdutimensat-tests:
17388         * modules/futimens-tests, modules/lchown-tests:
17389         * modules/stat-time-tests, modules/utime-tests:
17390         * modules/utimens-tests, modules/utimensat-tests:
17391         Depend on intprops.
17392         * tests/nap.h: Include intprops.h.
17393         (diff_timespec): Handle overflow properly.
17395         sys_types: update URL
17396         * m4/sys_types_h.m4: Use https: URL.
17398         parse-datetime: fix dependency
17399         * modules/parse-datetime (Depends-on): Depend
17400         on nstrftime, not strftime.
17402         parse-datetime, posixtm: avoid uninit access
17403         * lib/parse-datetime.y (parse_datetime2):
17404         * lib/posixtm.c (posixtime):
17405         Do not access uninitialized storage, even though the resulting
17406         value is never used.
17408 2017-09-25  Bruno Haible  <bruno@clisp.org>
17410         vma-iter: Improvements for BSD platforms.
17411         - Add support for GNU/kFreeBSD.
17412         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
17413         - Speed up on OpenBSD.
17414         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
17415         (vma_iterate_bsd): New function.
17416         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
17417         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
17418         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
17419         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
17421 2017-09-23  Bruno Haible  <bruno@clisp.org>
17423         strfmon_l: New module.
17424         * modules/strfmon_l: New file.
17425         * lib/strfmon_l.c: New file.
17426         * m4/strfmon_l.m4: New file.
17427         * doc/posix-functions/strfmon_l.texi: Mention the new module.
17428         * modules/strfmon_l-tests: New file.
17429         * tests/test-strfmon_l.c: New file.
17431         monetary: New module.
17432         * modules/monetary: New file.
17433         * lib/monetary.in.h: New file.
17434         * m4/monetary_h.m4: New file.
17435         * doc/posix-headers/monetary.texi: Mention the new module.
17436         * modules/monetary-tests: New file.
17437         * tests/test-monetary.c: New file.
17438         * modules/monetary-c++-tests: New file.
17439         * tests/test-monetary-c++.cc: New file.
17440         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
17442 2017-09-23  Bruno Haible  <bruno@clisp.org>
17444         duplocale tests: Fix test crash on Linux/x86.
17445         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
17446         locale from the current thread before freeing it.
17448 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
17450         mktime: port to OpenVMS
17451         Problem reported by John E. Malmberg in:
17452         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
17453         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
17455 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17457         manywarnings: port to GCC on 64-bit MS-Windows
17458         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
17459         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
17460         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
17462 2017-09-13  Bruno Haible  <bruno@clisp.org>
17464         all: Replace many more http URLs by https URLs. Update stale URLs.
17465         * users.txt: Remove mention of 'newts'.
17466         * lib/localename.c: Update comment about LANG_SOTHO.
17468 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17470         all: Replace many http URLs by https URLs.
17472 2017-09-12  Bruno Haible  <bruno@clisp.org>
17474         doc: Prefer https URLs where possible.
17475         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
17476         * doc/ld-output-def.texi: Remove unavailable URL.
17478 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
17480         maintainer-makefile: FTP -> HTTPS
17481         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
17482         of FTP, which is planned to be decommissioned on 2017-11-01.
17484 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
17486         libc-config: Fix __GNUC_PREREQ macro.
17487         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
17488         __GNUC_MINOR.
17490 2017-09-09  Bruno Haible  <bruno@clisp.org>
17492         gnulib-tool: Simplify commit from 2015-08-20.
17493         * gnulib-tool (func_add_or_update): Remove local variable
17494         is_binary_file.
17496 2017-09-08  Bruno Haible  <bruno@clisp.org>
17498         stddef: Avoid conflict with system-defined max_align_t.
17499         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
17500         Reported by Werner Lemberg <wl@gnu.org> in
17501         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
17502         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
17503         (max_align_t): Define as a macro.
17504         (GNULIB_defined_max_align_t): New macro. Guards against multiple
17505         definitions of rpl_max_align_t in different copies of gnulib-generated
17506         <stddef.h>.
17508 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
17510         libc-config: port to MSVC
17511         Problems reported by Gisle Vanem in:
17512         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
17513         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
17514         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
17515         * m4/__inline.m4: New file.
17516         * modules/libc-config (Files): Add it.
17517         (Depends-on): Use it.
17519         glob: Use enum for __glob_pattern_type result
17520         From a patch proposed by Adhemerval Zanella in:
17521         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
17522         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
17523         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
17524         * lib/glob_internal.h (__glob_pattern_type):
17525         * lib/glob.c (glob):
17526         * lib/glob_pattern_p.c (__glob_pattern_p):
17527         Use them.
17529         glob: fix for use in glibc
17530         Problem reported by Adhemerval Zanella in:
17531         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
17532         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
17533         Do not redefine if _LIBC.
17535 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17537         glob: fix bugs with long login names
17538         Problem reported by Adhemerval Zanella in:
17539         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
17540         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
17541         (glob): Use the same scratch buffer for both getlogin_r and
17542         getpwnam_r.  Don’t require preallocation of the login name.  This
17543         simplifies storage allocation, and corrects the handling of
17544         long login names.
17546 2017-09-02  Bruno Haible  <bruno@clisp.org>
17548         dirent: Update doc.
17549         * doc/posix-headers/dirent.texi: More concrete list of platforms.
17551 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17553         glob: fix getpwnam_r errno typo
17554         * lib/glob.c (glob): Fix longstanding misuse of errno after
17555         getpwnam_r, which returns an error number rather than setting
17556         errno.
17558         glob: fix typo in recent change
17559         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
17560         Fix recently-introduced typo.
17562 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17564         glob: don't save and restore errno unnecessarily
17565         * lib/glob.c (glob): Don't save and restore errno
17566         merely because we have getpwnam_r.
17568         glob: don't assume getpwnam_r
17569         * lib/glob.c (glob): Port recent patches to platforms
17570         lacking getpwnam_r.
17572         scratch_buffer: don’t use private glibc API
17573         Suggested by Florian Weimer in:
17574         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
17575         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
17576         * lib/scratch_buffer_grow.c: Rename to
17577         lib/malloc/scratch_buffer_grow.c.
17578         * lib/scratch_buffer_grow_preserve.c: Rename to
17579         lib/malloc/scratch_buffer_grow_preserve.c.
17580         * lib/scratch_buffer_set_array_size.c: Rename to
17581         lib/malloc/scratch_buffer_set_array_size.c.
17582         * lib/scratch_buffer.h: New file.
17583         * modules/scratch_buffer (Files, Makefile.am):
17584         Adjust to source-file renaming.
17586 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17588         glob: use scratch_buffer instead of extend_alloca
17589         Much of the lib/glob.c part of this patch comes from a glibc patch
17590         proposed by Adhemerval Zanella in:
17591         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
17592         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
17593         included via glob.h, does this for us now.
17594         (__set_errno): Remove, as libc-config does this for us now.
17595         Include <scratch_buffer.h>.
17596         (GETPW_R_SIZE_MAX): Remove.
17597         (glob): Use struct scratch_buffer instead of extend_alloca.
17598         * lib/glob.in.h: Include libc-config.h rather than
17599         including <sys/cdefs.h> conditionally.
17600         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
17601         (__glibc_unlikely, __restrict, weak_alias):
17602         Remove, as libc-config does this for us now.
17603         * m4/glob.m4 (gl_PREREQ_GLOB):
17604         Remove sys/cdefs.h tests; no longer needed.
17605         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
17606         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
17608         scratch_buffer: new module
17609         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
17610         * lib/scratch_buffer_grow_preserve.c:
17611         * lib/scratch_buffer_set_array_size.c:
17612         New files, copied from glibc with very minor changes that can be
17613         copied back.
17614         * modules/scratch_buffer: New file.
17616         libc-config: new module
17617         * MODULES.html.sh: Add libc-config.
17618         * lib/cdefs.h: New file, copied from the GNU C Library with very
17619         minor changes that can be copied back.
17620         * lib/libc-config.h, modules/libc-config: New files.
17622 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17624         glob: match dangling symlinks
17625         This fixes a bug I inadvertently introduced to Gnulib when I
17626         merged glibc glob back into gnulib on 2007-10-16.  This fix is
17627         inspired by a patch proposed for glibc by Adhemerval Zanella in:
17628         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
17629         * doc/posix-functions/glob.texi: Update list of affected platforms.
17630         * lib/glob.c (__lstat64): New macro.
17631         (is_dir): New function.
17632         (glob, glob_in_dir): Match symlinks even if they are dangling.
17633         (link_stat, link_exists_p): Remove.  All uses removed.
17634         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
17635         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
17636         * modules/glob-tests (Depends-on): Add symlink.
17637         * tests/test-glob.c: Include errno.h, unistd.h.
17638         (BASE): New macro.
17639         (main): Test dangling symlinks, if symlinks are supported.
17641         glob, backupfile: inode 0 is a valid inode number
17642         * doc/posix-functions/readdir.texi (readdir):
17643         * doc/posix-headers/dirent.texi (dirent.h):
17644         Document more readdir portability issues.
17645         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
17646         (numbered_backup): Don’t treat inode 0 any differently from
17647         other inode values.
17648         * lib/glob.c (struct readdir_result): Remove skip_entry member.
17649         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
17650         All uses removed.
17651         * modules/glob (Depends-on): Remove d-ino.
17653         glob: simplify symlink detection
17654         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
17655         uint8_t, as C99 does not require uint8_t.
17656         (struct readdir_result): Use it.  Do not define skip_entry unless
17657         it is needed; this saves a byte on platforms lacking d_ino.
17658         (readdir_result_type, readdir_result_skip_entry):
17659         New functions, replacing ...
17660         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
17661         ... these functions, which were removed.  This makes the callers
17662         easier to read.  All callers changed.
17663         (D_INO_TO_RESULT): Now empty if there is no d_ino.
17665 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17667         fts-tests: tag as a longrunning-test so not included by default
17668         * modules/fts-tests: This test takes about 20s on current systems,
17669         and uses about 285M of space on ext4.
17671 2017-08-30  Pádraig Brady  <P@draigBrady.com>
17673         renameat2: fix compilation on alpine linux
17674         * m4/renameat.m4: Check for <linux/fs.h> presence.
17675         * lib/renameat2.h: Only include <linux/fs.h> if present.
17676         Reported by Assaf Gordon on Alpine Linux.
17678 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17680         glob: try to port recent changes to MS-Windows
17681         Problem reported by Bruno Haible in:
17682         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
17683         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
17684         * lib/glob.in.h (__glob_pattern_p): ... to here.
17686 2017-08-24  Eric Blake  <eblake@redhat.com>
17688         warnings: fix compilation with old autoconf
17689         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
17690         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
17691         AC_DEFUN.
17692         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
17693         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
17695 2017-08-24  Bruno Haible  <bruno@clisp.org>
17697         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
17698         * modules/glob (Depends-on): Add c99.
17700 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17702         glob: fix typo that broke platforms lacking d_ino
17703         This typo also hurt performance on GNU/Linux and similar hosts.
17704         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
17705         in previous change.
17707 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17709         glob: merge from glibc with Zanella glob changes
17710         Merge glob from glibc, with changes for glob proposed
17711         by Adhemerval Zanella in the thread starting here:
17712         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
17713         plus some fixes for this merge.
17714         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
17715         New files, ported from glibc.
17716         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
17717         with __restrict.
17718         (__size_t): Remove.  All uses replaced by size_t.
17719         (size_t): Define by defining __need_size_t and including <stddef.h>.
17720         This should work even in non-glibc platforms, where any name
17721         pollution is OK.
17722         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
17723         (struct stat64): Don’t worry about __GLOB_GNULIB.
17724         (glob, globfree, glob_pattern_p): Remove macros for
17725         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
17726         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
17727         but set errno.
17728         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
17729         removed since the glibc behavior works on null pointers.
17730         Do not include stdio.h; old SunOS is irrelevant now.
17731         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
17732         Include glob_internal.h.
17733         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
17734         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
17735         worked only coincidentally.
17736         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
17737         Remove macros; now done in glob.in.h.
17738         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
17739         (glob): Properly initialize glob structure with
17740         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
17741         Remove old code using SHELL since Bash no longer
17742         uses this.
17743         (glob, prefix_array): Separate MS code better.
17744         (glob, glob_in_dir): Use C99 decls before statements when glibc
17745         does.
17746         (glob_in_dir): Remove old Amiga and VMS code.
17747         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
17748         separate files.
17749         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
17750         (__glibc_unlikely):
17751         Move here from glob.c.
17752         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
17753         (weak_alias): New macro.
17754         (__size_t): Remove.  All uses replaced by size_t.
17755         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
17756         * modules/glob (Files): Add +lib/glob_internal.h,
17757         lib/glob_pattern_p.c, lib/globfree.c.
17758         (Depends-on): Remove snippet/arg-nonnull.
17760 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
17762         glob: port to clang's Undefined Sanitizer
17763         Problem reported by Tim Rühsen in:
17764         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
17765         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
17766         (glob_in_dir): Do not rely on undefined behavior in accessing
17767         struct members beyond their bounds.  Use a flexible array member
17768         instead.
17770 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
17772         vc-list-files: port to Solaris 10
17773         * build-aux/vc-list-files: Don't assume test -e works.
17775 2017-08-21  Karl Berry  <karl@freefriends.org>
17777         * doc/posix-functions/srandom.texi (srandom): typo }.
17779 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
17781         git-version-gen: port to Solaris 10
17782         Problem reported by Dagobert Michelsen in:
17783         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
17784         * build-aux/git-version-gen (v_from_git):
17785         Use expr instead of shell substitution.
17787 2017-08-19  Bruno Haible  <bruno@clisp.org>
17789         host-cpu-c-abi: Improve detection of MIPS ABI.
17790         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
17791         _MIPS_SIM.
17793 2017-08-17  Bruno Haible  <bruno@clisp.org>
17795         hypot tests: Fix test failure on FreeBSD 11.0/x86.
17796         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
17798 2017-08-17  Bruno Haible  <bruno@clisp.org>
17800         float: Fix LDBL_MIN value on FreeBSD/x86.
17801         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
17803 2017-08-17  Bruno Haible  <bruno@clisp.org>
17805         random: Fix test compilation failure on Cygwin 1.5.25.
17806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
17807         HAVE_DECL_SETSTATE.
17808         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
17809         declared.
17810         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
17811         HAVE_DECL_SETSTATE.
17812         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
17813         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
17814         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
17815         * doc/posix-functions/random.texi: Likewise.
17816         * doc/posix-functions/setstate.texi: Likewise.
17817         * doc/posix-functions/srandom.texi: Likewise.
17819 2017-08-16  Bruno Haible  <bruno@clisp.org>
17821         stdnoreturn: Fix test compilation failure on Cygwin.
17822         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
17823         <stdnoreturn.h> replacement.
17824         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
17825         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
17827 2017-08-16  Bruno Haible  <bruno@clisp.org>
17829         thread: Fix conflict with pthread_sigmask module.
17830         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
17831         it's defined as a macro.
17832         * modules/thread (Depends-on): Add pthread_sigmask.
17834 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
17836         rename: port better to NetBSD
17837         * doc/posix-functions/rename.texi (rename): NetBSD 7
17838         does not have the link-count bug.
17839         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
17840         broken merely because rename ("a", "b") removes "a" when the two
17841         names are hard links to the same file.
17843 2017-08-16  Bruno Haible  <bruno@clisp.org>
17845         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
17846         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
17847         the target file names with '$(srcdir)/'.
17848         * modules/unicase/locale-language (Makefile.am): Likewise.
17849         * modules/unicase/special-casing (Makefile.am): Likewise.
17850         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
17851         * modules/unictype/category-byname (Makefile.am): Likewise.
17852         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
17853         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
17854         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
17855         * modules/unictype/property-byname (Makefile.am): Likewise.
17856         * modules/unictype/scripts (Makefile.am): Likewise.
17857         * modules/uninorm/composition (Makefile.am): Likewise.
17859 2017-08-16  Bruno Haible  <bruno@clisp.org>
17861         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
17862         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
17863         value for OpenBSD.
17865 2017-08-16  Bruno Haible  <bruno@clisp.org>
17867         rename, renameat: Update doc regarding NetBSD.
17868         * doc/posix-functions/rename.texi: Clarify that when using
17869         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
17870         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
17871         version.
17873 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17875         renameat2: port better to macOS
17876         * lib/renameat2.c (renameat2): Use renameatx_np if available.
17878         futimens: don’t assume struct timespec layout
17879         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
17880         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
17881         * tests/test-fdutimensat.c (main):
17882         * tests/test-futimens.h (test_futimens):
17883         * tests/test-lutimens.h (test_lutimens):
17884         * tests/test-utimens.h (test_utimens):
17885         * tests/test-utimensat.c (main):
17886         Don’t assume that struct timespec is a two-member structure in
17887         tv_sec, tv_nsec order.  Although this is true on all platforms we
17888         know about, POSIX does not guarantee it.
17890         rename: document+test NetBSD rename
17891         Test failure reported by Bruno Haible in:
17892         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
17893         This is an area where NetBSD is better-behaved than POSIX,
17894         so allow the NetBSD behavior in tests.
17895         * doc/posix-functions/rename.texi:
17896         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
17897         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
17899 2017-08-15  Bruno Haible  <bruno@clisp.org>
17901         renameat: Ensure declaration in <stdio.h> on NetBSD.
17902         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
17903         * doc/posix-functions/renameat.texi: Mention this problem.
17905 2017-08-15  Bruno Haible  <bruno@clisp.org>
17907         duplocale: Work around NetBSD 7.0 bug.
17908         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
17909         * lib/duplocale.c: Add comment about NetBSD problem.
17910         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
17912 2017-08-15  Bruno Haible  <bruno@clisp.org>
17914         duplocale tests: Verify use with *_l functions.
17915         * modules/duplocale-tests (configure.ac): Test for uselocale and
17916         some *_l functions.
17917         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
17918         from main.
17919         (get_locale_dependent_values_from, test_with_locale_parameter): New
17920         functions.
17921         (main): Test both test_with_uselocale and test_with_locale_parameter.
17923 2017-08-15  Bruno Haible  <bruno@clisp.org>
17925         extensions: Enable NetBSD specific extensions.
17926         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
17928 2017-08-14  Bruno Haible  <bruno@clisp.org>
17930         open, openat: Update doc about O_CLOEXEC.
17931         * doc/posix-functions/open.texi: More concrete list of platforms.
17932         * doc/posix-functions/openat.texi: Likewise.
17934 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17936         open: support O_CLOEXEC
17937         * NEWS, doc/posix-functions/open.texi:
17938         * doc/posix-functions/openat.texi: Document this.
17939         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
17940         (GNULIB_defined_O_CLOEXEC): New symbol.
17941         * lib/open.c: Include cloexec.h.
17942         (open): Support O_CLOEXEC.
17943         * lib/openat.c: Include cloexec.h.
17944         (rpl_openat): Support O_CLOEXEC.
17945         * lib/popen-safer.c: Do not include cloexec.h.
17946         (open_noinherit): Remove.
17947         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
17948         * lib/save-cwd.c: Do not include cloexec.h.
17949         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
17950         * m4/open-cloexec.m4: New file.
17951         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
17952         Replace 'open' if O_CLOEXEC is not present.
17953         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
17954         Replace 'openat' if O_CLOEXEC is not present.
17955         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
17956         * modules/open (Files): Add m4/open-cloexec.m4.
17957         (Depends-on): Depend on cloexec if replacing 'open'.
17958         * modules/openat (Files): Add m4/open-cloexec.m4.
17959         (Depends-on): Depend on cloexec if replacing openat.
17960         * modules/popen-safer (Depends-on): Remove cloexec.
17961         * modules/save-cwd (Depends-on): Remove cloexec, and add
17962         fd-safer-flag and 'open'.
17964 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
17966         reallocarray: minor fixes
17967         * doc/glibc-functions/reallocarray.texi: Update version numbers.
17968         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
17969         * modules/reallocarray (License): Change from GPL to LGPL.
17970         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
17971         Indent properly and don't use tabs.
17973 2017-08-13  Darshit Shah  <darnir@gnu.org>
17975         reallocarray: New module
17976         reallocarray is a new function in glibc 2.26 to safely allocate an array
17977         of memory locations with integer overflow protection.
17978         * MODULES.html.sh: Add reallocarray.
17979         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
17980         * lib/reallocarray.c: New file to implement module reallocarray.
17981         * lib/stdlib.in.h: Add function declarations for reallocarray.
17982         * m4/reallocarray.m4: New file.
17983         * m4/stdlib_h.m4: Declare reallocarray.
17984         * modules/reallocarray: New file.
17985         * modules/reallocarray-test: New file.
17986         * modules/stdlib: Coerce stdlib.h to export reallocarray.
17987         * tests/test-reallocarray.c: New test.
17989 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
17991         dirent-safer: fix cloexec race
17992         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
17993         (opendir_safer): Use F_DUPFD_CLOEXEC.
17994         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
17995         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
17996         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
17997         instead of dup_safer.
17999         fts: fix cloexec races
18000         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
18001         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
18002         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
18003         (fd_ring_check): Set cloexec flag on new file descriptors.
18004         (fts_build, fd_ring_check): While we’re at it, make sure the
18005         resulting file descriptor is not 0, 1, or 2, since that is easy.
18007 2017-08-11  Bruno Haible  <bruno@clisp.org>
18009         fts tests: Fix link error.
18010         Reported by Tom G. Christensen in
18011         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
18012         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
18014 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18016         fts: port recent changes to CentOS 6
18017         Problem reported by Tom G. Christensen in:
18018         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
18019         * lib/fts.c (fsword): New type.
18020         (struct dev_type, filesystem_type): Use it.
18021         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
18022         Also, check for f_type only if fstatfs and sys/vfs.h work.
18024 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
18026         tempname: do not depend on secure_getenv
18027         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
18028         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
18029         * modules/tempname (Depends-on): Remove secure_getenv.
18031 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
18033         extensions: add _OPENBSD_SOURCE
18034         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
18036 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
18037             Bruno Haible  <bruno@clisp.org>
18039         manywarnings: Add support for C++.
18040         * build-aux/g++-warning.spec: New file.
18041         * m4/manywarnings-c++.m4: New file.
18042         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
18043         redirects to manywarnings-c++.m4.
18044         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
18046 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18048         git-version-gen: another fix for tags with "-"
18049         * build-aux/git-version-gen: Improve fix for tags containing "-".
18050         Suggested by Markus Armbruster in:
18051         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
18053 2017-08-06  Bruno Haible  <bruno@clisp.org>
18055         warnings, manywarnings: Add support for multiple languages, not just C.
18056         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
18057         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
18058         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
18059         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
18060         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
18061         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
18062         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
18063         of the current language. If C++ is the current language, modify
18064         WARN_CXXFLAGS instead of WARN_CFLAGS.
18065         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
18066         gl_MANYWARN_ALL_GCC.
18067         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
18069 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
18071         git-version-gen: Fix for tags containing '-'
18073         Really old versions of git-describe (before v1.5.0, Feb 2007)
18074         don't have the number of commits in their long format output,
18075         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
18076         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
18077         recognizes both patterns, and normalizes the old format to the new one.
18079         Unfortunately, this normalization code gets confused when the tag
18080         contains '-'.  Reproducer:
18082             $ git-tag -m test v0.2-rc1
18083             $ build-aux/git-version-gen .tarball-version; echo
18084             build-aux/git-version-gen: WARNING: git rev-list failed
18085             UNKNOWN
18087         We take exact tag "v0.2-rc1" for the old format, extract the presumed
18088         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
18089         commits since tha tag.  Fails, because tag "v0.2" does not exist.
18091         * git-version-gen: We could perhaps drop support for versions from
18092         more than a decade ago.  But tightening the pattern match is easy
18093         enough, so do that.  Still breaks when you use version tags ending in
18094         something matching -g????, but you arguably get what you deserve then.
18096 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
18098         valgrind-tests: use ls, and cache
18099         * m4/valgrind-tests.m4: Test ls, not bash.
18100         Problem reported by Reuben Thomas.
18101         Also, cache the result so that it can be overridden.
18103 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
18105         manywarnings: port to 64-bit GCC builds of Emacs
18106         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
18107         object size rather than hardwiring 2147483647.  This is needed to
18108         build GNU Emacs, which has one conditional (and used
18109         only-in-theory) call to malloc with a literal greater than
18110         2147483647.
18112 2017-08-04  Bruno Haible  <bruno@clisp.org>
18114         Relax the license of some modules with no runtime code.
18115         * modules/std-gnu11 (License): Set to 'unlimited'.
18116         * modules/c99 (License): Likewise.
18117         Reported by Reuben Thomas <rrt@sc3d.org>.
18118         * modules/d-ino (License): Set to 'LGPL'.
18119         * modules/host-os (License): Likewise.
18120         * modules/longlong (License): Likewise.
18122 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
18124         renameat2: port to RHEL 7 + NFS
18125         * lib/renameat2.c (renameat2) [SYS_renameat2]:
18126         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
18127         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
18129 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
18131         renameat2: port to non-renameat platforms
18132         Problem reported for MSVC-2015 by Gisle Vanem in:
18133         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
18134         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
18135         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
18137 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18139         manywarnings: port to 32-bit GCC bug
18140         Problem reported by Pino Toscano in:
18141         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
18142         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
18143         not 2**63 - 1, to work around the following GCC bug:
18144         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
18146 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
18148         backupfile: new function to validate backup suffix
18149         * lib/backupfile.c (set_simple_backup_suffix): New function.
18150         (backupfile_internal): Use it.
18152         canonicalize: fix EOVERFLOW commentary
18153         Problem reported by Bruno Haible in:
18154         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
18155         * lib/canonicalize.c (canonicalize_filename_mode):
18156         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
18158         Don't interpret EOVERFLOW to mean nonexistence
18159         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
18160         may be EOVERFLOW; this is likely more useful than reporting the
18161         stat errno.
18162         * lib/glob.c (link_stat): Rename from link_exists2_p and
18163         return -1/0 instead of 0/1.  Caller changed.
18164         * lib/glob.c (link_exists_p):
18165         * lib/renameat2.c (rename_noreplace, renameat2):
18166         * lib/tempname.c (try_nocreate):
18167         If errno == EOVERFLOW then the directory entry exists, so do not
18168         act as if it does not exist.
18170         backup-rename: new module
18171         It is like backupfile, except it avoids some race conditions,
18172         and it does not output to stderr or exit.
18173         * MODULES.html.sh: Add backup-rename.
18174         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
18175         * modules/backup-rename: New files.
18176         * lib/backupfile.c: Turn this into an internals file, which
18177         contains code common to backupfile and backup_rename.  Include
18178         backupfile-internal.h instead of backupfile.h.  Do not include
18179         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
18180         renameat2.h and fcntl.h.
18181         (BACKUP_NOMEM): New constant.
18182         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
18183         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
18184         (backupfile_internal): Rename from find_backup_file_name.
18185         Support new arg RENAME.
18186         (backup_args, backup_types, get_version, xget_version):
18187         Move to lib/backup-find.c.
18188         * lib/backupfile.h (backup_file_rename): New decl.
18189         * modules/backupfile (Files): Add lib/backup-internal.h,
18190         lib/backup-find.c.
18191         (Depends-on): Add dirfd, fcntl, renameat2.
18192         (lib_SOURCES): Add backup-find.c.
18194         renameat2: port better to older Solaris
18195         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
18196         Add goto to use a label, to silence picky compilers.
18198         fts-tests: port to gcc -Wwrite-strings
18199         * tests/test-fts.c (base, base_d): New static vars.
18200         (argv, remove_tree, main): Use them.
18202 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18204         relocatable-lib{,-lgpl}: improve documentation
18205         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
18206         Various other updates.
18208 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
18209             Bruno Haible  <bruno@clisp.org>
18211         relocatable-lib{,-lgpl}: add Valgrind suppressions
18212         * lib/relocatable.valgrind: New file.
18213         * modules/relocatable-lib (Files): Add relocatable.valgrind.
18214         * modules/relocatable-lib-lgpl: Likewise.
18216 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
18218         relocatable: Make the license on the sources the GPL.
18219         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
18220         LGPL, which was a special case so that the relocatable source files
18221         could be used without gnulib-tool, to GPL. They can still be used under
18222         the LGPL, using the --lgpl option to gnulib-tool.
18224 2017-07-30  Bruno Haible  <bruno@clisp.org>
18226         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
18227         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
18228         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
18229         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
18230         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
18232 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
18234         faccessat: document AT_SYMLINK_NOFOLLOW issue
18235         * doc/posix-functions/faccessat.texi: Modernize platform list.
18236         Document AT_SYMLINK_NOFOLLOW limitation.
18238         renameat2: port to Solaris 10
18239         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
18240         with AT_SYMLINK_NOFOLLOW (which is not portable).
18241         (renameat): Undef before using, to avoid endless recursion when
18242         the replacement renameat calls renameat2 which calls the
18243         replacement renameat.
18244         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
18245         * modules/renameat2 (Depends-on): Remove faccessat.
18246         * modules/renameat-tests (test_renameat_LDADD):
18247         * modules/renameat2-tests (test_renameat2_LDADD):
18248         Remove $(LIB_EACCESS).
18250         renameat2: new module
18251         Although the Linux syscall renameat2 is not in glibc (yet?), it is
18252         useful to have access to its RENAME_NOREPLACE flag.
18253         * MODULES.html.sh (func_all_modules): Add renameat2.
18254         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
18255         * modules/renameat2-tests, tests/test-renameat2.c: New files.
18256         * lib/renameat.c (renameat): Move most of the implementation
18257         to renameat2, and just call renameat2.
18258         * modules/renameat (Files): Remove lib/at-func2.c.
18259         (Depends-on): Depend only on renameat2.
18260         (Include): Remove <fcntl.h>.
18261         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
18262         since renameat (via renameat2) might use faccessat.
18264 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
18266         vc-list-files: Adjust the script to support git worktrees
18267         * build-aux/vc-list-files: Require existence, not directory.
18269 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18271         doc: bring MODULES.html.sh up to date
18272         Somehow a few months ago we stopped updating MODULES.html.sh.
18273         I don’t recall explicitly deciding this, so I updated it now.
18274         Alternatively I suppose we could remove it.
18275         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
18276         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
18277         truncate, utime, utime-h, windows-stat-inodes,
18278         windows-stat-override, windows-stat-timespec, year2038.  Sort.
18280 2017-07-26  Jim Meyering  <meyering@fb.com>
18282         fprintftime: fix build-break caused by recent renaming
18283         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
18284         "strftime.c".
18285         * modules/fprintftime: Depend directly on nstrftime.
18287 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
18289         regex: work with GCC7's -Werror=implicit-fallthrough=
18290         * lib/regex_internal.h (FALLTHROUGH): New macro.
18291         * lib/regcomp.c (peek_token_bracket, parse_expression):
18292         * lib/regexec.c (check_node_accept): Use it.
18294 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
18296         fts: simplify fts_build
18297         * lib/fts.c (fts_build): Simplify, and be lazier about
18298         calling leaf_optimization.
18300         fts: three levels of leaf optimization
18301         * lib/fts.c (enum leaf_optimization): New type with three values.
18302         (S_MAGIC_AFS): New macro.  Sort them.
18303         (leaf_optimization): Rename from leaf_optimization_applies, and
18304         return enum leaf_optimization instead of bool.  All uses changed.
18305         Add cases for unknown type and for AFS.
18306         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
18308         fts: cache dirent_inode_sort_may_be_useful too
18309         * lib/fts.c (struct dev_type): New struct.
18310         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
18311         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
18312         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
18313         Now takes FTSENT const *, not int.  All uses changed.  Use
18314         filesystem_type to cache.
18315         (link_count_optimize_ok): Remove.  Caller changed to use
18316         leaf_optimization_applies, which now uses shared cache.
18318         fts: introduce MIN_DIR_NLINK
18319         * lib/fts.c (MIN_DIR_NLINK): New constant.
18320         Use it instead of 2, whenever we are talking about link counts.
18322         fts: nlink_t signedness fixups
18323         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
18324         so that root need not be a special case later.
18325         (fts_read): Remove now-redundant test for fts_level.
18326         Do not assume that nlink_t is signed.
18327         (fts_build): Remove useless decrement of nlinks.
18328         (fts_stat): Avoid unlikely signed integer overflow later, if
18329         nlink_t is signed.
18331         fts-tests: new module
18332         * modules/fts-tests, tests/test-fts.c: New files.
18334 2017-07-23  Bruno Haible  <bruno@clisp.org>
18336         Rename module 'strftime' to 'nstrftime'.
18337         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
18338         * lib/nstrftime.c: Renamed from lib/strftime.c.
18339         * modules/nstrftime: Renamed from modules/strftime.
18340         (Files, Makefile.am): Update.
18341         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
18342         Fix comment.
18343         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
18344         (Files, Makefile.am): Update.
18345         * modules/strftime: New file, an obsolete indirection.
18346         * doc/posix-functions/strftime.texi: Update reference.
18347         * config/srclist.txt: Update info.
18348         * NEWS: Mention the change.
18350 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
18352         malloca: Silence a warning from clang's memory sanitizer.
18353         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
18354         (freea): Use it.
18356 2017-07-18  Bruno Haible  <bruno@clisp.org>
18358         host-cpu-c-abi: Fix detection of MIPS ABI.
18359         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
18360         ABI, not the CPU instruction set.
18362 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
18364         explicit_bzero: new module
18365         The explicit_bzero function has been added to glibc.
18366         This module is intended to supports its use in GNU programs.
18367         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
18368         * m4/explicit_bzero.m4, modules/explicit_bzero:
18369         New files.
18370         * doc/gnulib.texi (Glibc string.h): Link to new doc.
18371         * lib/string.in.h (explicit_bzero): Declare.
18372         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
18373         * modules/string (string.h): Substitute its vars.
18375 2017-07-16  Bruno Haible  <bruno@clisp.org>
18377         threadlib: Support static linking.
18378         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
18379         set gl_cv_have_weak to 'no'.
18381 2017-07-16  Bruno Haible  <bruno@clisp.org>
18383         unicase/locale-language: Fix link dependencies.
18384         * modules/unicase/locale-language (Link): New section.
18385         * modules/unicase/locale-language-tests (Makefile.am): Link
18386         test-locale-language program with $(LIBTHREAD).
18388 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18390         sys_socket: Add support for OpenVMS.
18391         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
18392         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
18394 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18396         sys_resource: Add support for OpenVMS.
18397         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
18398         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
18400 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
18401             Bruno Haible  <bruno@clisp.org>
18403         math: Add support for OpenVMS.
18404         * lib/math.in.h [__VMS]: Include <fp.h>.
18405         * doc/posix-headers/math.texi: Mention OpenVMS issues.
18407 2017-07-15  Bruno Haible  <bruno@clisp.org>
18409         getdtablesize: Add minimal support for OpenVMS.
18410         Reported by John E. Malmberg <wb8tyw@qsl.net>.
18411         * modules/getdtablesize (Description): Fix.
18412         * lib/getdtablesize.c: Fix comment.
18413         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
18414         getdtablesize() function, even though the test fails.
18415         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
18416         limitation on OpenVMS.
18418 2017-07-13  Bruno Haible  <bruno@clisp.org>
18420         Revisit cross-compilation guesses.
18421         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
18423 2017-07-13  Bruno Haible  <bruno@clisp.org>
18425         Improve cross-compilation guesses for native Windows.
18426         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
18427         Windows.
18428         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
18429         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
18430         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18431         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
18432         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
18433         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
18434         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18435         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
18436         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18437         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
18438         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18439         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
18440         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
18441         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
18442         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
18443         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18444         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
18445         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18446         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18447         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18448         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
18449         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
18450         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
18451         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
18452         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
18453         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
18454         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
18455         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
18456         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18457         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
18458         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
18460         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
18461         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
18462         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
18463         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
18464         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
18465         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18466         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
18467         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18468         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18469         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18470         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
18471         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
18472         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
18473         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
18474         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
18475         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
18476         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
18477         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
18478         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
18479         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
18480         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
18481         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
18482         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
18483         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
18484         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
18485         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18486         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
18487         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18488         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18489         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
18490         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
18491         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
18492         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
18493         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18494         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
18495         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18496         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
18497         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
18498         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
18499         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18500         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18501         * m4/regex.m4 (gl_REGEX): Likewise.
18502         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
18503         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
18504         gl_FUNC_REMAINDERF_WORKS): Likewise.
18505         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
18506         gl_FUNC_REMAINDERL_WORKS): Likewise.
18507         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18508         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18509         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18510         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18511         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
18513         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18514         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18515         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
18516         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18517         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
18518         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
18519         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18520         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18521         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
18522         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18523         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18524         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18525         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18526         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18527         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18528         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18529         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18530         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
18531         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18532         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18533         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18534         Likewise.
18535         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18536         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
18537         Windows. Enable also on Autoconf 2.70.
18538         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18539         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18540         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18541         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
18542         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18543         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
18544         for native Windows.
18545         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18546         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
18548 2017-07-13  Bruno Haible  <bruno@clisp.org>
18550         Improve cross-compilation guesses for native Windows.
18551         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
18552         Windows.
18553         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
18554         memchr.m4.
18555         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18557 2017-07-13  Bruno Haible  <bruno@clisp.org>
18559         Improve cross-compilation guesses for native Windows.
18560         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
18561         native Windows.
18562         (gl_FUNC_FFLUSH): Update accordingly.
18563         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
18564         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18566 2017-07-11  Bruno Haible  <bruno@clisp.org>
18568         More systematic m4 quoting and indentation.
18569         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
18570         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18571         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
18572         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18573         * m4/host-os.m4 (gl_HOST_OS): Likewise.
18574         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
18575         gl_WINSIZE_IN_PTEM): Likewise.
18576         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
18577         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
18578         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18579         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
18580         Correct indentation.
18581         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
18582         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18583         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
18584         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18585         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
18586         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18588 2017-07-10  Bruno Haible  <bruno@clisp.org>
18590         round, roundf: Avoid compiler warning in configure test.
18591         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
18592         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18594 2017-07-10  Bruno Haible  <bruno@clisp.org>
18596         getlogin tests: Avoid #ifdefs when sharing code between modules.
18597         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
18598         * modules/getlogin-tests (Files): Likewise. Remove
18599         tests/test-getlogin_r.c.
18600         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
18601         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
18602         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
18603         getlogin().
18605 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
18607         getlogin: don’t assume one name per uid
18608         Problem reported by Wolfgang F. Muthmann (Bug#27640).
18609         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
18610         (ttyname): Remove test.
18611         * modules/getlogin_r-tests (ttyname): Remove test.
18612         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
18613         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
18614         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
18615         getlogin rather than getlogin_r.  This avoids code duplication.
18616         (main): Use isatty and fstat rather than ttyname and stat.
18617         Use getpwnam instead of getpwuid, to be portable to test platforms
18618         that have multiple login names for the same uid.
18620 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
18621             Bruno Haible  <bruno@clisp.org>
18623         glob: Fix more memory leaks.
18624         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
18625         returning.
18626         Reported by Tim Rühsen.
18628 2017-07-10  Bruno Haible  <bruno@clisp.org>
18630         Make sure $host and $host_os are defined when used.
18631         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
18632         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
18633         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18634         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18635         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18636         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18637         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18638         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
18639         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18640         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18641         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
18642         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
18643         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18644         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
18645         m4_ifdef block.
18647 2017-07-09  Bruno Haible  <bruno@clisp.org>
18649         *printf: Fix cross-compilation guess for Solaris.
18650         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
18651         2010-12-21.
18653 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
18654             Bruno Haible  <bruno@clisp.org>
18656         vasnprintf: port to macOS 10.13
18657         Problem reported by comex in:
18658         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
18659         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
18661 2017-07-06  Bruno Haible  <bruno@clisp.org>
18663         imaxdiv tests: Fix logic.
18664         * tests/test-imaxdiv.c (main): Use == instead of =.
18665         Reported by Coverity.
18667 2017-07-06  Bruno Haible  <bruno@clisp.org>
18669         uninorm/filter: Fix use-after-free bug.
18670         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
18671         sortbuf == filter->sortbuf invariant.
18672         Reported by Coverity.
18674 2017-07-06  Bruno Haible  <bruno@clisp.org>
18676         glob: Fix more memory leaks.
18677         * lib/glob.c (glob): Free dirname before returning.
18678         Reported by Coverity and Tim Rühsen.
18680 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18682         parse-datetime: fix uninit var bug
18683         Reported by Bruno Haible in:
18684         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
18685         * lib/parse-datetime.y (parse_datetime2): Do not use
18686         uninitialized.
18688 2017-07-05  Bruno Haible  <bruno@clisp.org>
18690         doc: Update for MSVC 14.
18691         * doc/posix-headers/*.texi: Add info about MSVC 14.
18692         * doc/posix-functions/*.texi: Likewise.
18693         * doc/pastposix-functions/*.texi: Likewise.
18694         * doc/glibc-headers/*.texi: Likewise.
18695         * doc/glibc-functions/*.texi: Likewise.
18697 2017-07-05  Bruno Haible  <bruno@clisp.org>
18699         sched: Fix build failure on native Windows (regression from 2017-06-19).
18700         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
18702 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
18704         stdioext: Port to OpenVMS.
18705         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
18706         * lib/fpending.c (fpending): Remove non-working VMS specific code.
18707         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
18708         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
18709         * lib/fpurge.c (fpurge): Likewise.
18710         * lib/freadable.c (freadable): Likewise.
18711         * lib/freadahead.c (freadahead): Likewise.
18712         * lib/freading.c (freading): Likewise.
18713         * lib/freadptr.c (freadptr): Likewise.
18714         * lib/freadseek.c (freadseek): Likewise.
18715         * lib/fseeko.c (fseeko): Likewise.
18716         * lib/fseterr.c (fseterr): Likewise.
18717         * lib/fwritable.c (fwriteable): Likewise.
18718         * lib/fwriting.c (fwriting): Likewise.
18720 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
18722         glob: Declare variables at the very start of their scope.
18723         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
18724         its separate scope, so the functions will compile on Haiku.
18726 2017-07-01  Bruno Haible  <bruno@clisp.org>
18728         logbl: Work around a glibc bug on PowerPC64LE.
18729         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
18730         numbers.
18731         * doc/posix-functions/logbl.texi: Update.
18733 2017-06-29  Bruno Haible  <bruno@clisp.org>
18735         stat, fstat: Compile stat-w32.c only on platforms that need it.
18736         Suggested by Paul Eggert.
18737         * modules/stat (configure.ac): Request stat-w32.o only on native
18738         Windows.
18739         * modules/fstat (configure.ac): Likewise.
18741 2017-06-25  Bruno Haible  <bruno@clisp.org>
18743         stat: Improve last change.
18744         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
18746 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
18748         stat: port to xlc 12.01
18749         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
18750         12.01 complains "Compilation unit is empty."
18752 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18754         xalloc-oversized: port to icc
18755         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
18756         __builtin_mul_overflow if ICC is defined, as this results in
18757         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
18758         20170213.
18760 2017-06-19  Bruno Haible  <bruno@clisp.org>
18762         classpath: Avoid including config.h twice, as it produces warnings.
18763         Reported by John E. Malmberg <wb8tyw@gmail.com>.
18764         * lib/classpath.h: Conditionalize the include of config.h.
18766 2017-06-19  Bruno Haible  <bruno@clisp.org>
18767             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
18769         sched: Fix compilation failure on OpenVMS.
18770         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
18771         test whether <pthread.h> exists and defines struct sched_param.
18772         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
18774 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18776         diffseq: port to GCC 7 with --enable-gcc-warnings
18777         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
18778         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
18779         not complain about big_snake being defined but not used.
18781 2017-06-15  Bruno Haible  <bruno@clisp.org>
18783         gettext-h: Update theoretical condition for use of variable size arrays.
18784         Reported by Paul Eggert.
18785         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
18786         to include the theoretical condition for availability of variable size
18787         arrays, if we could trust the value of __STDC_VERSION__.
18789 2017-06-12  Bruno Haible  <bruno@clisp.org>
18791         Relicense some modules under LGPLv2+.
18792         Daiki Ueno's approval is in
18793         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
18794         * modules/uniwidth/base (License): Change to LGPLv2+.
18795         * modules/uniwidth/width (License): Likewise.
18797 2017-06-11  Bruno Haible  <bruno@clisp.org>
18799         localename: Fix test failure on DragonFly BSD.
18800         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
18801         like FreeBSD.
18803 2017-06-11  Bruno Haible  <bruno@clisp.org>
18805         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
18806         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
18807         * lib/float.in.h: Likewise.
18808         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
18810 2017-06-11  Bruno Haible  <bruno@clisp.org>
18812         gnulib-tool: Clean up after autotools.
18813         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
18814         useless directory left over by the Autotools.
18816 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
18818         getopt-posix: port to glibc 2.25.90
18819         Problem reported by Daniel P. Berrange in:
18820         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
18821         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
18822         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
18823         #undef if __GETOPT_PREFIX is defined.
18825 2017-06-11  Bruno Haible  <bruno@clisp.org>
18827         strtod-obsolete: Fix license.
18828         * modules/strtod-obsolete (License): Change to LGPL.
18830 2017-06-10  Jim Meyering  <meyering@fb.com>
18832         maint: update to work with GCC7's -Werror=implicit-fallthrough=
18833         * lib/savewd.c (FALLTHROUGH): Define.
18834         (savewd_save, savewd_restore): Use this, rather than a comment,
18835         whenever one switch case falls through into the next.
18837 2017-06-08  Bruno Haible  <bruno@clisp.org>
18839         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
18840         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
18841         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
18842         case.
18844 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
18846         doc: remove robots, add prereqs
18847         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
18848         builds.  Simon's robot site does not seem to be up, so remove
18849         mentions of it for now.
18851 2017-06-08  Bruno Haible  <bruno@clisp.org>
18853         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
18854         * gnulib-tool (func_symlink_target): New function, extracted from
18855         func_symlink.
18856         (func_symlink, func_symlink_if_changed): Use it.
18858 2017-06-08  Bruno Haible  <bruno@clisp.org>
18860         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
18861         * gnulib-tool (func_ln_s): Determine cp_src correctly.
18863 2017-06-07  Bruno Haible  <bruno@clisp.org>
18865         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
18866         Reported by John E. Malmberg <wb8tyw@gmail.com> in
18867         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
18868         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
18869         override, pass 2 arguments to getcwd, not 3.
18871 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
18873         same-inode: port better to VMS 8.2 and later
18874         Problem reported by John E. Malmberg in:
18875         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
18876         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
18877         Use the usual POSIX definition.
18878         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
18880 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
18882         error: fix POSIX violation for va_end
18883         Problem reported by Bruno Haible in:
18884         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
18885         * lib/error.c (error_tail): Do not call va_end here.
18886         (error, error_at_line): Call it here instead.
18888 2017-05-28  Bruno Haible  <bruno@clisp.org>
18890         c-strtod: Make it usable in C++ mode.
18891         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
18893 2017-05-25  Jim Meyering  <meyering@fb.com>
18895         quotearg: fix compilation failure due to FALLTHROUGH misuse
18896         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
18897         macro back to /* fall through */ comment.  The macro can apply only
18898         to a following case statement.  Reported by Assaf Gordon.
18900 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
18902         intprops: port to recent icc
18903         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
18904         but does not support __builtin_add_overflow etc.
18905         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
18906         Define to 0.
18908 2017-05-23  Karl Berry  <karl@freefriends.org>
18910         * config/srclist.txt (iconv.m4): sync broken, comment out
18911         until (hopefully) the next gettext release.
18913 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
18915         Remove repeated words in comments.
18917 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
18919         fallthrough: reinstate a FALLTHROUGH instance in quotearg
18920         quotearg.c: Reinstate this instance which is significant
18921         when the if branch is not taken.
18923 2017-05-21  Bruno Haible  <bruno@clisp.org>
18925         gnulib-tool: Add options to create hard links.
18926         * gnulib-tool (func_usage): Document options --hardlink,
18927         --local-hardlink, --more-hardlinks.
18928         (func_symlink): Renamed from func_ln.
18929         (func_symlink_if_changed): Renamed from func_ln_if_changed.
18930         (func_hardlink): New function.
18931         (copymode, lcopymode): New variables.
18932         (symbolic, lsymbolic): Remove variables.
18933         (Options): Implement options --hardlink, --local-hardlink,
18934         --more-hardlinks.
18935         (func_should_link): Renamed from func_should_symlink. Set copyaction.
18936         (func_add_file, func_update_file): Update invocation of
18937         func_should_link. Invoke func_hardlink when appropriate.
18938         (func_import): Update comments.
18939         (func_create_testdir): Update invocation of func_should_link. Invoke
18940         func_hardlink when appropriate.
18941         Finally, invoke 'git update-index --refresh' to mitigate the effects of
18942         the hard links on git.
18944 2017-05-20  Bruno Haible  <bruno@clisp.org>
18946         argp: Simplify bit manipulation.
18947         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
18948         on a signed integer type.
18950 2017-05-20  Bruno Haible  <bruno@clisp.org>
18952         Avoid wrong configure results with gcc -fsanitize=address.
18953         This completes the work done on 2016-02-06 on this topic.
18954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
18955         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18957         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18958         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
18959         returning.
18960         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
18961         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
18962         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18963         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18964         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18965         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
18966         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
18967         free allocated memory before returning.
18968         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18969         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
18970         objects before returning.
18971         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
18972         returning.
18974 2017-05-20  Bruno Haible  <bruno@clisp.org>
18976         gnulib-tool: Don't create hard links between gnulib and its testdirs.
18977         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
18979 2017-05-20  Bruno Haible  <bruno@clisp.org>
18981         argp, tsearch tests: Fix file list.
18982         * modules/argp-tests (Files): Add tests/macros.h.
18983         * modules/tsearch-tests (Files): Likewise.
18985 2017-05-20  Bruno Haible  <bruno@clisp.org>
18987         getopt-posix tests: Remove redundant include.
18988         * tests/test-getopt.h: Don't include "macros.h". It's already included
18989         by tests/test-getopt-main.h.
18991 2017-05-19  Jim Meyering  <meyering@fb.com>
18993         dfa: two small simplifications
18994         * lib/dfa.c (build_state): Avoid repeating longer expressions.
18996 2017-05-18  Jim Meyering  <meyering@fb.com>
18998         fallthrough: update for GCC 7/8
18999         * lib/quotearg.c (FALLTHROUGH): New macro.
19000         Use it whenever one switch case falls through into the next,
19001         replacing "/* Fall through */" comments.  This exposed one
19002         instance of an unwarranted "fall through" comment: unwarranted
19003         because it preceded a "goto" label not a case statement.
19004         * lib/freopen-safer.c (freopen_safer): Likewise.
19005         * lib/fts.c (leaf_optimization_applies): Likewise.
19006         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
19007         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
19008         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
19009         tests/macros.h for the definition.
19010         * tests/test-argp.c (group1_parser): Likewise.
19011         * tests/test-getopt.h (getopt_loop): Likewise.
19013 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19015         argp: fix shift bug
19016         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
19017         behavior on shift overflow, caught by gcc -fsanitize=undefined.
19019         argp: fix pointer-subtraction bug
19020         * lib/argp-help.c (hol_append): Don’t subtract pointers to
19021         different arrays, as this can run afoul of -fcheck-pointer-bounds.
19022         See the thread containing Bruno Haible’s report in:
19023         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
19025 2017-05-19  Bruno Haible  <bruno@clisp.org>
19027         printf-posix tests: Avoid test failure with "gcc --coverage".
19028         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19029         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
19030         than 5000000.
19031         * tests/test-fprintf-posix2.c (main): Likewise.
19033 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19035         closeout: don’t close stderr when sanitizing
19036         * NEWS: Document this.
19037         * lib/closeout.c (__has_feature): New macro, if not already defined.
19038         (SANITIZE_ADDRESS): New constant.
19039         (close_stdout): Don’t close stderr if sanitizing addresses.
19041 2017-05-19  Bruno Haible  <bruno@clisp.org>
19043         get-rusage-data tests: Avoid failure on Linux/glibc.
19044         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
19045         on glibc systems.
19047 2017-05-18  Bruno Haible  <bruno@clisp.org>
19049         localename: Include necessary header files on Cygwin.
19050         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
19051         where NL_LOCALE_NAME is defined.
19053 2017-05-18  Bruno Haible  <bruno@clisp.org>
19055         gettext: Update macros from gettext git.
19056         * m4/intldir.m4: Require Autoconf >= 2.60.
19057         * m4/progtest.m4: Fix typos in copyright notice.
19059 2017-05-18  Bruno Haible  <bruno@clisp.org>
19061         copy-file tests: Fix link error (regression from 2017-05-01).
19062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19063         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
19064         $(LIB_CLOCK_GETTIME).
19066 2017-05-18  Bruno Haible  <bruno@clisp.org>
19068         unicase/special-casing: Fix incompatibility with gperf-3.0.4
19069         (regression from 2017-02-13).
19070         * lib/unicase/special-casing.in.h: Renamed from
19071         lib/unicase/special-casing.h.
19072         * modules/unicase/special-casing (Files): Add
19073         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
19074         (Makefile.am): Add rule for generating unicase/special-casing.h.
19075         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
19076         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
19077         not "special-casing.h".
19078         * lib/unicase/u*.c: Likewise.
19080 2017-05-17  Bruno Haible  <bruno@clisp.org>
19082         README: Don't ask people to read a TeXinfo file.
19083         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19084         * README: Tell people how to read the HTML formatted manual.
19086 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
19088         parse-datetime: Fix memleak
19089         * lib/parse-datetime.y (parse_datetime2): Cleanup on
19090         localtime_rz() failure.
19092 2017-05-16  Bruno Haible  <bruno@clisp.org>
19094         javacomp: Fix handle leak.
19095         Found by Coverity.
19096         * lib/javacomp.c (get_classfile_version): Close fd before returning.
19098 2017-05-16  Bruno Haible  <bruno@clisp.org>
19100         relocate: Make it easier to reclaim allocated memory.
19101         * lib/relocatable.h (relocate2): New declaration/macro.
19102         * lib/relocatable.c (relocate2): New function.
19103         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
19104         relocate2 function.
19105         * lib/localcharset.c (relocate2): Define fallback.
19106         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
19107         allocated memory.
19108         * lib/javaversion.c (relocate2): Define fallback.
19109         (javaexec_version): Invoke relocate2 instead of relocate. Free the
19110         allocated memory.
19112 2017-05-16  Bruno Haible  <bruno@clisp.org>
19114         relocate: Simplify EMX specific code.
19115         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
19116         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
19118 2017-05-16  Bruno Haible  <bruno@clisp.org>
19120         sigpipe tests: Fix file list.
19121         * modules/sigpipe-tests (Files): Add tests/macros.h.
19123 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19125         manywarnings: update for GCC 7
19126         * build-aux/gcc-warning.spec:
19127         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19128         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
19129         requires a non-comment fallthrough attribute.  This is a bit
19130         cleaner than the comment versions.
19131         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
19132         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
19133         Use it whenever one switch case falls through into the next.
19134         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
19135         Use FALLTHROUGH macro.
19137 2017-05-15  Bruno Haible  <bruno@clisp.org>
19139         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
19140         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
19141         @ALLOCA@, not @LTALLOCA@.
19143 2017-05-15  Bruno Haible  <bruno@clisp.org>
19145         sys_select: Avoid "was expanded before it was required" warning.
19146         * modules/sys_select (configure.ac): Require, not invoke,
19147         gl_HEADER_SYS_SELECT.
19149 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
19151         gnulib-tool: improve GNU Make debugging
19152         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
19153         Report autoconf diagnostics when it fails, in the output makefile.
19155 2017-05-14  Bruno Haible  <bruno@clisp.org>
19157         stat-time tests: Improve comment.
19158         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
19160 2017-05-14  Bruno Haible  <bruno@clisp.org>
19162         same-inode: Adapt for windows-stat-inodes.
19163         * lib/same-inode.h: Include <sys/types.h>.
19164         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
19165         * modules/same-inode (Depends-on): Add sys_types.
19167 2017-05-14  Bruno Haible  <bruno@clisp.org>
19169         windows-stat-inodes: New module.
19170         * m4/windows-stat-inodes.m4: New file.
19171         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
19172         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
19173         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
19174         (_GL_WINDOWS_STAT_INODES): New macro.
19175         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
19176         (GetFileInformationByHandleExFunc): New variable.
19177         (initialize): Initialize it.
19178         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
19179         st_ino appropriately.
19180         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
19181         a fallback, because it does not provide st_dev and st_ino values.
19182         * modules/fstat (Depends-on): Add 'verify'.
19183         * modules/windows-stat-inodes: New file.
19184         * doc/windows-stat-inodes.texi: New file.
19185         * doc/gnulib.texi: Include it.
19186         * doc/posix-headers/sys_stat.texi: Mention the new module.
19188 2017-05-14  Bruno Haible  <bruno@clisp.org>
19190         stat-time tests: Workaround for native Windows.
19191         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
19192         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
19193         New variables.
19194         (initialize_filenames): New function.
19195         (main): Invoke it.
19196         (cleanup, prepare_test): Update.
19198 2017-05-14  Bruno Haible  <bruno@clisp.org>
19200         stat-time: Adapt for windows-stat-timespec.
19201         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
19202         entire st_ctim field.
19204 2017-05-13  Jim Meyering  <meyering@fb.com>
19206         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
19207         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
19208         file that uses the assume macro, claiming that verify.h is unused.
19210 2017-05-13  Bruno Haible  <bruno@clisp.org>
19212         Use symbolic values for _WIN32_WINNT.
19213         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
19214         * lib/sethostname.c (_WIN32_WINNT): Likewise.
19216 2017-05-13  Bruno Haible  <bruno@clisp.org>
19218         year2038: New module.
19219         * m4/year2038.m4: New file.
19220         * modules/year2038: New file.
19221         * doc/year2038.texi: New file.
19222         * doc/gnulib.texi: Include it.
19224 2017-05-13  Bruno Haible  <bruno@clisp.org>
19226         largefile: Simplify.
19227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
19228         of _GL_WINDOWS_64_BIT_ST_SIZE.
19230 2017-05-13  Bruno Haible  <bruno@clisp.org>
19232         largefile: Improve and document.
19233         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
19234         the mingw headers already define 'stat' appropriately.
19235         * modules/largefile (Description): Clarify.
19236         * doc/largefile.texi: New file.
19237         * doc/gnulib.texi: Include it.
19238         * doc/posix-headers/sys_types.texi: Update.
19240 2017-05-13  Bruno Haible  <bruno@clisp.org>
19242         truncate: New module.
19243         * lib/unistd.in.h (truncate): New declaration.
19244         * lib/truncate.c: New file.
19245         * m4/truncate.m4: New file.
19246         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
19247         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
19248         REPLACE_TRUNCATE.
19249         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
19250         HAVE_TRUNCATE, REPLACE_TRUNCATE.
19251         * modules/truncate: New file.
19252         * tests/test-unistd-c++.cc (truncate): Test signature.
19253         * doc/posix-functions/truncate.texi: Mention the new module.
19255         * tests/test-truncate.c: New file.
19256         * modules/truncate-tests: New file.
19258 2017-05-13  Bruno Haible  <bruno@clisp.org>
19260         windows-stat-timespec: New module.
19261         * modules/windows-stat-timespec: New file.
19262         * m4/windows-stat-timespec.m4: New file.
19263         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
19264         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
19265         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
19266         fields st_atim, st_mtim, st_ctim.
19267         (st_atime, st_mtime, st_ctime): Define as macros.
19268         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
19269         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
19270         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
19271         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
19272         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
19273         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
19274         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19275         FILETIME to 'struct timespec', not 'time_t'.
19276         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
19277         FILETIME to 'struct timespec', not 'time_t'.
19278         * lib/stat-time.h (STAT_TIMESPEC): Define also if
19279         _GL_WINDOWS_STAT_TIMESPEC.
19280         * doc/windows-stat-timespec.texi: New file.
19281         * doc/gnulib.texi: Include it.
19283 2017-05-13  Bruno Haible  <bruno@clisp.org>
19285         windows-stat-override: New module.
19286         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
19287         definition. Define GNULIB_defined_struct_stat.
19288         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
19289         link error if this symbol is used and the corresponding module is not
19290         in use.
19291         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
19292         GNULIB_OVERRIDES_STRUCT_STAT.
19293         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
19294         GNULIB_OVERRIDES_STRUCT_STAT.
19295         * modules/sys_stat (Makefile.am): Substitute
19296         GNULIB_OVERRIDES_STRUCT_STAT.
19297         * modules/windows-stat-override: New file.
19299 2017-05-13  Bruno Haible  <bruno@clisp.org>
19301         fstat: Fix module dependency conditions.
19302         * modules/fstat (Depends-on): Fix typo.
19304 2017-05-13  Bruno Haible  <bruno@clisp.org>
19306         stat, fstat: Complete removal of old native Windows code.
19307         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
19308         * lib/fstat.c: Likewise.
19309         * lib/stat-w32.c: Likewise.
19311 2017-05-13  Bruno Haible  <bruno@clisp.org>
19313         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
19314         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
19316 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19318         getopt-posix: port to mingw
19319         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
19320         Problem reported by Daniel P. Berrage in:
19321         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
19323 2017-05-11  Bruno Haible  <bruno@clisp.org>
19325         gettimeofday: Increase precision on mingw.
19326         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
19327         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
19328         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
19329         GetSystemTimePreciseAsFileTime based implementation always.
19330         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
19331         mingw.
19333 2017-05-11  Bruno Haible  <bruno@clisp.org>
19335         poll: Fix confusion between SOCKETs and FDs on native Windows.
19336         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
19337         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
19339 2017-05-11  Bruno Haible  <bruno@clisp.org>
19341         doc: Clarify doc about socket functions on native Windows.
19342         This reworks doc that was added on 2008-09-29.
19343         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
19344         clearer wording.
19345         * doc/posix-functions/accept.texi: Use clearer wording.
19346         * doc/posix-functions/bind.texi: Likewise.
19347         * doc/posix-functions/connect.texi: Likewise.
19348         * doc/posix-functions/getpeername.texi: Likewise.
19349         * doc/posix-functions/getsockname.texi: Likewise.
19350         * doc/posix-functions/getsockopt.texi: Likewise.
19351         * doc/posix-functions/ioctl.texi: Likewise.
19352         * doc/posix-functions/listen.texi: Likewise.
19353         * doc/posix-functions/recv.texi: Likewise.
19354         * doc/posix-functions/recvfrom.texi: Likewise.
19355         * doc/posix-functions/send.texi: Likewise.
19356         * doc/posix-functions/sendto.texi: Likewise.
19357         * doc/posix-functions/setsockopt.texi: Likewise.
19358         * doc/posix-functions/shutdown.texi: Likewise.
19359         * doc/posix-functions/socket.texi: Likewise.
19361 2017-05-10  Bruno Haible  <bruno@clisp.org>
19363         poll: Fix link error on native Windows.
19364         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
19366 2017-05-10  Bruno Haible  <bruno@clisp.org>
19368         time: Fix missing initialization of HAVE_TIMEZONE_T.
19369         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
19370         here...
19371         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
19372         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
19373         gl_HEADER_SYS_TIME_H_DEFAULTS.
19374         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
19375         (configure.ac): Remove useless quoting.
19377 2017-05-10  Bruno Haible  <bruno@clisp.org>
19379         Implement a way to opt out from MSVC support, part 2.
19380         * modules/msvc-inval (Include): Document recommended idiom.
19381         * modules/msvc-nothrow (Include): Likewise.
19383         Implement a way to opt out from MSVC support.
19384         This is useful for Emacs.
19385         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
19386         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
19387         * lib/error.c: Likewise.
19388         * lib/fcntl.c: Likewise.
19389         * lib/flock.c: Likewise.
19390         * lib/fstat.c: Likewise.
19391         * lib/fsync.c: Likewise.
19392         * lib/ioctl.c: Likewise.
19393         * lib/isapipe.c: Likewise.
19394         * lib/lseek.c: Likewise.
19395         * lib/nonblocking.c: Likewise.
19396         * lib/poll.c: Likewise.
19397         * lib/select.c: Likewise.
19398         * lib/sockets.h: Likewise.
19399         * lib/sockets.c: Likewise.
19400         * lib/stdio-read.c: Likewise.
19401         * lib/stdio-write.c: Likewise.
19402         * lib/utimens.c: Likewise.
19403         * lib/w32sock.h: Likewise.
19404         * lib/w32spawn.h: Likewise.
19405         * tests/test-cloexec.c: Likewise.
19406         * tests/test-dup-safer.c: Likewise.
19407         * tests/test-dup2.c: Likewise.
19408         * tests/test-dup3.c: Likewise.
19409         * tests/test-fcntl.c: Likewise.
19410         * tests/test-pipe.c: Likewise.
19411         * tests/test-pipe2.c: Likewise.
19412         * lib/ftruncate.c: Likewise.
19413         (chsize_nothrow): Renamed from chsize.
19414         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
19415         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19416         * lib/close.c: Likewise.
19417         * lib/dup.c: Likewise.
19418         * lib/fclose.c: Likewise.
19419         * lib/raise.c: Likewise.
19420         * tests/test-fgetc.c: Likewise.
19421         * tests/test-fputc.c: Likewise.
19422         * tests/test-fread.c: Likewise.
19423         * tests/test-fwrite.c: Likewise.
19424         * lib/getdtablesize.c: Likewise.
19425         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
19426         * lib/isatty.c: Don't include msvc-inval.h if
19427         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
19428         Include <io.h> as an alternative to msvc-nothrow.h.
19429         * lib/read.c: Likewise.
19430         * lib/write.c: Likewise.
19431         * lib/dup2.c: Likewise.
19432         (dup2_nothrow): New function.
19433         (ms_windows_dup2): Use it.
19434         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
19435         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
19436         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19437         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
19438         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
19439         * m4/read.m4 (gl_FUNC_READ): Likewise.
19440         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
19441         * doc/windows-without-msvc.texi: New file.
19442         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
19443         section.
19445 2017-05-10  Bruno Haible  <bruno@clisp.org>
19447         wait-process: Adjust native Windows support.
19448         * lib/wait-process.c: Use the usual condition for recognizing a native
19449         Windows platform.
19451 2017-05-10  Bruno Haible  <bruno@clisp.org>
19453         doc: New chapter "Native Windows Support".
19454         * doc/gnulib.texi (Native Windows Support): New chapter.
19455         * doc/windows-libtool.texi: Small wording changes.
19456         * doc/windows-sockets.texi: Small wording and formatting changes.
19458 2017-05-10  Bruno Haible  <bruno@clisp.org>
19460         doc: Move section "Library version handling".
19461         * doc/gnulib.texi: Move section "Library version handling"
19462         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
19464 2017-05-10  Bruno Haible  <bruno@clisp.org>
19466         doc: Move section "Running self-tests under valgrind".
19467         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
19468         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
19470 2017-05-10  Bruno Haible  <bruno@clisp.org>
19472         doc: New chapter "Build Infrastructure Modules".
19473         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
19475 2017-05-10  Bruno Haible  <bruno@clisp.org>
19477         Prepare for reordering sections in the manual.
19478         * doc/gnulib.texi: Move several sections to separate files. Include
19479         these files.
19480         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
19481         * doc/obsolete.texi: Likewise.
19482         * doc/extra-tests.texi: Likewise.
19483         * doc/transversal.texi: Likewise.
19484         * doc/namespace.texi: Likewise.
19485         * doc/check-version.texi: Likewise.
19486         * doc/windows-sockets.texi: Likewise.
19487         * doc/windows-libtool.texi: Likewise.
19488         * doc/licenses-texi.texi: Likewise.
19489         * doc/build-automation.texi: Likewise.
19490         * doc/c-locale.texi: Likewise.
19492 2017-05-10  Bruno Haible  <bruno@clisp.org>
19494         Fix instructions how to update manual on www.gnu.org.
19495         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
19497 2017-05-09  Bruno Haible  <bruno@clisp.org>
19499         tzset: Expand comment about TZ problem on native Windows.
19500         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
19501         Paul Eggert.
19502         * lib/ctime.c (rpl_ctime): Likewise.
19503         * lib/localtime.c (rpl_localtime): Likewise.
19504         * lib/mktime.c (mktime): Likewise.
19505         * lib/strftime-fixes.c (rpl_strftime): Likewise.
19506         * lib/wcsftime.c (rpl_wcsftime): Likewise.
19508 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19510         intprops: don’t depend on ‘verify’
19511         Problem reported by Ævar Arnfjörð Bjarmason in:
19512         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
19513         * lib/intprops.h: Do not include verify.h, and move compile-time
19514         checks from here ...
19515         * tests/test-intprops.c (main): ... to here, if they’re not here
19516         already.  Check widths of other standard integer types.
19517         * modules/intprops (Depends-on): Remove ‘verify’.
19519 2017-05-07  Bruno Haible  <bruno@clisp.org>
19521         utimens: On native Windows, support 100ns resolution also if fd < 0.
19522         * lib/utime.in.h: Include <time.h>.
19523         (_gl_utimens_windows): New declaration.
19524         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
19525         (utime): Invoke it.
19526         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
19527         instead of utime.
19528         * modules/utime (Depends-on): Add 'time'.
19530 2017-05-07  Bruno Haible  <bruno@clisp.org>
19532         utimens: Improve error code on native Windows.
19533         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
19534         error code EACCES, not EINVAL.
19536 2017-05-07  Bruno Haible  <bruno@clisp.org>
19538         utime: Handle more Windows error codes.
19539         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
19540         Based on explanations by Billy O'Neal.
19542 2017-05-05  Bruno Haible  <bruno@clisp.org>
19544         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
19545         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
19546         union.
19547         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
19548         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
19549         value of cipher->IV.
19551 2017-05-05  Bruno Haible  <bruno@clisp.org>
19553         wctype-h-c++-tests: Update.
19554         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
19556 2017-05-05  Bruno Haible  <bruno@clisp.org>
19558         wchar-c++-tests: Update.
19559         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
19561 2017-05-05  Bruno Haible  <bruno@clisp.org>
19563         utime-h-c++-tests: New module.
19564         * tests/test-utime-h-c++.cc: New file.
19565         (utime): Declare, missing since 2017-04-30.
19566         * modules/utime-h-c++-tests: New file.
19568 2017-05-05  Bruno Haible  <bruno@clisp.org>
19570         unistd-c++-tests: Update.
19571         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
19572         (read): Declare, missing since 2011-04-15.
19573         (sethostname): Declare, missing since 2011-12-03.
19575 2017-05-05  Bruno Haible  <bruno@clisp.org>
19577         time-c++-tests: Update.
19578         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
19579         (localtime, gmtime): Declare, missing since 2017-04-30.
19580         (ctime): Declare, missing since 2017-04-30.
19581         (strftime): Declare, missing since 2017-04-30.
19582         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
19583         2015-07-24.
19585 2017-05-05  Bruno Haible  <bruno@clisp.org>
19587         sys_resource-c++-tests: New module.
19588         * tests/test-sys_resource-c++.cc: New file.
19589         (getrusage): Declare, missing since 2012-04-13.
19590         * modules/sys_resource-c++-tests: New file.
19592 2017-05-05  Bruno Haible  <bruno@clisp.org>
19594         strings-c++-tests: New module.
19595         * tests/test-strings-c++.cc: New file.
19596         (ffs): Declare, missing since 2011-07-12.
19597         * modules/strings-c++-tests: New file.
19599 2017-05-05  Bruno Haible  <bruno@clisp.org>
19601         string-c++-tests: Update.
19602         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
19603         (ffsll): Declare, missing since 2011-07-15.
19605 2017-05-05  Bruno Haible  <bruno@clisp.org>
19607         stdlib-c++-tests: Update.
19608         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
19609         2011-10-18.
19610         (ptsname_r): Declare, missing since 2011-11-07.
19611         (qsort_r): Declare, missing since 2014-08-29.
19612         (random, srandom, initstate, setstate): Declare, missing since
19613         2012-01-14.
19614         (secure_getenv): Declare, missing since 2013-02-05.
19616 2017-05-05  Bruno Haible  <bruno@clisp.org>
19618         stdio-c++-tests: Update.
19619         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
19621 2017-05-05  Bruno Haible  <bruno@clisp.org>
19623         signal-h-c++-tests: Update.
19624         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
19626 2017-05-05  Bruno Haible  <bruno@clisp.org>
19628         math-c++-tests: Update.
19629         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
19630         (fma): Declare, missing since 2011-10-17.
19631         (fmal): Declare, missing since 2011-10-17.
19633 2017-05-05  Bruno Haible  <bruno@clisp.org>
19635         locale-c++-tests: Update.
19636         * tests/test-locale-c++.cc (localeconv): Declare, missing since
19637         2012-03-25.
19639 2017-05-05  Bruno Haible  <bruno@clisp.org>
19641         inttypes-c++-tests: New module.
19642         * tests/test-inttypes-c++.cc: New file.
19643         (strtoimax): Declare, missing since 2012-01-05.
19644         (strtoumax): Declare, missing since 2012-01-05.
19645         * modules/inttypes-c++-tests: New file.
19647 2017-05-05  Bruno Haible  <bruno@clisp.org>
19649         dirent-c++-tests: Update.
19650         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
19651         (rewinddir): Declare, missing since 2011-09-13.
19652         (dirfd): Declare, missing since 2010-03-08.
19654 2017-05-04  Bruno Haible  <bruno@clisp.org>
19656         argp: Fix mistake in 2017-04-23 commit.
19657         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
19658         assume that strerror_r returns 'int', not 'char *'.
19660 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
19662         argp: Fix typo.
19663         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
19665 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
19667         utimens: port to Emacs + MS-Windows
19668         Skip the new MS-Windows-specific code if Emacs.
19669         * lib/utimens.c [EMACS_CONFIGUATION]:
19670         Avoid new MS-Windows-specific code.
19671         (USE_SETFILETIME): New macro.
19672         (fdutimens): Use it.
19674 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
19676         tzset: update doc for TZ problems on MS-Windows
19677         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
19678         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
19679         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
19680         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
19681         * doc/posix-functions/wcsftime.texi:
19682         Mention some issues with TZ under MS-Windows.
19684 2017-05-01  Bruno Haible  <bruno@clisp.org>
19686         copy-file: Fix build error on mingw.
19687         * modules/copy-file (Depends-on): Add 'close'.
19689 2017-05-01  Bruno Haible  <bruno@clisp.org>
19691         tzset: Work around TZ problem on native Windows.
19692         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
19693         Windows, set REPLACE_TZSET to 1.
19694         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
19695         invoke '_tzset' instead of 'tzset'.
19696         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
19698         * modules/time_rz (Depends-on): Add tzset.
19699         * lib/time_rz.c (tzset): Remove fallback definition.
19700         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
19702 2017-05-01  Bruno Haible  <bruno@clisp.org>
19704         mktime: Fix dependencies.
19705         * modules/mktime (Depends-on): Add 'time'.
19707 2017-05-01  Bruno Haible  <bruno@clisp.org>
19709         New module 'localtime-buffer', split off from module 'gettimeofday'.
19710         * lib/localtime-buffer.h: New file.
19711         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
19712         * lib/time.in.h (tzset): New declaration.
19713         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
19714         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
19715         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
19716         moved to lib/localtime-buffer.c or lib/tzset.c.
19717         * m4/localtime-buffer.m4: New file.
19718         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
19719         HAVE_TZSET, REPLACE_TZSET.
19720         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
19721         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
19722         gl_LOCALTIME_BUFFER_NEEDED.
19723         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
19724         since 2007-01-18.
19725         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
19726         tzset.
19727         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
19728         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
19729         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
19730         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
19731         * modules/localtime-buffer: New file.
19732         * modules/time (Depends-on): Remove 'gettimeofday'.
19733         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
19734         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
19735         * modules/tzset (Description): Enable hyperlink to POSIX spec.
19736         (Files): Add lib/tzset.c.
19737         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
19738         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
19739         gl_TIME_MODULE_INDICATOR.
19740         * modules/gettimeofday (Depends-on): Add localtime-buffer.
19742 2017-05-01  Bruno Haible  <bruno@clisp.org>
19744         copy-file: Preserve sub-second time stamps.
19745         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
19746         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
19747         transport the time stamps from the original file to the destination
19748         file.
19749         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
19750         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
19751         utime-h.
19753 2017-05-01  Bruno Haible  <bruno@clisp.org>
19755         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
19756         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
19757         also on MSVC.
19758         Reported by Eli Zaretskii <eliz@gnu.org>.
19760 2017-05-01  Bruno Haible  <bruno@clisp.org>
19762         wchar: Fix compilation error with the original mingw.org mingw.
19763         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
19764         <stddef.h> instead.
19765         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
19766         gl_WCTYPE_H.
19767         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
19768         gl_TYPE_WINT_T_PREREQ instead.
19769         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
19770         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
19771         Reported by Eli Zaretskii <eliz@gnu.org>.
19773 2017-04-30  Bruno Haible  <bruno@clisp.org>
19775         utimecmp: Add support for native Windows.
19776         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
19778 2017-04-30  Bruno Haible  <bruno@clisp.org>
19780         utimens: Add support for native Windows.
19781         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
19782         (fdutimens): Provide a native Windows implementation, like utime.c with
19783         added tv_nsec support.
19784         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
19785         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
19787 2017-04-30  Bruno Haible  <bruno@clisp.org>
19789         wcsftime: New module.
19790         * lib/wchar.in.h (wcsftime): New declaration.
19791         * lib/wcsftime.c: New file.
19792         * m4/wcsftime.m4: New file.
19793         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
19794         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
19795         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
19797         HAVE_WCSFTIME, REPLACE_WCSFTIME.
19798         * modules/wcsftime: New file.
19799         * doc/posix-functions/wcsftime.texi: Mention the new module.
19801 2017-04-30  Bruno Haible  <bruno@clisp.org>
19803         strftime-fixes: New module.
19804         * lib/time.in.h (strftime): New declaration.
19805         * lib/strftime-fixes.c: New file.
19806         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
19807         (gl_FUNC_STRFTIME): Remove macro.
19808         * m4/strftime-fixes.m4: New file.
19809         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
19810         REPLACE_STRFTIME.
19811         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
19812         REPLACE_STRFTIME.
19813         * modules/strftime-fixes: New file.
19814         * doc/posix-functions/strftime.texi: Mention the new module.
19816 2017-04-30  Bruno Haible  <bruno@clisp.org>
19818         mktime: Work around TZ problem on native Windows.
19819         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
19820         from the native Windows workaround.
19821         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
19822         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
19823         'guessing no'.
19824         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
19825         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
19826         NEED_MKTIME_WINDOWS.
19827         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
19828         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
19829         NEED_MKTIME_INTERNAL.
19830         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
19831         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
19832         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
19833         not REPLACE_MKTIME.
19834         * doc/posix-functions/mktime.texi: Mention the native Windows
19835         workaround.
19837 2017-04-30  Bruno Haible  <bruno@clisp.org>
19839         localtime: New module.
19840         * lib/time.in.h (localtime): Declare also if requested by module
19841         'localtime'.
19842         * lib/localtime.c: New file.
19843         * m4/localtime.m4: New file.
19844         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
19845         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
19846         * modules/localtime: New file.
19847         * doc/posix-functions/localtime.texi: Mention the new module.
19849 2017-04-30  Bruno Haible  <bruno@clisp.org>
19851         ctime: New module.
19852         * lib/time.in.h (ctime): New declaration.
19853         * lib/ctime.c: New file.
19854         * m4/ctime.m4: New file.
19855         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
19856         REPLACE_CTIME.
19857         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
19858         * modules/ctime: New file.
19859         * doc/posix-functions/ctime.texi: Mention the new module.
19861 2017-04-30  Bruno Haible  <bruno@clisp.org>
19863         gettimeofday: Provide higher resolution on native Windows.
19864         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
19865         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
19866         (initialize): Initialize it.
19867         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
19868         'struct timeval'. Don't use _ftime().
19869         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
19870         <sys/timeb.h> and _ftime.
19872 2017-04-30  Bruno Haible  <bruno@clisp.org>
19874         Document the problem with the Cygwin environment variable TZ.
19875         * doc/posix-functions/tzset.texi: Add note about TZ.
19876         * doc/posix-functions/ctime.texi: Likewise.
19877         * doc/posix-functions/localtime.texi: Likewise.
19878         * doc/posix-functions/mktime.texi: Likewise.
19879         * doc/posix-functions/strftime.texi: Likewise.
19880         * doc/posix-functions/wcsftime.texi: Likewise.
19881         * doc/pastposix-functions/ftime.texi: Likewise.
19883 2017-04-30  Bruno Haible  <bruno@clisp.org>
19885         utime-tests: New module.
19886         * tests/test-utime.c: New file, based on tests/test-utimens.h.
19887         * tests/test-utimens-common.h: Include <sys/stat.h>.
19888         * modules/utime-tests: New file.
19890 2017-04-29  Bruno Haible  <bruno@clisp.org>
19892         utime: New module.
19893         * lib/utime.in.h: Add comment for snippets.
19894         (utime): New declaration.
19895         * lib/utime.c: New file.
19896         * m4/utime.m4: New file.
19897         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
19898         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
19899         REPLACE_UTIME.
19900         * modules/utime-h (Depends-on): Add snippets.
19901         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
19902         Insert snippets.
19903         * modules/utime: New file.
19904         * doc/posix-functions/utime.texi: Mention the new module.
19906 2017-04-29  Bruno Haible  <bruno@clisp.org>
19908         utime-h: Modernize handling of 'struct utimbuf'.
19909         * lib/utime.in.h: Include next <utime.h> if it exists.
19910         (utimbuf): Define to _utimbuf on native Windows.
19911         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
19912         Set UTIME_H on native Windows.
19913         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
19914         * modules/utime-h (Depends-on): Add include_next.
19915         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
19916         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
19918         * lib/utimens.c (utimbuf): Remove fallback definition.
19919         * m4/utimens.m4 (gl_UTIMENS): Don't require
19920         gl_CHECK_TYPE_STRUCT_UTIMBUF.
19921         * m4/utimbuf.m4: Remove file.
19922         * modules/utimens (Files): Remove m4/utimbuf.m4.
19924 2017-04-29  Bruno Haible  <bruno@clisp.org>
19926         Make use of module 'utime-h'.
19927         * modules/copy-file (Depends-on): Add utime-h.
19928         * lib/copy-file.c: Assume that <utime.h> exists.
19929         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
19931         * modules/utimens (Depends-on): Add utime-h.
19932         * lib/utimens.c: Assume that <utime.h> exists.
19934 2017-04-29  Bruno Haible  <bruno@clisp.org>
19936         utime-h: New module.
19937         * m4/utime_h.m4: New file.
19938         * lib/utime.in.h: New file.
19939         * modules/utime-h: New file.
19940         * doc/posix-headers/utime.texi: Mention the new module.
19942         * tests/test-utime-h.c: New file.
19943         * modules/utime-h-tests: New file.
19945 2017-04-30  Bruno Haible  <bruno@clisp.org>
19947         Fix a few typos.
19948         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
19949         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
19950         * doc/posix-functions/fstat.texi: Fix a plural typo.
19951         * doc/posix-functions/stat.texi: Likewise.
19952         * m4/include_next.m4: Update comments.
19954 2017-04-29  Bruno Haible  <bruno@clisp.org>
19956         error: Fix mistake in 2017-04-23 commit.
19957         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
19958         assume that strerror_r returns 'int', not 'char *'.
19960 2017-04-29  Bruno Haible  <bruno@clisp.org>
19962         stat: Fix time_t values and other problems on native Windows platforms.
19963         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
19964         implementations of stat().
19965         * lib/stat.c: Include filename.h instead of dosname.h. Include
19966         malloca.h, stat-w32.h.
19967         (is_unc_root): New function.
19968         (rpl_stat): New implementation for native Windows. Remove
19969         REPLACE_FUNC_STAT_DIR code.
19970         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
19971         Don't define REPLACE_FUNC_STAT_DIR.
19972         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
19973         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
19974         (Depends-on): Remove dosname. Add filename, malloca.
19975         (configure.ac): Also compile lib/stat-w32.c.
19977 2017-04-29  Bruno Haible  <bruno@clisp.org>
19979         fstat: Fix time_t values on native Windows platforms.
19980         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
19981         * lib/stat-w32.h: New file.
19982         * lib/stat-w32.c: New file.
19983         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
19984         stat-w32.h instead.
19985         (fstat_nothrow): Remove function.
19986         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
19987         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
19988         always.
19989         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
19990         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
19991         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
19992         (configure.ac): Also compile lib/stat-w32.c.
19994 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19996         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
19997         Problem reported by Assaf Gordon and Gavin Smith in:
19998         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
19999         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
20000         #define this, too.
20002 2017-04-29  Bruno Haible  <bruno@clisp.org>
20004         strerror_r-posix: Fixes for MSVC 14.
20005         * lib/strerror_r.c: Include <stdarg.h>.
20006         (strerror_r): Provide error messages for errno values 100...140.
20007         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
20009 2017-04-28  Bruno Haible  <bruno@clisp.org>
20011         noreturn: New module.
20012         * lib/noreturn.h: New file.
20013         * modules/noreturn: New file.
20014         * tests/test-noreturn.c: New file.
20015         * modules/noreturn-tests: New file.
20016         * tests/test-noreturn-c++.cc: New file.
20017         * modules/noreturn-c++-tests: New file.
20019 2017-04-27  Bruno Haible  <bruno@clisp.org>
20021         wctype-h: Fix compilation error with the original mingw.org mingw.
20022         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
20023         HAVE_CRTDEFS_H.
20024         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
20025         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20026         <stddef.h> instead.
20027         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
20029 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20031         nap.h: Fix compilation on non windows platforms
20032         * tests/nap.h: Move misplaced endif.
20034 2017-04-26  Pádraig Brady  <P@draigBrady.com>
20035         and Paul Eggert  <eggert@cs.ucla.edu>
20037         time_rz: fix heap buffer overflow vulnerability
20038         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
20039         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
20040         whether there is enough buffer space available, thus avoiding
20041         the problematic promotion of signed to unsigned causing an invalid
20042         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
20043         the start of the buffer.
20044         * tests/test-parse-datetime.c (main): Add a test case written by
20045         Paul Eggert, which overwrites enough of the heap so that
20046         standard glibc will fail with "free(): invalid pointer"
20047         without the patch applied.
20049 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20051         xalloc: add missing integer overflow check
20052         * lib/xalloc.h (x2nrealloc): Also check for multiplication
20053         overflow when P is null.
20055 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20057         parse-datetime: make it standalone
20058         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
20059         (_GL_ATTRIBUTE_FORMAT): New macro.
20060         These are needed to get './gnulib-tool --test parse-datetime' to work.
20062 2017-04-23  Bruno Haible  <bruno@clisp.org>
20064         nap.h: Port to native Windows.
20065         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
20066         use nap_fd instead. On native Windows, close and reopen nap_fd.
20067         (nap_works): Don't compare the ctimes, because on native Windows, these
20068         are the creation times.
20069         (nap): Update.
20071 2017-04-23  Bruno Haible  <bruno@clisp.org>
20073         nap.h: Fix logic.
20074         * tests/nap.h (nap): Avoid signed integer overflow in loop.
20076 2017-04-23  Bruno Haible  <bruno@clisp.org>
20078         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
20079         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
20080         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
20081         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
20082         * lib/argp-help.c (__argp_failure): Likewise.
20084 2017-04-23  Bruno Haible  <bruno@clisp.org>
20086         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
20087         * m4/strerror_r.m4: Revert changes since 2016-10-16.
20088         * lib/strerror_r.c: Likewise.
20090 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
20092         Target a C99 subset, not a C89 subset
20093         For many years Gnulib has targeted C89 and has resisted using C99
20094         features, as some Gnulib-using programs still wanted to target
20095         C89.  As this no longer seems to be the case, relax the porting
20096         requirements to allow some C99 features.  This is merely a change
20097         to the documentation, to give other Gnulib developers a chance to
20098         weigh in on the topic.
20099         * doc/extern-inline.texi (extern inline):
20100         * doc/gnulib-readme.texi (Portability guidelines):
20101         * doc/gnulib-tool.texi (Initial import):
20102         * doc/gnulib.texi (Header files):
20103         Modernize to talk about C99 and C11 instead of C89 and C99.
20104         * doc/gnulib-readme.texi (Portability guidelines):
20105         Now a section, not merely a subsection, so that it
20106         can be split up.  Modernize a bit.
20107         (C language versions, C99 features assumed)
20108         (C99 features avoided):
20109         New sections.
20111 2017-04-23  Bruno Haible  <bruno@clisp.org>
20113         doc: New section "Modules that modify the way other modules work".
20114         * doc/gnulib.texi (Modules that modify the way other modules work): New
20115         section.
20117 2017-04-23  Bruno Haible  <bruno@clisp.org>
20119         stat-time: Update comments.
20120         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
20121         * tests/test-utimens-common.h: Add reference regarding st_ctime on
20122         Windows.
20124 2017-04-01  Bruno Haible  <bruno@clisp.org>
20126         glob: Fix more memory leaks.
20127         * lib/glob.c (glob): Free allocated memory before returning.
20128         Reported by Coverity via Tim Rühsen.
20130 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20132         poll: improve fast check for out-of-range NFD
20133         * lib/poll.c: Do not include intprops.h.
20134         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
20135         * modules/poll (Depends-on): Remove intprops.
20137         ftoastr: cite a newer paper
20138         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
20139         instead of Loitsch 2010.
20141 2017-04-22  Bruno Haible  <bruno@clisp.org>
20143         poll: Enable argument check also in the Windows implementation.
20144         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
20145         Reported by Paul Eggert.
20147 2017-04-22  Bruno Haible  <bruno@clisp.org>
20149         getlogin_r: Work around bug in Mac OS X 10.12.
20150         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
20151         bug.
20152         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
20153         given size minus 1, call getlogin_r a second time, on a larger buffer.
20154         * modules/getlogin_r (Depends-on): Add malloca.
20155         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
20157 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20159         parse-datetime: fix %z and prefer signed int
20160         %z problem reported by Pádraig Brady in:
20161         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
20162         While fixing it, I decided to prefer signed ints to size_t, as
20163         they are less error-prone (e.g., ubsan catches overflow).
20164         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
20165         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
20166         counts, since signed integers make for better debugging.
20167         (date): Don’t assume %z works in printf formats.
20168         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
20169         sizes of buffers known to be small, e.g., because we’re using snprintf.
20170         (parse_datetime2): Simplify call to debug_mktime_not_ok.
20172 2017-04-22  Bruno Haible  <bruno@clisp.org>
20174         *printf: Work around rounding bug on Mac OS X.
20175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
20176         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
20177         Mac OS X and FreeBSD.
20178         * doc/glibc-functions/*printf.texi: Likewise.
20180 2017-04-22  Bruno Haible  <bruno@clisp.org>
20182         vasnprintf tests: Avoid warnings.
20183         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
20184         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
20185         test.
20187 2017-04-22  Bruno Haible  <bruno@clisp.org>
20189         sys_file tests: Avoid warning.
20190         * tests/test-sys_file.c (main): Add a default clause to the switch
20191         statement.
20193 2017-04-22  Bruno Haible  <bruno@clisp.org>
20195         sethostname: Update doc.
20196         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
20197         Mac OS X.
20199 2017-04-22  Bruno Haible  <bruno@clisp.org>
20201         quotearg tests: Avoid warnings.
20202         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
20203         false.
20205 2017-04-22  Bruno Haible  <bruno@clisp.org>
20207         poll: Enable argument check.
20208         * lib/poll.c: Include intprops.h.
20209         (poll): Check value of nfd correctly.
20210         * modules/poll (Depends-on): Add intprops.
20212 2017-04-22  Bruno Haible  <bruno@clisp.org>
20214         get-rusage-data: Avoid warnings on Mac OS X.
20215         * lib/get-rusage-data.c: On Mac OS X, don't define
20216         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
20217         (get_rusage_data) [Mac OS X]: Just return 0.
20219 2017-04-22  Bruno Haible  <bruno@clisp.org>
20221         xbinary-io: Fix build error.
20222         * modules/xbinary-io (Depends-on): Add gettext-h.
20223         * lib/xbinary-io.c: Include gettext.h and define _().
20224         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
20225         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
20227 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20229         parse-datetime: overflow and debug cleanups
20230         This long patch was triggered by this bug report from Ruediger Meier:
20231         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
20232         I fixed the bug he noted, then found some others nearby, and then
20233         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
20234         up some of the code to follow GNU standards while I was at it.
20235         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
20236         use c_isdigit.
20237         (EPOCH_YEAR): Remove; unused.
20238         (TM_YEAR_BASE): Now an enum rather than a macro.
20239         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
20240         time zone offset, since timezones now are in terms of seconds and
20241         not minutes.
20242         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
20243         appropriate.  Verify that intmax_t is wide enough.
20244         (time_overflow, time_zone_str): New functions, used to deal
20245         more reliably with overflow.
20246         (dbg_printf): Add printf attribute, to help catch integer width errors.
20247         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
20248         (%union, to_hour, yylex, parse_datetime2):
20249         Use intmax_t instead of long int and/or long_time_t.
20250         All uses changed.
20251         (DBGBUFSIZE): Move earlier.
20252         (relative_time, set_hhmmss, parser_control):
20253         Just use int for nanoseconds and for time zones; that’s wide enough.
20254         (parser_control): Use bool for members like year_seen that can
20255         be booleans instead of counters.  All uses changed.
20256         Remove debug_default_input_timezone; no longer needed.
20257         All uses removed.
20258         (apply_relative_time): Return a bool overflow flag.
20259         All uses changed to check for overflow.
20260         (apply_relative_time, zone, date, relunit, relunit_snumber)
20261         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
20262         Check for integer overflow portably.
20263         (str_days): Use just int for N, as it’s wide enough.
20264         Prefer 2D char arrays to arrays of char * when it looks like
20265         2D is a win on typical platforms.
20266         Prefer snprintf to strncpy/strncat, for simplicity;
20267         all buffers are smaller than INT_MAX so this is safe.
20268         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
20269         (debug_print_current_time): Don’t assume tv_nsec is of type long,
20270         as this is not true on x32.  Output "." before any nanoseconds.
20271         (debug_print_current_time, parse_datetime2):
20272         Output local zones using a more-consistent format.
20273         (debug_print_current_time, date, parse_datetime2):
20274         (main) [TEST]:
20275         Don’t assume time_t is the same width as long.
20276         (print_rel_part): New function, replacing ...
20277         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
20278         (debug_print_relative_time): Use bool for boolean.
20279         (local_zone): dsts_seen now counts only tDST instances.
20280         (date): Fix printf of size_t to use %z.  Do not assume numeric
20281         tokens have negative values merely because the context suggests
20282         a syntax with "-" separating tokens.
20283         (time_zone_hhmm): Return bool success indicator, which checks for
20284         overflow.  Store result into PC->time_zone instead.  All callers
20285         changed.
20286         (tm_year_str): New function.  Return a bool success indicator and
20287         store the result into a buffer.  All callers changed.  Output the
20288         numerically correct string even if adding 1900 to the year would
20289         overflow.
20290         (to_tm_year): New function, replacing the old to_year.  All
20291         callers changed.
20292         (tm_diff): Sync with glibc.
20293         (lookup_word): Use to_uchar instead of doing it by hand.
20294         (TZBUFSIZE): Now local to the only function that needs it.
20295         (debug_strfdatetime): Simplify now that time zones are int seconds.
20296         (debug_strfdate): Work even if tm_year + 1900 would overflow.
20297         (get_effective_timezone): Remove.  All uses removed.
20298         (parse_datetime2): Use fprintf in pieces instead of snprintfing
20299         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
20300         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
20301         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
20302         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
20303         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
20304         * modules/parse-datetime (Depends-on): Add inttypes.
20306 2017-04-21  Bruno Haible  <bruno@clisp.org>
20308         gettext-h: Avoid -Wundef warning.
20309         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
20310         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
20311         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
20313 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
20315         error: Avoid "function declaration isn't a prototype" warning.
20316         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
20318 2017-04-21  Bruno Haible  <bruno@clisp.org>
20320         vasnprintf: Fix for MSVC 14.
20321         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
20322         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
20323         of !HAVE_SNPRINTF_RETVAL_C99.
20325 2017-04-21  Bruno Haible  <bruno@clisp.org>
20327         mbrtowc tests: Fix test failures on MSVC 14.
20328         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
20329         behaviour for invalid input.
20331 2017-04-21  Bruno Haible  <bruno@clisp.org>
20333         mbsinit: Fix for MSVC 14.
20334         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
20335         implementation that is in sync with mbrtowc.c. On other platforms, use
20336         an adequate ad-hoc implementation.
20338 2017-04-21  Bruno Haible  <bruno@clisp.org>
20340         Fix test-mbrtowc5.sh failure on native Windows.
20341         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
20342         "C".
20344 2017-04-21  Bruno Haible  <bruno@clisp.org>
20346         Avoid accidental use of native Windows APIs on Cygwin.
20347         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
20348         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
20349         * lib/localename.c (WINDOWS_NATIVE): Likewise.
20351 2017-04-20  Bruno Haible  <bruno@clisp.org>
20353         Remove red warnings from the generated MODULES.html.
20354         * modules/fcntl (Description): Disambiguate function references.
20355         * modules/getcwd-lgpl (Description): Likewise.
20356         * modules/hostent (Description): Likewise.
20357         * modules/servent (Description): Likewise.
20358         * modules/tempname (Description): Likewise.
20360 2017-04-20  Bruno Haible  <bruno@clisp.org>
20362         verify tests: Fix spurious failure with parallel make.
20363         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
20364         EXTRA_PROGRAMS.
20365         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
20366         * tests/test-verify-try.c: New file.
20367         * modules/verify-tests (Files): Add it.
20368         (EXTRA_PROGRAMS): Add test-verify-try.
20369         (MOSTLYCLEANFILES): Update accordingly.
20370         Reported by Adam James Stewart <ajstewart@anl.gov>.
20372 2017-04-18  Bruno Haible  <bruno@clisp.org>
20374         vma-iter: Fix compilation error on Solaris 7.
20375         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
20376         like on IRIX, OSF/1.
20377         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20379 2017-04-18  Bruno Haible  <bruno@clisp.org>
20381         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
20382         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
20383         included.
20384         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
20385         <sys/procfs.h>.
20386         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
20387         <sys/procfs.h> cannot be included.
20388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20390 2017-04-18  Bruno Haible  <bruno@clisp.org>
20392         getopt-gnu: Add comments.
20393         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
20394         * modules/getopt-gnu (configure.ac): Likewise.
20396 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
20398         regex: port better to Solaris 10
20399         Solaris 10 <locale.h> includes <libintl.h>, which #defines
20400         gettext, and this causes a double #define.
20401         Problem reported by Gavin Smith in:
20402         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
20403         * lib/regex_internal.h (gettext): #undef before #defining.
20405 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20407         intprops: improve comments
20408         * lib/intprops.h: Improve and shorten commentary.
20409         For the record, if we ever run into a pedantic compiler that
20410         behaves differently from GCC when converting an out-of-range value
20411         to a signed integer, we can work around the problem with something
20412         like the following code, where UCT is the signed counterpart of T
20413         (UCT is sometimes narrower than UT) and all callers are changed
20414         accordingly:
20415         #if __SUNPRO_C <= 0x5120
20416         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20417            ((t) ((ut) (a) op (ut) (b)))
20418         #else
20419         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
20420            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
20421             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
20422                + TYPE_MINIMUM (t)) \
20423             : (t) (uct) ((ut) (a) op (ut) (b)))
20424         #endif
20426 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
20428         intprops: try to avoid tickling similar bugs
20429         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
20430         needs to be the same width as T; it can be wider.
20431         Change callers so that UT is at least as wide as unsigned int,
20432         as I suspect that this is less likely to run into compiler bugs.
20434         intprops: port to Oracle Studio 12.3 x86
20435         Problem reported by Gavin Smith in:
20436         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
20437         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
20438         Convert unsigned to signed via the usual rather than the standard way,
20439         to avoid a compiler bug in Oracle Studio 12.3 x86.
20441 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20443         getopt: prefer - to _ in new file names
20444         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
20445         * lib/getopt-core.h: Rename from lib/getopt_core.h.
20446         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
20447         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
20448         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
20449         All uses changed.
20451         getopt: port recent getopt changes to macOS
20452         Problem reported by Harald Maier (Bug#26398).
20453         The macOS C compiler uses __nonnull for its own purposes and that
20454         clashes with glibc's __nonnull.
20455         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
20456         * lib/getopt_cdefs.in.h (__nonnull): Remove.
20457         * lib/getopt_core.h (getopt):
20458         * lib/getopt_ext.h (getopt_long, getopt_long_only):
20459         Use _GL_ARG_NONNULL, not __nonnull.
20460         * lib/unistd.in.h: Move snippet hooks to before where the getopt
20461         .h files are included, so that _GL_ARG_NONNULL is defined in time.
20462         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
20463         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
20465 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20467         getopt-gnu: omit some duplicate code
20468         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
20469         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
20470         gnulib-tool already does this.
20471         * modules/getopt-gnu (configure.ac): Omit code duplicated from
20472         getopt-posix, which we depend on.
20474         getopt-posix: use angle-bracket include
20475         * lib/getopt1.c: Include <config.h>, not "config.h".
20477 2017-04-06  Zack Weinberg  <zackw@panix.com>
20479         getopt: annotate files with relationship to glibc
20481         As the final act in this patchset, adjust the message at the top of
20482         each file to indicate which files are synced with glibc.  (This has
20483         already been done for most of the headers.)
20485         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
20486         Mention in top-of-file boilerplate that these files are shared
20487         between glibc and gnulib.
20490         getopt: split up getopt.in.h and eliminate __need_getopt
20492         Over in glibc, all of the __need macros are being phased out in favor
20493         of small headers that declare only the necessary components, as this
20494         is much simpler and less prone to bugs.  As getopt is shared with
20495         glibc, gnulib needs to do the same for __need_getopt.
20497         __need_getopt is misnamed; what it really means is "we want only the
20498         getopt features specified in POSIX, not the GNU extensions".  glibc
20499         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
20500         these files can be shared verbatim with gnulib.  The portability
20501         wrapper, on the other hand, they have renounced altogether; glibc's
20502         getopt.h will no longer be shared with gnulib at all.  In exchange,
20503         certain glibc-specific quirks (having to do with __posix_getopt) no
20504         longer need appear in gnulib's headers at all.
20506         This patch merges getopt_core.h and getopt_ext.h from glibc, and
20507         splits up the current gnulib-side portability wrapper into three
20508         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
20509         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
20510         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
20511         unistd.in.h just use them.  All new files are clearly marked with
20512         whether they are shared with glibc.
20514         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
20515         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
20516         with glibc, and ...
20517         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
20518         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
20519         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
20520         instead of defining __need_getopt and including the full getopt.h.
20522         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
20523         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
20524         * modules/getopt-posix (Files): Add new headers and sort list.
20525         (Depends-on): No longer need snippet/arg-nonnull.
20526         (Makefile.am): Generate getopt_cdefs.h.
20529         getopt: better handling of ambiguous options
20531         glibc's getopt uses alloca to construct a linked list of possibilities
20532         for an "ambiguous" long option.  In gnulib, malloc should be used
20533         instead.  Providing for both cases complicates things a fair bit.
20535         This patch rewrites ambiguous-option handling to use a boolean vector
20536         instead of a linked list.  There is then only one allocation that
20537         might need freeing; in glibc it can honor __libc_use_alloca as usual,
20538         and in gnulib we define __libc_use_alloca to always be false, so we
20539         don't need ifdefs in the middle of the function.  This should also be
20540         slightly more efficient in the normal case of long options being fully
20541         spelled out -- I think most people aren't even aware they _can_
20542         sometimes abbreviate long options.
20544         One interesting consequence is that the list of possibilities is now
20545         printed in exactly the order they appear in the list of long options,
20546         instead of the first possibility being shuffled to the end.
20548         (The patch looks bigger than it really is because there's a fair bit
20549         of reindentation and code rearrangement.)
20551         * lib/getopt.c: When used standalone, define __libc_use_alloca
20552         as always false and alloca to abort if called.
20553         (process_long_option): Rewrite handling of ambiguous long options
20554         to use a single boolean vector, not a linked list; use
20555         __libc_use_alloca to decide whether to allocate this using alloca.
20558         getopt: refactor long-option handling
20560         There were two copies of the bulk of the code to handle long options.
20561         Now there is only one.
20563         This change temporarily removes the logic to avoid using alloca when
20564         standalone; the next patch in the series will restore it.
20566         * lib/getopt.c (process_long_option): New function split out
20567         from _getopt_internal_r.
20568         (_getopt_internal_r): Replace both copies of the long-option
20569         processing code with calls to process_long_option.
20572         getopt: tidy up _getopt_initialize a bit
20574         _getopt_data.__posixly_correct is completely redundant to
20575         _getopt_data.__ordering, and some work that logically belongs in
20576         _getopt_initialize was being done by _getopt_internal_r, making the
20577         code harder to understand.
20579         As a side effect, getenv will no longer be called if the first
20580         character of the options string is '+' or '-', which is probably a
20581         Good Thing.  (Perhaps we should have a flag character that
20582         specifically asks for the permutation behavior?)
20584         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
20585         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
20586         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
20589         getopt: merge from glibc: repetition reduction
20591         The definitions of the entry point functions 'getopt' and
20592         '__posix_getopt' can be made substantially less repetitive with a
20593         helper macro.
20595         While I was merging the const-correctness changes from gnulib into
20596         glibc I noticed there are still some unnecessary casts in
20597         _getopt_internal_r.
20599         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
20600         a macro.  Consistently cast 'argv' to 'char **' when calling
20601         _getopt_internal.
20602         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
20605         getopt: clean up error reporting
20607         getopt can print a whole bunch of error messages, and when used
20608         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
20609         cancellation point and getopt isn't, and also applying fprintf to a
20610         stream in wide-character mode is not allowed.  So every single error
20611         reporting case has an #ifdef _LIBC block in which it calls internal
20612         libc functions instead.  The counterpart patch series in glibc makes
20613         it possible to simplify all of that down to a set of #defines at the
20614         top of the file; core code is written as if it is safe to just call
20615         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
20616         call any *other* stdio functions.)
20618         * lib/getopt.c: When _LIBC is defined, define fprintf to
20619         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
20620         to _IO_funlockfile.  When neither _LIBC nor
20621         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
20622         funlockfile as no-ops.
20623         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
20624         standalone error-printing code can now be used for libc as well.
20625         Add an flockfile/funlockfile pair around one case where the error
20626         message is printed in several chunks.  Don't use fputc.
20629         getopt: fix fencepost error in ambiguous-W-option handling
20631         getopt_long contains an undocumented (AFAICT) feature in which, if you
20632         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
20633         treated as equivalent to '--foo'.  This is implemented with a partial
20634         second copy of the code for handling long options, and that code
20635         increments optind one too many times when recovering from an ambiguous
20636         abbreviated option, which can cause the main loop to walk past the end
20637         of argv and crash.
20639         I discovered this while writing a test case that tries to exercise all
20640         of getopt's error reporting paths; I wouldn't be surprised to learn
20641         that this feature is never used by real applications.
20643         * lib/getopt.c (_getopt_internal_r): Don't increment
20644         d->optind a second time when reporting ambiguous -W options.
20647         getopt: clean up getopt.c and getopt1.c file headers
20649         In getopt.c, there is no need to include wchar.h at all, and it is
20650         safe nowadays to assume that stdlib.h does declare getenv (several
20651         other gnulib modules make this assumption).
20653         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
20654         by using "" inclusions consistently, and there is no actual need to
20655         include stdlib.h (except in the #ifdef TEST block, where it should be
20656         unconditional), nor to provide a backup definition of NULL at all.
20658         * lib/getopt1.c: Simplify #ifdeffage at top of file.
20659         Move inclusion of stdlib.h to #ifdef TEST block and make
20660         unconditional.  Do not define NULL.
20661         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
20662         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
20663         * modules/getopt-gnu, modules/getopt-posix: Don't call
20664         gl_PREREQ_GETENV.
20667         getopt: harmonize comments with glibc
20669         The comments explaining how the behavior of 'getopt' varies depending
20670         on whether it's the standalone version and whether there are special
20671         characters at the beginning of the options string were inconsistent
20672         between gnulib and glibc, and also out of sync with the code.
20674         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
20677         getopt: remove USE_NONOPTION_FLAGS
20679         getopt includes code to parse an environment variable named
20680         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
20681         in decimal); but all of it has been #ifdefed out since 2001, with no
20682         official way to turn it back on.
20684         According to commentary in glibc's config.h.in, bash version 2.0
20685         set this environment variable to indicate argv elements that were
20686         the result of glob expansion and therefore should not be treated
20687         as options, but the feature was "disabled later" because "it
20688         caused problems".  According to bash's CHANGES file, "later" was
20689         release 2.01; it gives no more detail about what the problems
20690         were.
20692         Version 2.0 of bash was released on the last day of 1996, and version
20693         2.01 in June of 1997.  Twenty years later, I think it is safe to
20694         assume that this environment variable isn't coming back.
20696         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
20697         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
20698         __libc_argc and __libc_argv externs, which were only used by
20699         #ifdef USE_NONOPTION_FLAGS blocks.
20702         getopt: tabify, in preparation for merge with glibc
20704         glibc sticks to the GNU default of indenting with a mix of
20705         8-column tabs and spaces; make the gnulib copy match.
20707         getopt.h is not included because it is *not* going to be merged in its
20708         present form.
20710         * getopt.c, getopt1.c, getopt_int.h: Tabify.
20712 2017-04-02  Bruno Haible  <bruno@clisp.org>
20714         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
20715         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
20716         like it was done in modules/relocatable-lib on 2011-05-21 and in
20717         modules/relocatable-prog on 2011-08-15.
20718         Reported by Reuben Thomas <rrt@sc3d.org>.
20720 2017-03-31  Bruno Haible  <bruno@clisp.org>
20722         glob: Fix invalid free() call.
20723         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
20724         static storage to home_dir.
20725         Reported by Coverity via Tim Rühsen.
20727 2017-03-31  Bruno Haible  <bruno@clisp.org>
20729         glob: Fix memory leaks.
20730         * lib/glob.c (glob): Free allocated memory before returning.
20731         Reported by Coverity via Tim Rühsen.
20733 2017-03-31  Bruno Haible  <bruno@clisp.org>
20735         md5, sha1, sha256, sha512: Add comments regarding correctness.
20736         * lib/md5.h (buflen): Add comments regarding range.
20737         * lib/sha1.h (buflen): Likewise.
20738         * lib/sha256.h (buflen): Likewise.
20739         * lib/sha512.h (buflen): Likewise.
20740         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
20741         * lib/sha1.c (sha1_process_bytes): Likewise.
20742         * lib/sha256.c (sha256_process_bytes): Likewise.
20743         * lib/sha512.c (sha512_process_bytes): Likewise.
20744         Reported by Coverity via Tim Rühsen.
20746 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20748         getopt: merge from glibc
20749         This does not change anything substantial; it merely simplifies
20750         hypothetical merges back to glibc.
20751         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
20752         Change copyright notice to match what is in glibc.
20753         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
20754         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
20755         __open_memstream rather than open_memstream and __glibc_likely
20756         instead of __builtin_expect.
20757         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
20759 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
20761         dfa: make [0-9] faster in non-C locales
20762         Problem reported by John P. Linderman (Bug#26193).
20763         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
20764         If both ends of the range are ASCII digits, do not worry about
20765         multi-character collating sequences and the like.  Be consistent
20766         about using isalpha as a precondition for setbit_case_fold_c.
20768 2017-03-19  Bruno Haible  <bruno@clisp.org>
20770         lock: Fix compilation error with HP-UX IA64 cc.
20771         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
20772         weak on non-glibc platforms.
20774 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20776         stdalign: tweak version# and test for HP-UX IA64
20777         Problems reported by Bruno Haible in:
20778         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
20779         * lib/stdalign.in.h (_Alignas):
20780         * m4/stdalign.m4 (gl_STDALIGN_H):
20781         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
20782         used octal (as that is how they document it), but it is decimal in
20783         practice now and the ancient implementations no longer matter.
20784         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
20786 2017-03-19  Bruno Haible  <bruno@clisp.org>
20788         vma-iter: Add support for Solaris.
20789         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
20790         approach.
20791         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
20792         * lib/get-rusage-as.c: Update comment about Solaris.
20793         * lib/get-rusage-data.c: Likewise.
20795 2017-03-19  Bruno Haible  <bruno@clisp.org>
20797         vma-iter: Prefer HP-UX specific API on HP-UX.
20798         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
20799         * lib/vma-iter.h: Update.
20800         Just in case HP-UX ever implements mquery().
20802 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20804         stdalign: restore previous behavior for HP-UX IA64
20805         See Bruno Haible's email in:
20806         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20807         which cites p 150 of a manual saying that 'aligned' works on Itanium.
20808         * lib/stdalign.in.h (_Alignas):
20809         Assume the '061200' applies to Itanium, not to PA-RISC.
20810         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
20812 2017-03-17  Bruno Haible  <bruno@clisp.org>
20814         stat-time, timespec: Support use of the header files in C++ mode.
20815         * lib/stat-time.h: Add "C" linkage declaration.
20816         * lib/timespec.h: Likewise.
20818 2017-03-17  Bruno Haible  <bruno@clisp.org>
20820         stdalign: Make it work with HP-UX cc.
20821         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
20822         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
20823         for HP-UX cc.
20825 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
20827         flexmember: try to detect HP-UX 11.31 cc bug
20828         Problem reported by Bruno Haible in:
20829         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
20830         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
20831         Attempt to detect bug in HP-UX 11.31 cc.
20833 2017-03-16  Bruno Haible  <bruno@clisp.org>
20835         stdint: Fix test compilation failure with HP-UX 11 cc.
20836         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
20837         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
20838         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
20839         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
20841 2017-03-14  Bruno Haible  <bruno@clisp.org>
20843         gnulib-tool: Don't produce a tests directory with only snippet .h files.
20844         * gnulib-tool (func_modules_transitive_closure_separately): If
20845         testsrelated_modules ends up with no "real" modules, aside from
20846         modules with applicability 'all', set it to empty.
20848 2017-03-14  Bruno Haible  <bruno@clisp.org>
20850         vma-iter: Add support for HP-UX.
20851         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
20852         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
20853         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
20854         * lib/get-rusage-as.c: Update comment about HP-UX.
20855         * lib/get-rusage-data.c: Likewise.
20856         (get_rusage_data): Use get_rusage_data_via_setrlimit.
20858 2017-03-14  Bruno Haible  <bruno@clisp.org>
20860         limits-h: Make it work with HP-UX cc.
20861         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
20862         defined.
20864 2017-03-14  Bruno Haible  <bruno@clisp.org>
20866         Fix test failures on DragonFlyBSD.
20867         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
20868         * tests/test-select.h (test_bad_fd): Likewise.
20869         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
20871 2017-03-14  Bruno Haible  <bruno@clisp.org>
20873         freadahead: Silence warning on DragonFlyBSD.
20874         * lib/freadahead.c (__sreadahead): Declare ourselves.
20876 2017-03-14  Bruno Haible  <bruno@clisp.org>
20878         vma-iter: Add comment about AIX.
20879         * lib/vma-iter.c: Add comment about why this module is not implemented
20880         on AIX.
20882 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20884         snippets: move unadjusted snippet sources to lib
20885         Problem reported by Michal Privoznik in:
20886         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
20887         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
20888         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
20889         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
20890         * lib/unused-parameter.h: Rename from
20891         build-aux/snippet/unused-parameter.h.
20892         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
20893         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
20894         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
20895         * modules/snippet/c++defs (Files:, CXXDEFS_H):
20896         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
20897         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
20898         Adjust to file renamings.
20900 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
20902         gnulib-tool: don't automatically distribute files from top/
20903         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
20904         not distribute top/README-release by default, don't distribute files
20905         from top/ unconditionally.
20906         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
20907         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
20909 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
20911         gnulib-tool: fix typo in comment output
20912         * gnulib-tool (func_import): Fix typo with previous change.
20914         snippets: work around GNU Make 3.82 VPATH
20915         When using 'gnulib-tool --gnu-make' on Emacs, and building
20916         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
20917         an out-of-source (VPATH) build failed because the sans-copyright
20918         snippet file was not built before the file that used it.
20919         Presumably this is some sort of VPATH thing.  Work around the
20920         problem by using the original snippet, i.e., don’t bother to
20921         remove its copyright notice.
20922         * modules/snippet/_Noreturn, modules/snippet/link-warning:
20923         Don’t assume Automake in comments.  Omit long-incorrect comment.
20924         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
20925         (MOSTLYCLEANFILES):
20926         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
20927         (MOSTLYCLEANFILES):
20928         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
20929         (MOSTLYCLEANFILES):
20930         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
20931         (MOSTLYCLEANFILES):
20932         Remove.
20933         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
20934         * modules/snippet/c++defs (CXXDEFS_H):
20935         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
20936         * modules/snippet/warn-on-use (WARN_ON_USE_H):
20937         Don’t bother to remove the copyright notice; just use the
20938         original snippet as-is.
20940 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
20942         gnulib-tool: minor --gnu-make fixups
20943         * gnulib-tool (func_emit_lib_Makefile_am):
20944         Remove useless code that was a blind alley during implementation.
20945         Problem reported by Thien-Thi Nguyen in:
20946         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
20947         (func_import): Note the "--gnu-make" option in the output comment.
20949 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
20951         gnulib-tool: new option --gnu-make
20952         This is for applications like GNU Emacs that use GNU Make
20953         features instead of Automake.
20954         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
20955         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
20956         Do not assume Automake.
20957         * gnulib-tool (func_determine_path_separator)
20958         (func_modules_transitive_closure, func_update_file)
20959         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
20960         (func_import): Add support for --gnu-make.
20962 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
20964         gnulib-common.m4: avoid aclocal.m4 bloat
20965         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
20966         Hide AM_PROG_AR from aclocal, so that aclocal does not
20967         install irrelevant macro definitions into aclocal.m4.
20969 2017-03-10  Bruno Haible  <bruno@clisp.org>
20971         vma-iter: Let callers know about error.
20972         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
20973         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
20975 2017-03-05  Bruno Haible  <bruno@clisp.org>
20977         Fix value of LD for 64-bit compilers on AIX.
20978         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
20979         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
20981 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
20983         dtotimespec: simplify
20984         * lib/dtotimespec.c (dtotimespec): Simplify.
20986 2017-03-04  Bruno Haible  <bruno@clisp.org>
20988         test-calloc-gnu: Reenable test also for GCC 7.
20989         * tests/test-calloc-gnu.c (eight): New function.
20990         (main): Don't skip test; use eight() instead.
20992 2017-03-04  Jim Meyering  <meyering@fb.com>
20994         test-calloc-gnu: port to GCC7
20995         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
20996         that attempts to calloc more than SIZE_MAX bytes, because GCC7
20997         and newer would detect that at compilation time.
20999 2017-03-04  Bruno Haible  <bruno@clisp.org>
21001         tests: Avoid compiler warning about uses of null_ptr.
21002         * tests/null-ptr.h: New file.
21003         * tests/test-canonicalize.c: Include null-ptr.h.
21004         (null_ptr): Remove function.
21005         * tests/test-canonicalize-lgpl.c: Likewise.
21006         * tests/test-memmem.c: Likewise.
21007         * tests/test-ptsname_r.c: Likewise.
21008         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
21009         * modules/canonicalize-lgpl-tests: Likewise.
21010         * modules/memmem-tests: Likewise.
21011         * modules/ptsname_r-tests: Likewise.
21012         Reported by Jim Meyering.
21014 2017-03-03  Bruno Haible  <bruno@clisp.org>
21016         doc: Mention Mac OS X deficiencies regarding semaphores.
21017         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
21018         * doc/posix-functions/sem_destroy.texi: Likewise.
21019         * doc/posix-functions/sem_getvalue.texi: Likewise.
21021 2017-03-03  Bruno Haible  <bruno@clisp.org>
21023         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
21024         Reported by Assaf Gordon <assafgordon@gmail.com> via
21025         Pádraig Brady <P@draigBrady.com>.
21026         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
21027         semaphores.
21028         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
21029         (atomic_int_semaphore): New macro.
21031 2017-02-28  Bruno Haible  <bruno@clisp.org>
21033         perror tests: Tweak for z/OS.
21034         Reported by Daniel Richard G. <skunk@iskunk.org>.
21035         * tests/test-perror.sh: Don't fail z/OS style perror output.
21037 2017-02-26  Bruno Haible  <bruno@clisp.org>
21039         nproc: Refactor large function.
21040         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
21041         from num_processors.
21042         (num_processors): In this function, only deal with OMP.
21044 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21046         nproc: adjust handling of OpenMP environment variables
21047         to match the return value from omp_get_num_threads(), i.e.:
21048          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
21049          - Treat 0 as an invalid value and ignore
21050         Also remove the call to omp_get_num_threads() because
21051         it's ineffective without the omp pragmas in place.
21052         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
21053         so that it can be ignored.
21054         (num_processors): Honor OMP_THREAD_LIMIT even without
21055         OMP_NUM_THREADS being set.  Also fix a typo in the environment
21056         variable being checked, from the previous recent commit.
21058 2017-02-26  Pádraig Brady  <P@draigBrady.com>
21060         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
21061         * lib/nproc.c (parse_omp_threads): A new function refactored
21062         from num_processors() to support parsing both of the
21063         above environment variables.
21064         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
21065         to accurately reflect the current OpenMP nesting level.
21066         Also support the OMP_THREAD_LIMIT environment variable
21067         to limit the max value determined from OMP_NUM_THREADS.
21068         * modules/nproc: Depend on minmax header.
21069         Suggested by Oliver Heimlich.
21071 2017-02-25  Bruno Haible  <bruno@clisp.org>
21073         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
21074         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
21076 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21078         ftoastr: port to -Wdouble-promotion
21079         Work around -Wdouble-promotion false alarm in recent GCCs.
21080         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
21081         (ftoastr_snprintf, FTOASTR): Use it.
21083 2017-02-21  Bruno Haible  <bruno@clisp.org>
21085         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
21086         Reported by Rene Saavedra <rennes@openmailbox.org> in
21087         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
21088         * lib/glthread/lock.h: On glibc systems without
21089         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
21090         implementation of rwlocks.
21091         * lib/glthread/lock.c: Likewise.
21093 2017-02-20  Bruno Haible  <bruno@clisp.org>
21095         lock tests: Fix build failure on z/OS.
21096         Reported by Daniel Richard G. <skunk@iskunk.org>.
21097         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
21098         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
21099         exist.
21101 2017-02-19  Bruno Haible  <bruno@clisp.org>
21103         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
21104         This helps when CC=clang.
21105         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
21106         of /usr/bin/gcc.
21108         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
21109         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
21111 2017-02-19  Bruno Haible  <bruno@clisp.org>
21113         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
21114         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
21115         --with-tests --single-configure is specified.
21117 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
21119         users.txt: Update links, use HTTPS where possible
21120         * users.txt: Updated to HTTPS where possible,
21121         fixed some links to new locations.
21123 2017-02-16  Bruno Haible  <bruno@clisp.org>
21125         xbinary-io: Fix inlining.
21126         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
21128 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21130         xbinary-io: rename from xsetmode
21131         This patch is taken from suggestions by Bruno Haible in:
21132         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
21133         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
21134         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
21135         not ENOTTY, when it is an inappropriate device.
21136         * lib/binary-io.h (SET_BINARY): Resurrect.
21137         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
21138         (xset_binary_mode_error): Rename from xsetmode_error.
21139         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
21140         (xset_binary_mode): Rename from xsetmode.
21141         All uses changed.
21142         * modules/xbinary-io: Rename from modules/xsetmode.
21143         Update file names.
21144         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
21145         * NEWS: Update to match revised behavior.
21147 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21149         tests: Adjust to recent SET_BINARY change
21150         * tests/test-binary-io.c (main):
21151         * tests/test-binary-io.sh: Remove test for SET_BINARY.
21152         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
21153         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
21154         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
21156         xsetmode: new module
21157         This is to fix a problem noted by Eric Blake.
21158         Code was using xfreopen to change files to binary mode, but this
21159         fails for stdout when in append mode.  Such code should use
21160         xsetmode instead.
21161         * NEWS: Document incompatible changes to binary-io module.
21162         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
21163         New function.
21164         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
21165         (set_binary_mode): New function, which also checks for tty.
21166         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
21168 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
21170         headers: fix begin-end typos
21171         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
21172         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
21174         selinux-h: port to PGI 16.10
21175         * lib/se-selinux.in.h: Don't assume that include_next skips over
21176         duplicate -I DIR options.
21178         argp: port to PGI 16.10
21179         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
21181 2017-02-13  Darshit Shah  <darnir@gnu.org>
21183         unicase: Update function protoype to match definition.
21184         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
21185         uses 'size_t' as the datatype for the 'len' parameter in the functions
21186         it generates. Update the prototype specified here to match the newly
21187         generated function.
21189 2017-02-12  Bruno Haible  <bruno@clisp.org>
21191         times test: Avoid gcc warnings on Linux/x32.
21192         * tests/test-times.c (main): Really cast printf arguments from clock_t
21193         to 'long int'.
21195 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21197         glob: port better to emscripten
21198         Problem reported by Bruno Haible in:
21199         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
21200         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
21202 2017-02-11  Bruno Haible  <bruno@clisp.org>
21204         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
21205         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
21206         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
21207         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
21208         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
21209         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
21210         Distinguish hppa64 from hppa.
21212 2017-02-10  Bruno Haible  <bruno@clisp.org>
21214         search: Don't assume that tsearch() exists if 'VISIT' is defined.
21215         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
21216         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
21217         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
21219 2017-02-09  Bruno Haible  <bruno@clisp.org>
21221         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
21222         * doc/gnulib.texi (Libtool and Windows): Recommend
21223         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
21224         Reported by Reuben Thomas <rrt@sc3d.org>.
21226 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21228         stddef-tests: port to SIZE_MAX <= INT_MAX
21229         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
21230         Do not assume that INT_MAX < SIZE_MAX.
21232 2017-02-01  Bruno Haible  <bruno@clisp.org>
21234         lock tests: Fix link error.
21235         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
21236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21238 2017-01-31  Bruno Haible  <bruno@clisp.org>
21240         lock: Fix link error (regression from 2017-01-05).
21241         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
21242         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
21243         pthread_rwlockattr_destroy weak.
21244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21246 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21248         Port to PGI 16.10 x86-64
21249         This patch fixes one real bug in gl_anylinked_list2.h, along with
21250         some minor glitches that are not bugs.  It does not silence PGI’s
21251         thousands of bogus warnings when compiling test-intprops.c.
21252         Fortunately, the warnings do not cause a failure.
21253         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
21254         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
21255         My goodness, PGI goes back a long ways - this predates C89!
21256         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
21257         For example, ASYNCSAFE (const void *) should expand to
21258         ‘const void *volatile’, not to ‘volatile const void *’.
21259         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
21260         * lib/verify.h (verify) [!__GNUC__]:
21261         Use shorter albeit meaningless string to bypass silly compiler limits.
21262         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
21263         * tests/nan.h (NaNf, NaNd, NaNl):
21264         Use static functions to avoid misguided compiler diagnostics.
21265         Is there some reason we don’t use static functions on all platforms?
21267 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
21269         parse-datetime: handle timezones reentrantly
21270         This API change was prompted by a report by Pádraig Brady in:
21271         https://bug.debian.org/851934#10
21272         To help fix the bug, make parse_datetime2 more reentrant.
21273         * NEWS: Document this incompatible change.
21274         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
21275         Add two arguments, the timezone and the timezone name.
21276         All callers changed.  If TZ="..." is specified, use it for
21277         calculating defaults.
21278         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
21279         this code should be usable in a library.
21280         (mktime_ok, get_effective_timezone):
21281         Accept timezone arg too.  All callers changed.
21282         (get_tz): Remove.
21283         (get_effective_timezone): Check for failures.
21285 2017-01-20  Eric Blake  <eblake@redhat.com>
21287         localename: port to cygwin 2.6
21288         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
21289         Cygwin.
21290         * modules/localename (Depends-on): Add extensions, since
21291         NL_LOCALE_NAME() is not visible without it.
21293 2017-01-17  Pádraig Brady  <P@draigBrady.com>
21295         parse-datetime: fix dependence on AC_PROG_SED
21296         * modules/parse-datetime: Use `sed` directly like all other modules.
21297         Reported by J William Piggott
21299 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
21301         intprops: update doc URLs
21302         * doc/intprops.texi (Integer Range Overflow): Update URLs.
21304 2017-01-16  Bruno Haible  <bruno@clisp.org>
21306         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
21307         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
21308         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
21309         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
21310         distinguish s390 and s390x.
21311         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
21312         * NEWS: Mention the change regarding 'armel'.
21314 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21316         localeinfo: case_folded_counterparts and WEOF
21317         * NEWS: Document this.
21318         * lib/localeinfo.c (case_folded_counterparts):
21319         First arg is now wint_t, not wchar_t.  This generalizes the
21320         function to also work on WEOF, where it returns 0.
21322         dfa: port to gcc -fsanitize=undefined
21323         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
21324         as this runs afoul of gcc -fsanitize=undefined.
21326 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
21328         strftime: %z is -00 if unknown
21329         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
21330         the caller's responsibility to set 'negative_number'.  All uses changed.
21331         (__strftime_internal): Put '-' before a zero UTC offset if the time
21332         zone abbreviation starts with "-", which is the recently-introduced
21333         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
21334         * tests/test-strftime.c: Test for this.
21336 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21338         dfa: port to older GCC
21339         Problem reported by Assaf Gordon in:
21340         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
21341         * modules/c99: New module.  This merely attempts to use the latest
21342         C version, which should be enough to solve this particular problem.
21343         The idea is to document which Gnulib modules assume C99 or later.
21344         * modules/dfa (Depends-on): Add it.
21346 2017-01-10  Bruno Haible  <bruno@clisp.org>
21348         Update DEPENDENCIES.
21349         * DEPENDENCIES: List only https URLs. Update recommended version for
21350         autoconf, automake, gperf.
21352 2017-01-10  Jim Meyering  <meyering@fb.com>
21354         maint.mk: enforce spelling of "timestamp" (i.e., no space)
21355         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21356         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
21358 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
21360         dfa: minor simplification with emptyset
21361         * lib/dfa.c (build_state): Simplify by using emptyset.
21363 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
21365         dfa: shrink constraints from 4 bits to 3
21366         * lib/dfa.c (newline_constraint, letter_constraint)
21367         (other_constraint, prev_newline_dependent)
21368         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
21369         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
21370         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
21371         Constraints need only 3 bits, not 4.  Using smaller integers
21372         shrinks the code a bit and makes grep a tad faster on x86-64.
21374         dfa: omit unnecessary ptrdiff_t check
21375         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
21376         overflow, since xnmalloc does that now.
21378         dfa: omit unnecessary allocation
21379         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
21380         an all-zero follow set works just fine.
21382         dfa: omit unused local
21383         * lib/dfa.c (build_state): Fix up recent change.
21385         maint: remove stray .texi files
21386         Although these were superseded by other files like
21387         doc/posix-functions/ctime.texi, the old files were not removed.
21388         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
21390 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21392         getprogname: fix port to IRIX
21393         * lib/getprogname.c (getprogname) [__sgi]:
21394         Don't dump core if malloc returns NULL.
21396         dfa: fix reallocation bug when matching newlines
21397         Problem reported for sed by S. Gilles (Bug#25390).
21398         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
21399         (dfastate): Reallocate before moving any newline transition ...
21400         (build_state): ... instead of reallocating here, where it is too late.
21402 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21404         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
21405         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
21407 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21409         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
21410         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
21412 2017-01-07  Bruno Haible  <bruno@clisp.org>
21414         stdioext: Port to Minix 3.2 and newer.
21415         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
21416         * lib/fseeko.c (fseeko): Likewise.
21417         Reported by Nelson Beebe via Paul Eggert.
21419 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21421         getprogname: port to IRIX
21422         * lib/getprogname.c (getprogname): Port to IRIX.
21423         Based on an idea by Bastien Roucariès at:
21424         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
21425         via code from Bruno Haible at:
21426         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
21428         localename-tests: port to NetBSD 7
21429         Problem reported by Nelson H. F. Beebe.
21430         * tests/test-localename.c:
21431         Test newlocale and uselocale only if both exist.
21433         glob, intprops, xalloc: work around Clang bug
21434         Work around LLVM bug 16404, which is still not fixed.
21435         https://llvm.org/bugs/show_bug.cgi?id=16404
21436         Problem reported by Nelson H. F. Beebe.
21437         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
21438         Remove.
21439         * lib/glob.c (size_add_wrapv):
21440         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
21441         * lib/xalloc-oversized.h (xalloc_oversized):
21442         Do not use overflow builtins if Clang.
21444         dfa: fix 'return' typo
21445         Problem reported by Nelson H. F. Beebe.
21446         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
21448 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21450         parse-datetime: fix generated paths for coverage files
21451         * modules/parse-datetime: Adjust the paths for parse-datetime.y
21452         within parse-datetime.c, so that gcc generates appropriate .gcno
21453         files, allowing lcov to proceed without error.  Previously it
21454         would error trying to find "lib/lib/parse-datetime.y".
21456 2017-01-05  Pádraig Brady  <P@draigBrady.com>
21458         maint.mk: support parallel execution of coverage
21459         * top/maint.mk (coverage): Run dependencies serially,
21460         thus supporting parallel processing of each one,
21461         particularly build-coverage, which builds and runs tests.
21463 2017-01-05  Bruno Haible  <bruno@clisp.org>
21465         lock tests: Prefer semaphore over mutex.
21466         * tests/test-lock.c (USE_SEMAPHORE): New constant.
21467         (struct atomic_int, init_atomic_int, get_atomic_int_value,
21468         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
21469         Suggested by Torvald Riegel <triegel@redhat.com>.
21471 2017-01-05  Bruno Haible  <bruno@clisp.org>
21473         lock: Provide guarantee to avoid writer starvation for rwlocks.
21474         The rationale is: 1) Read-preferring read-write locks are prone to
21475         writer starvation if the number of reader threads multiplied by the
21476         percentage of time they have the lock held is too high. 2) Write-
21477         preferring read-write locks are the only reliable way to avoid this.
21478         3) There have been reports of 'test-lock' hanging on glibc systems
21479         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
21480         and glibc indeed implements read-preferring rwlocks by default, see
21481         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
21482         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
21483         * m4/pthread_rwlock_rdlock.m4: New file.
21484         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21485         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
21486         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21487         of rwlock initialization on glibc systems without
21488         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
21489         of rwlocks altogether on non-glibc systems without
21490         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
21491         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
21492         * lib/glthread/lock.c [USE_POSIX_THREADS]
21493         (glthread_rwlock_init_for_glibc): New function.
21494         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
21495         comment.
21496         [USE_PTH_THREADS]: New implementation of rwlocks.
21497         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
21498         readers.
21499         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
21500         (Depends-on): Add 'extensions'.
21501         * tests/test-rwlock1.c: New file.
21502         * lock-tests (Files): Add it.
21503         (Depends-on): Add usleep.
21504         (Makefile.am): Add test-rwlock1 to the tests.
21506 2017-01-05  Bruno Haible  <bruno@clisp.org>
21508         thread: Fix pth port.
21509         * lib/glthread/thread.h (pth_init): Declare weak.
21510         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
21511         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
21512         function.
21514 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
21516         parse-datetime: fix debug message on lone year number
21517         Input dates such as
21518           date -d "Apr 11 22:59:00 2011"
21519         are parsed as date (Apr 11, with default year 2016), then time, then a
21520         number (2011). Based on the combination of previously seen tokens,
21521         'digits_to_date_time' determines 2011 to be a year value.
21522         This fixes the debug messages to correctly show the updated year.
21523         Before:
21524             $ date --debug -d 'Apr 11 22:59:00 2011'
21525             date: parsed date part: (Y-M-D) 2016-04-11
21526             date: parsed time part: 22:59:00
21527             date: parsed number part: today/this/now
21528         After:
21529             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
21530             date: parsed date part: (Y-M-D) 2016-04-11
21531             date: parsed time part: 22:59:00
21532             date: parsed number part: year: 2011
21533         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
21534         'debug_year_seen' member fields.
21535         (digits_to_date_time): Update 'year_seen' as needed.
21536         (debug_print_current_time): Inform about year updates.
21537         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
21539         parse-datetime: fix local timezone debug messages
21540         "Local timezones" are strings that affect only DST relative to the
21541         default timezone. The debug messages in parse-datetime.y printed
21542         wrong information when encountering local timezones.
21543         Examples:
21544         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
21545              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
21546              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
21547         When the default timezone relates to the zone strings, EET/EEST are
21548         parsed as local timezones (tLOCAL_ZONE), and only change the DST
21549         value (0/1, respectively):
21550              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
21551              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
21552         * lib/parse-datetime.y (debug_print_current_time): If local timezone
21553         was seen, inform about DST change, don't print actual timezone.
21554         (debug_strfdatetime): If local timezone was seen, use default timezone
21555         (and adjust as needed) instead of using incorrect timezone.
21556         (parse_datetime2): Use correct time-zone source string, and adjust
21557         default timezone as needed.
21559         parse-datetime: add debug warning about DST changes
21560         Incorrect date arithmetic due to daylight saving time (DST) are a
21561         common (false) bug report in coreutils.
21562         Detect two such cases and print a warning:
21563         1. year/month/day adjustments (performed on 'struct tm'),
21564            where 'mktime' returns a different isdst value.
21565         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
21566            where the result of 'localtime(3)' on the value will return a
21567            different isdst value.
21568         Note: DST changes could be harmless or unnoticeable.
21569         Examples (with 'TZ=America/New_York'):
21570         Unnoticeable: result is 2016-Dec-14
21571            $ date -d '2016-06-15 EDT + 6 months' +%b
21572            Dec
21573         Unnoticeable: result is 2016-Dec-15 11:00:00
21574            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
21575            2016-12-15
21576         This is unexpected:
21577            $ date -d '2016-06-01 EDT + 6 months' +%F
21578            2016-11-30
21579         The new debug warnings will show:
21580            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
21581            ...
21582            date: warning: daylight saving time changed after date adjustment
21583            ...
21584         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
21585         print an appropriate warning message.
21587         parse-datetime: add debug warning about date arithmetic
21588         Date arithmetic are done directly on the fields of 'struct tm',
21589         which can result in invalid dates. Normalization with 'mktime(3)'
21590         will then produce a different date - which might cause unexpected
21591         results.
21592         Examples:
21593           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
21594           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
21595         Note that date normalization is not inherently wrong and not rejected,
21596         as it has legitimate uses:
21597           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
21598         If the user asked to adjust months but 'mday' changed,
21599         or user asked to adjust years but 'month' changed - warn about it.
21600             $ ./src/date --debug -d '2016-10-31 - 1 month'
21601             ...
21602             date: warning: when adding relative months/years, \
21603                            it is recommended to specify the 15th of the month
21604             ...
21605             date: warning: month/year adjustment resulted in shifted dates:
21606             date:      adjusted Y M D: 2016 09 31
21607             date:    normalized Y M D: 2010 10 01
21608             ...
21609         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
21610         a warning message. Improve recommendation of when to use 15 of the
21611         month or noon for date arithmetic.
21613         parse-datetime: fix debug message of relative part after timezone
21614         Relative part (e.g '+8 days') after a timezone string was not
21615         reported (was only reported after a timezone number). Due to the
21616         parser's structure, timezone strings with numbers were handled
21617         separately.
21618         before:
21619              # Timezone number + relative part: OK
21620              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
21621              ...
21622              date: parsed relative part: -8 day(s)
21623              # Timezone string + relative part: missing
21624              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
21625              [ missing message ]
21626         After: messages are printed in both cases.
21627         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
21629         parse-datetime: fix incorrect debug message on lone number
21630         A lone number is an absolute value, not a relative time part.
21631         before:
21632            $ date --debug -d '20130101'
21633            date: parsed number part: today/this/now
21634         After:
21635            $ ./src/date --debug -d '20130101'
21636            date: parsed number part: (Y-M-D) 2013-01-01
21637         * lib/parse-datetime.y ('item'/'number' tokens): Call
21638         'debug_print_current_time' instead of 'debug_print_relative_time'.
21640 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
21642         doc: modernize for C11 etc.
21643         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
21644         for C11, MinGW, etc.  This responds to Paul Smith's question in:
21645         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
21647         dfa: prefer functions to FETCH_WC macro
21648         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
21649         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
21650         wint_t result into DFA->lex.wctok instead of to a separate arg.
21651         All callers changed.  Move more local decls closer to where
21652         they're used.
21654         dfa: narrow more local var scopes
21655         * lib/dfa.c: Move more local decls to be more local.
21657         dfa: remove duplicate assignment
21658         Problem reported by Bruno Haible in:
21659         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
21660         * lib/dfa.c (parse_bracket_exp): Simplify.
21662 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21664         dfa: simplify constraint-dependency checking
21665         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
21666         (prev_other_constraint): Remove.
21667         (prev_newline_dependent, prev_letter_dependent):
21668         Simplify, to avoid an unnecessary bitwise AND operation.
21670         dfa: prefer functions and constants to macros
21671         * lib/dfa.c: Prefer constants to macros where either will do.
21672         (streq, isasciidigit, newline_constraint)
21673         (letter_constraint, other_constraint, succeeds_in_context)
21674         (prev_newline_constraint, prev_letter_constraint)
21675         (prev_other_constraint, prev_newline_dependent)
21676         (prev_letter_dependent, accepting, accepts_in_context):
21677         Now static functions instead of function-like macros.
21678         Use lower-case names accordingly.  All uses changed.
21680         dfa: narrow more local var scopes
21681         * lib/dfa.c: Move some more local decls down to nearer where
21682         they're needed.
21684 2016-12-31  Jim Meyering  <meyering@fb.com>
21686         dfa: narrow the scope of many local variables
21687         * lib/dfa.c: Now that we are no longer constrained to c89, move
21688         declarations of many variables (often indices) "down" into the
21689         scope(s) where used or to the point of definition.  This is a
21690         no-semantic-change diff.
21692 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21694         version-etc: new year
21695         * build-aux/gendocs.sh (version):
21696         * doc/gendocs_template:
21697         * doc/gendocs_template_min:
21698         * doc/gnulib.texi:
21699         * lib/version-etc.c (COPYRIGHT_YEAR):
21700         Update copyright dates by hand in templates and the like.
21701         * all files: Run 'make update-copyright'.
21703 2016-12-31  Eric Blake  <eblake@redhat.com>
21705         do-release-commit-and-tag: avoid shell syntax error
21706         * build-aux/do-release-commit-and-tag (curr_br): $branch can
21707         contain spaces when rebasing.
21709         maint.mk: hoist gnulib_dir definition earlier
21710         * top/maint.mk (gnulib_dir): Move near top of file.
21712 2016-12-31  Jim Meyering  <meyering@fb.com>
21714         maint.mk: do not always evaluate intprops-related shell
21715         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
21716         using gnulib_dir undefined (gnulib_dir is defined later in the
21717         file, which will be fixed separately), and besides, there is no
21718         need to incur the cost of this shell invocation for every single
21719         use of this .mk file.  Reported by Eric Blake in
21720         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
21722 2016-12-30  Jim Meyering  <meyering@fb.com>
21724         maint.mk: improve sc_prohibit_intprops_without_use
21725         * top/maint.mk (_intprops_names): Don't hard-code the list of
21726         symbol names.  Instead, derive it on the fly.
21728 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21730         dfa: shorten sbit, success
21731         * lib/dfa.c (struct regex_syntax.sbit):
21732         (struct dfa.success): Use char, not int, for array elements, since
21733         they are all in the range 0..7.
21735         dfa: simplify multibyte_prop etc.
21736         This follows up on a change made when dfa.c was in grep, namely grep
21737         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
21738         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
21739         That earlier simplification allows for some more simplification
21740         and trimming down here.
21741         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
21742         (struct lexer_state): New mamber brack.
21743         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
21744         since they must be in the range 0..3 now.
21745         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
21746         the brack member now supersedes them.
21747         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
21748         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
21749         (dfaparse): Remove unnecessary initializations of already-0 storage.
21750         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
21751         (dfassbuild): No need to clear sup->mbcsets.
21753         dfa: minor performance tweak
21754         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
21756         dfa: wrap charclass inside a struct
21757         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
21758         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
21759         about 5% faster, where list.txt is generated by 'aspell dump
21760         master | head -n 100000 >list.txt'.  See Bug#22239.
21761         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
21762         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
21763         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
21764         Adjust to this, e.g., by using charclass * rather than charclass.
21765         All callers changed as needed.
21766         (copyset): Remove.  All uses changed to simple assignment.
21767         (parse_bracket_exp): Use zeroset instead of memset.
21769 2016-12-30  Jim Meyering  <meyering@fb.com>
21771         maint.mk: update list of intprops.h symbol names
21772         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
21773         This avoids a false failure of the sc_prohibit_intprops_without_use
21774         rule in grep.
21776 2016-12-29  Eric Blake  <eblake@redhat.com>
21778         getopt: fix parallel test failure
21779         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
21780         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
21781         * tests/test-getopt-main.h (main): Use different file names
21782         in case test-getopt-gnu and test-getopt-posix run in parallel.
21784 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21786         xalloc: x2nrealloc check for ptrdiff_t overflow
21787         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
21788         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
21790 2016-12-24  Bruno Haible  <bruno@clisp.org>
21792         lock test: Fix performance problem on multi-core machines.
21793         * tests/test-lock.c (USE_VOLATILE): New macro.
21794         (struct atomic_int): New type.
21795         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
21796         functions.
21797         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
21798         as 'struct atomic_int'.
21799         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
21800         reclock_checker_thread, test_recursive_lock): Use the new functions.
21801         Reported by Eric Blake in
21802         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
21803         and by Pádraig Brady in
21804         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
21806 2016-12-19  Bruno Haible  <bruno@clisp.org>
21808         vma-iter: Fix endless loop on 64-bit Windows.
21809         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
21810         'unsigned long'.
21812 2016-12-19  Bruno Haible  <bruno@clisp.org>
21814         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
21815         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
21816         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
21817         Invoke gt_TYPE_WINT_T instead.
21818         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
21819         * modules/stdint (Files): Add m4/wint_t.m4.
21820         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
21821         * modules/wctype-h (Makefile.am): Likewise.
21822         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
21823         not only on MSVC.
21824         * lib/wctype.in.h (wint_t): Likewise.
21826 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21828         getopt-posix-tests: fix Makefile typo
21829         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
21830         Fix typo: the last ‘_’ was missing in the name.
21831         I suspect that the typo explains this build failure:
21832         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
21833         although I can’t reproduce the problem on Solaris 10 sparc.
21835 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21837         dfa: improve worst-case 'replace' performance
21838         See my note in Bug#22357#71.
21839         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
21840         (merge_constrained): New function, which is like
21841         the old 'merge' function, except with a new argument C2.
21842         Simplify the body by avoiding the need for different sections
21843         of code depending on whether one input is exhausted.
21844         (merge): Use the new function.
21845         (delete): Return the constraint of the deleted position,
21846         not the entire position.  Caller changed.
21847         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
21849 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
21851         dfa: performance improvement for removal of epsilon closure
21852         See Bug#22357#32.
21853         * lib/dfa.c (delete): Use binary search to find deleted index.
21854         (replace): New function.  It replaces a position with the followed set.
21855         (epsclosure): Replace it with a new algorithm.  Update caller.
21857 2016-12-18  Bruno Haible  <bruno@clisp.org>
21859         Split tests for getopt-posix and getopt-gnu.
21860         * tests/test-getopt-posix.c: New file.
21861         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
21862         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
21863         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
21864         GNULIB_TEST_GETOPT_GNU.
21865         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
21866         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
21867         (Makefile.am): Test test-getopt-posix instead of test-getopt.
21868         * modules/getopt-gnu-tests: New file.
21869         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
21871 2016-12-18  Bruno Haible  <bruno@clisp.org>
21873         posix-modules: Add options for specific platforms.
21874         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
21875         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
21876         Invoke func_tmpdir. Filter out the excludes.
21878 2016-12-18  Bruno Haible  <bruno@clisp.org>
21880         getopt: Fix link error for users of getopt() in <unistd.h>.
21881         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
21882         __need_getopt is defined. Undefine all macros before defining them.
21883         * modules/getopt (Include): Clarify that including <unistd.h> is also
21884         OK.
21885         * tests/test-getopt.c: Add comment.
21887 2016-12-17  Bruno Haible  <bruno@clisp.org>
21889         getaddrinfo tests: Avoid compilation error on MSVC.
21890         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
21891         getaddrinfo on native Windows.
21893 2016-12-17  Bruno Haible  <bruno@clisp.org>
21895         getlogin, getlogin_r: Fix link errors on MSVC.
21896         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
21897         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
21898         (Link): New section.
21899         * modules/getlogin_r (Files): Add m4/getlogin.m4.
21900         (configure.ac): Require gl_LIB_GETLOGIN.
21901         (Link): New section.
21902         * NEWS: Mention the new link requirements.
21903         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
21904         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
21906 2016-12-17  Bruno Haible  <bruno@clisp.org>
21908         Un-deprecate the 'progname' module.
21909         * NEWS: Describe the appropriate use-cases of 'progname' versus
21910         'getprogname'. Based on discussion summary at
21911         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
21913 2016-12-17  Bruno Haible  <bruno@clisp.org>
21915         Reorganize NEWS a bit.
21916         * NEWS: Move some not so important changes away from section
21917         "Important Notes".
21919 2016-12-17  Bruno Haible  <bruno@clisp.org>
21921         tanhf: Avoid redefinition error on MSVC.
21922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
21923         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
21924         may be defined as an inline function.
21925         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
21926         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
21928 2016-12-17  Bruno Haible  <bruno@clisp.org>
21930         tanf: Avoid redefinition error on MSVC.
21931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
21932         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
21933         may be defined as an inline function.
21934         * modules/math (Makefile.am): Substitute REPLACE_TANF.
21935         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
21937 2016-12-17  Bruno Haible  <bruno@clisp.org>
21939         sqrtf: Avoid redefinition error on MSVC.
21940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
21941         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
21942         may be defined as an inline function.
21943         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
21944         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
21946 2016-12-17  Bruno Haible  <bruno@clisp.org>
21948         sinhf: Avoid redefinition error on MSVC.
21949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
21950         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
21951         may be defined as an inline function.
21952         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
21953         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
21955 2016-12-17  Bruno Haible  <bruno@clisp.org>
21957         sinf: Avoid redefinition error on MSVC.
21958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
21959         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
21960         may be defined as an inline function.
21961         * modules/math (Makefile.am): Substitute REPLACE_SINF.
21962         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
21964 2016-12-17  Bruno Haible  <bruno@clisp.org>
21966         logf: Avoid redefinition error on MSVC.
21967         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
21968         may be defined as an inline function.
21970 2016-12-17  Bruno Haible  <bruno@clisp.org>
21972         log10l: Avoid redefinition error on MSVC.
21973         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
21974         may be defined as an inline function.
21976 2016-12-17  Bruno Haible  <bruno@clisp.org>
21978         log10f: Avoid redefinition error on MSVC.
21979         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
21980         may be defined as an inline function.
21982 2016-12-17  Bruno Haible  <bruno@clisp.org>
21984         hypotl: Avoid redefinition error on MSVC.
21985         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
21986         may be defined as an inline function.
21988 2016-12-17  Bruno Haible  <bruno@clisp.org>
21990         hypotf: Avoid redefinition error on MSVC.
21991         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
21992         may be defined as an inline function.
21994 2016-12-17  Bruno Haible  <bruno@clisp.org>
21996         fmodl: Avoid redefinition error on MSVC.
21997         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
21998         may be defined as an inline function.
22000 2016-12-17  Bruno Haible  <bruno@clisp.org>
22002         fmodf: Avoid redefinition error on MSVC.
22003         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
22004         may be defined as an inline function.
22006 2016-12-17  Bruno Haible  <bruno@clisp.org>
22008         expf: Avoid redefinition error on MSVC.
22009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
22010         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
22011         may be defined as an inline function.
22012         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
22013         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
22015 2016-12-17  Bruno Haible  <bruno@clisp.org>
22017         coshf: Avoid redefinition error on MSVC.
22018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
22019         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
22020         may be defined as an inline function.
22021         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
22022         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
22024 2016-12-17  Bruno Haible  <bruno@clisp.org>
22026         cosf: Avoid redefinition error on MSVC.
22027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
22028         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
22029         may be defined as an inline function.
22030         * modules/math (Makefile.am): Substitute REPLACE_COSF.
22031         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
22033 2016-12-17  Bruno Haible  <bruno@clisp.org>
22035         atan2f: Avoid redefinition error on MSVC.
22036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
22037         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
22038         may be defined as an inline function.
22039         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
22040         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
22042 2016-12-17  Bruno Haible  <bruno@clisp.org>
22044         atanf: Avoid redefinition error on MSVC.
22045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
22046         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
22047         may be defined as an inline function.
22048         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
22049         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
22051 2016-12-17  Bruno Haible  <bruno@clisp.org>
22053         asinf: Avoid redefinition error on MSVC.
22054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
22055         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
22056         may be defined as an inline function.
22057         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
22058         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
22060 2016-12-17  Bruno Haible  <bruno@clisp.org>
22062         acosf: Avoid redefinition error on MSVC.
22063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
22064         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
22065         may be defined as an inline function.
22066         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
22067         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
22069 2016-12-17  Bruno Haible  <bruno@clisp.org>
22071         Avoid redefinition errors on MSVC.
22072         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
22073         the function may be defined as an inline function.
22074         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
22075         the function may be defined as an inline function.
22077 2016-12-17  Bruno Haible  <bruno@clisp.org>
22079         Avoid redefinition errors on MSVC.
22080         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
22081         * lib/unistd.in.h: Include <stdio.h> when necessary.
22083 2016-12-17  Bruno Haible  <bruno@clisp.org>
22085         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
22086         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
22087         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22088         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
22089         WINT_MAX.
22091 2016-12-17  Bruno Haible  <bruno@clisp.org>
22093         Avoid autoconf warning.
22094         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
22095         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
22097 2016-12-17  Bruno Haible  <bruno@clisp.org>
22099         fpending: Revert workaround against Emacs bug.
22100         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
22101         The Emacs bug is fixed by Eli Zaretskii in
22102         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
22104 2016-12-17  Bruno Haible  <bruno@clisp.org>
22106         getlogin_r tests: Port to mingw.
22107         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
22108         regression introduced on 2014-05-19.
22110 2016-12-17  Bruno Haible  <bruno@clisp.org>
22112         getlogin: Port to newer mingw.
22113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
22114         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
22115         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
22116         HAVE_GETLOGIN.
22117         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
22118         HAVE_GETLOGIN.
22119         * doc/posix-functions/getlogin.texi: Mention the issue.
22120         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
22121         regression introduced on 2014-05-14.
22123 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22125         builtin-expect: improve port to IBM XL C
22126         Problem reported for z/OS by Daniel Richard G. in:
22127         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
22128         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22129         Test for <builtins.h> directly.
22131         builtin-expect: port to IBM XL C
22132         Problem reported for z/OS by Daniel Richard G. in:
22133         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
22134         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
22135         Also allow __builtin_expect defined via a standard include file.
22137         regex: fix dependency
22138         Problem reported by Bruno Haible in:
22139         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
22140         * modules/regex: Depend on builtin-expect.
22142         builtin-expect: new module
22143         Fix fnmatch to use it.
22144         Problem reported for z/OS by Daniel Richard G.
22145         * lib/fnmatch.c (__builtin_expect):
22146         * lib/glob.c (__builtin_expect):
22147         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
22148         * lib/memmem.c (__builtin_expect) [!_LIBC]:
22149         * lib/scandir.c (__builtin_expect):
22150         * lib/strstr.c (__builtin_expect) [!_LIBC]:
22151         Remove macro; config.h now does this.
22152         * lib/gl_anytreehash_list1.h (add_to_bucket):
22153         * lib/regex_internal.h (BE):
22154         Assume __builtin_expect.
22155         * m4/builtin-expect.m4, modules/builtin-expect: New files.
22156         * modules/avltreehash-list, modules/fnmatch, modules/glob:
22157         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
22158         * modules/scandir, modules/strstr-simple:
22159         Depend on builtin-expect.
22161 2016-12-15  Bruno Haible  <bruno@clisp.org>
22163         init.sh: Add possibility to not delete temporary files.
22164         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
22165         to yes, don't erase the temporary directory.
22167 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
22169         regex: fix integer-overflow bug in never-used code
22170         Problem reported by Clément Pit–Claudel in:
22171         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
22172         * lib/regex_internal.h: Include intprops.h.
22173         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
22174         behavior on integer overflow.
22175         * modules/regex (Depends-on): Add intprops.
22177         fpending: fix port to MinGW on Emacs
22178         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
22179         Problem reported by Eli Zaretskii in:
22180         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
22181         Is Plan 9 still a valid porting target, anyway?
22183 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22185         safe-alloc: use xalloc-oversized
22186         * lib/safe-alloc.c: Include xalloc-oversized.h.
22187         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
22188         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
22190         xalloc: do not exceed PTRDIFF_MAX
22191         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
22192         xalloc_oversized check, since objects larger than PTRDIFF_MAX
22193         bytes have pointer-subtraction problems.
22195         malloca: do not exceed PTRDIFF_MAX
22196         * lib/malloca.h: Include xalloc-oversized.
22197         (nmalloca): Use xalloc_oversized instead of rolling our own.
22198         * modules/malloca (Depends-on):
22199         * modules/relocatable-prog-wrapper (Depends-on):
22200         Add xalloc-oversized.
22202         quotearg: pacify GCC better
22203         * modules/quotearg (Depends-on): Add minmax, stdint.
22204         * lib/quotearg.c: Include minmax.h, stdint.h.
22205         (nslots): Now int, as there seems little point to going to extra
22206         work merely to support the INT_MAX slot, which nobody ever uses.
22207         (quotearg_n_options): Redo size-overflow checks to pacify GCC
22208         and to catch (mostly-theoretical) ptrdiff_t problems too.
22209         This can be done via one comparison.
22211 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
22213         xalloc-oversized: check for PTRDIFF_MAX too
22214         This avoids undefined behavior when subtracting pointers to
22215         objects containing more than PTRDIFF_MAX bytes.
22216         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
22217         Also return 1 if the result would exceed PTRDIFF_MAX>
22218         * modules/xalloc-oversized (Depends-on):
22219         Add stdint.
22221         dfa: fix glitches in previous commit
22222         Sorry, I don't know how I managed to commit the wrong version.
22223         * lib/dfa.c (MIN): Move up.
22224         (xpalloc): Now static.
22226         dfa: fix some unlikely integer overflows
22227         I found these while reviewing the recent Coverity-related fix.
22228         This patch changes part of dfa.c to prefer ptrdiff_t instead of
22229         size_t for object counts.  Using ptrdiff_t is the style typically
22230         used in Emacs; although it wastes a sign bit as sizes can never be
22231         negative, it makes -fsanitize=undefined more likely to catch
22232         integer overflows in index calculation, and nowadays the upside is
22233         typically more important than the downside.  Although perhaps the
22234         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
22235         of dfa.c already does, since it uses state_num which is signed),
22236         that is a bigger change and is not needed to fix the bugs I found.
22237         * lib/dfa.c: Include stdint.h and intprops.h.
22238         (TOKEN_MAX): New macro.
22239         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
22240         (charclass_index, parse_bracket_exp, addtok, insert, merge)
22241         (realloc_trans_if_necessary, free_mbdata):
22242         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
22243         This is safe because xpalloc checks that the sizes do not exceed
22244         either SIZE_MAX or PTRDIFF_MAX.
22245         (xpalloc): New function, mostly taken from Emacs.
22246         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
22247         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
22248         (charclass_index): Check for integer overflow in computing
22249         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
22250         added to it later.
22251         (alloc_position_set): Check for integer overflow.  On typical
22252         platforms this check has zero overhead, since the constant
22253         expression is false.
22254         (realloc_trans_if_necessary):
22255         Remove assertion, which I hope Coverity no longer needs.
22257         * modules/dfa (Depends-on): Add intprops, stdint.
22259 2016-12-12  Jim Meyering  <meyering@fb.com>
22261         dfa: add an assertion to avoid coverity false positive
22262         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
22263         warned that "newalloc1 - 2" could overflow.
22265 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
22267         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
22268         * dfa.h (DFA_CASE_FOLD): Remove.
22269         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
22271 2016-12-13  John W. Eaton  <gnu@jweaton.org>
22273         link: fix test to declare use of rename()
22274         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
22275         -Werror=implicit-function-declaration
22277 2016-12-12  Bruno Haible  <bruno@clisp.org>
22279         fpending: Port to native Windows with MSVC.
22280         * lib/fpending.c: Include stdio-impl.h.
22281         (__fpending): Include all known implementations. Err out if it's not
22282         ported.
22283         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
22284         * modules/fpending (Files): Add lib/stdio-impl.h.
22285         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
22287 2016-12-12  Bruno Haible  <bruno@clisp.org>
22289         stdioext: Port to native Windows with MSVC.
22290         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
22291         (struct _gl_real_FILE): New type.
22292         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
22293         Windows.
22294         * lib/fbufmode.c (fbufmode): Add code for native Windows.
22295         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
22296         other SystemV derived implementations.
22297         * lib/fpurge.c (fpurge): Likewise.
22298         * lib/freadable.c (freadable): Likewise.
22299         * lib/freadahead.c (freadahead): Likewise.
22300         * lib/freading.c (freading): Likewise.
22301         * lib/freadptr.c (freadptr): Likewise.
22302         * lib/freadseek.c (freadptrinc): Likewise.
22303         * lib/fseeko.c (fseeko): Likewise.
22304         * lib/fseterr.c (fseterr): Likewise.
22305         * lib/fwritable.c (fwritable): Likewise.
22306         * lib/fwriting.c (fwriting): Likewise.
22307         Reported by Gisle Vanem <gvanem@yahoo.no>.
22309 2016-12-11  Jim Meyering  <meyering@fb.com>
22311         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
22312         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
22313         to work with most shells, but not with the one provided by many
22314         Solaris 10 systems, so running configure with such a /bin/sh evokes
22315         e.g., "./configure: syntax error at line 33602: `(' unexpected".
22316         Reported by Assaf Gordon in
22317         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
22319 2016-12-10  Bruno Haible  <bruno@clisp.org>
22321         threadlib: Optimize out runtime test on Solaris >= 10.
22322         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
22323         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
22324         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
22326 2016-12-10  Bruno Haible  <bruno@clisp.org>
22328         stdint: Update doc about Solaris 9.
22329         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
22331 2016-12-09  Bruno Haible  <bruno@clisp.org>
22333         c-ctype tests: Fix link error on Solaris 9.
22334         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
22335         Reported at <https://savannah.gnu.org/bugs/?46827>.
22337 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
22339         dfa: fix performance bug that recomputes trans
22340         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
22341         25 on-demand changes.  The bug caused build_state to reset all
22342         d->trans elements to -2 even when d->trans was already non-null.
22343         Use C99 style decls after statements in this function.
22345         same-inode: port to MinGW
22346         Here st_ino is always 0, so change the definition of SAME_INODE so
22347         that 1 means the two files are the same, 0 with st_ino != 0 means
22348         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
22349         reported by Bruno Haible (Bug#25146).
22350         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
22351         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
22353 2016-12-04  Bruno Haible  <bruno@clisp.org>
22355         javacomp-script: Support Java 7 and 8.
22356         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
22357         target-version 1.7, 1.8.
22359 2016-12-02  Daiki Ueno  <ueno@gnu.org>
22361         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
22362         GPLv2" rewriting.
22364 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
22366         * gnulib-tool (func_import): Adhere to the license guideline when
22367         rewriting the license text to "LGPLv3+ or GPLv2":
22368         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
22370 2016-12-02  Bruno Haible  <bruno@clisp.org>
22372         localcharset: Avoid theoretical buffer overrun.
22373         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
22374         return value from setlocale if it would lead to a buffer overrun.
22376 2016-12-01  Bruno Haible  <bruno@clisp.org>
22378         Relicense some modules under LGPLv2+.
22379         Kevin Cernekee's approval is in
22380         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
22381         * modules/fseterr (License): Change to LGPLv2+.
22382         * modules/mbchar (License): Likewise.
22383         * modules/mbiter (License): Likewise.
22384         * modules/mbsnlen (License): Likewise.
22385         * modules/wcwidth (License): Likewise.
22387 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22389         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
22390         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
22391         OS/2 kLIBC.
22393 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22395         alphasort, scandir: Port to OS/2 kLIBC
22396         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
22397         declaration.
22398         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
22400 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22402         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
22403         * lib/relocatable.c (relocate): Do not touch pathname if it is started
22404         with '/@unixroot'.
22406 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
22408         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
22409         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
22410         OS/2 kLIBC unless TCPV40HDRS is defined.
22412 2016-11-29  Jim Meyering  <meyering@fb.com>
22414         dfa: avoid new infinite loop
22415         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
22416         * lib/dfa.c (dfastate): When constructing a new state table, we could
22417         initially declare that we had found a match, and later find that
22418         constraints eliminate that possibility, yet continue to use the
22419         now stale "matched" indicator.  That would lead to an infinite loop.
22420         The solution is to update "matched" when necessary.
22421         Introduced by commit v0.1-983-g403adf1.
22423 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22425         dfa: avoid match middle in multibyte character
22426         * lib/dfa.c (transit_state): If fails in matching single byte characters
22427         on a state including period expression in non-UTF8 multibyte locales,
22428         skip trailing bytes.
22429         (dfa_supported): Revert previous change.
22431 2016-11-27  Jim Meyering  <meyering@fb.com>
22433         dfa: avoid false match in non-UTF8 multibyte locales
22434         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
22435         as "not supported" so that callers will resort to using regex-based
22436         matcher.  This will surely hurt performance, but correctness trumps
22437         performance here, and the affected locales are less and less relevant,
22438         these days.  See grep's bug report https://bugs.gnu.org/24975.
22440 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
22442         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
22443         * lib/ptsname_r.c: Include the appropriate headers.
22444         [__sun]: Delete sys/sysmacros.h include.
22445         [_AIX || __osf__]: Likewise.
22446         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
22448 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22450         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
22451         * lib/md4.c (md4_process_bytes): The existing define is made internal
22452         in recent versions of glibc, so also use this new public define.
22453         * lib/md5.c (md5_process_bytes): Likewise.
22454         * lib/sha1.c (sha1_process_bytes): Likewise.
22455         * lib/sha256.c (sha256_process_bytes): Likewise.
22456         * lib/sha512.c (sha512_process_bytes): Likewise.
22458 2016-11-27  Pádraig Brady  <P@draigBrady.com>
22460         maint: use a more standard return from mbrtowc test
22461         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
22462         from the test program as this often indicates an
22463         unhandled case in the test program.
22464         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
22465         (gl_MBRTOWC_SANITYCHECK): Likewise.
22466         (gl_MBRTOWC_NULL_ARG2): Likewise.
22467         (gl_MBRTOWC_NUL_RETVAL): Likewise.
22469 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
22471         freopen: work around glibc bug with closed fd
22472         Work around glibc bug#15589, where freopen mishandles the case
22473         where stdin etc. are already closed.
22474         * doc/posix-functions/freopen.texi (freopen): Document the bug.
22475         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
22476         instead of __need_FILE, as the latter does not work with glibc.
22477         Include <fcntl.h>, for open flags.
22478         (rpl_freopen): Work around glibc bug.
22479         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
22480         * modules/freopen (Depends-on): Add fcntl-h.
22481         * tests/test-freopen.c (main): Test for bug.
22483 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22485         fnmatch: fix typo introduced on 2016-08-17
22486         This fixes the port to non-GCC compilers that lack __builtin_expect.
22487         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
22489         dfa: simplify with new function fillset
22490         * lib/dfa.c (fillset): New function.
22491         Use it for clarity when applicable.
22493         dfa: fix glitches with on-demand states
22494         Also, adjust commentary to better match new code.
22495         Some of these glitches predate the recent change.
22496         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
22497         only non-initial states.
22498         (dfastate): Rename locals to better match new roles.
22499         Move them into nested scopes if this is easy.
22500         Omit unnecessary calls to zeroset.
22501         Simplify test for whether to throw in the positions of state 0.
22502         Omit C99-ism (decl after statement) since Gawk still wants C89.
22503         (build_state): Omit unnecessary test and assignment.
22504         Fix some confusion that counted transition tables inaccurately
22505         and could cause a memory leak.
22506         (dfaexec_main): Redo to make it clearer to the compiler that
22507         -1 and -2 are the only negative state numbers here.
22509 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22511         dfa: addition of new state on demand
22512         * src/dfa.c (dfastate): Add argument UC, the current input character.
22513         Fill only a group including the character in transition table.
22514         (realloc_trans_if_necessary): Add the dummy state which means that a
22515         transition table is assigned but the next state is not assigned.
22516         (build_state): Return the next state.  All callers updated.
22517         (transit_state_singlebyte): If we get the dummy state,
22518         fill the transition table.
22519         (dfaexec_main): Handle the dummy state.
22520         (free_mbdata, dfafree): Consider the dummy state.
22522 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22524         srclist: sync with released gettext
22525         * config/srclist.txt: Set "release" option to the files under
22526         $GETTEXT.
22528 2016-11-24  Daiki Ueno  <ueno@gnu.org>
22530         srclist: add "release" option
22531         * config/srclist.txt: Change the format so that the first column
22532         of each line points to the top-level directory of the source
22533         archive.
22534         * config/srclist-update: Accept "release" option that checks files
22535         from the most recently tagged revision in the source archive.
22537 2016-11-21  Bruno Haible  <bruno@clisp.org>
22539         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
22540         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22541         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
22542         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
22543         Inline and remove member function 'rpl ()' of the wrapper struct.
22545 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
22547         dfa: fix logic typo
22548         Problem reported by Stephane Chazelas (Bug#24973).
22549         * lib/dfa.c (using_simple_locale): Fix typo that caused some
22550         non-simple locales like fr_FR to be treated as simple.
22552 2016-11-20  Jim Meyering  <meyering@fb.com>
22554         fix test driver leaks: exclude, malloc, realloc
22555         * tests/test-exclude.c (main): Fix trivial leak.
22556         * tests/test-malloc-gnu.c (main): Likewise.
22557         * tests/test-realloc-gnu.c (main): Likewise.
22558         With these changes, grep's tests are now leak free.
22559         I.e., running them with ASAN elicits no failure:
22560           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
22561             AM_LDFLAGS='-fsanitize=address -static-libasan' check
22563 2016-11-11  Bruno Haible  <bruno@clisp.org>
22565         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
22566         * modules/libunistring: (License): Change from LGPL to
22567         "LGPLv3+ or GPLv2".
22568         * modules/libunistring-optional: Likewise.
22569         * modules/unicase/*: Likewise.
22570         * modules/uniconv/*: Likewise.
22571         * modules/unictype/*: Likewise.
22572         * modules/unigbrk/*: Likewise.
22573         * modules/unilbrk/*: Likewise.
22574         * modules/uniname/*: Likewise.
22575         * modules/uninorm/*: Likewise.
22576         * modules/unistdio/*: Likewise.
22577         * modules/unistr/*: Likewise.
22578         * modules/uniwbrk/*: Likewise.
22579         * modules/uniwidth/*: Likewise.
22581 2016-11-12  Bruno Haible  <bruno@clisp.org>
22583         Relicense some modules under LGPLv2+.
22584         Paul Eggert's approval is in
22585         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
22586         Eric Blake's approval is in
22587         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
22588         Ludovic Courtès's approval is in
22589         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
22590         * modules/isnand-nolibm (License): Change to LGPLv2+.
22591         * modules/isnanf-nolibm (License): Likewise.
22592         * modules/isnanl-nolibm (License): Likewise.
22594 2016-11-19  Bruno Haible  <bruno@clisp.org>
22596         Relicense some modules under LGPLv2+.
22597         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
22598         modules/vasnprintf.
22599         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
22600         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
22601         All other significant changes to the files in lib/ of these modules
22602         are from me.
22603         * modules/memcmp2 (License): Change to LGPLv2+.
22604         * modules/amemxfrm (License): Likewise.
22605         * modules/fpieee (License): Likewise.
22606         * modules/fpucw (License): Likewise.
22607         * modules/frexp-nolibm (License): Likewise.
22608         * modules/frexpl-nolibm (License): Likewise.
22609         * modules/printf-frexp (License): Likewise.
22610         * modules/printf-frexpl (License): Likewise.
22611         * modules/printf-safe (License): Likewise.
22612         * modules/signbit (License): Likewise.
22614 2016-11-17  Bruno Haible  <bruno@clisp.org>
22616         Enable Unicode decoder safety unconditionally.
22617         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
22618         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
22619         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22620         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22621         * lib/unistr/u8-prev.c (u8_prev): Likewise.
22622         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
22623         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
22624         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
22625         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
22626         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
22627         * lib/unistr/u16-prev.c (u16_prev): Likewise.
22628         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
22629         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
22630         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
22631         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
22632         * lib/unistr/u32-prev.c (u32_prev): Likewise.
22633         * lib/unistr/u32-next.c (u32_next): Likewise.
22634         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
22635         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
22636         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
22637         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
22638         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
22639         CONFIG_UNICODE_SAFETY tests unconditionally.
22640         * tests/unistr/test-u32-mblen.c (main): Likewise.
22641         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
22642         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
22643         * tests/unistr/test-u32-next.c (main): Likewise.
22644         * tests/unistr/test-u32-strmblen.c (main): Likewise.
22645         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
22646         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
22647         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
22648         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
22649         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22650         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
22651         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
22652         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22653         * lib/unistr/u16-check.c (u16_check): Update comment.
22654         * NEWS: Mention the changes that callers should be aware of.
22656 2016-11-19  Bruno Haible  <bruno@clisp.org>
22658         relocatable-prog-wrapper: Fix breakage on Cygwin.
22659         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
22660         (Depends-on): Remove intprops.
22661         * lib/relocwrapper.c: Update dependency tree.
22662         (strerror): Undefine.
22663         * build-aux/install-reloc (func_create_wrapper): Do not compile
22664         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
22666 2016-11-19  Bruno Haible  <bruno@clisp.org>
22668         strerror: Make it compile in C++ mode.
22669         * lib/strerror.c (strerror): Ignore the return value of memcpy().
22671 2016-11-15  Pedro Alves  <palves@redhat.com>
22673         sys_time: add gnulib::timeval for C++
22674         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
22675         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
22676         timeval macro.
22678 2016-11-14  Pedro Alves  <palves@redhat.com>
22680         snippet/c++defs: fix real-floating arg functions in C++ mode
22681         Also, define isfinite, isinf, isnan, signbit in the gnulib
22682         namespace instead of in the global namespace.
22683         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
22684         (_GL_END_NAMESPACE): New.
22685         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
22686         (isfinite, isinf, isnan, signbit) [__cplusplus &&
22687         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
22688         instead of in the global namespace.
22689         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
22690         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
22691         of in the global namespace.
22693 2016-11-13  Jim Meyering  <meyering@fb.com>
22695         strftime: don't use __THROW
22696         Each use of __THROW would provoke this from gcc-7-to-be:
22698           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
22699             on unit local functions [-Wattributes]
22700           static int iso_week_days (int, int) __THROW;
22701           ^~~~~~
22702         * lib/strftime.c (__THROW): Don't define.
22703         Remove each use of __THROW.
22704         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
22705         (tm_diff, iso_week_days, __strftime_internal): Likewise.
22707 2016-11-14  Paul Eggert  <eggert@union>
22709         obstack: port to gcc -fcheck-pointer-bounds
22710         Problem found by 'make check' failure on bleeding-edge coreutils
22711         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
22712         6.2.0-5ubuntu12), configured via "./configure
22713         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
22714         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
22715         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
22716         New macro, copied from fts_.h.
22717         (struct _obstack_chunk.contents): Use it.
22719 2016-11-14  Eric Blake  <eblake@redhat.com>
22721         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
22722         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
22723         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
22725 2016-11-14  Pádraig Brady  <P@draigBrady.com>
22727         strptime: fix compile error in recent change
22728         * lib/strptime.c (__strptime_internal): Fix ported code.
22730 2016-11-11  Bruno Haible  <bruno@clisp.org>
22732         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
22733         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
22734         (func_import): Extend determination of license_incompatibilities.
22735         (func_create_testdir): Extend table of license compatibility. Handle
22736         also the licenses GPLv3+, GPL, LGPLv3+.
22738 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
22740         strftime: tune %q
22741         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
22743         Merge strftime.c changes from glibc
22744         This incorporates:
22745         2007-10-16 [BZ #5184] Add tzset_called argument
22746         2008-06-13 [BZ #6612] pass reference to tzset_called around
22747         2009-10-30 Implement Burmese language locale for Myanmar
22748         2010-01-09 Add support for XPG7 testing
22749         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
22750         2015-10-20 Convert miscellaneous function definitions to prototype style
22751         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
22752         it anyway and this lessens the difference between gnulib and glibc.
22753         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
22754         (__THROW): Define if standard headers do not.
22755         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
22756         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
22757         Declare with __THROW.
22758         (__strftime_internal): Rename from strftime_case_. Add arg for
22759         whether tzset is called.  All uses changed.  Call tzset at most
22760         once.  Allow %OC, for Burmese.
22761         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
22762         Don't assume values are in range.
22764 2016-11-12  Eric Blake  <eblake@redhat.com>
22766         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
22767         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
22768         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
22769         different value.
22771 2006-11-12  Pedro Alves  <palves@redhat.com>
22773         Fix gnulib C++ namespace support and std::frexp
22774         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
22775         _GL_CXXALIASWARN.
22777 2006-11-12  Pedro Alves  <palves@redhat.com>
22779         GNULIB_NAMESPACE::func need not pull in rpl_func
22780         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
22781         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
22782         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
22783         struct instead of a function pointer.
22785 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
22787         manywarnings: fix -Wno-missing-field-initializers detection
22788         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
22789         to be independent of -Wunused-variable.  I.E. ensure the latter
22790         warning doesn't occur so that detection of the former is accurate.
22792 2016-11-05  Pádraig Brady  <pbrady@fb.com>
22794         strftime,strptime: support %q to represent the quarter
22795         * lib/strftime.c (strftime_case_): Add %q case.
22796         * lib/strptime.c (__strptime_internal): Likewise.
22797         * tests/test-strftime.c (quarter_test): A new test case.
22799 2016-11-03  Eric Blake  <eblake@redhat.com>
22801         bootstrap: Fix get_version() for AIX 5.3
22802         * build-aux/bootstrap (get_version): Factor out sed script, since
22803         indented comments choke AIX 5.3 sed.
22804         Reported-by: Michael Felt <aixtools@gmail.com>
22806 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22808         intprops: port to older XL C
22809         Problem reported by Alexander Samoilov in:
22810         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
22811         http://savannah.nongnu.org/bugs/?49448
22812         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
22813         Define to 1 only for XL C 12.1 or later, since this bug
22814         occurs in XL C for AIX 6.0 but not in 12.1.
22816 2016-11-02  Pádraig Brady  <P@draigBrady.com>
22818         backupfile: initialize default suffix within the implementation
22819         * lib/backupfile.c (find_backup_file_name): Initialize the
22820         global variable here, to simplify usage, and to only call
22821         getenv() when needed.
22823 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
22825         futimens: remove FIXME for old Linux kernels
22826         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
22827         this in 2012" FIXME, like that for utimensat.
22829         utimensat: remove FIXME for old Linux kernels
22830         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
22831         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
22832         this in 2012" FIXME, by assuming the file system bug is absent
22833         unless demonstrated to be present.  We no longer need to worry
22834         about Linux kernel 2.6.32 when building with newer kernels.
22836 2016-10-16  Bruno Haible  <bruno@clisp.org>
22838         qsort_r: Fix macrology for platforms that lack the function.
22839         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
22840         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
22841         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
22842         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
22843         not exist.
22844         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
22845         the function exists.
22846         * modules/qsort_r: Add comments.
22848 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22850         sys_types: fix Texinfo typos
22851         * doc/glibc-functions/gnu_dev_major.texi:
22852         * doc/glibc-functions/gnu_dev_makedev.texi:
22853         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
22855 2016-10-26  John David Anglin  <dave.anglin@bell.net>
22857         getprogname: port to HP-UX
22858         See Bug#24805.
22859         * lib/getprogname.c (getprogname) [__hpux]: Port.
22860         * tests/test-getprogname.c (STREQ) [__hpux]:
22861         Special-case for HP-UX limitations on program name length.
22863 2016-10-20  Bruno Haible  <bruno@clisp.org>
22865         Update doc about target platforms.
22866         * doc/gnulib-intro.texi (Target Platforms): Update list.
22868 2016-10-15  Bruno Haible  <bruno@clisp.org>
22870         opendir, readdir, closedir: Relicense under LGPLv2+.
22871         * modules/opendir (License): Change to LGPLv2+.
22872         * modules/readdir (License): Likewise.
22873         * modules/closedir (License): Likewise.
22875 2016-10-16  Bruno Haible  <bruno@clisp.org>
22877         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
22878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
22879         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
22880         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
22881         HAVE_DECL_STRERROR_R.
22883 2016-10-16  Bruno Haible  <bruno@clisp.org>
22885         Make the 'argp' module work without the 'error' module.
22886         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
22888 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22890         diffseq: restore TOO_EXPENSIVE heuristic
22891         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
22892         (Bug#24715).  The simplest solution is to restore the
22893         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
22894         using a higher threshold to avoid Bug#16848 on smaller files.
22895         * lib/diffseq.h (struct context): Restore member too_expensive.
22896         (struct partition): Restore members lo_minimal, hi_minimal.
22897         (diag, compareseq): Restore arg find_minimal.  All uses changed.
22898         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
22899         1993 to make 'diff' run faster (but not as well) on large inputs,
22900         but use a threshold of 4096 instead of the old 256.
22901         * lib/fstrcmp.c (strcmp_bounded):
22902         * lib/git-merge-changelog.c (compute_differences):
22903         Adjust to diffseq.h changes.
22905 2016-10-22  Bruno Haible  <bruno@clisp.org>
22907         iconv: Avoid compilation error when bootstrapping GNU libiconv.
22908         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
22909         declaration yet, define ICONV_CONST to empty.
22911 2016-10-15  Bruno Haible  <bruno@clisp.org>
22913         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
22914         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
22915         module.
22917 2016-10-16  Bruno Haible  <bruno@clisp.org>
22919         system-quote tests: Avoid compiler warning on AIX.
22920         * tests/test-system-quote-child.c (fopen): Redefine like the system's
22921         <stdio.h> does.
22923 2016-10-16  Bruno Haible  <bruno@clisp.org>
22925         Fix some "gcc -Wall" warnings.
22926         * tests/test-ffsl.c (main): Use variable x, not i.
22927         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
22928         freopen.
22929         * tests/test-sethostname1.c (main): Explicitly ignore the return value
22930         of sethostname.
22932 2016-10-16  Bruno Haible  <bruno@clisp.org>
22934         gnulib-tool: Make --create-testdir on all modules work again.
22935         * gnulib-tool (func_create_testdir): Don't include the
22936         non-recursive-gnulib-prefix-hack module.
22938 2016-10-21  Daiki Ueno  <ueno@gnu.org>
22940         libunistring: change the maintainer to 'all'
22941         * modules/gen-uni-tables, modules/libunistring:
22942         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
22943         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
22944         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
22945         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
22946         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
22947         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
22948         * modules/uniwidth/*: Change the maintainer to 'all'.
22950 2016-10-16  Bruno Haible  <bruno@clisp.org>
22952         Simplify "configure: checking ..." messages.
22953         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
22954         AC_MSG_NOTICE.
22955         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
22957 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
22959         quotearg-tests: pacify gcc -Wall
22960         Problem reported by Bruno Haible in:
22961         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
22962         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
22963         * tests/test-quotearg.h: ... from here.
22965 2016-10-20  Pádraig Brady  <P@draigBrady.com>
22967         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
22968         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
22969         Needed on Centos <= 4.
22971 2016-10-20  Jim Meyering  <meyering@fb.com>
22973         printf.m4: fix a bug in detecting printf %j support
22974         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
22975         uintmax_t is defined in neither stdint.h nor inttypes.h.
22976         Before, this macro might have mistakenly set
22977         gl_cv_func_printf_sizes_c99=yes on such a system.
22978         Spotted by Zev Weiss.
22980 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22982         sched: substitute HAVE_SYS_CDEFS_H too
22983         Problem reported by Tom G. Christensen in:
22984         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
22985         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
22986         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
22988 2016-10-19  Pádraig Brady  <P@draigBrady.com>
22990         quotearg: never write beyond the returned length
22991         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
22992         scan of the string when we initially encounter a single quote when
22993         shell quoting, so that if we then switch to a more concise quoting method
22994         we will not have written beyond that returned length.
22995         This is significant for sh-quote, which has separate routines
22996         to determine the length and do the actual quoting.
22997         * tests/test-quotearg.h: Reinstate the buffer bounds checking
22998         now that we never write more than the returned length.
23000 2016-10-18  Bruno Haible  <bruno@clisp.org>
23002         getprogname tests: Avoid failure in packages that use libtool.
23003         * tests/test-getprogname.c (main): Strip "lt-" prefix.
23004         Based on a patch by Jim Meyering.
23006 2016-10-16  Bruno Haible  <bruno@clisp.org>
23008         getprogname: Fix test failure on Cygwin. Comments.
23009         * lib/getprogname.h: Add comments.
23010         * lib/getprogname.c: Add comments. Fix #elif indentation.
23011         * tests/test-getprogname.c (main): On Cygwin, expect a result without
23012         ".exe" suffix.
23014 2016-10-16  Bruno Haible  <bruno@clisp.org>
23016         Make sure the libunistring detection rejects older versions with a
23017         known bug.
23018         * modules/unistr/u8-strtok (configure.ac): Bump required version.
23019         * modules/unistr/u16-strtok (configure.ac): Likewise.
23020         * modules/unistr/u32-strtok (configure.ac): Likewise.
23022 2016-10-18  Bruno Haible  <bruno@clisp.org>
23024         sh-quote, system-quote: revert regression of unit test.
23025         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
23026         * tests/test-system-quote-main.c (check_one): Likewise.
23028 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23030         quotearg: fix stale tests
23031         * tests/test-quotearg.c [locale_results]: Add the missing str7
23032         entries to the expected results.
23033         * tests/test-system-quote-main.c (check_one): Don't enforce that we
23034         don't write beyond the returned length, since that's no longer the
23035         case if we switch to a more concise quoting style.
23036         * tests/test-sh-quote.c (check_one): Likewise.
23037         (main): Adjust for the new more concise quoting style.
23038         Reported by Bruno Haible.
23040 2016-10-16  Jim Meyering  <meyering@fb.com>
23042         non-recursive-gnulib-prefix-hack: fix inconsequential typo
23043         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
23044         to "$1".  This macro is always invoked with $1 == lib.
23045         Spotted by Bruno Haible
23047 2016-10-16  Bruno Haible  <bruno@clisp.org>
23049         Fix a test crash.
23050         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
23051         fails.
23053 2016-10-16  Pádraig Brady  <P@draigBrady.com>
23055         test-limits-h: suppress -Woverlength-strings
23056         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
23058 2016-10-15  Bruno Haible  <bruno@clisp.org>
23060         gettime, timespec, utimens: Relicense under LGPL.
23061         * modules/gettime (License): Change to LGPL.
23062         * modules/timespec (License): Likewise.
23063         * modules/utimens (License): Likewise.
23065 2016-10-14  Bruno Haible  <bruno@clisp.org>
23066             Pádraig Brady  <P@draigBrady.com>
23068         canonicalize-lgpl: Support the case path_max > INT_MAX.
23069         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
23070         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
23072 2016-10-13  Jim Meyering  <meyering@fb.com>
23074         getprogname: IBM z/OS: avoid NULL-dereference
23075         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
23076         upon strdup failure.
23078 2016-10-12  Jim Meyering  <meyering@fb.com>
23080         test-stdint: use _GL_VERIFY rather than "verify" for some tests
23081         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
23082         and an abbreviated diagnostic rather than verify with the full one,
23083         because the full-length strings would evoke warnings from gcc with
23084         -Woverlength-strings.
23086 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23088         stdint: port SIZE_MAX to glibc s390
23089         Problem reported by Eric Blake in:
23090         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
23091         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
23092         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
23093         correct type, if possible.
23095 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
23097         getprogname: port to IBM z/OS
23098         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
23100 2016-10-11  Jim Meyering  <meyering@fb.com>
23102         maint: remove stray space after "." in AC_DEFINE comment.
23103         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
23104         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23106 2016-10-05  Jim Meyering  <meyering@fb.com>
23108         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23109         * lib/long-options.c (parse_long_options): Add a break statement
23110         to avoid this new warning/failure:
23111         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23112           --create-testdir --dir=/t/x --with-tests --test long-options
23113         ../../gllib/long-options.c: In function 'parse_long_options':
23114         ../../gllib/long-options.c:66:12: error: this statement may \
23115           fall through [-Werror=implicit-fallthrough]
23116                    (*usage_func) (EXIT_SUCCESS);
23117                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23119 2016-10-05  Jim Meyering  <meyering@fb.com>
23121         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23122         Testing this module would fail when using GCC 7 like this:
23123         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23124           --dir=/tmp/x --with-tests --test utimecmp
23125         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23126         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23127           [-Werror=bool-operation]
23128                          time_t s = src_s & ~ (res == 2 * BILLION);
23129                                             ^
23130         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23131           [-Werror=bool-operation]
23132                src_s &= ~ (res == 2 * BILLION);
23133                         ^
23134         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23135         Instead, make it explicit that we intend to apply it to 0 or 1.
23137 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23139         dfa: save memory for states
23140         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
23141         states if dfa has a lot of caches.
23143 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
23145         wchar, wctype-h: fix for MinGW 3.22.2
23146         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
23147         special invocation, to fix issues with MinGW 3.22.2 wchar.h
23148         when included from <string.h>.
23149         * lib/wctype.in.h [__MINGW32__]: Add special invocation
23150         convention for MinGW 3.22.2, to solve issues with their
23151         wctype.h when included from <ctype.h>.
23153 2016-10-05  Jim Meyering  <meyering@fb.com>
23155         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
23156         * lib/long-options.c (parse_long_options): Add a break statement
23157         to avoid this new warning/failure:
23158         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
23159           --create-testdir --dir=/t/x --with-tests --test long-options
23160         ../../gllib/long-options.c: In function ‘parse_long_options’:
23161         ../../gllib/long-options.c:66:12: error: this statement may \
23162           fall through [-Werror=implicit-fallthrough]
23163                    (*usage_func) (EXIT_SUCCESS);
23164                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
23166         utimecmp: avoid new GCC 7 warning from -Wbool-operation
23167         Testing this module would fail when using GCC 7 like this:
23168         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
23169           --dir=/tmp/x --with-tests --test utimecmp
23170         ../../gllib/utimecmp.c: In function ‘utimecmp’:
23171         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
23172           [-Werror=bool-operation]
23173                          time_t s = src_s & ~ (res == 2 * BILLION);
23174                                             ^
23175         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
23176           [-Werror=bool-operation]
23177                src_s &= ~ (res == 2 * BILLION);
23178                         ^
23179         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
23180         Instead, make it explicit that we intend to apply it to 0 or 1.
23182 2016-10-03  Pádraig Brady  <P@draigBrady.com>
23184         quotearg: minimize shell quoting using double quotes
23185         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
23186         quote in encountered then use double quotes (c style quoting)
23187         when possible, as it simplifies the quoting.
23188         * tests/test-quotearg-simple.c: Add test cases.
23189         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
23190         for the fact we now may write beyond the returned length.
23192 2016-10-02  Jim Meyering  <meyering@fb.com>
23194         vasnprintf.c: avoid spurious warning from GCC 7
23195         The presence of cpp directives renders this "FALLTHROUGH" comment
23196         ineffective, so does not suppress the -Wimplicit-fallthrough warning
23197         from GCC 7 built from git on 2016-10-02.
23198         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
23199         directives, so that it takes effect once again.  This is clearly
23200         not a proper change, and I will revert it once this bug is fixed:
23201         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
23203 2016-10-01  Jim Meyering  <meyering@fb.com>
23205         getprogname: correct the test for a __progname variable
23206         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
23207         and AC_LINK_IFELSE to check for a global __progname.  If found,
23208         define HAVE_VAR___PROGNAME.
23209         * lib/getprogname.c (getprogname): Reflect the new name of the
23210         feature- checked preprocessor symbol:
23211         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
23213 2016-09-28  Jim Meyering  <meyering@fb.com>
23215         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
23216         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
23217         fall-through case with a /* fallthrough */ comment.
23219         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
23220         * lib/dfa.c (dfassbuild): Mark the end of this case with a
23221         /* fallthrough */ comment.
23223         getprogname: avoid __progname vs program_invocation_short_name pitfall
23224         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
23225         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
23226         not with Fedora 24's glibc-2.23.1-10.
23227         * lib/getprogname.c (__progname): Move this declaration down...
23228         (getprogname): ... into the #elif block where used, and make it
23229         explicitly "extern".
23231         getprogname: port to OpenBSD 5.1
23232         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
23233         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
23234         * modules/getprogname (configure.ac): Move most of this code...
23235         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
23236         increment serial number, and add a test for __progname.
23237         https://bugs.gnu.org/24562
23238         Reported by Nelson H. F. Beebe.
23240 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
23242         sched: port to GCC 6.2.1 on macOS Sierra
23243         Problem reported by Denis Davydov in:
23244         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
23245         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
23246         Include <sys/cdefs.h> before <sched.h>.
23247         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
23248         so that we needn’t worry about the sched.h include bug here.
23249         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
23250         and include it before <sched.h> if it exists, when
23251         checking for <sched.h>.
23253         tests/init.sh: port Alpine fix to AIX 7.1
23254         * tests/init.sh (compare_): When attempting to use diff -U3,
23255         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
23256         diff -u not outputting a space after leading '+', as the users
23257         of 'compare' should not be that picky about its output format.
23258         In the AIX 7.1 case, return with diff exit status (or with 2 if
23259         trouble), instead of some random nonzero exit status.
23260         * tests/test-init.sh (test_compare): Remove space after leading
23261         '+', so that AIX 7.1 'diff' passes the test.
23263 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
23265         nl_langinfo: pacify GCC
23266         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
23267         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
23269         stdint: also set GL_GENERATE_LIMITS_H
23270         Problem reported by Jim Meyering in:
23271         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
23272         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
23274         limits-h, stdint: Don't assume extensions, fix typo
23275         * m4/limits-h.m4 (gl_LIMITS_H):
23276         * m4/stdint.m4 (gl_STDINT_H):
23277         Don't assume AC_USE_SYSTEM_EXTENSIONS.
23278         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
23279         reported by Jim Meyering in:
23280         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
23282 2016-09-21  Jim Meyering  <meyering@fb.com>
23284         getprogname: port to AIX
23285         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
23286         and strdup to obtain a short program name string.  Using code from
23287         Bruno Haible and an idea from Bastien ROUCARIÈS, in
23288         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
23289         Assaf Gordon reported that this new file would fail to compile on
23290         AIX-7.1 32bit.
23292 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
23294         extensions: fix typo in comment
23295         * m4/extensions.m4: Sync from Autoconf master.
23297         stdint: support new _WIDTH macros
23298         * doc/posix-headers/stdint.texi: Document this.
23299         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
23300         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
23301         support for INTMAX_WIDTH, etc. as well as for support for just C99.
23302         * modules/stdint (Depends-on): Add limits-h.
23303         (Makefile.am): Substitute HAVE_C99_STDINT_H.
23304         * modules/stdint-tests (Depends-on): Add extensions, so that
23305         INTMAX_MAX etc. are defined.
23306         * tests/test-stdint.c: Verify the new macros.
23308         limits-h: new module
23309         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
23310         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
23311         * doc/posix-headers/limits.texi: Document new module.
23312         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
23313         * modules/limit-h-tests, tests/test-limits-h.c: New files.
23315         stdio: don't redefine __USE_MINGW_ANSI_STDIO
23316         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
23317         if it is already defined.  Apparently GNU Emacs relies on this.  See:
23318         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
23320 2016-09-15  Eric Blake  <eblake@redhat.com>
23322         sys_types: avoid glibc 2.25 warnings about major()
23323         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
23324         older autoconf.
23325         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
23326         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
23327         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
23328         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
23330         mountlist: include sysmacros.h for glibc
23331         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
23332         AC_HEADER_MAJOR.
23333         * lib/mountlist.c (includes): Use correct headers.
23335 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
23337         extensions: port to more ISO C TSes
23338         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
23339         master, to add support for more recent ISO C TRs and TSes.
23341 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
23343         intprops: new macro TYPE_WIDTH
23344         * lib/intprops.h (TYPE_WIDTH): New macro.
23345         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
23346         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
23347         * lib/parse-datetime.y (parse_datetime2):
23348         Use it.
23350         extensions: port to recent ISO C TRs
23351         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23352         Sync from Autoconf master, to add support for recent ISO C TRs.
23353         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
23354         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
23355         the MinGW option is not an extension.
23357 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
23359         dfa: port to Solaris 9
23360         Problems reported by Tom G. Christensen in:
23361         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
23362         * modules/dfa (Depends-on): Add isblank.
23363         * modules/dfa-tests (dfa_match_aux_LDADD):
23364         Rename from test_stat_LDADD, to fix typo.
23365         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
23367 2016-09-10  Jim Meyering  <meyering@fb.com>
23369         strverscmp: avoid link failure on OS X
23370         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
23371         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
23373 2016-08-16  Jim Meyering  <meyering@fb.com>
23375         dfa: new module, importing grep's DFA matcher
23376         Since grep's DFA matcher is now being used by two gnulib-enabled
23377         projects, grep and sed, it makes sense to version-control its
23378         sources and unit tests in one place: here.
23379         * modules/dfa: New module.
23380         * modules/dfa-tests: New file.
23381         * lib/dfa.c: New file, from grep.
23382         * lib/dfa.h: Likewise.
23383         * lib/localeinfo.c: Likewise.
23384         * lib/localeinfo.h: Likewise.
23385         * tests/dfa-match-aux.c: Likewise.
23386         * tests/dfa-invalid-char-class.sh: Likewise.
23387         * tests/dfa-match.sh: Likewise, with minor changes.
23388         * MODULES.html.sh (Misc): Add "dfa" to this list.
23390 2016-09-09  Jim Meyering  <meyering@fb.com>
23392         getprogname-tests: don't depend on assert-h
23393         * modules/getprogname-tests (Depends-on): Remove assert-h.
23394         It was not needed, and in fact would cause build failure for
23395         coreutils on some systems.  Reported by Assaf Gordon in https:
23396         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
23398 2016-09-07  Jim Meyering  <meyering@fb.com>
23400         getprogname-tests: work also when EXEEXT is nonempty
23401         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
23402         * tests/test-getprogname.c (main): Use it.
23403         Suggested by Gisle Vanem.
23405 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
23407         getprogname: fix errors in previous change
23408         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
23409         s/program_invocation_name/base/
23410         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
23412 2016-09-08  Pádraig Brady  <P@draigBrady.com>
23414         parse-datetime: restrict debug output to input string
23415         * lib/parse-datetime.y (parse_datetime2): If we parse
23416         all of the input but determine it's invalid, ensure
23417         we don't output the now invalid input pointer.
23418         This issue was seen with `date -d 'now +1'`.
23420 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23422         flexmember: new macro FLEXALIGNOF
23423         * lib/flexmember.h: Include <stddef.h>, for offsetof.
23424         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
23425         this macro.  Update comments.
23427 2016-09-07  Jim Meyering  <meyering@fb.com>
23429         getprogname: port to systems with __argv (mingw, msvc)
23430         * lib/getprogname.c (getprogname): Include "dirname.h" and use
23431         last_component: more general than open coding it with hard-coded "/".
23432         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
23433         * modules/getprogname (Depends-on): Add dirname-lgpl.
23434         (configure.ac): Check for __argv in <stdlib.h>.
23435         * modules/getprogname-tests: New file.
23436         * tests/test-getprogname.c: New file.
23437         Suggested by Gisle Vanem in
23438         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
23440 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
23442         flexmember: port better to GCC + valgrind
23443         With a char[] flexible array member in a struct with nontrivial
23444         alignment, GCC-generated code can access past the end of the
23445         array, because GCC assumes there are padding bytes to get the
23446         struct aligned.  So the common idiom of malloc (offsetof (struct
23447         s, m), n) does not properly allocate an n-byte trailing member, as
23448         malloc’s argument should be the next multiple of alignof (struct s).
23449         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
23450         Although C11 apparently permits this GCC optimization (i.e., there
23451         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
23452         See the thread containing:
23453         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
23454         * lib/flexmember.h: New file.
23455         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
23456         * lib/localename.c, lib/time_rz.c:
23457         Include flexmember.h.
23458         * lib/fnmatch_loop.c (struct patternlist):
23459         * lib/localename.c (struct hash_node):
23460         Use FLEXIBLE_ARRAY_MEMBER.
23461         * lib/fnmatch_loop.c (EXT):
23462         * lib/fts.c (fts_alloc):
23463         * lib/glob.c (glob_in_dir):
23464         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
23465         * lib/localename.c (gl_lock_define_initialized):
23466         * lib/time_rz.c (tzalloc):
23467         Use FLEXSIZEOF instead of offsetof.
23468         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23469         Check that the size of the struct can be taken.
23470         * modules/flexmember (Files): Add lib/flexmember.h.
23471         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
23472         Add flexmember.
23474 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23476         getprogname: port to Solaris 10
23477         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
23478         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
23479         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
23481         stdalign: correct mistake in alignof doc
23482         Problem reported by Joseph Myers in:
23483         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
23484         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
23485         alignof(S) where S is a structure containing a flexible array
23486         member.  The Gnulib substitute does not support this, but C11 does.
23488 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23490         main.mk: remove sc_program_name, since there is no more need to
23491         use set_program_name in tools (getprogname is enough for most
23492         of the cases).
23493         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
23494         * top/maint.mk (sc_program_name): Remove.
23496 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23498         Port tests away from progname, since modules that need the
23499         program name already depend on getprogname.
23500         * modules/acl-tests (Depends-on): Remove progname.
23501         * modules/argmatch (Depends-on): Likewise.
23502         * modules/argmatch-tests (Depends-on): Likewise.
23503         * modules/argp-tests (Depends-on): Likewise.
23504         * modules/argp-version-etc-tests (Depends-on): Likewise.
23505         * modules/array-list-tests (Depends-on): Likewise.
23506         * modules/array-oset-tests (Depends-on): Likewise.
23507         * modules/avltree-list-tests (Depends-on): Likewise.
23508         * modules/avltree-oset-tests (Depends-on): Likewise.
23509         * modules/avltreehash-list-tests (Depends-on): Likewise.
23510         * modules/carray-list-tests (Depends-on): Likewise.
23511         * modules/copy-file-tests (Depends-on): Likewise.
23512         * modules/exclude-tests (Depends-on): Likewise.
23513         * modules/fchownat-tests (Depends-on): Likewise.
23514         * modules/fdopendir-tests (Depends-on): Likewise.
23515         * modules/filenamecat-tests (Depends-on): Likewise.
23516         * modules/fstatat-tests (Depends-on): Likewise.
23517         * modules/fstrcmp-tests (Depends-on): Likewise.
23518         * modules/linked-list-tests (Depends-on): Likewise.
23519         * modules/linkedhash-list-tests (Depends-on): Likewise.
23520         * modules/mkdirat-tests (Depends-on): Likewise.
23521         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
23522         * modules/nonblocking-socket-tests (Depends-on): Likewise.
23523         * modules/obstack-printf-tests (Depends-on): Likewise.
23524         * modules/openat-tests (Depends-on): Likewise.
23525         * modules/parse-datetime-tests (Depends-on): Likewise.
23526         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
23527         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
23528         * modules/quotearg-simple-tests (Depends-on): Likewise.
23529         * modules/quotearg-tests (Depends-on): Likewise.
23530         * modules/rbtree-list-tests (Depends-on): Likewise.
23531         * modules/rbtree-oset-tests (Depends-on): Likewise.
23532         * modules/rbtreehash-list-tests (Depends-on): Likewise.
23533         * modules/spawn-pipe-tests (Depends-on): Likewise.
23534         * modules/system-quote-tests (Depends-on): Likewise.
23535         * modules/uniname/uniname-tests (Depends-on): Likewise.
23536         * modules/uninorm/nfc-tests (Depends-on): Likewise.
23537         * modules/uninorm/nfd-tests (Depends-on): Likewise.
23538         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
23539         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
23540         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
23541         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
23542         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
23543         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
23544         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
23545         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
23546         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
23547         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
23548         * modules/unlinkat-tests (Depends-on): Likewise.
23549         * modules/version-etc-tests (Depends-on): Likewise.
23550         * modules/xalloc-die-tests (Depends-on): Likewise.
23551         * modules/xmemdup0-tests (Depends-on): Likewise.
23552         * modules/xprintf-posix-tests (Depends-on): Likewise.
23553         * modules/xvasprintf-tests (Depends-on): Likewise.
23554         * tests/test-argmatch.c: Do not include progname.h.
23555         (main) Stop calling set_program_name.
23556         * tests/test-argp-version-etc.c: Likewise.
23557         * tests/test-argp.c: Likewise.
23558         * tests/test-argv-iter.c: Likewise.
23559         * tests/test-array_list.c: Likewise.
23560         * tests/test-array_oset.c: Likewise.
23561         * tests/test-avltree_list.c: Likewise.
23562         * tests/test-avltree_oset.c: Likewise.
23563         * tests/test-avltreehash_list.c: Likewise.
23564         * tests/test-carray_list.c: Likewise.
23565         * tests/test-copy-acl.c: Likewise.
23566         * tests/test-copy-file.c: Likewise.
23567         * tests/test-exclude.c: Likewise.
23568         * tests/test-fchownat.c: Likewise.
23569         * tests/test-fdopendir.c: Likewise.
23570         * tests/test-filenamecat.c: Likewise.
23571         * tests/test-fstatat.c: Likewise.
23572         * tests/test-fstrcmp.c: Likewise.
23573         * tests/test-linked_list.c: Likewise.
23574         * tests/test-linkedhash_list.c: Likewise.
23575         * tests/test-mkdirat.c: Likewise.
23576         * tests/test-nonblocking-pipe-main.c: Likewise.
23577         * tests/test-nonblocking-socket-main.c: Likewise.
23578         * tests/test-obstack-printf.c: Likewise.
23579         * tests/test-openat.c: Likewise.
23580         * tests/test-parse-datetime.c: Likewise.
23581         * tests/test-pipe-filter-gi1.c: Likewise.
23582         * tests/test-pipe-filter-gi2-main.c: Likewise.
23583         * tests/test-pipe-filter-ii1.c: Likewise.
23584         * tests/test-pipe-filter-ii2-main.c: Likewise.
23585         * tests/test-quotearg-simple.c: Likewise.
23586         * tests/test-quotearg.c: Likewise.
23587         * tests/test-rbtree_list.c: Likewise.
23588         * tests/test-rbtree_oset.c: Likewise.
23589         * tests/test-rbtreehash_list.c: Likewise.
23590         * tests/test-sameacls.c: Likewise.
23591         * tests/test-set-mode-acl.c: Likewise.
23592         * tests/test-spawn-pipe-main.c: Likewise.
23593         * tests/test-system-quote-main.c: Likewise.
23594         * tests/test-unlinkat.c: Likewise.
23595         * tests/test-version-etc.c: Likewise.
23596         * tests/test-xalloc-die.c: Likewise.
23597         * tests/test-xfprintf-posix.c: Likewise.
23598         * tests/test-xmemdup0.c: Likewise.
23599         * tests/test-xprintf-posix.c: Likewise.
23600         * tests/test-xvasprintf.c: Likewise.
23601         * tests/uniname/test-uninames.c: Likewise.
23602         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23603         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23604         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23605         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23606         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
23607         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
23608         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
23609         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
23610         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
23611         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
23612         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
23613         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
23614         * tests/test-c-stack.c: (program_name): Do not define.
23615         (main): Do not set program_name.
23616         * tests/test-closein.c: Likewise.
23617         * tests/test-xstrtol.c: Likewise.
23618         * tests/test-yesno.c: Likewise.
23620 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23622         Port modules to use getprogname explicitly, instead of requiring
23623         progname to be used (or program_name to be provided).
23624         * lib/argmatch.c: Do not include progname.h.
23625         [TEST] (program_name): Do not define.
23626         [TEST] (main): Call getprogname instead of using program_name.
23627         * lib/c-stack.c: Do not include progname.h.
23628         (program_name): Do not define.
23629         (die): Call getprogname instead of using program_name.
23630         * lib/chdir-long.c: Do not include progname.h.
23631         [TEST_CHDIR] (main): Do not set program_name.
23632         * lib/error.c [!_LIBC]: Include progname.h.
23633         [!_LIBC] (program_name): Define using getprogname.
23634         * lib/euidaccess.c: Do not include progname.h.
23635         [TEST] (main): Do not set program_name.
23636         * lib/git-merge-changelog.c: Include getprogname.h instead of
23637         progname.h.
23638         (usage): Call getprogname instead of using program_name.
23639         (main): Likewise.  Stop calling set_program_name.
23640         * lib/group-member.c: Do not include progname.h.
23641         [TEST] (main): Do not set program_name.
23642         * modules/argmatch (Depends-on): Add getprogname.
23643         * modules/c-stack (Depends-on): Likewise.
23644         * modules/error (Depends-on): Likewise.
23645         * modules/git-merge-changelog (Depends-on): Likewise.
23646         Also remove progname.
23648 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
23650         * NEWS: Document the deprecation of the 'progname' module.
23652 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
23654         getprogname: new module
23655         This provides a LGPL module for getting the name of the current
23656         program, using the same API found on *BSD systems.
23657         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
23658         * modules/getprogname: New files.
23659         * MODULES.html.sh (Misc): Add getprogname.
23661 2016-09-02  Jim Meyering  <meyering@fb.com>
23663         manywarnings: add -fno-common
23664         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
23665         to the list.  Quoting the manual, "Compiling with -fno-common is
23666         useful on targets for which it provides better performance, or if
23667         you wish to verify that the program will work on other systems that
23668         always treat uninitialized variable declarations this way [putting
23669         it in the data section]."  If diffutils had been using this sooner,
23670         it would have prevented this duplicate declaration issue:
23671         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
23673 2016-08-31  Simon Josefsson  <simon@josefsson.org>
23675         parse-datetime: Fix typo.
23676         * lib/parse-datetime.y (parse_datetime2): Fix typo.
23678 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
23680         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
23681         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
23682         GCC 5 and 6 that have __builtin_sub_overflow but not
23683         __builtin_sub_overflow_p.  With the recent changes, these
23684         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
23685         implementation than with INT_SUBTRACT_OVERFLOW implementation,
23686         since the former needs just one runtime comparison whereas the
23687         latter needs two.
23689         strverscmp: sync with glibc
23690         Although this doesn't exactly synchronize with glibc
23691         byte-for-byte, it makes the code behave the same as glibc.
23692         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
23693         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
23694         difference shouldn't matter in practical use.  All uses changed
23695         back to isdigit.
23696         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
23697         (next_state): Now unsigned char array; redo elements.
23698         (result_type): Now signed char array; redo elements.
23699         (__strverscmp): Fix glibc bug 9913 by using new states.
23700         * tests/test-strverscmp.c (main): Test glibc bug 9913.
23702 2016-08-29  Jim Meyering  <meyering@fb.com>
23704         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
23705         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
23706         similarly to how it was done to intprops.h.
23708 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
23710         intprops.h: port recent changes to GCC 6.2.0
23711         * lib/intprops.h (__has_builtin): Move earlier.
23712         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
23713         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
23714         the last argument can be null.  All uses changed.
23715         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
23716         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23717         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
23718         and it's not clear which GCC versions it works for.
23719         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
23720         its definiens.
23722         intprops.h: use __typeof__ with GCC 7
23723         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
23724         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
23725         This avoids computing the expression's value (which might overflow!).
23727 2016-08-29  Jim Meyering  <meyering@fb.com>
23729         intprops.h, xalloc-oversized.h: work with gcc 7
23730         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
23731         __builtin_mul_overflow each accept a NULL pointer as the third
23732         argument.  However in gcc 7, that is no longer accepted.
23733         Instead, one must use the "_p"-suffixed names, with which, the
23734         third parameter is no longer a pointer.
23735         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
23736         the definition: not true for gcc 7 and subsequent.
23737         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
23738         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
23739         Provide new definitions for gcc 7 and subsequent.
23740         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
23741         that works with gcc-7.
23743         intprops.h: fix missing-backslash problems
23744         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
23745         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
23747 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23749         intprops: fix paren typo on old platforms
23750         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
23751         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
23752         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
23753         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
23754         && !defined LLONG_MAX]:
23755         Remove stray paren.
23757         intprops: port to OpenVMS
23758         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
23759         * doc/posix-headers/limits.texi: Document the problem.
23760         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
23761         Define if not already defined.
23763 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
23765         parse-datetime: improve debug implementation
23766         Follow-up to commit 12ad79069 ("add optional debug printing").
23767         Improve parse-datetime's debug implementation: remove macros,
23768         replace global debug flag variable with a function parameter,
23769         use nstrftime for formatting.
23770         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
23771         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
23772         (parse_datetime2): New function, accepts 'flags' parameter, supporting
23773         debug flag. Existing interface 'parse_datetime' left unmodified.
23774         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
23775         (struct parser_control): add 'parse_datetime_debug' member variable.
23776         (parse_datetime): Call new function 'parse_datetime2' without debug.
23777         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
23778         pc.parse_datetime_debug variable as needed.
23779         (to_year): Accept new flags parameter, instead of using global variable.
23780         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
23781         use struct 'debug' variable instead of global variable.
23782         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
23783         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
23784         correspnding functions directly instead of using macros.
23785         * modules/parse-datetime: Add gnulib's strftime module.
23787 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
23789         c-strcase-tests: port to EBCDIC
23790         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
23791         which assume ASCII encoding semantics to run only in ASCII
23792         mode, as they fail in EBCDIC.
23794         sigpipe-tests: fix typo
23795         * tests/test-sigpipe.sh: C, not B.
23797 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
23799         canonicalize-lgpl: fix errno after malloca fails
23800         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
23801         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
23802         * lib/canonicalize-lgpl.c (__realpath):
23803         Don't assume malloca sets errno on failure.
23805 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23807         strtod: port errno handling to z/OS
23808         * lib/strtod.c (strtod): Save and restore errno more reliably.
23810 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23812         strtod: port to z/OS
23813         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23814         implementation.
23816 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23818         strtod: port to z/OS
23819         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
23820         implementation.
23822         regex, string: rename to avoid '__string'
23823         * lib/regex.h, lib/string.in.h: Do not use the identifier
23824         '__string', as it is effectively reserved by string.h on z/OS.
23826         c-strcase-tests, wcwidth-tests: depend on c-ctype
23827         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
23828         Add c-ctype.
23830 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
23832         thread: port to z/OS
23833         * lib/glthread/thread.c, lib/glthread/thread.h:
23834         Rudimentary gl_thread support for z/OS.
23836         maint: port tests to z/OS errno behavior
23837         * tests/test-nonblocking-reader.h:
23838         * tests/test-nonblocking-writer.h:
23839         Accommodate z/OS errno code preferences. (I believe this should
23840         still be within spec; IBM is good at following the letter if not
23841         the spirit of such things.)
23843         maint: preprocessor changes to support z/OS
23844         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
23845         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
23846         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
23847         * tests/test-nonblocking-pipe.h:
23849         fclose, strstr-simple, wchar: port to z/OS
23850         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
23851         Changes to the Autoconf M4 code to support z/OS.  Note that
23852         fclose() is broken in a different way on z/OS than it is on other
23853         systems, thus the special-case in fclose.m4.
23855         iconv_open-utf-tests, iconv-tests: port to EBCDIC
23856         * tests/test-iconv-utf.c, tests/test-iconv.c:
23857         Added appropriately conditional #pragmas so that the test strings
23858         in test-iconv-utf.c are correctly interpreted in ASCII instead of
23859         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
23860         addressed in a more portable way by simply rewriting all the ASCII
23861         literal characters as octal escapes, but then you would lose the
23862         partial readability that the strings have now. Also, iconv_open()
23863         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
23865         c-strcase-tests, wcwidth-tests: port to EBCDIC
23866         * tests/test-c-strcasecmp.c: Include c-ctype.h.
23867         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
23868         * tests/test-wcwidth.c: Likewise.
23870 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
23872         stdbool: don't require _Bool for C++
23873         Problem reported by David Seifert in:
23874         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
23875         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
23876         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
23877         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
23878         stricter about checking that bool and _Bool are compatible in C.
23880 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
23882         getdelim: remove dependency on realloc-posix
23883         * lib/canonicalize-lgpl.c (alloc_failed)
23884         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
23885         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
23886         Use __set_errno where needed, for consistency.
23887         * lib/getdelim.c (alloc_failed): New function.
23888         (getdelim): Use it.
23890 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
23892         parse-datetime: add optional debug printing
23893         Print parsing information, warnings, and errors to stderr.
23894         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
23895         * lib/parse-datetime.y:
23896         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
23897         (PROGRESS*): Same as DEBUG, for progress reporting.
23898         (dbg_printf): Print message to stderr, with 'date' prefix.
23899         (struct parser_control): Add 'debug_*_seen' variables.
23900         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
23901         (debug_print_current_time, debug_print_relateive_time): Prints the
23902         current/relative date/time value of parser_control.
23903         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
23904         (to_year): Warn about 2-digit year parsing.
23905         (yylex):   Warn about unrecognized words.
23906         (get_effective_timezone): Returns current timezone in minutes.
23907         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
23908         clearly and unambigiously as possible.
23909         (debug_mktime_not_ok): Print detailed information about failed
23910         date/time values.
23911         (parse_datetime): Add DEBUG messages for failures, warnings. Add
23912         PROGRESS messages for status messages.
23913         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
23915 2016-08-06  Jim Meyering  <meyering@fb.com>
23917         tests/init.sh: exclude dash with bad "local" semantics
23918         * tests/init.sh (gl_shell_test_script_): Add a function to
23919         eliminate a shell like "dash" (unlike bash, zsh) that has
23920         surprising/risky "local var='...'" semantics.  Inspired by
23921         the problem and discussion in https://bugs.gnu.org/24116#11.
23923 2016-08-02  Ján Tomko  <jtomko@redhat.com>
23925         maint.mk: expand the prohibit_doubled_word regex
23926         This check has a static list of words that are checked for
23927         repetitions.  Expand it before running the perl script to
23928         avoid using expensive captures.  This decreases the cost
23929         for libvirt from 1.66s to 0.66s.
23930         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
23931         (sc_prohibit_doubled_word): Use it.
23933 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23935         useless-if-before-free: skip non-matching lines early
23936         * build-aux/useless-if-before-free: First match each line with the
23937         simple/quick /\bif\b/ and reject if there is no match. This often
23938         saves the cost of the much more involved regular expression.
23939         For libvirt, this decreases the cost from 1.44s to 1.02s.
23941 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23943         maint.mk: speed up sc_po_check
23944         sc_po_check would skip files based on their names, or on the
23945         existence of files with derived names. Rewrite it to use perl
23946         instead of shell to make the check faster.
23947         * top/maint.mk (perl_translatable_files_list_): Define.
23948         (sc_po_check): Use it.
23950 2016-07-30  Ján Tomko  <jtomko@redhat.com>
23952         maint.mk: speed up require_config_h_first
23953         Instead of spawning three processes per file,
23954         rewrite the check in perl and run it once for all the files.
23955         * top/maint.mk (perl_config_h_first_): Define.
23956         (sc_require_config_h_first): Use it in place of shell code.
23958 2016-07-26  Ján Tomko  <jtomko@redhat.com>
23960         maint.mk: speed up sc_po_check
23961         sc_po_check would skip files based on their names, or on the
23962         existence of files with derived names. Rewrite it to use perl
23963         instead of shell to make the check faster.
23964         * top/maint.mk (perl_translatable_files_list_): Define.
23965         (sc_po_check): Use it.
23967 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
23969         obstack: pacify GCC 6 with -Wnull-dereference
23970         Problem reported by Assaf Gordon in:
23971         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
23972         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
23973         Declare with __attribute_noreturn__.
23974         * lib/obstack.h (__attribute_noreturn__): New macro.
23976 2016-07-13  Eric Blake  <eblake@redhat.com>
23978         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
23979         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
23980         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
23982 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
23984         doc: mention glibc SSIZE_MAX buglet
23985         * doc/posix-headers/limits.texi (limits.h): Document the bug.
23987 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
23989         printf-posix: Fix mingw build
23990         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
23991         expression for detecting C symbol prefixes but forgot to qoute square
23992         brackets in the command line arguments for grep.  That way when
23993         building with mingw the condition was false although it ought to be
23994         true instead.  In particular scenarios this led to the following
23995         compile error:
23997             Cannot export rpl_printf: symbol not found
23998             Cannot export rpl_scanf: symbol not found
23999             collect2: error: ld returned 1 exit status
24001         Fix this by properly quoting square brackets.
24003 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
24005         mktime: call tzset as per POSIX
24006         Problem reported by Ludovic Courtès in:
24007         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
24008         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
24009         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
24011 2016-06-26  Pádraig Brady  <P@draigBrady.com>
24013         fts: handle readdir() errors
24014         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
24015         but also upon error when it will also set errno.  Therefore
24016         flag the error case from readdir().  We treat the case where
24017         no items are read the same as if the dir can't be accessed,
24018         i.e. by setting fts_errno to FTS_DNR.
24020 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
24022         intprops: port better to GCC 7
24023         GCC 7 __builtin_add_overflow supports a new usage form, where the
24024         last argument is a null pointer, and which merely returns 1 if an
24025         overflow would occur.  This is a constant expression if all
24026         arguments are constants, and should generate faster code when code
24027         needs to be generated.
24028         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
24029         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24030         Use builtin operations if available.
24031         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
24032         operations are available, as it's almost surely faster.
24034 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24036         intprops-test: port to GCC 6
24037         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
24038         since the bug is not fixed in GCC 6.1.
24040 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
24042         xalloc-oversized: port to GCC 7; fewer warnings
24043         GCC 7 will have a better way to deal with integer overflow.
24044         Plus, fix a warnings problem reported by Tim Ruehsen in:
24045         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
24046         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
24047         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
24048         For GCC 5, use __xalloc_oversized if both args are constants,
24049         or if pedantic.
24051 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
24053         regex: port to Sun C
24054         Reported by Daiki Ueno.
24055         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
24056         __restrict, in prototype.  This fixes a problem I introduced in
24057         the 2016-02-19 merge from glibc.
24059 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
24061         stdbool: Restore __bool_true_false_are_defined check
24062         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
24063         __bool_true_false_are_defined is still defined, even with C++11.
24065 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
24067         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
24068         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
24070 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
24072         Use GCC_LINT, not lint
24073         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
24074         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
24075         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
24076         Document problem with lint and _Noreturn.
24077         * lib/diffseq.h (IF_LINT, IF_LINT2):
24078         * lib/fts.c (sccsid):
24079         * lib/getndelim2.c (IF_LINT):
24080         * lib/gl_anylinked_list2.h (gl_linked_iterator)
24081         (gl_linked_iterator_from_to):
24082         * lib/gl_anytree_list2.h (gl_tree_iterator)
24083         (gl_tree_iterator_from_to):
24084         * lib/gl_anytree_oset.h (gl_tree_iterator):
24085         * lib/gl_array_list.c (gl_array_iterator)
24086         (gl_array_iterator_from_to):
24087         * lib/gl_array_oset.c (gl_array_iterator):
24088         * lib/gl_carray_list.c (gl_carray_iterator)
24089         (gl_carray_iterator_from_to):
24090         * lib/idcache.c:
24091         * lib/inet_ntop.c (IF_LINT):
24092         * lib/regcomp.c (build_charclass_op, create_tree):
24093         * lib/regex_internal.c (re_acquire_state)
24094         (re_acquire_state_context):
24095         * lib/trigl.c (rcsid):
24096         * lib/trim.c (IF_LINT):
24097         * lib/vasnprintf.c (IF_LINT):
24098         * lib/verify.h (assume):
24099         Treat GCC_LINT like lint.
24101 2016-05-29  Bruno Haible  <bruno@clisp.org>
24103         secure_getenv: Port to many more platforms.
24104         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
24105         functions.
24106         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
24107         for non-BSD Unix platforms and for native Windows.
24108         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
24109         Prompted by a request from Nikos Mavrogiannopoulos.
24111 2016-05-27  Eric Blake  <eblake@redhat.com>
24113         canonicalize: Fix broken probe for realpath.
24114         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
24115         in logic introduced in 54615b95.
24117 2016-05-26  Eric Blake  <eblake@redhat.com>
24119         unsetenv: relax to LGPLv2+
24120         * modules/unsetenv (License): Match setenv license.
24122 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
24124         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
24125         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
24126         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
24127         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
24128         (commonarg, dirargs, dirs, infoarg, generate_ascii)
24129         (generate_html, generate_info, generate_tex, outdir)
24130         (source_extra, split, srcfile, texarg): Move above 'version'.
24131         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
24133 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
24135         manywarnings: update for GCC 6.1
24136         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
24137         Add GCC 6.1 options that apply to C.
24138         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
24139         do not apply to C, are obsolescent, etc.
24141 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
24143         glob: size_t overflow checks
24144         * lib/glob.c (__has_builtin): New macro.
24145         (size_add_wrapv, glob_use_alloca): New static functions.
24146         (glob, glob_in_dir): Check for size_t overflow in several places,
24147         and fix some size_t checks that were not quite right.
24149         glob: don't assume INT_MAX < SIZE_MAX
24150         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
24151         latter is not portable to (probably theoretical) hosts where
24152         SIZE_MAX <= INT_MAX.
24154 2016-05-09  Bruno Haible  <bruno@clisp.org>
24156         Fix undefined behaviour in gettext.h.
24157         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
24158         pointer's value after the storage it points to has been freed.
24159         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
24160         Spotted by Coverity.
24162 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
24164         git-version-gen: avoid undefined shift
24165         Problem reported by Mosè Giordano in:
24166         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
24167         * build-aux/git-version-gen: Avoid undefined behavior if invoked
24168         with --prefix or --fallback but without a later argument.  While
24169         we're at it, omit unnecessary quotes.
24171 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
24173         glob: merge glibc changes into lib/glob.c
24174         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
24175         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
24176         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
24177           struct dirent [BZ #19779]
24178         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
24179           callback gl_readdir
24180         2015-10-20 Convert miscellaneous function definitions to prototype style
24181         2015-10-20 Convert 113 more function definitions to prototype style
24182           (files with assertions)
24183         2015-06-12 Fix getlogin_r namespace (bug 18527).
24184         2014-02-10 Use glibc_likely instead __builtin_expect.
24185         2013-10-20 When glob pattern contains a trailing slash match only
24186           directories. Fixes bug 10278.
24187         2013-09-04 glob: silence -Wattribute warnings
24188         2013-06-07 Avoid use of "register" as optimization hint.
24189         2012-09-25 Use size_t instead of int for internal variables in glob
24190           (bug 14621)
24191         2011-07-20 Check for overflows in expressions
24192         2011-05-28 Remove unused variable
24193         2011-05-22 Add a few more alloca size checks
24194         2010-03-27 Whitespace fixes
24195         2010-03-27 Fix one more issue with the glob patch
24196         2010-03-24 Fix glob with empty pattern
24197         2008-05-27 Remove useless more "if" tests before "free"
24198         * modules/glob (Depends-on): Add stdint.
24200 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24202         mktime: port to stricter signed overflow checking
24203         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
24204         (long_int): Require width for INT_MAX * 3 * (seconds per year),
24205         instead of merely for INT_MAX * 2.  In practice platforms that
24206         do the latter also do the former.
24207         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
24208         (shr): New static function, replacing SHR.  All uses changed.
24209         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
24210         and TIME_T_MAX.  All uses changed.
24211         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
24212         Use long_int, not time_t.
24213         (long_int_avg): New static function, replacing time_t_avg.
24214         All uses changed.  Round toward positive infinity, as that
24215         generates slightly better code.
24216         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
24217         by INT_ADD_WRAPV.
24218         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
24219         (convert_time): New static function.
24220         (ranged_convert): Use it
24221         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
24222         Use simpler test for loop exit.
24223         (__mktime_internal): Store negative of guessed offset, to simplify
24224         overflow checking.  Remove no-longer-needed test for small time_t
24225         overflows.
24227         mktime: speed up DEBUG_MKTIME benchmarks
24228         Call tzset just once, at the start, rather than for every test
24229         case.  This lets us measure the CPU cost of mktime as opposed to
24230         that of tzset.  This is relevant when TZ is not set and glibc is
24231         being used.  This speeds up tests by a factor of 40 on my Fedora
24232         23 x86-64 platform.
24233         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
24234         to call tzset and as a sanity check.  Later on, use localtime_r
24235         instead of localtime.
24237         mktime: resurrect DEBUG_MKTIME testing
24238         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
24239         Include <string.h>, for strcmp.
24241         mktime: simplify DEBUG_MKTIME
24242         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
24243         Simplify later usage accordingly.
24245         Port mktime_internal offset to unsigned time_t
24246         This avoids some assumptions about wraparound arithmetic on
24247         signed integer overflow.
24248         * lib/mktime-internal.h (mktime_offset_t): New type.
24249         (mktime_internal): Use it in decl.
24250         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
24252         * lib/mktime.c (__mktime_internal, localtime_offset):
24253         * lib/timegm.c (timegm): Use it.
24254         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
24255         (gl_FUNC_MKTIME): Require it.
24257 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
24259         xstrtol: prohibit monstrosities like "1bB"
24260         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
24261         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
24262         "B" only if the first suffix needs a base.
24263         * tests/test-xstrtol.sh: Test this.
24265 2016-04-21  Pádraig Brady  <P@draigBrady.com>
24267         xstrtod: reinstate setting of *result upon ERANGE
24268         * lib/xstrtod.c (XSTRTOD): The user may decide to use
24269         the returned limits upon ERANGE, so allow and document that.
24271 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
24273         xstrtod: modify *result only if no errors
24274         * lib/xstrtod.c (XSTRTOD).
24276 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
24278         btowc: document problems in C locale
24279         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
24280         with mbrtowc.  See: http://bugs.gnu.org/23269#32
24282 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24284         mktime: improve integer overflow checking
24285         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
24286         (WRAPV): Remove; no longer needed.
24287         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
24288         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
24289         Remove.  Use intprops.h defns instead.
24290         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
24291         Use bool for Boolean, for clarity.
24292         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
24293         detect integer overflow.
24294         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
24296         intprops: check two's complement assumption
24297         Suggested by Eric Blake in:
24298         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
24299         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
24300         short, int, long, and (if available) long long are two's complement.
24301         * modules/intprops (Depends-on): Add 'verify'.
24303         intprops, mktime, strtol: assume two's complement
24304         These macros were not portable to every conforming C11 ones'
24305         complement platform.  It's not worth the hassle of porting to some
24306         platforms that use ones' complement or signed magnitude, as such
24307         platforms are almost purely theoretical nowadays and porting even
24308         to some of them makes the code harder to review for little
24309         practical benefit.  Problem reported by Florian Weimer in:
24310         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
24311         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24312         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
24313         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
24314         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
24315         (TYPE_SIGNED_MAGNITUDE):
24316         Remove.  All uses rewritten to assume two's complement, which is
24317         all we can reasonably test nowadays anyway.
24318         * top/maint.mk (_intprops_names): Remove the removed macros.
24320 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
24322         stdint: port to strict C11 left shift
24323         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
24324         Pacify clang -Wshift-negative-value, which should be an issue only
24325         on clang setups where stdint.h does not conform to C11 or to C++11.
24326         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
24328 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
24330         mbrtowc: work around glibc bug#19932
24331         Fix mbrtowc so that it never returns -1 in the C locale,
24332         as this conflicts with a future version of POSIX
24333         http://austingroupbugs.net/view.php?id=663#c2738
24334         and causes problems with GNU grep: http://bugs.gnu.org/23234
24335         See glibc bug 19932:
24336         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
24337         * doc/posix-functions/mbrlen.texi (mbrlen):
24338         * doc/posix-functions/mbrtowc.texi (mbrtowc):
24339         Document the glibc bug.
24340         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
24341         Include hard-locale.h, locale.h.
24342         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
24343         if the bug is possible.
24344         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
24345         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
24346         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
24347         * modules/mbrtowc (Depends-on): Add hard-locale.
24348         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
24349         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
24350         * tests/test-mbrtowc5.sh: New file.
24352 2016-04-03  Pedro Alves  <palves@redhat.com>
24354         stdint: detect good enough pre-C++11 stdint.h in C++ mode
24355         When gnulib is configured in C++ mode for a system with a working C99
24356         implementation of stdint.h that predates C++11, gnulib ends up
24357         substituting stdint.h anyway.  This works on most targets, but on e.g.,
24358         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
24359         MinGW is LLP64.  Instead of trying to detect the right types, detect
24360         good-enough-pre-C++11 stdint.h and in such case define
24361         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
24362         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
24363         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
24364         conforms to C99.  If it does, check whether it hides symbols
24365         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
24366         does, define those macros in config.h.
24368 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
24370         argp: merge changes from glibc
24371         Among other things, this should fix problems found by a Coverity
24372         scan and reported by Andrei Borzenkov:
24373         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
24374         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
24375         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
24376         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
24377         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
24378         * lib/argp.h:
24379         Merge changes from glibc.
24380         * tests/test-argp-2.sh: Adjust to match new behavior.
24382 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
24384         stddef: support configuring with g++
24385         Problem reported by Ángel González in:
24386         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
24387         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
24388         Do not define if _GCC_MAX_ALIGN_T is defined.
24390 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
24392         test-framework-sh: minor cleanups
24393         * tests/init.sh (testdir_prefix_): Output a trailing newline,
24394         since strictly speaking POSIX requires this.
24395         (setup_): Do not use the variable 'fail', as that makes the
24396         trace output harder to read ('fail' is typically used by
24397         tests to mean the test failed).  Treat // portably.
24398         Check that new directory is not merely a sibling of the tmp dir.
24399         Avoid unnecessary invocation of tr.
24401         test-framework-sh: revert port to NetBSD 7.0
24402         It was a false alarm; I misinterpreted Assaf Gordon's report.
24403         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24404         Restore.
24405         (test_dir_): Adjust to mktempd_ change.
24406         (mktempd_): Restore 2nd arg.  Use -t again.
24407         (base_template_, template_, nx_): Resurrect old code.
24409         Port better to Alpine Linux
24410         Its diff implementation does not support -c, but does support -U3.
24411         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24412         * tests/init.sh (diff_opt_): New var.
24413         (compare_): Prefer diff -U3 to diff -c to plain diff.
24415 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24417         test-framework-sh: port to NetBSD 7.0
24418         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
24419         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
24420         Remove.  All uses removed.
24421         (test_dir_): Adjust to mktempd_ change.
24422         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
24423         (base_template_, template_, nx_): Simplify by hardcoding.
24425 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
24427         gitlog-to-changelog: suppress ignored chatter
24428         * build-aux/gitlog-to-changelog: Do not warn about skipping
24429         an SHA if it would have been ignored anyway.
24431 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
24433         setlocale: add "sv" to Windows language table
24434         * lib/setlocale.c (language_table) [W32]: Add "sv".
24435         Reported in <https://savannah.gnu.org/bugs/?44588>.
24437 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
24439         sys_select: port to new Cygwin
24440         Problem reported by Ken Brown in:
24441         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
24442         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
24443         diagnostics.
24445 2016-03-17  Jim Meyering  <meyering@fb.com>
24447         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
24448         * tests/test-userspec.c (main): Remove unnecessary braces and fix
24449         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
24450           test-userspec.c:176:9: error: statement is indented as if it were \
24451             guarded by... [-Werror=misleading-indentation]
24452                    {
24453                    ^
24454           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
24455                  if (!diag && !T[i].result)
24456                  ^~
24458 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
24460         time_rz: port to clang -Wunused-const-variable
24461         * lib/time_rz.c (TZ): Remove.  All uses removed.
24463         std-gnu11: improve clang support
24464         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
24465         2016-03-15 Also try clang
24466         2016-03-15 Port C11 and C++11 testing to clang
24468         select: port more to Intel 2016.1.150 compiler
24469         Problem reported by Balázs Hajgató in:
24470         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
24471         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
24473 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24475         select: try to port to 2016.1.150 compiler
24476         Problem reported by Balázs Hajgató in:
24477         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
24478         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
24479         POSIX specifies 'restrict'.
24481 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24483         localename-tests: memory allocation fixes
24484         * tests/test-localename.c (test_locale_name)
24485         (test_locale_name_thread): Don't call freelocale on a locale
24486         that was the base of a successful newlocale, as that
24487         results in a double free.  Problem reported by Assaf Gordon.
24488         (test_locale_name_thread): Free saved names after use, to pacify
24489         gcc -fsanitize=address.
24491 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
24493         intprops: make .h file license match module
24494         * lib/intprops.h: Change the license wording to match glibc format.
24495         This is what is in modules/intprops anyway.  See:
24496         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
24498 2016-03-08  Eric Blake  <eblake@redhat.com>
24500         acl: fix missing return on Cygwin
24501         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
24502         fall off end of function. Fixes http://bugs.gnu.org/22949
24504 2016-03-05  Bruno Haible  <bruno@clisp.org>
24506         extern-inline: port to PGI CC
24507         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
24508         keyword 'inline'.
24509         Reported by Adam James Stewart in:
24510         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
24512 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24514         signbit: port back to pre-C++11 GCC
24515         * lib/math.in.h (signbit): Do previous change only if
24516         __cplusplus < 201103.  See Jonathan Wakely in:
24517         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
24519 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
24521         mountlist: recognize autofs-mounted remote file systems, too
24522         Originally reported at: https://bugzilla.redhat.com/1309247
24523         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
24524         "-hosts" because it is used by autofs to mount remote file systems.
24526 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24528         signbit: port to C++ with GCC 6
24529         * lib/math.in.h (signbit) [__cplusplus]:
24530         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
24531         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
24533         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
24535         regex: make it closer to libc
24536         Make Idx a signed type, rather than possibly unsigned.
24537         The unsignedness was not really buying us anything, since the code
24538         overflows for other reasons before getting to PTRDIFF_MAX.  Making
24539         it signed allows us to use -1 and -2 with abandon, like libc does,
24540         thus lessening the number of differences between gnulib and libc.
24541         Also, it should help avoid gratuitous warnings like the one
24542         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
24543         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
24546         regex: merge patches from libc
24548         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
24549         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
24550         Convert miscellaneous function definitions to prototype style.
24551         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
24552         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
24553         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
24554         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
24555         (re_search_internal):
24556         Convert to prototype-style function definition.
24557         Use internal_function for internal functions.
24559 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
24561         stdalign: port to older HP and IBM cc
24562         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
24563         C compilers, by checking their version numbers.  These version
24564         numbers appear in MariaDB and in Qt code that dates way back and
24565         that conditiionally uses the 'aligned' attribute.
24567 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24569         stdalign: port to clang 3.7.0
24570         Problem reported by Herbert J. Skuhra in:
24571         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
24572         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
24573         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
24574         https://llvm.org/bugs/show_bug.cgi?id=26547
24576 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24578         readdir_r: now obsolescent
24579         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
24580         * lib/mountlist.c (read_file_system_list): Add a FIXME.
24582 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24584         misc: port better to gcc -fsanitize=address
24585         Without these patches, ./configure CFLAGS='-fsanitize=address'
24586         would compute incorrect values.  This patch fixes some (but not all)
24587         test failures with recent glibc, with this configuration.
24588         * m4/acl.m4 (gl_ACL_GET_FILE):
24589         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
24590         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
24591         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
24592         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
24593         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
24594         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24595         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
24596         * m4/getline.m4 (gl_FUNC_GETLINE):
24597         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
24598         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
24599         * m4/regex.m4 (gl_REGEX):
24600         * m4/strndup.m4 (gl_FUNC_STRNDUP):
24601         * tests/test-calloc-gnu.c (main):
24602         * tests/test-duplocale.c (main):
24603         * tests/test-getgroups.c (main):
24604         * tests/test-getline.c (main):
24605         * tests/test-inttostr.c (main):
24606         * tests/test-localename.c (test_locale_name)
24607         (test_locale_name_thread, test_locale_name_environ)
24608         (test_locale_name_default):
24609         * tests/test-regex.c (main):
24610         * tests/test-setlocale1.c (main):
24611         * tests/test-stat.h (test_stat_func):
24612         Free heap-allocated storage before exiting.
24613         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
24614         Don't match *_foo symbols inserted by AddressSanitizer.
24615         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
24617 2016-02-02  Jim Meyering  <meyering@fb.com>
24619         verify-tests: also remove stray test-verify.Tpo
24620         * modules/verify-tests (Makefile.am): Arrange for "make clean"
24621         to remove the test-verify.Tpo file that is left behind by
24622         the automake-generated rule upon compilation failure.
24623         Otherwise, that .Tpo file would cause a failed "make distcheck"
24624         at least for grep.
24626 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24628         std-gnu11: new module
24629         This makes it easier for applications to prefer C11 and C++11
24630         to older variants, when compiling C and C++ code.
24631         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
24632         a nontrivial chunk of GPLed Autoconf source code.
24633         * COPYING: Mention the m4/*.m4 copyright situation.
24634         * MODULES.html.sh (std-gnu11): New module.
24635         * m4/std-gnu11.m4, modules/std-gnu11: New files.
24637 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
24639         get-permissions, strftime: fix grammar in comments
24640         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
24641         some grammar fixes Alan Mackenzie made to GNU Emacs.
24643 2016-01-25  Daiki Ueno  <ueno@gnu.org>
24645         gettext: mark as obsolete
24646         Suggested by Paul Eggert in:
24647         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
24648         * modules/gettext (Status): Mark as obsolete.
24649         (Notice): Suggest to use 'gettext-h' instead.
24650         * modules/gettext-h (Description): Suggest GNU gettext, instead of
24651         the 'gettext' module.
24653 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24655         gnulib-tool: don't give up on ln -s so easily
24656         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
24657         because an earlier one failed.  The targets could be on different
24658         file systems.  Problem reported by KO Myung-Hun in:
24659         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
24661         closedir: fix OS/2-related typos
24662         Problem reported by KO Myung-Hun in:
24663         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
24664         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
24665         in the last couple of changes.
24667 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
24669         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
24670         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
24671         copying a directory.
24673 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24675         regex: treat [x] as x if x is a unibyte encoding error
24676         Problem reported by Aharon Robbins in:
24677         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
24678         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
24679         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
24681         closedir, dirfd, opendir: port to OpenSolaris 5.10
24682         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
24683         * m4/dirfd.m4 (gl_FUNC_DIRFD):
24684         * m4/opendir.m4 (gl_FUNC_OPENDIR):
24685         Don't use ${word##pat} substitution, as it doesn't work in
24686         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
24687         http://bugs.gnu.org/22443#11
24689 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24691         bootstrap: use American spelling
24692         * build-aux/bootstrap: Honor American spelling.
24694 2016-01-22  Karl Berry  <karl@freefriends.org>
24696         * doc/posix-functions/localtime.texi,
24697         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
24699 2016-01-21  Bruno Haible  <bruno@clisp.org>
24701         hash-pjw-bare: fix comment
24702         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
24704         wcwidth: Replace also on OpenBSD 5.8
24705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
24706         * doc/posix-functions/wcwidth.texi: Update.
24708 2016-01-20  Pádraig Brady  <P@draigBrady.com>
24710         gnu-web-doc-update: fix addition of new files
24711         If there were already added (emnpty) dirs,
24712         then cvs aborts the add with the message:
24713           cvs [add aborted]: there is a version in <./dirname> already
24714         * build-aux/gnu-web-doc-update: Add directories separately
24715         to the addition of files, to avoid the above issue
24716         impacting the addition of files.
24718 2016-01-19  Daiki Ueno  <ueno@gnu.org>
24720         utimens-tests: avoid pulling gettext .m4 files
24721         Although this is not the right fix to the original problem:
24722         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
24723         it makes it possible again for consumer projects to use arbitrary
24724         version of gettext, through the steps described at:
24725         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
24726         See here for details:
24727         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
24728         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
24729         'gettext'.
24730         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
24731         'gettext'.
24733 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24735         regex: pacify static checkers
24736         Problem and draft fix reported by Aharon Robbins in:
24737         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24738         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
24739         Clear memory to pacify static checkers.
24741         regex: fix [ diagnostic
24742         Problem and fix reported by Aharon Robbins in:
24743         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24744         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
24746         regex: fix memory leaks
24747         Problem and draft fix reported by Aharon Robbins in:
24748         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
24749         * lib/regcomp.c (build_range_exp, build_charclass_op)
24750         * lib/regex_internal.c (re_dfa_add_node):
24751         Fix memory leak on failure.
24753 2016-01-18  Pádraig Brady  <P@draigBrady.com>
24755         fts: don't unconditionally use leaf optimization for NFS
24756         NFS st_nlink are not accurate on all implementations,
24757         leading to aborts() if that assumption is made.
24758         See <https://bugzilla.redhat.com/1299169>
24759         * lib/fts.c (leaf_optimization_applies): Remove NFS from
24760         the white list, and document the issue.
24762 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24763             KO Myung-Hun  <komh@chollian.net>
24765         gnulib-tool: don't assume ln -s works
24766         * gnulib-tool (func_ln_s): New function.
24767         (func_ln): Use it.
24769 2016-01-15  KO Myung-Hun  <komh@chollian.net>
24771         utimes: detect utimes() correctly on OS/2 kLIBC
24772         utimes() of OS/2 kLIBC has some limitations.
24773         1. OS/2 itself supports a file date since 1980 year in local time.
24774         2. OS/2 itself supports only even seconds for a file time.
24775         3. utimes() of OS/2 kLIBC does not work on an opened file.
24776         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
24777         * doc/posix-functions/utimes.texi: Document the above limitations of
24778         utimes() on OS/2 kLIBC.
24780 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24781             KO Myung-Hun  <komh@chollian.net>
24783         openat_proc_name: port to OS/2 kLIBC
24784         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
24785         instead of /proc/self/fd.
24786         * lib/openat-proc.c (openat_proc_name):
24787         Don't assume file name length is less than INT_MAX.
24788         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
24790 2016-01-14  KO Myung-Hun  <komh@chollian.net>
24792         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
24793         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
24794         definitions of intptr_t and uintptr_t (which use int and unsigned)
24795         to avoid clashes with declarations of system functions like sbrk.
24796         * lib/stdint.in.h (intptr_t, uintptr_t): Check
24797         _INTPTR_T_DECLARED before defining them.
24799         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
24800         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
24801         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
24802         Declare on kLIBC.
24803         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
24804         fd associated with dirp.
24805         (_gl_register_dirp_fd): New. Register fd associated with dirp to
24806         dirp_fd_list.
24807         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
24808         (dirfd): Implemented for kLIBC.
24809         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
24810         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
24811         succeeds.
24812         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
24813         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24814         (REPLACE_DIRFD): Define to 1 if replaced.
24815         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
24816         * modules/closedir (Depends-on): Add dirfd.
24817         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
24818         condition.
24819         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
24820         * modules/opendir (Depends-on): Add dirfd.
24822         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
24823         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
24824         * lib/dup.c (dup_nothrow): New.
24825         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
24826         (klibc_dup2): New.
24827         * lib/fcntl.c (klibc_fcntl): New.
24828         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
24829         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
24830         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
24831         fd.
24833         pipe_filter_ii_execute: port to OS/2 kLIBC
24834         Pipes on kLIBC do not support O_NONBLOCK like Win32.
24835         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
24836         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
24837         Reuse Win32 code on OS/2 kLIBC.
24838         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
24839         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
24841         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
24842         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
24843         static inline function.  The implementation of wcwidth in wcwidth.c
24844         causes a "conflicting types" error.
24845         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
24847         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
24848         spawn() on OS/2 kLIBC is not silly like one on Windows
24849         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
24850         empty string on OS/2 kLIBC.
24852         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
24853         On OS/2 kLIBC, select() works only on sockets.
24854         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
24856         binary-io: don't put fd in binary mode if it is a console on EMX
24857         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
24858         a console on EMX.
24860 2016-01-15  Pádraig Brady  <P@draigBrady.com>
24862         doc: mention unfixed issues with unsupported localtime() values
24863         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
24864         returns nonsense for localtime(2^56).
24865         * doc/posix-functions/localtime_r.texi: Likewise.
24867 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24869         doc: mention setlocale() issues on OpenBSD
24870         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
24871         never fails, and the need to check categories individually.
24873 2016-01-14  Pádraig Brady  <P@draigBrady.com>
24875         sig2str: list all signals on FreeBSD >= 7
24876         FreeBSD >= 7 is contravening POSIX by not defining NSIG
24877         to the maximal statically defined signal value.
24878         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
24879         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
24880         where available, even when NSIG is defined.
24882 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
24884         acl-permissions: port to USE_ACL==0 platforms
24885         I ran into this problem when building bleeding-edge GNU Emacs
24886         with gcc -fsanitize=address on Fedora 23.  On this platform
24887         the ACL library does not pass the 'configure' test and Emacs
24888         then does not build due in part to what appear to be typos in the
24889         ACL part of Gnulib.
24890         * lib/acl-internal.c (free_permission_context):
24891         * lib/acl-internal.h (struct permission_context):
24892         Test whether USE_ACL is nonzero, not whether it is defined.
24894 2016-01-12  Martin Sebor  <msebor@redhat.com>
24896         mktime: rename macro to avoid glibc clash
24897         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
24898         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
24900 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
24902         Port "$@" to OpenIndiana ksh93
24903         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
24904         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
24905         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
24906         bug long-dead shells, so remove the workaround.
24907         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
24908         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
24909         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
24910         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
24911         Use "$@" instead of ${1+"$@"}.
24913         Port Universal Time settings to strict POSIX
24914         * build-aux/announce-gen, build-aux/bootstrap:
24915         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
24916         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
24917         * build-aux/gnupload, build-aux/mkinstalldirs:
24918         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
24919         * build-aux/update-copyright, build-aux/useless-if-before-free:
24920         * build-aux/vc-list-files, tests/test-strftime.c:
24921         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
24922         but POSIX says the behavior of TZ="UTC" is undefined.
24924 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24926         msvc-inval: fix problem with unset shell var
24927         Problem reported by Karl Berry in:
24928         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
24929         * modules/msvc-inval (Depends-on):
24930         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
24931         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
24933 2016-01-01  Pádraig Brady  <P@draigBrady.com>
24935         tests: for compare_(), use cmp -s where available
24936         * tests/init.sh (compare_): Only fall back to cmp without
24937         the POSIX defined -s option, where this is not available.
24939 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24941         version-etc: new year
24942         * build-aux/gendocs.sh (version):
24943         * doc/gendocs_template:
24944         * doc/gendocs_template_min:
24945         * doc/gnulib.texi:
24946         * lib/version-etc.c (COPYRIGHT_YEAR):
24947         Update copyright dates by hand in templates and the like.
24948         * all files: Run 'make update-copyright'.
24950 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
24952         human: fix output buffer overrun by 1
24953         * lib/human.c (human_readable): Fix off-by-one typo in buffer
24954         calculation that could lead to a one-byte buffer overrun.
24956 2015-12-28  Daiki Ueno  <ueno@gnu.org>
24958         maint: fix operator precedence in mbrtowc test
24959         This is a fix for test breakage introduced by commit 45228d96; the
24960         equality expression must be parenthesized when negated with '!',
24961         otherwise we always get:
24963           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
24965         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
24966         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
24968 2015-12-23  James Youngman  <jay@gnu.org>
24970         regexprops-generic: update from regex.h
24971         * doc/regexprops-generic.texi: update by running the regexprops binary
24972         from findutils (the command line is 'regexprops "Regular Expressions"
24973         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
24974         gnulib with GNU grep had made this document out-of-date.
24976 2015-12-23  Pádraig Brady  <P@draigBrady.com>
24978         strftime-tests: avoid false failure on OS X
24979         * tests/test-strftime.c (struct localtime_rz_test): Add an
24980         ahistorical member which is used to warn rather than fail
24981         when tm_isdst isn't set for such entries.  This is the case for
24982         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
24984 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
24986         fts: ensure leaf optimization is used for NFS
24987         NFS provides usable dirent.d_type but not necessarily for all entries
24988         of large directories.  See <https://bugzilla.redhat.com/1252549>
24989         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
24991 2015-12-20  Pádraig Brady  <P@draigBrady.com>
24993         fts: enable leaf optimization for XFS
24994         XFS provides usable dirent.d_type only for DT_DIR,
24995         but the noleaf optimization still applies.
24996         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
24998 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
25000         intprops: comment fix
25001         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
25002         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
25004         intprops-test: work around GCC bug 68971
25005         Problem reported by Pádraig Brady in:
25006         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
25007         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
25008         (main): Add a case that better tests 64-bit long in this area.
25010 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
25012         gnulib-tool: allow multiple --local-dir usage
25013         * gnulib-tool: Use --local-dir to construct compound
25014         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
25015         PATH_SEPARATOR early.
25016         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
25017         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
25018         func_determine_path_separator because that needs to be detected
25019         earlier now.
25020         (func_determine_path_separator): New function.
25021         (func_path_foreach, func_path_foreach_inner): New functions.
25022         (func_path_prepend, func_path_append): Likewise.
25023         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
25024         (func_lookup_file, func_all_modules): Use new functions to work
25025         with local_gnulib_path.
25026         (func_modules_in_dir, func_exists_module): New callbacks for
25027         func_path_foreach.
25028         (func_exists_module, func_get_tests_module): Likewise.
25029         (func_is_local_file, func_should_symlink): New helper methods.
25030         (func_add_file, func_update_file): Use new func_should_symlink
25031         instead, DRY.
25032         (func_reconstruct_cached_local_gnulib_path): New helper.
25033         (func_reconstruct_cached_dir): New callback.
25034         (func_import): The cached_local_gnulib_dir renamed to
25035         cached_local_gnulib_path similarly to local_gnulib_dir.
25036         Use new func_reconstruct_cached_local_gnulib_path.
25037         (func_count_relative_local_gnulib_path): New sub-method.
25038         (func_create_testdir): Use func_should_symlink, DRY.
25039         (func_create_megatestdir): Use new functions to work with
25040         local_gnulib_path correctly.
25041         (func_append_local_dir): New helper.
25043 2015-12-08  Pádraig Brady  <P@draigBrady.com>
25045         fix freadptr to work with ungetc on all uClibc configs
25046         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
25047         where GNU coreutils cut(1) generates invalid output on uClibc
25048         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
25049         * lib/freadptr.c (freadptr): Return NULL if there are
25050         ungotten chars.  In this case freadseek() will iterate
25051         again to process the ungotten character.
25053 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
25055         xalloc-oversized: improve performance with GCC 5
25056         * lib/xalloc-oversized.h (xalloc_oversized):
25057         Improve performance with GCC 5 by using __builtin_mul_overflow.
25059 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
25061         intprops: new public macro EXPR_SIGNED
25062         Emacs can use this macro, so make it public.
25063         * doc/intprops.texi (Arithmetic Type Properties): Rename from
25064         'Integer Type Determination', since some of these macros apply
25065         to non-integer types.  Clarify what kinds of constant expressions
25066         these macros return.  Say when the arguments can be non-integers.
25067         Mention newly published macro EXPR_SIGNED.
25068         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
25069         make it public.  All uses changed.
25071         intprops: fix typo in clang port
25072         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
25073         '__builtin_add_overflow' that is not caught by compiler.
25075 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
25077         test-timespec: fix typo in previous change
25078         * tests/test-timespec.c (main): Fix typo that reduced test quality.
25080         timespec-sub: fix overflow bug; add tests
25081         * lib/timespec-add.c (timespec_add):
25082         * lib/timespec-sub.c (timespec_sub):
25083         Work even if time_t is narrower than int (a theoretical
25084         possibility).  Redo code for a bit more clarity.
25085         * lib/timespec-sub.c (timespec_sub):
25086         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
25087         * modules/timespec-tests, tests/test-timespec.c: New files.
25089         intprops-test: suppress -Woverlength-strings
25090         Problem reported by Pádraig Brady in:
25091         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
25092         It is not worth the hassle to port this test to compilers that
25093         cannot handle long strings in diagnostics.
25094         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
25096 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25098         quotearg: add quotearg_n_style_colon()
25099         This quotes with default options of the specified style,
25100         but with quoting enabled for instances of ':'.
25101         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
25102         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
25104 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25106         intprops: revise _WRAPV macros, revert _OVERFLOW
25107         The incompatible changes to the _OVERFLOW macros were too much of
25108         a hassle in practice, so revert them.  Instead, change the new
25109         _WRAPV macros to make them closer in behavior to GCC 5's new
25110         builtin_add_overflow etc. functions.  No other software was using
25111         these newly-added macros yet, so this should be OK.
25112         * NEWS: Revert previous change, since the incompatible change
25113         has been reverted, and nobody used the incompatible version.
25114         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
25115         Document revised behavior.
25116         (Integer Range Overflow): Adjust example to match above revisions.
25117         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
25118         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
25119         these can be used in integer constant expressions again.
25120         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
25121         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
25122         needed.
25123         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25124         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25125         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
25126         Remove, as they did not seem that useful.
25127         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
25128         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
25129         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
25130         Support new semantics.
25131         (__has_builtin): New macro, if not alreay defined.
25132         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
25133         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25134         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25135         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25136         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
25137         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
25138         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
25139         New macros.
25140         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
25142 2015-11-03  Jim Meyering  <meyering@fb.com>
25144         intprops: add parentheses for when OP has precedence lower than "-"
25145         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
25146         "a OP b" must be parenthesized for when OP is like "<<", which has
25147         lower precedence than the following "-". Reported by Pádraig Brady.
25149 2015-11-03  Pádraig Brady  <P@draigBrady.com>
25151         quotearg: constify get_quoting_style parameters
25152         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
25153         * lib/quotearg.c (get_quoting_style): Likewise.
25155 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25157         quotearg: add support for $'' shell escaping
25158         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
25159         items and descriptions.
25160         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
25161         above types by quoting like "shell", but using $'...' syntax
25162         for non printable characters, which should provide unambiguous
25163         printable output for any input.
25164         * tests/test-quotearg-simple.c: Update accordingly.
25166 2015-11-02  Pádraig Brady  <P@draigBrady.com>
25168         maint: use a more standard return from mbrtowc test
25169         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
25170         from the test program as this is non standard and often
25171         indicates an unhandled case in the test program.
25172         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
25174 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
25176         intprops: add WRAPV and const flavors for GCC 5
25177         If available, use GCC 5's builtin functions for efficient integer
25178         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
25179         and safely compute the low-order bits of the correct answer.
25180         A downside of these efficient functions is that they cannot be
25181         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
25182         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
25183         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
25184         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
25185         Document the changes.
25186         (Wraparound Arithmetic): New section.
25187         (Integer Range Overflow):
25188         Put this subsection last, since it's least useful.
25189         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
25190         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
25191         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
25192         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
25193         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
25194         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
25195         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
25196         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
25197         New macros.
25198         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
25199         Generate calls to GCC builtins if available, for speed.
25200         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
25201         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
25202         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
25203         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
25204         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
25205         (CHECK_QUOTIENT, CHECK_REMAINDER):
25206         Test WRAPV and CONST flavors (when available) too.
25208 2015-10-30  Pádraig Brady  <P@draigBrady.com>
25210         doc: use extended timezone format in iso-8601 example
25211         * doc/parse-datetime.texi: The standard states that extended format
25212         is to be used consistently throughout.
25213         Note that lib/parse-datetime.y can handle either tz format.
25215 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25217         stdalign: port to Sun C 5.9
25218         * doc/posix-headers/stdalign.texi: Document this.
25219         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
25220         __attribute__ ((__aligned__ (...))).
25222 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
25224         time_rz: fix comment about tzalloc
25225         * lib/time_rz.c (tzalloc): Fix comment.
25227 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25229         stdalign: work around pre-4.9 GCC x86 bug
25230         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
25231         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
25232         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
25234 2015-10-18  Pádraig Brady  <P@draigBrady.com>
25236         maint.mk: sc_tight_scope: remove extraneous expressions
25237         * top/maint.mk (tight_scope): This is not really required since
25238         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
25239         that matches all nm entries.  But it does remove extraneous entries
25240         that may be confusing or cause issue in future maintenance.
25242 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
25244         time_rz: return NULL if localtime_r fails
25245         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
25246         while still attempting to pacify bleeding-edge GCC.
25248         fts: port to C11 alignof
25249         * doc/posix-headers/stdalign.texi (stdalign.h):
25250         Document the C11 restriction.
25251         * lib/fts.c: Include stddef.h, for max_align_t.
25252         (fts_alloc): Align using max_align_t, not FTSENT.
25253         * modules/fts (Depends-on): Add stddef.
25255 2015-10-18  Jim Meyering  <meyering@fb.com>
25257         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
25258         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
25259         would see this:
25261         lib/time_rz.c: In function 'localtime_rz':
25262         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
25263           [-Werror=nonnull]
25264                    if (tm && !save_abbr (tz, tm))
25265                        ^
25267         That was complaining about "tm" because it is a parameter that was
25268         declared with the __nonnull__ attribute.
25269         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
25270         result of localtime_r.
25272 2015-10-17  Jim Meyering  <meyering@fb.com>
25274         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
25275         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
25276         name-extraction regexp mistakenly used \S+, and would mistakenly
25277         extract "*F" from "extern int *F()" rather than the desired "F".
25278         Use \w+ instead.
25280 2015-10-17  Jim Meyering  <meyering@fb.com>
25282         maint.mk: sc_tight_scope: factor and support OS X
25283         * top/maint.mk (_gl_tight_scope): Address three issues:
25284         - factor out four instances of code that wraps a string in "^...$"
25285         - allow nm-reported symbol names to have an optional leading "_"
25286         - add "main" to the list of ignored variable names, because on os x,
25287         "main" has nm-reported type "S" in the variable-checking section.
25289 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
25291         safe-alloc-tests: fix typo in license header
25292         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
25294 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
25296         copy-file: fix mem leak in error case
25297         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
25298         upon error opening or performing I/O to the src and dest files.
25300 2015-10-15  Mike Frysinger  <vapier@chromium.org>
25302         localename: control langinfo.h inclusion
25303         This header is only used to work around buggy behavior in old
25304         versions of glibc, so do not include it all the time.  Otherwise
25305         we get build failures on systems that do not provide langinfo.h.
25306         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
25307         in the source later on.
25308         The patch was originally submitted to gettext as:
25309         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
25311 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25313         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
25314         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
25315         * lib/u64.c, lib/unistd.c:
25316         Append 'typedef int dummy;', to pacify compilers that are picky
25317         about empty translation units.
25319 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
25321         accept4-tests: fix to avoid non portable flags
25322         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
25323         as they are the only documented ones, and passing others may trigger
25324         EINVAL (seen on FreeBSD 10.1-RELEASE).
25325         * doc/glibc-functions/accept4.texi: Mention that we don't provide
25326         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
25328 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
25330         gnulib-tool: fix tests of 'extensions' module
25331         This complements f8fe25fab60e3c687a124 commit.
25332         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
25333         emitting of initial gl_EARLY macros.
25334         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
25335         replaced with func_emit_pre_early_macros call.
25337 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
25339         unicase/locale-language: fix typo in utf-8 cookie
25340         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
25341         Problem reported by Zbigniew Jędrzejewski-Szmek.
25343 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
25345         xalloc: do not worry about GCC 5 warning on 32 bit
25346         * lib/xalloc.h: Revert previous change.
25347         I found a better way to fix this in coreutils.
25349 2015-10-02  Pádraig Brady  <P@draigBrady.com>
25351         xalloc: avoid GCC 5.1 warning on 32 bit
25352         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
25353         xalloc_oversized(), which was seen to give this warning
25354         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
25355         when simplifying conditional".
25357 2015-10-02  Daiki Ueno  <ueno@gnu.org>
25359         uniname/uniname-tests: avoid compiler warnings
25360         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
25361         unused local variables.
25362         (test_alias_lookup): Fix alias name display in failure cases.
25364 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
25366         c-ctype: do not worry about EBCDIC + char signed
25367         Drop support for EBCDIC with char being signed, as this breaks too
25368         many programs.  Problem reported by Ben Pfaff in:
25369         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
25370         * lib/c-ctype.h: Verify that we are not using EBCDIC with
25371         char being signed.
25372         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
25373         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
25374         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
25375         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
25376         * tests/test-c-ctype.c (test_all):
25377         Simplify by assuming standard char values cannot be negative.
25378         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
25380 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25382         c-ctype: port better to z/OS EBCDIC
25383         Problems reported by Daniel Richard G. in:
25384         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
25385         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
25386         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
25387         (_C_CTYPE_OTHER_CNTRL): New macro.
25388         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
25389         from SCHAR_MIN, as the functions are defined only from values
25390         promoted from char or from unsigned char, not necessarily from
25391         signed char.
25393 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
25395         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
25397         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
25398         and ARFLAGS variables.  Doing this unconditionally could break
25399         later Automake's AM_PROG_AR invocation (at least it's
25400         AC_CHECK_TOOLS call to detect correct 'ar' binary).
25402         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
25403         Amsterdam Compiler Kit, so make the previous code to have effects
25404         only on ACK, and rather automatically call the Automake's
25405         AM_PROG_AR as soon as possible to decide other cases.
25407         References:
25408         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
25410         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
25411         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
25412         is possible, keep setting AR/ARFLAGS to reasonable defaults.
25413         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
25414         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
25415         'extensions' module is used.
25416         * modules/extensions (configure.ac-early): Remove as this snippet
25417         is added to gnulib-comp.m4 earlier anyway.
25419 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25421         sockets: MS Windows initalization fixes
25422         Problem reported by Test User in:
25423         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
25424         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
25425         Correct the endianness.
25426         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
25427         number mismatch, not just on <.  Cleanup before any such failure.
25429 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
25431         gc: fix detection of installed libgcrypt version
25432         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
25433         at least as recent as 1.4.4.  The previously used macro is not
25434         available now, since modules were removed in version 1.6.0.
25436 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
25438         c-ctype: rewrite to use inline functions
25439         This simplifies maintenance, since it makes for just one
25440         implementation of each function, letting the compiler have the fun
25441         of optimization.  In practice this works well nowadays with GCC.
25442         E.g., c_isascii might need only three instructions even though the
25443         source code lists every ASCII character individually in a large
25444         switch statement.
25445         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
25446         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
25447         * NEWS: Document the API change.
25448         * lib/c-ctype.c: Drastically simplify, since this now just expands
25449         inline functions.
25450         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
25451         (C_CTYPE_INLINE): New macro.
25452         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
25453         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
25454         Verify that either ASCII or EBCDIC is being used.
25455         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
25456         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
25457         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
25458         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
25459         New private macros.
25460         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
25461         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
25462         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
25463         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
25464         (c_tolower, c_toupper): When converting, return the unsigned char,
25465         as that is what z/OS does.
25466         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
25467         of some c-ctype.h macros.
25468         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
25469         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
25470         c_tolower promotion to be compatible with z/OS.
25472 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
25474         gitlog-to-changelog: trim only trailing whitespaces
25475         This is fix for --format regression introduced by commit
25476         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
25477         doubled %n string) had no effect anymore.  This format
25478         specification has been used e.g. by GNU paxuitils (commit
25479         edfd8bcc3).
25481         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
25482         newlines in commmit messages.
25484 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
25486         Test that c_iscntrl agrees with iscntrl, etc.
25487         Suggested by Daniel Richard G. in:
25488         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
25489         * modules/c-ctype-tests (Depends-on): Add ctype.
25490         * tests/test-c-ctype.c: Include <ctype.h>.
25491         (NCHARS): New constant.
25492         (test_agree_with_C_locale): New function.
25493         (main): Use it.
25494         (test_all): Use named constants.
25496         c-ctype: improve c_isascii testing
25497         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
25498         Add a test to count the number of ASCII characters.
25500 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25502         savewd: remove SAVEWD_CHDIR_READABLE
25503         It was problematic in the light of file systems that ignore umask.
25504         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
25505         * NEWS: Document this.
25506         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
25507         successful, -1 (setting errno) on failure, rather than something
25508         more complicated than that.
25509         * lib/mkdir-p.c (make_dir_parents):
25510         Do not use SAVEWD_CHDIR_READABLE.
25511         * lib/savewd.c (savewd_chdir):
25512         Remove support for SAVEWD_CHDIR_READABLE.
25513         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
25515         c-ctype: port better to EBCDIC
25516         Problems reported by Daniel Richard G. in
25517         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
25518         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
25519         Include "verify.h".
25520         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
25521         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
25522         Define as enum constants with value false, if not defined, so that
25523         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
25524         code more portable, as both branches of the 'if' are compiled on
25525         all platforms.
25526         (C_CTYPE_EBCDIC): New constant.
25527         Verify that the character set is either ASCII or EBCDIC.
25528         (to_char): New static function.
25529         (c_isascii, c_iscntrl):
25530         Assume standard control-character assignments for EBCDIC.
25531         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
25532         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
25533         Rewrite to use 'if' instead of 'ifdef'.
25534         Use to_char if non-ASCII.  Prefer <= to >=.
25535         Prefer true and false to 1 and 0, for booleans.
25536         (c_iscntrl): Use 'if', not 'ifdef'.
25537         * modules/c-ctype (Depends-on): Add verify.
25538         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
25539         (to_char): New function.
25540         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
25542 2015-09-21  Pádraig Brady  <P@draigBrady.com>
25544         nanosleep: fix return code for interrupted replacement
25545         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
25546         that we return -1 in the case the call is interrupted by a signal,
25547         rather than the current value of 1.
25548         Diagnosed and tested by Daniel Richard G.
25550 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
25552         Diagnose ERE '()|\1'
25553         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
25554         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
25555         track of the set of previously-completed subexpressions available
25556         before the first alternative, and restore this set just before
25557         parsing each subsequent alternative.  This lets us diagnose the
25558         invalid back-reference in the ERE '()|\1'.
25560         regex: merge patches from libc
25562         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
25563         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
25564         * lib/regex_internal.h:
25565         Include <libc-lock.h> instead of <bits/libc-lock.h>.
25567         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
25568         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
25569         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
25570         wcscoll.
25571         * lib/regexec.c (check_node_accept_bytes): Likewise.
25573         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25574         Fix regex wcrtomb namespace (bug 18496).
25575         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
25576         instead of wcrtomb.
25578         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
25579         Fix regex wctype namespace (bug 18495).
25580         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
25581         instead of towlower.
25582         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
25583         instead of iswlower.  Call __towupper instead of towupper.
25584         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
25585         instead of iswalnum.
25587         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
25588         * lib/regcomp.c (parse_bracket_exp): Initialize type to
25589         COLL_SYM in a couple of places to avoid uninitialized variable
25590         wanings on tilegx gcc 4.8.2.
25592         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
25593         * lib/regex_internal.h: Remove NOT_IN_libc.
25595         2014-11-17  Andreas Schwab  <schwab@suse.de>
25596         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
25598         2014-09-11  Roland McGrath  <roland@hack.frob.com>
25599         Move findidx nested functions to top-level.
25600         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
25601         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
25602         Pass new arguments to findidx.
25603         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
25604         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
25605         Don't #include it inside the function.  Pass new arguments to findidx.
25606         * lib/regex_internal.h:
25607         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
25608         (re_string_elem_size_at): Don't #include it inside the function.
25609         Pass new arguments to findidx.
25611         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
25612         Check if DEBUG is defined in regex_internal.c
25613         * lib/regex_internal.c: Check if DEBUG is defined and is set.
25615 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
25617         ceill: detect buggy OpenBSD implementation
25618         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
25619         which returns zero for small values.  Discussed here:
25620         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
25622 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
25624         mountlist: add me_mntroot field on Linux machines
25625         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
25626         mount_entry so Linux machines based on /proc/self/mountinfo can
25627         distinguish between bind mounts and original mounts.  In reality bind
25628         mounts aren't treated differently than mountroot=/ mounts by the
25629         kernel, but the user often wants these bind mounts distinguished.
25630         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
25631         More details at https://pad.lv/1432871
25633 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
25635         doc: Describe to use multiple instances of gnulib
25636         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
25637         instances of gnulib with different modules can be used, for example one
25638         for a lib and another one for associated tools.
25640 2015-09-01  Pádraig Brady  <P@draigBrady.com>
25642         base32: mark function as __attribute__ const
25643         * lib/base32.h (isbase32): Mark __attribute__ const as
25644         suggested by GCC, and consistent with the base64 module.
25646 2015-08-20  Daiki Ueno  <ueno@gnu.org>
25648         gnulib-tool: don't transform binary files with sed
25649         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
25650         .mo and .class files.
25651         Reported by Denis Denisov.
25653 2015-08-10  Daiki Ueno  <ueno@gnu.org>
25655         gperf: respect silent rules
25656         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
25657         V_GPERF_0 for silent rules.
25658         * modules/iconv_open (Makefile.am): Use V_GPERF.
25659         * modules/unicase/locale-language (Makefile.am): Likewise.
25660         * modules/unicase/special-casing (Makefile.am): Likewise.
25661         * modules/unictype/category-byname (Makefile.am): Likewise.
25662         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
25663         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
25664         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
25665         * modules/unictype/property-byname (Makefile.am): Likewise.
25666         * modules/unictype/scripts (Makefile.am): Likewise.
25667         * modules/uninorm/composition (Makefile.am): Likewise.
25669 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
25671         Improve port of stdalign to C++11
25672         Problem reported by Sundaram in:
25673         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
25674         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
25675         (__alignas_is_defined): Define if C++11 or newer.
25677 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
25679         pmccabe2html: fix gawk regex escaping
25680         * build-aux/pmccabe2html: Add one more backslash to properly
25681         escape the gsub replacement value.  Fixes this error:
25682         gawk: ./build-aux/pmccabe2html:425: \
25683         warning: escape sequence `\&' treated as plain `&'
25685 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
25687         time_rz: port to pedantic memcpy
25688         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
25689         that reject memcpy (..., NULL, 0).
25691 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
25693         time_rz: port better to MinGW
25694         Don't change tzname, as this makes MinGW dump core (Bug#21020).
25695         Instead, store the tzname copy in the struct tm_zone object.
25696         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
25697         * lib/strftime.c [!_LIBC]:
25698         * lib/time_rz.c: Include time-internal.h.
25699         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
25700         name from *TZ rather than from TZNAME, doable because *TZ now has
25701         a tzname_copy member.
25702         * lib/time-internal.h: New file, with contents taken from
25703         lib/time_rz.c.  It's separate because strftime.c now accesses
25704         struct tm_zone members.
25705         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25706         New member tzname_copy.
25707         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
25708         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
25709         Initialize tzname_copy member.
25710         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
25711         in tzname_copy member.
25712         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
25713         (restore_tzname): Remove; no longer needed.  All calls removed.
25714         * modules/time_rz (Files): Add lib/time-internal.h.
25716         time: port __need_time_t to MinGW
25717         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
25718         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
25720 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
25722         strftime: fix newly-introduced bug on Solaris
25723         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
25724         consistently at the start, rather than doing some of the setup at
25725         the start and some in the %Z format spec.  This is cleaner, and
25726         works better with time_rz on platforms like Solaris where struct
25727         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
25728         mktime_z and localtime_rz can mess up the tzname cache.
25730         test-strftime: test for Solaris bug
25731         * modules/strftime-tests (Depends-on): Add strerror.
25732         * tests/test-strftime.c: Include <errno.h>.
25733         (posixtm_test): New function, containing the old 'main'.
25734         (struct tzalloc_test, struct localtime_rz_test): New types.
25735         (TZ, LT): New static vars.
25736         (tzalloc_test): New function.
25737         (main): Rewrite in terms of posixtm_test and tzalloc_test.
25739         time_rz: port to Solaris etc.
25740         Works around a tzname problem on platforms like Solaris that have
25741         tzname but not tm_zone, by setting tzname at the appropriate time
25742         and restoring it later.
25743         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
25744         New static vars.
25745         (save_abbr) [HAVE_TZNAME]: Set them.
25746         (revert_tz) [HAVE_TZNAME]: Clear or use them.
25747         (restore_tzname): New function.
25748         (localtime_rz, mktime_z): Use it.
25750         time_rz: now LGPL
25751         * modules/time_rz (License): Now LGPL, because strftime depends on it.
25753         time_rz: make a constant 'const'
25754         * lib/time_rz.c (local_tz): Now const.
25756         time_rz: fix off-by-one typo
25757         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
25759 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
25761         fprintftime, strftime: use timezone_t args
25762         * NEWS: Document the change.
25763         * lib/fprintftime.h (fprintftime):
25764         * lib/strftime.c (extra_args) [my_strftime]:
25765         * lib/strftime.h (nstrftime):
25766         Time zone arg is now of type timezone_t, not int.
25767         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
25768         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
25769         (my_strftime) [emacs && !my_strftime]:
25770         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
25771         Remove; Emacs doesn't need this any more.
25772         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
25773         fprintftime and nstrftime to call tzset.
25774         (ut) [!my_strftime]: Remove, replacing with ...
25775         (tz) [!my_stftime]: ... this new macro.  All uses changed.
25776         (strftime_case_): Use localtime_rz and mktime_z instead
25777         of localtime_r and mktime.
25778         * modules/fprintftime (Depends-on): Add time_rz.
25779         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
25780         * tests/test-strftime.c (main): Adjust to new nstrftime API.
25782         time_rz: new module
25783         * MODULES.html.sh: Add time_rz.
25784         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
25785         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
25786         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
25787         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
25788         New var HAVE_TIMEZONE_T (default 0).
25789         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
25790         New var GNULIB_TIME_RZ (default 0).
25791         * modules/time (time.h): Substitute the new vars.
25793         flexmember: license is now unlimited
25794         * modules/flexmember (License): Change to unlimited,
25795         since its only source file gives an unlimited license.
25797 2015-07-15  Eric Blake  <eblake@redhat.com>
25799         maint: update copyright paper procedures
25800         * config/srclist.txt: Drop outdated files.
25801         * doc/Copyright/conditions.txt: Update to latest.
25802         * doc/Copyright/assign.changes.manual: Delete.
25803         * doc/Copyright/assign.future.manual: Likewise.
25804         * doc/Copyright/assign.manual: Likewise.
25805         * doc/Copyright/assign.translation.manual: Likewise.
25806         * doc/Copyright/disclaim.changes.manual: Likewise.
25807         * doc/Copyright/disclaim.manual: Likewise.
25808         * doc/Copyright/disclaim.program: Likewise.
25810 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25812         localename: fix link error on Illumos
25813         Illumos defines __sun, but does not have getlocalename_l nor the
25814         equivalent.  This partially reverts commit 387c214.
25815         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
25816         available, as well as uselocale.
25817         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
25818         use getlocalename_l if it is not available.
25820 2015-07-07  Daiki Ueno  <ueno@gnu.org>
25822         unistr/uN-strtok-tests: avoid a trivial leak
25823         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
25824         input and delim after the multibyte delimiter tests.
25826 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
25828         file-has-acl, acl-permissions: fix HP-UX typos
25829         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
25830         * lib/file-has-acl.c (file_has_acl):
25831         * lib/set-permissions.c (context_acl_from_mode)
25832         (context_aclv_from_mode, set_acls):
25833         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
25834         They were introduced by the recent ACL changes.
25836         regex: match current GNU grep behavior
25837         These symbols have not matched GNU grep behavior for quite some time.
25838         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
25839         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
25840         Change to match current GNU behavior.
25841         Simplify by expressing it as differences from POSIX BREs and EREs.
25842         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
25844 2015-07-03  Jim Meyering  <meyering@fb.com>
25846         set-permissions.c: adjust acl_from_mode's cpp guard
25847         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
25848         directives identical to those guarding the sole use.
25849         Otherwise, on some systems, we'd get a warning about
25850         the function being defined but not used.
25851         Also, filter through cppi to correct misleading indentation
25852         of cpp directives.
25854 2015-07-03  Pádraig Brady  <P@draigBrady.com>
25856         tests: restrict shells to those that support 'local'
25857         The local keyword is very widely supported and used
25858         in tests in coreutils and grep at least.  Therefore
25859         restrict to testing with shells that support it.
25860         This mainly excludes /bin/sh on Solaris.
25861         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
25863 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
25864         and Daiki Ueno  <ueno@gnu.org>
25866         unistr/uN-strtok: handle multibyte delimiters
25867         Previously, uN_strtok moved PTR to the next unit to the token end.
25868         When DELIM contained a multibyte character, the new position could
25869         be a middle of a multibyte character.
25870         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
25871         after the token.
25872         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
25873         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
25874         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
25875         * modules/unistr/u8-strtok (Depends-on): Depend on
25876         unistr/u8-strmblen.
25877         * modules/unistr/u16-strtok (Depends-on): Depend on
25878         unistr/u16-strmblen.
25879         * modules/unistr/u32-strtok (Depends-on): Depend on
25880         unistr/u32-strmblen.
25881         * tests/unistr/test-u-strtok.h: New file.
25882         * tests/unistr/test-u8-strtok.c: New file.
25883         * tests/unistr/test-u16-strtok.c: New file.
25884         * tests/unistr/test-u32-strtok.c: New file.
25885         * modules/unistr/u8-strtok-tests: New file.
25886         * modules/unistr/u32-strtok-tests: New file.
25887         * modules/unistr/u16-strtok-tests: New file.
25889 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
25891         update-copyright: fix test failure with perl >= 5.22 (trivial)
25892         * build-aux/update-copyright: Escape a literal left curly bracket,
25893         required with perl >= 5.22
25895 2015-07-02  Daiki Ueno  <ueno@gnu.org>
25897         u{16,32}-strstr-tests: relax timeout condition
25898         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
25899         tests can take longer than 5 seconds to complete.
25900         Reported by Dagobert Michelsen in:
25901         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
25902         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
25903         seconds to 10 seconds.
25904         * tests/unistr/test-u32-strstr.c (main): Likewise.
25906 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
25908         gnulib-common.m4: change the ARFLAGS default to 'cr'
25909         In some GNU/Linux distributions people started to compile 'ar'
25910         binary with --enable-deterministic-archives (binutils project).
25911         That, however, in combination with previous autotools long time
25912         working default AR{_,}FLAGS=cru causes warnings on such
25913         installations:
25914         ar: `u' modifier ignored since `D' is the default (see `U')
25915         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
25916         set already.
25918 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
25920         selinux-h: avoid double free after *getfilecon()
25921         Originally reported by Ben Shelton on bug-tar:
25922         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
25923         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
25924         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
25925         param should be freed by freecon(3) (regardless the return value).
25927 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
25929         fix pty related tests issues on Windows (trivial)
25930         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
25931         however it's still present in tests/ subdirectory of the final project.
25932         Therefore avoid it to pass `make check`.
25933         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
25934         will just return -ENOSYS, so avoid this non applicable test allowing
25935         the build to proceed.
25937 2015-07-01  Pádraig Brady  <P@draigBrady.com>
25939         acl: fix definition of acl_from_mode on FreeBSD
25940         This was causing basic coreutils copy operations to fail
25941         with ENOTSUP or ENOENT error messages.
25942         * lib/acl-internal.h (acl_from_mode): Only define when
25943         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
25944         of acl_from_mode() defined in lib/set-permissions.c to
25945         be used on FreeBSD at least.
25946         * lib/set-permissions.c: Fix up comment spelling,
25947         and a redundant variable assignment; noticed in passing.
25949 2015-06-30  Pádraig Brady  <P@draigBrady.com>
25951         readutmp: port to FreeBSD >= 9
25952         * lib/readutmp.h: Map utmpxname() to setutxdb().
25953         With that coreutils who(1) and pinky(1) tests pass.
25955 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
25957         mgetgroups: port to strict OS X
25958         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
25959         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
25960         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
25961         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
25963 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
25965         mgetgroups: port to strict OS X
25966         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
25967         Document the getgrouplist problem.
25968         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
25969         New macro.
25970         (mgetgroups): Use it.
25971         * m4/mgetgroups.m4 (gl_MGETGROUPS):
25972         Check for OS X signature for getgrouplist.
25974 2015-06-29  Jim Meyering  <meyering@fb.com>
25976         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
25977         It started like this when building coreutils' latest on OS X,
25978         invoking ./configure with a nonempty --cache=.cache:
25980           lib/linkat.c:46:42: error: operator '||' has no right operand
25981           lib/linkat.c: In function 'rpl_linkat':
25982           lib/linkat.c:330:27: error: #if with no expression
25984         Here's linkat.c's line 46:
25986           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
25988         Here's some context:
25990           $ grep linkat_nofoll .cache
25991           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
25992           $ grep LINKAT_SYM lib/config.h
25993           #define LINKAT_SYMLINK_NOTSUP
25995         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
25996         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
25997         but that violates a tenet of AC_CACHE_CHECK: it must
25998         have no side effect other than setting its cache variable.
26000         What happens is that when the cache is set, we'd skip the
26001         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
26002         defined to whatever value it happened to have in configure's
26003         environment.  In my case, it was not defined, so this later code:
26005           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
26006             [Define to 1 if linkat can create hardlinks to symlinks])
26008         would emit code with an empty RHS.
26010         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
26011         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
26013 2015-06-28  Jim Meyering  <meyering@fb.com>
26015         mountlist: avoid an unused-label warning on OS X
26016         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
26017         Building on OS X, I saw a warning about the "free_then_fail" label
26018         being unused.  Give it the _GL_UNUSED_LABEL attribute.
26020         error.c: correct printf-style format: %d -> %u
26021         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
26022         rather than %d, to match the type of "line_number", unsigned int.
26024 2015-06-25  Pádraig Brady  <P@draigBrady.com>
26026         fts: avoid reading beyond the heap allocation
26027         GCC 5.1.1 with -O2 and -fsanitize=address reports
26028         a read of size 4 from a heap object of size 3 is indeed invalid,
26029         though this may be due to incorrect padding assumptions by GCC, see:
26030         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26031         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
26032         * modules/fts: Depend on stdalign.
26034 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26036         savedir: avoid undefined behavior in qsort call
26037         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26038         "runtime error: null pointer passed as argument 1,
26039          which is declared to never be null"
26040         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
26042 2015-06-24  Pádraig Brady  <P@draigBrady.com>
26044         userspec: avoid undefined behavior in gettext call
26045         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
26046         "runtime error: null pointer passed as argument 2,
26047          which is declared to never be null"
26048         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
26050 2015-06-20  Glenn Morris  <rgm@gnu.org>
26052         gitlog-to-changelog: improve gitmerge.el commits
26053         Let the Emacs ChangeLog generation process exclude "skipped"
26054         messages from merge commits (Bug#20717).
26055         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
26057 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
26059         wchar: fix MinGW compilation warnings
26060         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
26061         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
26062         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
26064 2015-06-20  Daiki Ueno  <ueno@gnu.org>
26066         uniname/uniname-tests: use pristine data files
26067         For copyright and maintenance reasons, use the data files from UCD
26068         without modification.
26069         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
26070         (getfield): Remove.
26071         (aliases_count): New global variable.
26072         (fill_names): Skip comments and empty lines in the input.  Don't
26073         use getfield.
26074         (fill_aliases): Likewise.
26075         (main): Change the expected command line arguments to:
26076         NAMES... ["--" ALIASES...].
26077         * tests/uniname/test-uninames.sh: Adjust to the change in
26078         test-uninames.c.
26079         * tests/uniname/UnicodeDataNames.txt: Remove.
26080         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
26081         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
26082         file from Unicode 8.0.0.
26084 2015-06-19  Pádraig Brady  <P@draigBrady.com>
26086         linked-list, linkedhash-list: avoid compiler warnings
26087         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
26088         -Werror=suggest-attribute=pure (from GCC 5.1.1).
26090 2015-06-19  Daiki Ueno  <ueno@gnu.org>
26092         libunistring: bump minimum version to 0.9.6
26093         * all modules depending on updated Unicode data: Regenerate.
26094         The modules are listed by a script that does:
26095         - for each file listed by: git show --oneline --name-only 705f4efc
26096           - deduce the containing modules, based on "Files:"
26097         - deduce the modules which depend on the containing modules, based
26098           on "Depends-on:"
26100 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26102         uniname/uniname: update to Unicode 8.0.0
26103         * lib/uniname/uninames.h: Regenerate.
26104         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
26105         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
26107 2015-06-18  Daiki Ueno  <ueno@gnu.org>
26109         libunistring: update to Unicode 8.0.0
26110         * lib/gen-uni-tables.c (SIZEOF): New macro.
26111         (output_numeric): Increase the maximum number of fractions from
26112         128 to 160.  Increase the level3 value width from 7 bits to 8
26113         bits.  Use SIZEOF instead of a hard-coded integer.
26114         (output_blocks): Decrease the cut-off threshold from 0x30000 to
26115         0x28000.
26116         (fill_blocks): Increase the maximum number of blocks from 256 to
26117         384.  Use SIZEOF instead of a hard-coded integer.
26118         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
26119         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
26120         value width.
26121         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
26122         a new case added to LBP22.
26123         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
26124         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
26125         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
26126         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
26127         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
26128         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26129         lib/uniwidth/width.c.
26130         * all generated files under lib/uni* and tests/uni*: Regenerate.
26132 2015-06-16  Pádraig Brady  <P@draigBrady.com>
26134         gnu-web-doc-update: add --mirror to remove stale files
26135         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
26136         out of date files from the CVS server.  Since this is usually
26137         appropriate, a prompt is given when the option is not specified,
26138         along with the `cvs remove` command that would be run.
26140 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
26142         acl-permissions: pacify -Wsuggest-attribute=const
26143         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
26144         * lib/acl-internal.h (free_permission_context):
26145         Declare with attribute const if ! (defined USE_ACL &&
26146         (HAVE_ACL_GET_FILE || defined GETACL)).
26148         fsync: document AIX misbehavior
26149         * doc/posix-functions/fsync.texi (fsync):
26150         Document failure on AIX with read-only file descriptor.
26152 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
26154         stdio: Don't redefine gets when using C++
26155         * lib/stdio.in.h (gets): Disable warning on C++.
26157 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
26159         acl-permissions: port to AIX, C89 HP-UX
26160         Problems reported by Michael Felt.
26161         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
26162         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
26163         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
26164         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
26165         Add cast for AIX, whose system calls are declared to accept
26166         char * even though the arguments are really char const *.
26167         * lib/get-permissions.c (get_permissions):
26168         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
26169         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
26170         that broke a build.
26171         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
26172         Rework types to pacify xlc.
26174 2015-06-03  Pádraig Brady  <P@draigBrady.com>
26176         vasprintf-posix: avoid compiling vasnprintf where possible
26177         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
26178         module where not required.  For example on a GNU/Linux system
26179         when gnulib-tool is run with the --conditional-dependencies option.
26181 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26183         file-has-acl: fix build on Mac OS X 10
26184         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
26185         which has an incompatible 6 parameter getxattr() call.
26186         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
26187         call on Mac OS X >= 10.4.
26188         * doc/glibc-functions/fgetxattr.texi: Likewise.
26189         * lib/file-has-acl.c: Revert to more complete combined check.
26190         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
26191         Reported by Jack Howarth.
26193 2015-06-02  Pádraig Brady  <P@draigBrady.com>
26195         prefix-gnulib-mk: remove no longer needed special case
26196         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
26197         continued lib_SOURCES lines are no longer present,
26198         so special case handling of such entries is not required.
26200 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26202         acl: don't depend on the deprecated qacl module
26203         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
26205 2015-06-01  Pádraig Brady  <P@draigBrady.com>
26207         gnulib-tool: concatenate lib_SOURCES to a single line
26208         * gnulib-tool: Refactor the line merging sed logic,
26209         and use that to output a single lib_SOURCES line for each module.
26210         gnulib using projects often postprocess this output to prepend
26211         subdir paths to each item, and having a single line simplifies this
26212         processing allowing better decoupling from the gnulib-tool output.
26214 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
26216         pthread_sigmask: discount system version if a simple macro (trivial)
26217         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
26218         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
26219         function to ensure it's available.
26221 2015-05-31  Pádraig Brady  <P@draigBrady.com>
26223         readlinkat: avoid OS X 10.10 trailing slash bug
26224         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
26225         has this bug.
26226         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
26227         that OS X 10.10 has this function.
26228         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
26229         as done for readlink().
26230         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
26231         trailing slash bug, and assume readlinkat() has the same issue.
26232         Also fix a typo where $gl_cv_decl_readlink_works was tested,
26233         rather than the correct $gl_cv_decl_readlinkat_works.
26235 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26237         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
26238         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
26239         module rewrite.
26241         acl-permissions: Fix build on Solaris and Cygwin
26242         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
26243         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
26244         ace_entries variables have moved into struct permission_context but
26245         they were still accessed as local variables here.
26247 2015-05-29  Pádraig Brady  <P@draigBrady.com>
26249         linkat: avoid OS X 10.10 trailing slash with symlink bug
26250         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
26251         causes the symlink to be dereferenced, and if it points
26252         to a non existent file, that file will be created as
26253         a hard link to "path1".
26254         This fixes a test failure in test-linkat.c.
26255         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
26256         this case.  The existing workaround in linkat.c for
26257         trailing slash issues, suffices for this case.
26258         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
26259         the list of platforms with trailing slash issues.
26261 2015-05-28  Pádraig Brady  <P@draigBrady.com>
26263         unlinkat: handle ignoring of ".." on Darwin 14
26264         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
26265         on Mac OS X 10.10, where it ignores paths with a trailing "..",
26266         so handle in the same manner.
26267         * m4/unlinkat.m4: Comment on this Darwin issue.
26268         * doc/posix-functions/unlink.texi: Update the latest version
26269         where the issue was seen.
26270         * doc/posix-functions/unlinkat.texi: Mention this issue.
26271         Fixes a test failure in test-unlinkat.c.
26273 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26275         qacl: split into qcopy-acl and qset-acl
26276         Emacs needs the former, but not the latter.
26277         * modules/acl-permissions: New file, containing most of the old qacl.
26278         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
26279         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
26280         * modules/qcopy-acl, modules/qset-acl: New files.
26281         * MODULES.html.sh (File system functions):
26282         Mention the new modules, and mention qacl while we're at it.
26284 2015-05-27  Glenn Morris  <rgm@gnu.org>
26286         gitlog-to-changelog: new option --ignore-line
26287         (This patch is imported from the GNU Emacs master.)
26288         This option ignores individual commit lines matching a pattern.
26289         * build-aux/gitlog-to-changelog: Add --ignore-line option.
26291 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
26293         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
26294         Implement get_permissions and set_permissions primitives for getting all
26295         the permissions of a file, storing them, and later setting them. (In the
26296         minimal case, the permissions consist only of a file mode.) Reimplement
26297         qset_acl and qcopy_acl based on these new primitives: this avoids code
26298         duplication and makes error handling more consistent.
26299         The Solaris and Cygwin code still uses duplicate code paths for setting
26300         a file mode while making sure that no acls exist and setting an explicit
26301         acl; this is no worse than before, but could be cleaned up.  The AIX
26302         code still doesn't read ACLs, it only makes sure that acls don't get in
26303         the way when setting a file mode.
26304         * lib/acl-internal.h (struct permission_context): New data structure.
26305         (get_permissions, set_permissions, free_permission_context): Declare.
26306         * lib/acl-internal.c (free_permission_context): New helper function.
26307         * lib/get-permissions.c (get_permissions): New helper function split off
26308         from qcopy_acl.
26309         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
26310         AIX, set a file's permissions based only on a file mode.
26311         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
26312         other platforms construct a temporary acl from the file mode and set
26313         that acl in the same way as setting an acl read from the source file.
26314         This should help avoid code duplication and inconsistent / buggy
26315         behavior.
26316         (set_acls): New helper function Split off from qcopy_acl.
26317         (chmod_or_fchmod): Moved here from qset-acl.c.
26318         (set_permissions): New helper function.
26319         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
26320         set_permissions.
26321         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
26322         * modules/qacl: Add get-permissions.c and set-permissions.c.
26324         file-has-acl: Split feature tests again (Bug#20667)
26325         * lib/file-has-acl.c: Instead of testing for
26326         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
26327         define them when needed.
26328         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
26329         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
26331 2015-05-27  Pádraig Brady  <P@draigBrady.com>
26333         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
26334         This avoids a conflict with "FORTIFY_SOURCE" variants
26335         of the string functions when they're replaced on NetBSD-6.0.1
26336         and Darwin-14.3.0 at least.
26337         * lib/string.in.h: Avoid including our "lib/string.h" while
26338         including the system <string.h>.
26340 2015-05-26  Eric Blake  <eblake@redhat.com>
26342         stdio: limit __gnu_printf__ witness to gcc 4.4+
26343         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
26344         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
26346         error: use correct printf attributes on mingw
26347         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
26349         inttypes: force correct mingw PRIdMAX even without <stdio.h>
26350         * modules/inttypes (Depends-on): Require extensions, so that mingw
26351         always uses GNU style inttypes.
26352         * lib/inttypes.in.h: On mingw, include <stdio.h>.
26354         stdio: fix probe on mingw under gcc 5.1
26355         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
26356         around new gcc preprocessor rules.
26358 2015-05-07  Glenn Morris  <rgm@gnu.org>
26360         gitlog-to-changelog: parse "Tiny-change"
26361         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
26362         "Copyright-paperwork-exempt".  (Bug#20324)
26364 2015-05-06  Pádraig Brady  <P@draigBrady.com>
26366         doc: document glibc posix_fallocate() issues
26367         * doc/posix-functions/posix_fallocate.texi: Mention the
26368         glibc efficiency problems and issues with NFS.
26370 2015-05-05  Karl Berry  <karl@freefriends.org>
26372         * build-aux/gendocs.sh (usage): document new css default
26373         for HTML (--htmlarg).
26375 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
26377         extern-inline: no need for workaround in GCC 5.1
26378         * doc/extern-inline.texi (extern inline):
26379         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26380         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
26381         around these bugs in GCC 5.1 and later.  Maybe in a decade or
26382         two we can remove these workarounds.
26384 2015-04-28  Pádraig Brady  <P@draigBrady.com>
26386         eealloc, pagealign_alloc, xalloc: avoid clang warnings
26387         Avoid [-Wunknown-attributes] warnings like:
26388         warning: unknown attribute '__alloc_size__' ignored
26389         * lib/xalloc.h: Don't use the __alloc_size__  attribute
26390         with clang, as support has been fully removed as of clang 3.5:
26391         https://github.com/llvm-mirror/clang/commit/c047507a
26392         * lib/eealloc.h: Likewise.
26393         * lib/pagealign_alloc.h: Likewise.
26395 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
26397         tests: pacify GCC 5.1's stricter printf checking
26398         * tests/test-dirname.c (main):
26399         * tests/test-getaddrinfo.c (simple):
26400         * tests/test-getlogin.c (main):
26401         * tests/test-getndelim2.c (main):
26402         * tests/test-inttostr.c (CK):
26403         * tests/test-md5.c (main):
26404         * tests/test-read-file.c (main):
26405         * tests/test-sha1.c (main):
26406         Fix mismatches between printf format and value signedness.
26407         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
26408         Remove, as CAST_VAL always returned a value of type uintmax_t.
26410         fts: port to GCC 5.1 with --enable-gcc-warnings
26411         Without this fix, GCC 5.1 (correctly) warns about a subscript
26412         error on the fts_name component of FTSENT.  It's actually a
26413         flexible member, so define it that way on C99 or later hosts.
26414         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
26415         structure that now has a flexible array member.
26416         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
26417         (FTSENT): fts_name is now flexible on C99-or-later platforms.
26418         * modules/fts (Depends-on): Add flexmember.
26420 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
26422         file-has-acl: port to CentOS 6
26423         Problem reported by Tom G. Christensen in:
26424         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
26425         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
26426         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
26427         HAVE_GETXATTR.
26428         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
26429         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
26430         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
26431         file-has-acl.c actually needs.
26433 2015-04-26  Pádraig Brady  <P@draigBrady.com>
26435         file-has-acl: always return false when ACLs aren't supported
26436         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
26437         change the GNU/Linux getxattr path, to transform "not supported"
26438         errors to a false return rather than an error.  This is handled
26439         within file_has_acl() due to the platform specific tests to
26440         determine if ACLs are not supported.
26442 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
26444         gettext: propagate po/Makefile.in.in too
26445         * build-aux/po/Makefile.in.in: Copy from latest gettext.
26446         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
26447         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
26448         between Makefile.in.in and the gettext-runtime m4 files.
26450 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
26452         file-has-acl: new module, split from acl
26453         And add a new module file-has-acl-tests to match.
26454         I ran into a problem with the recent changes to the acl module,
26455         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
26456         When using the fixed version with Emacs, I discovered that
26457         file-has-acl wasn't separated out well enough for Emacs (e.g., it
26458         had multiple libraries, but needed only one), so I fixed that too.
26459         * NEWS: Document this incompatible change.
26460         * modules/file-has-acl, modules/file-has-acl-tests: New files.
26461         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
26462         Initialize gl_need_lib_has_acl.
26463         (gl_FUNC_ACL): Require it.
26464         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
26465         Move the file-has-acl.c-relevant stuff to ...
26466         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
26467         use_xattrs = 0' typo, and omit some needless work.  Set
26468         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
26469         when gl_FUNC_ACL is called.
26470         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
26471         (Link): Remove $(LIB_HAS_ACL).
26472         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
26473         (check_PROGRAMS): Move stuff relevant to file-has-acl to
26474         modules/file-has-acl-tests.
26475         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
26477         manywarnings: add GCC 5.1 warnings
26478         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
26479         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
26480         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
26481         -Wsuggest-override, -Wuse-without-only.  Change
26482         -Wnormalized=... operands to match 5.1.
26483         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
26484         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
26485         -Wdiscarded-qualifiers, -Wformat-signedness,
26486         -Wincompatible-pointer-types, -Wint-conversion,
26487         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
26488         -Wshift-count-negative, -Wshift-count-overflow,
26489         -Wsizeof-array-argument, -Wsuggest-final-methods,
26490         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
26491         and add -Warray-bounds=2 as a special case.
26493 2015-04-21  Simon Josefsson  <simon@josefsson.org>
26495         doc: update FDL template to match FDL examples.
26496         * doc/alloca-opt.texi:
26497         * doc/alloca.texi:
26498         * doc/c-ctype.texi:
26499         * doc/c-strcase.texi:
26500         * doc/c-strcaseeq.texi:
26501         * doc/c-strcasestr.texi:
26502         * doc/c-strstr.texi:
26503         * doc/c-strtod.texi:
26504         * doc/c-strtold.texi:
26505         * doc/ctime.texi:
26506         * doc/error.texi:
26507         * doc/gcd.texi:
26508         * doc/gnulib-tool.texi:
26509         * doc/inet_ntoa.texi:
26510         * doc/intprops.texi:
26511         * doc/lib-symbol-visibility.texi:
26512         * doc/maintain.texi:
26513         * doc/parse-datetime.texi:
26514         * doc/quote.texi:
26515         * doc/regexprops-generic.texi:
26516         * doc/standards.texi: Remove spurious 'with' in FDL license
26517         template.
26519 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
26521         lstat: fix cross-compilation 'ln -s' problem
26522         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
26523         Have the test program call 'symlink' rather than a separate
26524         script run 'ln -s'; this is more likely to work in
26525         cross-compilation environments.  Reported by Pavel Fedin in:
26526         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
26528 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
26530         gendocs.sh: default to a common CSS style sheet for HTML output
26531         * build-aux/gendocs.sh (htmlarg): Change default value.
26533 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
26535         gnulib-tool: output bold attribute more portably
26536         * gnulib-tool (func_show_module_list): Change hexadecimal
26537         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
26538         encoded numbers as arguments to `printf' is not portable,
26539         and is not claimed by POSIX.  This is the case with FreeBSD.
26541 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
26543         qacl: Simplify HP-UX acl_nontrivial check
26544         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
26545         acl_nontrivial. Check if the acl has at most three entries instead (it must
26546         have exactly three entries according to the HP-UX documentation). Ignore
26547         uids and gids as long as an entry is either for a user (i.e., the owner),
26548         a group (i.e., the owning group), or others.
26549         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
26550         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
26552 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
26554         acl: On Linux, check for acls without libacl
26555         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
26556         library function to check for the presence of acls, avoiding a library.
26557         * lib/file-has-acl.c: Include xattr headers if we have them.
26558         (file_has_acl): On Linux, use getxattr().
26559         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
26560         file_has_acl(). Check for xattr headers and getxattr().
26562 2015-04-14  Ángel González  <keisial@gmail.com>
26564         tempname: avoid unused parameter warnings (trivial)
26565         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
26566         (try_nocreate): Likewise.
26568 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
26570         fseeko: fix build failure on NetBSD >= 6 (trivial)
26571         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
26572         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
26574 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
26576         gitlog-to-changelog: port to MS-Windows
26577         * build-aux/gitlog-to-changelog (git_dir_option):
26578         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
26579         MS-Windows Perl.  Reported by Eli Zaretskii in:
26580         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
26582 2015-04-07  Karl Berry  <karl@gnu.org>
26584         gendocs: new option --tex for passing args to texi2dvi.
26585         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
26586         (TEXI2DVI): cut to just command name.
26587         (usage): mention new option, and update copyright.
26588         <generate_tex>: use it.
26590 2015-04-07  Karl Berry  <karl@gnu.org>
26592         * config/srclistvars.sh (GETTEXT): new definition.
26593         * config/srclist.txt: use it for gettext .m4 files.
26594         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
26595         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
26596         and continuing into April.
26598 2015-04-07  Daiki Ueno  <ueno@gnu.org>
26600         uniname/uniname-tests: fix failure due to alias
26601         Reported by Jack Howarth in:
26602         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
26603         * tests/uniname/test-uninames.c (name_has_alias): New function.
26604         (test_inverse_lookup): Exclude character name with valid alias,
26605         from randomly generated character names.
26606         (main): Fill unicode_aliases before calling test functions.
26608 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
26610         hash: remove deprecated hash_insert0 function
26611         * lib/hash.h (hash_insert0): Remove deprecated function.
26612         * lib/hash.c (hash_insert0): Likewise.
26614 2015-04-02  Pádraig Brady  <P@draigBrady.com>
26616         mountlist: remove dependency on libmount
26617         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
26618         directly, rather than depending on libmount, which has many
26619         dependencies due to its dependence on libselinux, as detailed at:
26620         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
26621         Note we restrict this to __linux__ as that's probably where this
26622         interface will remain.  If ever porting, it would be best
26623         to first pull the makedev() wrapper from coreutils to a gnulib module.
26624         Note also we don't add a getline dependency to the mountlist module,
26625         as all Linux versions are sufficient.
26627 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
26629         stddef: port to pre-C11 GCC on x86
26630         On this platform, max_align_t should have an alignment of 8 even
26631         though the storage alignments of double, long, etc. max out at 4.
26632         Inspired by a comment of Andreas Schwab's here:
26633         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
26634         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
26635         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
26636         * tests/test-stddef.c: Test __alignof__ too, if available.
26638 2015-03-24  Pádraig Brady  <P@draigBrady.com>
26640         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
26641         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
26643 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
26645         yesno: make EOL optional in ENABLE_NLS case also (trival)
26646         * lib/yesno.c (yesno): Check for EOL before replacing.
26647         * tests/test-yesno.sh: Add a test case (test along with gettext).
26649 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
26651         fdopendir-tests: test it does not close its arg
26652         * tests/test-fdopendir.c (main): Test that fdopendir does not
26653         close its argument.  From a suggestion by David Grayson in:
26654         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
26656 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
26658         gitlog-to-changelog: trim trailing white space
26659         * build-aux/gitlog-to-changelog (main):
26660         Trim trailing white space from commit message lines.
26661         This is helpful for processing the GNU Emacs repository,
26662         which dates back to 1985 and contains a lot of such lines.
26664         gitlog-to-changelog: new option --ignore-matching
26665         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
26666         Support new option --ignore-matching=PAT, which ignores all
26667         commit messages whose first line matches PAT.
26669 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
26671         fdopendir: port better to MinGW
26672         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
26673         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
26674         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
26675         * modules/fdopendir (Depends-on): Add dirfd.
26677 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
26679         fdopendir: fix typo in comment
26680         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
26682 2015-03-09  Eric Blake  <eblake@redhat.com>
26684         error: document all entry points provided
26685         * doc/glibc-functions/error_print_progname.texi
26686         (error_print_progname): Mention the error module.
26687         * doc/glibc-functions/error_at_line.texi (error_at_line):
26688         Likewise.
26689         * doc/glibc-functions/error_message_count.texi
26690         (error_message_count): Likewise.
26691         * doc/glibc-functions/error_one_per_line.texi
26692         (error_one_per_line): Likewise.
26694 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
26696         vasnprintf: pacify clang 3.5.0
26697         Problem reported by Werner Lemberg in:
26698         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
26699         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
26700         The casts aren't needed, since the characters in question are ASCII.
26702 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26704         glob, etc.: port to MSVC v18 on MS-Windows 8.1
26705         * lib/dirent--.h (GNULIB_defined_opendir):
26706         * lib/dirent.in.h (GNULIB_defined_opendir)
26707         (GNULIB_defined_closedir):
26708         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
26709         #undef only if Gnulib defined it.
26711         poll: port to MSVC v18 on MS-Windows 8.1
26712         Problem reported by Gisle Vanem in:
26713         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
26714         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
26715         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
26716         Add sys_socket.
26718 2015-02-24  Pádraig Brady  <P@draigBrady.com>
26720         tests: support stderr verification with returns_()
26721         * tests/init.sh (returns_): Disable tracing for this wrapper
26722         function, so that stderr of the wrapped command is unchanged,
26723         allowing for verification of the contents.
26725 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
26727         passfd: avoid valgrind uninitalised data warning
26728         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
26729         to include just the fd we've initialized, rather than including
26730         the extra space used for alignment.
26732 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
26734         uniwbrk/u32-wordbreaks-tests: fix copyright
26735         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
26737         dup2: doc and test for Android bug
26738         Reported by Kevin Cernekee in:
26739         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
26740         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26741         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
26743 2015-02-23  Kevin Cernekee  <cernekee@google.com>
26745         Replace dup2() on Android
26746         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
26747         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
26748         fails.  Using rpl_dup2() fixes this because it has an explicit test
26749         for this condition.
26751 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
26753         Android doesn't define RLIM_SAVED_*
26754         Portability problem reported by Kevin Cernekee in:
26755         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
26756         * doc/posix-headers/sys_resource.texi (sys/resource.h):
26757         Mention the portability problem.
26758         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
26759         Define if not defined.
26760         * m4/dup2.m4 (gl_FUNC_DUP2):
26761         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26762         Likewise.
26764 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26766         vasnprintf-posix-tests: use consistent test
26767         * tests/test-vasnprintf-posix.c (test_function):
26768         Use "<" in assert instead of "<=", for consistency with other tests.
26770 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26772         printf, isinf, etc.: noncanonical != NaN
26773         Do not require that isinf, printf, etc. treat noncanonical
26774         values as NaNs.  Instead, require only that they do not crash.
26775         Problem reported by Joseph Myers in:
26776         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
26777         * doc/posix-functions/dprintf.texi (dprintf):
26778         * doc/posix-functions/fprintf.texi (fprintf):
26779         * doc/posix-functions/isfinite.texi (isfinite):
26780         * doc/posix-functions/isinf.texi (isinf):
26781         * doc/posix-functions/isnan.texi (isnan):
26782         * doc/posix-functions/printf.texi (printf):
26783         * doc/posix-functions/snprintf.texi (snprintf):
26784         * doc/posix-functions/sprintf.texi (sprintf):
26785         * doc/posix-functions/vdprintf.texi (vdprintf):
26786         * doc/posix-functions/vfprintf.texi (vfprintf):
26787         * doc/posix-functions/vprintf.texi (vprintf):
26788         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26789         * doc/posix-functions/vsprintf.texi (vsprintf):
26790         Document this.
26791         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
26792         * m4/isinf.m4 (gl_ISINFL_WORKS):
26793         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
26794         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
26795         * tests/test-isfinite.c (test_isfinitel):
26796         * tests/test-isinf.c (test_isinfl):
26797         * tests/test-isnan.c (test_long_double):
26798         * tests/test-isnanl.h (main):
26799         * tests/test-snprintf-posix.h (test_function):
26800         * tests/test-sprintf-posix.h (test_function):
26801         * tests/test-vasnprintf-posix.c (test_function):
26802         * tests/test-vasprintf-posix.c (test_function):
26803         Test only that noncanonical values do not cause crashes, not that
26804         they are treated as NaNs.  In some cases this means a larger
26805         output buffer is needed.
26807 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
26809         fts: remove redundant close() (trivial)
26810         * lib/fts.c (fts_read): Remove redundant call to close().
26811         Spotted by coverity.
26813 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26815         getdtablesize: port better for Android
26816         Problem reported by Kevin Cernekee in:
26817         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
26818         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
26819         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
26820         Instead, just use getrlimit, taking care to avoid Cygwin bug.
26822         poll: fixes for large fds
26823         * lib/poll.c (poll): Don't check directly for NFD too large.
26824         Don't rely on undefined behavior in FD_SET when an arg exceeds
26825         FD_SETSIZE.  Always set revents afterwards, even if to zero.
26826         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
26827         as that makes the test a bit stricter.
26829 2015-02-19  Kevin Cernekee  <cernekee@google.com>
26831         fcntl: Fix cross compiling
26832         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
26833         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
26835 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
26837         dup2, fcntl: cross-compile better for Android
26838         Problem reported by Kevin Cernekee in:
26839         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
26840         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
26841         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
26842         there's little need to cross-compile for older kernels nowadays.
26843         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
26844         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
26846 2015-02-18  Pádraig Brady  <P@draigBrady.com>
26848         getopt: don't crash on memory exhaustion
26849         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
26850         memory exhaustion.  In the _LIBC case we use alloca() as is
26851         already done in glibc, so we don't need to consider the separate
26852         error path in that awkward case.  Also fix a memory leak when
26853         ambiguous options are present.
26854         Reported by Tobias Stoeckmann
26856 2015-02-17  Mike Miller  <mtmiller@ieee.org>
26858         tempname: allow compilation with C++ (trivial)
26859         * lib/tempname.h [C++]: Specify extern "C" linkage.
26860         * lib/tempname.h (try_tempname):
26861         * lib/tempname.c (__try_tempname, __gen_tempname):
26862         Rename 'try' to 'tryfunc'.
26864 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
26866         dup2, fcntl: port to AIX
26867         * m4/dup2.m4 (gl_FUNC_DUP2):
26868         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26869         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
26870         The former works on AIX 7.1 but the latter does not.
26871         Also, this may work better with Android; see:
26872         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
26874 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
26876         getdtablesize, dup2, fcntl: port to Android
26877         Problem reported by Kevin Cernekee in:
26878         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
26879         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
26880         Mention that getdtablesize doesn't work on Android.
26881         * lib/getdtablesize.c: Use getrlimit substitute only if
26882         getdtablesize is declared.  This should suffice for Cygwin
26883         while not breaking Android.
26884         * m4/dup2.m4 (gl_FUNC_DUP2):
26885         * m4/fcntl.m4 (gl_FUNC_FCNTL):
26886         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
26887         standardized but the latter is not, and sysconf works on Android.
26888         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
26889         Also check that getdtablesize is declared.
26890         This removes the need for a special case for Android.
26892 2015-02-16  Kevin Cernekee  <cernekee@google.com>
26894         localename: Implement gl_locale_name_thread_unsafe for Android
26895         * lib/localename.c: Android API level >= 21 supports two hardcoded
26896         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
26897         the internal __locale_t struct.
26899 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
26901         fts: avoid crash when a cycle is added while traversing
26902         This could be triggered by auto-mounting a recursive bind mount.
26903         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
26904         * lib/fts.c (fts_read): Avoid removing the original hash table item
26905         when leaving a directory that caused a cycle, and preserve the FTS_DC
26906         flag.
26908 2015-02-16  Daiki Ueno  <ueno@gnu.org>
26910         uniname/uniname: support character alias
26911         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
26912         Generate one-way mapping from aliases to codepoints in the
26913         generated tables.  Special case variation selectors to reduce
26914         table size.
26915         * lib/uniname/uniname.c (unicode_character_name): Special case
26916         variation selectors.
26917         (unicode_name_character): Special case variation selectors and
26918         their aliases.
26919         * lib/uniname/uninames.h: Regenerate.
26920         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
26921         * modules/uniname/uniname-tests (Files): Add
26922         tests/uniname/NameAliases.txt.
26923         * tests/uniname/test-uninames.c: Mark as static.
26924         (ALIASLEN): Define.
26925         (struct unicode_alias): New struct.
26926         (unicode_aliases): New variable.
26927         (fill_aliases): New function.
26928         (test_alias_lookup): New test function.
26929         (main): Run the 'test_alias_lookup' test if the second argument is
26930         given.
26931         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
26932         second argument.
26934 2015-02-11  Kevin Cernekee  <cernekee@google.com>
26936         Fix FILE struct compatibility with Android API level >= 21
26937         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
26938         __sferror.  Recent versions of Bionic's stdio.h no longer define
26939         __sferror.
26940         * lib/fbufmode.c: Likewise.
26941         * lib/fflush.c: Likewise.
26942         * lib/fpurge.c: Likewise.
26943         * lib/freadable.c: Likewise.
26944         * lib/freadahead.c: Likewise.
26945         * lib/freading.c: Likewise.
26946         * lib/freadptr.c: Likewise.
26947         * lib/freadseek.c: Likewise.
26948         * lib/fseeko.c: Likewise.
26949         * lib/fseterr.c: Likewise.
26950         * lib/fwritable.c: Likewise.
26952         Assume unbroken ungetc() on Android
26953         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
26954         test case passed when running on an Android host, and the code
26955         hasn't really changed since 2009.
26957         getdtablesize: Fix Android build
26958         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
26959         versions have this symbol in the .so library (at least 32-bit
26960         platforms) but are missing the declaration in the header file,
26961         causing the m4 logic to guess incorrectly.
26963         localename: Fix Android build
26964         * modules/localename (Depends-on): Add langinfo.
26966         getugroups: Fix Android build
26967         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
26968         functions.
26970         euidaccess: Fix Android build
26971         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
26972         AT_EACCESS gets declared.
26974         linkat_nofollow: Add fallback case for cross compiling
26975         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
26977         net_if: Handle content-free <net/if.h> system headers
26978         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
26979         struct if_nameindex.  If not, enable the replacement header.
26981         signal_h: Fix Android build
26982         * lib/signal.in.h: Add Android to the list of platforms that declare
26983         pthread_sigmask() in <pthread.h> instead of <signal.h>.
26985         duplocale: Fix Android build of duplocale-tests
26986         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
26987         is included by test-duplocale.c (but not by duplocale.c).
26988         * modules/duplocale-tests (configure.ac): Check for monetary.h.
26989         * tests/test-duplocale.c: Skip test if monetary.h is absent.
26990         * doc/posix-headers/monetary.texi: Add Android to the list of
26991         platforms missing monetary.h.
26993 2015-02-11  Pádraig Brady  <P@draigBrady.com>
26995         tests: avoid recent -Werror=unused-variable regression in test-locale
26996         * tests/test-locale.c (main): Reference the variable to avoid the
26997         "unused variable" warning.
26999 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27001         maint: various whitespace cleanups in tempname
27002         * lib/tempname.c: Normalize spacing and line length.
27003         * lib/tempname.h: Likewise.
27004         * modules/tempname: Likewise.
27006 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27008         tests: provide returns_() to simplify exit status checking
27009         * tests/init.sh (returns_): A new function for use in tests,
27010         to allow for easier checking of return values, where you expect
27011         a command to exit with failure status.  By checking for a particular
27012         exit code, you don't hide any crashes for example.
27014 2015-02-11  Pádraig Brady  <P@draigBrady.com>
27016         mountlist: only use libmount when specified
27017         There are currently many shared libs dependencies introduced by
27018         libmount with associated runtime and virt mem overhead.
27019         Therefore don't enable by default.
27020         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
27022 2015-02-08  Daiki Ueno  <ueno@gnu.org>
27024         uniname/unimame-tests: don't link with -lunistring
27025         * modules/uniname/uniname-tests (Makefile.am): Don't link against
27026         $(LIBUNISTRING).  Document the rationale why we need to
27027         conditionalize the test.
27029 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27031         fstrcmp: don't assume strlen < INT_MAX
27032         * lib/fstrcmp.c: Include stddef.h and stdint.h.
27033         (uintptr_t): Remove, as we're now assuming stdint.
27034         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
27035         Prefer ptrdiff_t to int when the value could exceed INT_MAX
27036         if the input string is long.
27037         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
27038         uintptr_t to size_t when the underlying value is a pointer casted
27039         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
27040         * modules/fstrcmp (Depends-on): Add stdint.
27042         diffseq: prefer ptrdiff_t to ssize_t
27043         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
27044         ptrdiff_t is the natural type for signed indexes.
27045         On a few older platforms, ssize_t is narrower than size_t.
27047         xalloc: fix typo that suppressed warnings
27048         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
27049         This typo, introduced a couple of years ago, mistakenly suppressed
27050         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
27051         -Wmissing-declarations warnings.
27053         full-read: fix license notice typo
27054         * lib/full-read.h: Remove a stray line in the license notice.
27055         Reported by Sam Ellis in: http://bugs.gnu.org/19808
27057         crypto/gc: fix a -Wswitch warning
27058         Reported by Bruce Korb in:
27059         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
27060         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
27062 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27064         gnulib-tool: fix handling of patch(1) diagnostics
27065         * gnulib-tool: Send diagnostics from patch(1) to stderr,
27066         as otherwise gnulib-tool will reparse that output and attempt
27067         to lookup modules.
27069 2015-02-03  Pádraig Brady  <P@draigBrady.com>
27071         bootstrap: exit immediately upon gnulib-tool failure
27072         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
27073         This was noticed when gnulib-tool exited early due to failure
27074         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
27075         but various confusing errors were then given as the build proceeded.
27077 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
27079         symlinkat: include all required header files
27080         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
27081         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
27082         Reported at https://savannah.gnu.org/bugs/index.php?44151
27083         and by Jack Howarth.
27085 2015-01-29  Pádraig Brady  <P@draigBrady.com>
27087         localename: support Solaris 12 and illumos
27088         * lib/localename.c (gl_locale_name_thread_unsafe): call
27089         getlocalename_l() on newer __sun platforms.
27090         Reported by Alexander Pyhalov.
27091         Fix suggested by Rich Burridge.
27093 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
27095         locale: fix tests on illumos (trivial)
27096         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
27097         so move from global scope to main().
27099 2015-01-24  Daiki Ueno  <ueno@gnu.org>
27101         unictype: avoid undefined left-shift behavior
27102         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
27103         gcc's -fsanitize=shift and running its tests triggered:
27104           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
27105             places cannot be represented in type 'int'
27106         Cast LHS to 'unsigned int' after integer promotion.
27107         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
27108         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
27110 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27112         libunistring: bump version of unitypes dependants
27113         Due to the header file search order, all the headers which depend
27114         on unitypes.h need to be generated, when the preinstalled
27115         libunistring is older.
27116         * modules/unicase/base (configure.ac): Bump minimum version to
27117         0.9.4.
27118         * modules/uniconv/base (configure.ac): Likewise.
27119         * modules/unilbrk/base (configure.ac): Likewise.
27120         * modules/uninorm/base (configure.ac): Likewise.
27121         * modules/unistdio/base (configure.ac): Likewise.
27122         * modules/unistr/base (configure.ac): Likewise.
27123         * modules/uniwbrk/base (configure.ac): Likewise.
27124         * modules/uniwidth/base (configure.ac): Likewise.
27126 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27128         unictype/category-none: fix link with libunistring
27129         Since _UC_CATEGORY_NONE is not a public symbol, it will be
27130         prefixed with "libstring_" when compiled as part of libunistring.
27131         To avoid undefined symbol at link time, increase the minimum
27132         version when the dependant modules are updated.
27133         * modules/unictype/category-none (configure.ac): Bump minimum
27134         version to 0.9.5.
27136 2015-01-20  Daiki Ueno  <ueno@gnu.org>
27138         unitypes: fix build with installed libunistring
27139         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
27140         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
27141         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
27143 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27145         time: port to MinGW32 3.21
27146         Problem reported by Eli Zaretskii in:
27147         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
27148         * lib/time.in.h:
27149         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
27150         * modules/time (Depends-on):
27151         Fall back on unistd.h if the other include files don't define
27152         struct timespec.
27154         update-copyright: apply to self
27155         * build-aux/update-copyright: Fix copyright date.  How ironic!
27157 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27159         libunistring: update to Unicode 7.0.0
27160         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
27161         Manichaean names.
27162         * lib/unictype/joininggroup_name.h: Likewise.
27163         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
27164         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
27165         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
27166         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
27167         (fill_arabicshaping, joining_group_as_c_identifier): Support those
27168         enum values.
27169         (is_property_alphabetic): Accept newly added characters to
27170         cuneiform numeric signs.
27171         (is_property_default_ignorable_code_point): Reject U+0605.
27172         (FIELDLEN): Increase from 120 to 160.
27173         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
27174         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
27175         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
27176         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
27177         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
27178         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
27179         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
27180         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
27181         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
27182         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
27183         U+1E8D0..U+1E8D6.
27184         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
27185         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27186         lib/uniwidth/width.c.
27187         * all generated files under lib/uni* and tests/uni*: Regenerate.
27189 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27191         libunistring: update to Unicode 6.3.0
27192         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27193         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
27194         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
27195         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
27196         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
27197         Update WB5, WB9, WB10, WB13a, and WB13b.
27198         * tests/uniwbrk/test-uc-wordbreaks.c
27199         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
27200         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27201         (UC_BIDI_PDI): New enumeration values.
27202         (bidi_category_byname): Support those enum values.
27203         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
27204         dedicated property assigned.
27205         (is_property_case_ignorable): Check 0x0027.
27206         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
27207         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27208         (output_wbp): Support those enum values.
27209         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
27210         (UC_BIDI_PDI): New enumeration values.
27211         * lib/unictype/bidi_byname.gperf: Add those property names.
27212         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
27213         U+180E, U+1A1B, and U+2066..U+2069.
27214         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27215         lib/uniwidth/width.c.
27216         * all generated files under lib/uni* and tests/uni*: Regenerate.
27218 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27220         libunistring: update to Unicode 6.2.0
27221         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
27222         (unilbrk_table): Adjust table size.
27223         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27224         for LBP_RI.
27225         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
27226         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
27227         Normalize table index skipping ignored properties.
27228         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
27229         WBP_EXTEND and WBP_FORMAT, which are now computed without using
27230         the table.
27231         * lib/uniwbrk/wbrktable.h: Adjust table size.
27232         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
27233         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
27234         Support rule GB8a.
27235         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
27236         * tests/unigbrk/test-uc-is-grapheme-break.c
27237         (graphemebreakproperty_to_string): Support GBP_RI.
27238         * tests/uniwbrk/test-uc-wordbreaks.c
27239         (wordbreakproperty_to_string): Support WBP_RI.
27240         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
27241         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
27242         (output_lbp): Support LBP_RI.  Adjust some characters changed from
27243         LBP_AL to LBP_ID.
27244         (output_lbp): Support LBP_RI.
27245         (WBP_RI): New enumeration value.
27246         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
27247         (output_wbp): Support WBP_RI.
27248         (GBP_RI): New enumeration value.
27249         (output_gbp_test, fill_org_gbp): Support GBP_RI.
27250         * all generated files under lib/uni* and tests/uni*: Regenerate.
27252 2015-01-14  Daiki Ueno  <ueno@gnu.org>
27254         libunistring: update to Unicode 6.1.0
27255         * lib/gen-uni-tables.c (output_joining_group): Switch to
27256         3-level table to accommodate joining groups defined with higher
27257         codepoint value.  Since there are only 88 groups defined in
27258         Unicode 7.0.0, use 7-bit packed format for level3 entries.
27259         (get_lbp): Update for Unicode 6.1.0.
27260         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
27261         3-level table.
27262         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
27263         joining group name.
27264         * lib/unictype/joininggroup_name.h: Likewise.
27265         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
27266         (unilbrk_table): Adjust table size.
27267         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
27268         for LBP_HL.
27269         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
27270         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
27271         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
27272         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
27273         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
27274         U+302E..U+302F.
27275         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27276         lib/uniwidth/width.c.
27277         * all generated files under lib/uni* and tests/uni*: Regenerate.
27278         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
27280 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27282         uniwbrk/u32-wordbreaks-tests: add conformance test
27283         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
27284         tests/uniwbrk/test-uc-wordbreaks.c,
27285         tests/uniwbrk/test-uc-wordbreaks.sh, and
27286         tests/uniwbrk/WordBreakTest.txt.
27287         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
27288         test-uc-wordbreaks to $(check_PROGRAMS), and define
27289         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
27290         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
27291         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
27293 2015-01-15  Daiki Ueno  <ueno@gnu.org>
27295         uniwbrk: ignore Extended/Format characters at BOL not BOS
27296         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
27297         characters if the previous character property is one of
27298         WBP_NEWLINE, WBP_CR, and WBP_LF.
27300 2015-01-11  Jim Meyering  <meyering@fb.com>
27302         test-strstr.c: avoid a trivial leak
27303         * tests/test-strstr.c (main): Free haystack.
27305         update-copyright: recognize groff's \(co marker
27306         * build-aux/update-copyright (circle_c_re): Also accept
27307         uses of \(co, as found in gzip.1.
27309 2015-01-08  Pádraig Brady  <P@draigBrady.com>
27311         maint.mk: fix compatibility with OS X nm
27312         * top/maint.mk (_gl_tight_scope): Use the -g option to
27313         show exported items rather than the -e option which is
27314         ignored on all platforms except OS X where it gives an error.
27315         Reported by Assaf Gordon.
27317 2015-01-07  KO Myung-Hun  <komh@chollian.net>
27319         localcharset: improve charset detection on OS/2
27320         Use system codepage when appropriate.  Map OS/2 codepages to
27321         GNU canonical charset names if possible.
27322         * lib/config.charset: Don't output aliases if "$os" is os2*.
27323         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
27324         result for OS/2.
27325         (locale_charset) [OS2]: Use system codepage if codeset is omitted
27326         from the locale name which is neither "C" nor "POSIX".
27328 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
27330         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
27331         This reverts the last patch but one, as it shouldn't be needed now
27332         that the typo is fixed.
27333         * lib/count-leading-zeros.h (count_leading_zeros_ll):
27334         * lib/count-trailing-zeros.h:
27335         * lib/count-one-bits.h:
27336         Go back to using 64-bit intrinsics.
27338         count-leading-zeros: fix pragma typos
27339         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
27340         Fix typos in declaration of intrinsics when _MSC_VER.
27342 2015-01-06  Pádraig Brady  <P@draigBrady.com>
27344         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
27345         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
27346         intrinsics in this case.
27347         * lib/count-trailing-zeros.h: Likewise.
27348         * lib/count-one-bits.h: Likewise.
27350 2015-01-06  Daiki Ueno  <ueno@gnu.org>
27352         uniname/uniname: update to Unicode 7.0.0
27353         To accommodate new characters added since Unicode 5.1.0, this
27354         changes the internal representation of codepoint ranges.
27355         Previously, we grouped codepoint ranges by manually assigned 4-bit
27356         tag, which only allowed 16 groups.  This removes the limitation by
27357         switching to binary search on a table.  For the detail rationale
27358         and the benchmark results, see:
27359         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
27360         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
27361         to INDEX, as it no longer represents a codepoint.
27362         (range): New struct.
27363         (main): Switch to intervals list from a bit-pattern based
27364         classification.
27365         * lib/uniname/uninames.h: Regenerate.
27366         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
27367         * modules/uniname/base (configure.ac): Bump minimum version to
27368         0.9.5.
27369         * modules/uniname/uniname (configure.ac): Bump minimum version to
27370         0.9.5.
27372 2015-01-05  Eric Blake  <eblake@redhat.com>
27374         doc: update INSTALL from autoconf
27375         * doc/install.texi: Resync from autoconf.
27376         * doc/INSTALL: Reflect recent autoconf update.
27377         * doc/INSTALL.ISO: Likewise.
27378         * doc/INSTALL.UTF-8: Likewise.
27380         stdio: fix use of PRIdMAX on modern mingw
27381         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
27382         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
27383         to work with modern mingw.
27385 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
27387         pthread: detect git mingw builds with only partial pollution
27388         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
27389         pollution, as seen temporarily in Fedora 21.
27391 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
27393         lib-symbol-versions: cache script check
27394         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
27395         Cache the check for linker version scripts.
27396         From a suggestion by Christophe Curis in:
27397         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
27399 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
27401         maint: fix grammar nits in propername (trivial change)
27402         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
27403         and use an adequate verb and tense.
27405 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
27407         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
27408         * module/gendocs: Add 'doc/gendocs_template_min'.
27410         * build-aux/gendocs.sh: Change email addresses and upstream URLs
27411         from to Gnulib's.
27412         (scripturl, templateurl): Adjust accordingly.
27414 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27416         gendocs: copyright date and version fix
27417         Reported by Karl Berry in:
27418         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
27419         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
27420         Fix copyright date.
27421         * build-aux/gendocs.sh (scriptversion): Update.
27423 2015-01-01  Karl Berry  <karl@gnu.org>
27425         * doc/install.texi,
27426         * build-aux/mdate-sh,
27427         * build-aux/depcomp,
27428         * build-aux/config.guess,
27429         * build-aux/config.sub,
27430         * build-aux/ar-lib,
27431         * build-aux/compile: revert copyright updates (some from last
27432         year) in slaved files.
27434 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
27436         version-etc: new year
27437         * doc/gnulib.texi:
27438         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
27439         * all files: Run 'make update-copyright'.
27441 2014-12-30  Pádraig Brady  <P@draigBrady.com>
27443         xstrtol: ensure errno is reset
27444         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
27445         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
27447         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
27449 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27451         utimens: fix dependency typo
27452         * modules/utimens (Depends-on): Remove 'assure'.
27453         This bug was introduced in the recent 'assure' patch.
27455 2014-12-22  Eric Blake  <eblake@redhat.com>
27457         docs: mention why libgen.h is bad
27458         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
27460 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27462         assure: new module
27463         This works better than 'assert' when compiling with -DNDEBUG,
27464         as it avoids some compiler diagnostics in that case.
27465         Reported by Norihiro Tanaka in:
27466         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
27467         * MODULES.html.sh (func_all_modules): Add 'assure'.
27468         * lib/assure.h, modules/assure: New files.
27469         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
27470         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
27471         Prefer 'assure' to 'assert'.
27472         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
27473         * modules/chdir-long, modules/cycle-check, modules/fchdir:
27474         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
27475         Depend on 'assure'.
27477 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
27479         stdalign: port better to HP compilers
27480         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
27481         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
27483         stdalign: work around Apple GCC 4.0 bug
27484         Reported by David Fang in:
27485         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
27486         * lib/stdalign.in.h (_Alignas):
27487         * m4/stdalign.m4 (gl_STDALIGN_H):
27488         Do not use aligned attribute with GCC 4.0 on Apple.
27490 2014-12-16  Pádraig Brady  <P@draigBrady.com>
27492         getcwd: fix test failure on OS X 10.9
27493         * m4/getcwd-path-max.m4: Avoid the replacement if it
27494         won't be effective due to the PATH_MAX limitation of lstat().
27495         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
27496         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
27497         for this case for use in tests, and also exclude this
27498         case when setting REPLACE_GETCWD.
27499         * tests/test-getcwd.c (test_long_name): Restrict the
27500         tested path length so that lstat() will not be passed
27501         a path greater than PATH_MAX.
27502         Also key a test condition on HAVE_OPENAT_SUPPORT rather
27503         than AT_FDCWD, since the latter is set unconditionally
27504         since Sep 2009 in commit 52c658e9.
27506 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
27508         parse-datetime: avoid a compiler warning with byacc (trivial)
27509         * lib/parse-datetime.y (yylex): Use the same prototype in the
27510         function definition as the declaration, to avoid a -Wstrict-prototypes
27511         warning seen when using byacc.
27513 2014-12-12  Daiki Ueno  <ueno@gnu.org>
27515         unicase/locale-language-tests: fix LOCALE_FR test
27516         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
27517         a French locale with traditional encoding.
27518         Reported by umerqayam in:
27519         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
27521 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
27523         stddef: support C11's max_align_t
27524         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
27525         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
27526         Do not undef, as that might cause max_align_t to be defined twice.
27527         Instead, change use to check for _GL_STDDEF_WINT_T too.
27528         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
27529         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
27530         Check for max_align_t.
27531         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
27532         * modules/stddef-tests (Depends-on): Add stdalign.
27533         * tests/test-stddef.c: Test max_align_t.
27535 2014-12-11  Daiki Ueno  <ueno@gnu.org>
27537         unistd: fix iOS check conditional
27538         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
27539         as 0 or 1 in <TargetConditionals.h>, and the previous check always
27540         yielded true on non-iOS environment.
27541         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
27542         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
27543         they are defined.
27545 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
27547         posixtm: avoid compiler warning in a better way
27548         * lib/posixtm.c (IF_LINT): Remove.
27549         (year, posix_time_parse):
27550         Return true (not 0) if successful.  All callers changed.
27551         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
27553 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27555         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
27556         started with '/' on EMX.
27558 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
27560         freopen: workaround freopen() on OS/2 kLIBC
27561         * lib/freopen.c (rpl_freopen): Workaround.
27562         * m4/freopen.m4: Add os2* case.
27564         get_shared_library_fullname: port to EMX
27565         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
27566         on EMX, respectively.
27567         (_DLL_InitTerm): New on EMX.
27568         (get_shared_library_fullname): Implement on EMX.
27570         find_executable: port to EMX
27571         * lib/progreloc.c (find_executable): Implement on EMX.
27573         sched: check struct sched_param in spawn.h as well
27574         * lib/sched.in.h: Include spawn.h on kLIBC.
27575         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
27577 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
27579         bootstrap: Allow perl modules in $buildreq
27580         * build-aux/bootstrap: Add case for perl modules.
27582 2014-12-08  Pádraig Brady  <P@draigBrady.com>
27584         apply _GL_ATTRIBUTE_PURE to some inline functions
27585         clang 3.4.2 flagged these inline functions as pure
27586         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
27587         * lib/sig-handler.h (get_handler): Likewise.
27588         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
27589         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
27591 2014-12-06  Pádraig Brady  <P@draigBrady.com>
27593         vasnprintf: fix potential use after free
27594         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
27595         flagged by clang-analyzer 3.4.2.
27597 2014-12-05  Pádraig Brady  <P@draigBrady.com>
27599         filevercmp, posixtm: avoid compiler warnings with -O3
27600         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
27601         * lib/posixtm.c: (IF_LINT): Define.
27602         (posix_time_parse): Use it to void a "may be used uninitialized"
27603         warning, seen only with -O3.
27605 2014-12-05  Bruno Haible  <bruno@clisp.org>
27607         Fix LDBL80_WORDS macro on big endian platforms.
27608         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
27609         LDBL80_WORDS macro.
27610         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
27611         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27612         * tests/test-isfinite.c (test_isfinitel): Likewise.
27613         * tests/test-isinf.c (test_isinfl): Likewise.
27614         * tests/test-isnan.c (test_long_double): Likewise.
27615         * tests/test-isnanl.h (main): Likewise.
27616         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
27617         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
27618         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
27619         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
27620         Reported by Pádraig Brady.
27622 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
27624         git-version-gen: do not print new line characters
27625         * build-aux/git-version-gen: Use printf instead of echo and tr.
27627         gnulib-tool: recognize x:* as an absolute path
27628         * gnulib-tool (func_gnulib_dir): Add ?:* case.
27629         (func_relconcat): Likewise.
27631 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
27633         argp: avoid extraneous translation and mem leak with empty pre doc
27634         * lib/argp-help.c (argp_doc): Never translate the empty string,
27635         when "\v" is the first or last character of the string, as that
27636         has a reserved meaning to return the header info from a po file.
27637         This also fixes a small memory leak in the !post case.
27638         The issue can be seen with this command for example:
27639         LC_MESSAGES=en_US grub2-mknetdir --help
27641 2014-11-27  Daiki Ueno  <ueno@gnu.org>
27643         uniname/uniname-tests: skip if system's libunistring is used
27644         * modules/uniname/uniname-tests (Makefile.am): Skip test if
27645         uniname/uniname module is not compiled.
27647 2014-11-27  Pádraig Brady  <P@draigBrady.com>
27649         printf: fix configure check on big endian systems
27650         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
27652 2014-11-22  Daiki Ueno  <ueno@gnu.org>
27654         pipe-filter-gi, pipe-filter-ii: port to AIX
27655         On AIX 7.1, 'select' is defined as static and cannot be referred
27656         to from inline function.
27657         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
27658         the definition...
27659         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
27660         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
27662 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
27664         gitlog-to-changelog: add --until
27665         * build-aux/gitlog-to-changelog: Support new --until option.
27666         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
27668 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
27670         extern-inline: update commentary about GCC bugs
27671         * m4/extern-inline.m4: Add another GCC bug number to comments.
27673 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27675         gen-uni-tables: untabify
27676         * lib/gen-uni-tables.c: Untabify.
27678 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27680         gen-uni-tables: check out-of-range values added to 3-level tables
27681         * lib/gen-uni-tables.c (output_category, output_bidi_category)
27682         (output_joining_type, output_ident_category): Check out-of-range
27683         values added to 3-level tables.
27685 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27687         gen-uni-tables: utilize 'assert'
27688         * lib/gen-uni-tables.c: Include <assert.h>.
27689         (output_category, output_combclass, output_decimal_digit_test)
27690         (output_decimal_digit, output_digit_test, output_digit)
27691         (output_numeric, get_mirror_value, fill_properties)
27692         (fill_property30, is_property_alphabetic)
27693         (is_property_default_ignorable_code_point)
27694         (is_property_uppercase, is_property_lowercase)
27695         (is_property_cased, is_property_case_ignorable)
27696         (is_property_changes_when_lowercased, is_property_iso_control)
27697         (is_property_math, fill_arabicshaping, output_joining_group)
27698         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
27699         (output_wbp, fill_org_gbp, get_decomposition)
27700         (output_decomposition, fill_composition_exclusions)
27701         (debug_output_composition_tables, output_composition_tables)
27702         (redistribute_casefolding_rules, output_casing_rules): Use
27703         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
27704         reporting.
27706 2014-11-13  Daiki Ueno  <ueno@gnu.org>
27708         gen-uni-tables: cosmetic improvements
27709         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
27710         variables specification.
27711         (is_outdigit): Remove unused function.
27713 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
27715         fcntl-h-tests: port to PA-RISC GNU/Linux
27716         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
27718 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
27720         fts: port to C89
27721         Problem reported for MSVC 16 by Gisle Vanem in:
27722         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
27723         * lib/fts.c (fts_build): Avoid declaration before statement.
27725 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27727         unistd: port to iOS
27728         Problem reported by André Klitzing in:
27729         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
27730         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
27732 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27734         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
27735         Problem reported by Alan Modra in:
27736         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
27737         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
27738         Always cast the function arg, reverting this part of the previous
27739         change.
27741 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27743         obstack: avoid potentially-nonportable function casts
27744         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
27745         Remove, replacing with ...
27746         (call_chunkfun, call_freefun): New static functions.
27747         All uses changed.  Avoid potentially-nonportable casts.
27748         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
27749         (_obstack_begin_worker): Omit last two args, since they
27750         rely on potentially-nonportable casts.  All callers changed.
27751         * lib/obstack.h (_OBSTACK_CAST): New macro.
27752         Use it everywhere the old API used a potentially-nonportable cast.
27753         The new API doesn't cast.
27754         (struct obstack): Use unions rather than requiring
27755         potentially-nonportable casts.
27756         (obstack_chunkfun, obstack_freefun): Return void.
27758 2014-11-03  Alan Modra  <amodra@gmail.com>
27760         obstack: fix macro return values
27761         * lib/obstack.h (obstack_next_free): Return void *.
27762         (obstack_1grow_fast, obstack_blank_fast): Return void.
27763         For __GNUC__ macros:
27764         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
27765         For !__GNUC__ macros:
27766         (obstack_make_room, obstack_grow, obstack_grow0)
27767         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
27769 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27771         obstack: do not assume system-supplied obstack is size_t safe
27772         * m4/obstack.m4: New file.
27773         * modules/obstack (Files): Add it.
27775         obstack: port to platforms that #define __alignof__
27776         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
27777         not if !_LIBC.  We don't know of any platforms that #define
27778         __alignof__, but it might be useful in tests.  Conversely,
27779         glibc assumes GCC.
27781 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27783         linkat: don't unconditionally replace on GNU/Linux
27784         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
27785         was redundant for a few reasons.  It was present to support compiling
27786         on new systems but running on the old narrow window of Linux 2.6.1[67].
27787         It setup and cleaned up test files which weren't actually used.
27788         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
27789         implicit in the following check.
27791 2014-11-03  Pádraig Brady  <P@draigBrady.com>
27793         linkat: wrap to handle symlinks on OS X 10.10
27794         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
27795         but not usable because it doesn't support creating hardlinks
27796         to symlinks.  Therefore add a generic test for this capability
27797         and fallback to our emulation if linkat() fails with ENOTSUP.
27799 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
27801         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
27802         * doc/posix-functions/open.texi (open):
27803         * doc/posix-functions/openat.texi (openat):
27804         Document that these functions do not set errno to ELOOP when
27805         a symlink is opened with O_NOFOLLOW.
27807 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27809         obstack: add NEWS entry for recent incompatible changes
27810         * NEWS: Describe recent changes.
27812 2014-10-30  Pádraig Brady  <P@draigBrady.com>
27814         mountlist: don't use libmount to decide on dummy/remote
27815         * lib/mountlist.c (read_file_system_list): Don't use the libmount
27816         routines to determine whether a file system is dummy or remote,
27817         as they're not currently compatible.  For example the remoteness
27818         is determined on file system type (for which the list seems incomplete),
27819         rather than simply checking for a ':' in the device name.
27820         Also libmount currently determines that 'tmpfs' is a dummy file system
27821         even though it has associated storage.
27823 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
27825         obstack: prefer __alignof__ to alignof
27826         This is for portability to pre-4.7 GCC when compiling glibc.
27827         See Joseph S. Myers in:
27828         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
27829         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
27830         New macro, defined by including and using <alignof.h>.
27831         (MAX): New macro.
27832         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
27833         Do not use enums as they are not portable to some broken compilers.
27834         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
27836         obstack: prefer alignof to calculating alignments by hand
27837         * lib/obstack.c: Include <stdalign.h>.
27838         (struct fooalign): Remove.
27839         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
27840         * modules/obstack (Depends-on): Add stdalign.
27842 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
27844         obstack: use size_t alignments and check for overflow
27845         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
27846         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
27847         * lib/obstack.h (struct obstack.alignment_mask):
27848         Use _OBSTACK_SIZE_T, not int, for alignments.
27849         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
27850         overflows, e.g., when adding the alignment.
27852 2014-10-29  Alan Modra  <amodra@gmail.com>
27854         obstack: 64-bit obstack support, part 3
27855         This finally enables full 64-bit obstack support.  The glibc
27856         shared library specific code is removed from obstack.c too, and
27857         the error handling code conditionally compiled under control of
27858         another macro, _OBSTACK_NO_ERROR_HANDLER.
27859         * lib/obstack.h: Include string.h earlier.
27860         (_OBSTACK_INTERFACE_VERSION): Define.
27861         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
27862         * lib/obstack.c: Don't include shlib-compat.h.
27863         (OBSTACK_INTERFACE_VERSION): Delete.
27864         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
27865         glibc code is compatible with version 2.  Don't include stdio.h for
27866         __GNU_LIBRARY.
27867         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
27868         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
27869         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
27870         glibc shared library specific source.
27872         obstack: 64-bit obstack support, part 2
27873         This gets us 4G obstack support, without changing ABI
27874         compatibility, apart from possibly introducing some
27875         signed/unsigned comparison warnings in code that uses obstack.h.
27876         a) Replace "int" size parameters, return values, and macro local vars
27877            with _OBSTACK_SIZE_T, an "unsigned int" for now.
27878         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
27879         c) Make all obstack macros checking available room use obstack_room.
27880            "next_free + desired > chunk_limit" may wrap the lhs for chunks
27881            allocated near the top of memory.
27882         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
27883         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
27884         in place of "int" size parameters, return values and local vars.
27885         (_CHUNK_SIZE_T): Define.
27886         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
27887         union use an _OBSTACK_SIZE_T integer type.
27888         For __GNUC__ versions of the following macros...
27889         (obstack_room): Rename local var.
27890         (obstack_make_room): Use obstack_room.
27891         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
27892         obstack_int_grow, obstack_blank): Likewise.
27893         (obstack_finish): Use unsigned comparison when comparing aligned
27894         next_free against chunk_limit.
27895         (obstack_free): Cast OBJ to remove possible const qualifier.
27896         For !__GNUC__ versions of the following macros...
27897         (obstack_make_room): Use obstack_room.
27898         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
27899         obstack_int_grow, obstack_blank): Likewise.
27900         (obstack_finish): Use unsigned comparision when comparing aligned
27901         next_free against chunk_limit.
27902         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
27903         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
27904         _OBSTACK_SIZE_T.
27905         (_obstack_begin, _obstack_begin_1): Likewise.
27906         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
27907         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
27909         obstack: 64-bit obstack support, part 1
27910         a) Correct calls to alloc function, to use a size_t arg.  "long" is
27911            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
27912            and "size_t" 64 bits.
27913         b) Consolidate _obstack_begin and _obstack_begin1 code.
27914         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
27915         use "size_t" rather than "long".
27916         (_obstack_begin, _obstack_begin1): Likewise.
27917         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
27918         obstack_chunkfun): Update alloc function casts.
27919         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
27920         (chunkfun_type, freefun_type): New typdefs.
27921         (_obstack_begin_worker): Split out from ..
27922         (_obstack_begin, _obstack_begin_1): ..here.
27924         obstack: tidy part 2
27925         a) Don't be concerned about "not polluting the namespace with stddef.h
27926            symbols" in obstack.h, since gnulib string.h includes stddef.h
27927            anyway, and it seems unlikely that anyone would care.
27928         b) Don't roll our own slow memcpy in _obstack_newchunk.
27929         c) Rename obstack_free to _obstack_free.  This makes the naming
27930            consistent with other obstack functions and obviates the need for
27931            __obstack_free.  Ancient obstack.c defined both obstack_free and
27932            _obstack_free.  We continue to do that for _LIBC via an alias.
27933         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
27934            is clever, but nowadays gcc warns on undefined macros.  You'll get
27935            an undefined macro warning if simulating an old gcc with -U__GNUC__
27936            -U__GNUC_MINOR__ -D__GNUC__=1.
27937         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
27938         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
27939         (__obstack_free): Delete, update refs.
27940         (_obstack_free): Rename from obstack_free.
27941         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
27942         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
27943         * lib/obstack.c: Don't include stddef.h.
27944         (COPYING_UNIT): Delete.
27945         (_obstack_begin): Formatting fix.
27946         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
27947         (_obstack_free): Rename from __obstack_free, update alias.  Move
27948         undef of obstack_free to where it is needed.
27950         obstack: tidy part 1
27951         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
27952            to me, and result in overlong lines after later patches.
27953         b) Move error handling code, to avoid a forward declaration and to
27954            simplify later patches in this series.
27955         * lib/obstack.h (struct obstack <temp>): Rename fields of union
27956         and update all uses.
27957         * lib/obstack.c: Include stdlib.h earlier.
27958         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
27959         in file.
27960         (print_and_abort): Remove now redundant forward declaration.
27962 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27964         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
27965         Without this change, in bleeding-edge fileutils Autoconf complains
27966         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
27967         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
27968         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
27969         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
27971 2014-10-24  Daiki Ueno  <ueno@gnu.org>
27973         iconv: avoid false detection of non-working iconv
27974         The INBUF arguments of iconv can be either 'const char **'
27975         or 'char **'.  If CC is g++, the difference causes a compile error
27976         and thus leads to a false detection of non-working iconv.
27977         Reported by Eli Zaretskii and Werner LEMBERG in:
27978         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
27979         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
27980         iconv.  Bump serial number.
27982 2014-10-23  Pádraig Brady  <P@draigBrady.com>
27984         bootstrap: print more diagnostics for missing programs
27985         * build-aux/bootstrap: only suppress stderr when checking for
27986         alternative program names.  This supports programs issuing non
27987         standard error messages.
27989 2014-10-23  Pádraig Brady  <P@draigBrady.com>
27991         bootstrap: only update the gnulib submodule
27992         * build-aux/bootstrap: Restrict the "submodule update" command
27993         to the gnulib path.
27995 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
27997         symlinkat: port to AIX 7.1
27998         * doc/posix-functions/symlinkat.texi (symlinkat):
27999         Mention AIX porting problem.
28000         * lib/symlinkat.c: Always include errno.h.
28001         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
28002         * lib/unistd.in.h (symlinkat): Add replacement machinery.
28003         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
28004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
28005         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
28006         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
28007         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
28009         readlinkat: port to AIX 7.1
28010         * doc/posix-functions/readlink.texi (readlink):
28011         * doc/posix-functions/readlinkat.texi (readlinkat):
28012         Mention AIX porting problem.
28013         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
28014         New function.
28015         * lib/unistd.in.h (readlinkat): Add replacement machinery.
28016         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
28017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
28018         * modules/readlinkat (configure.ac): Also compile replacement
28019         if REPLACE_READLINKAT.
28020         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
28022 2014-10-12  Karl Berry  <karl@gnu.org>
28024         * doc/posix-functions/dirname.texi: remove spurious {.
28026 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
28028         basename, dirname: Improve documentation.
28029         * doc/posix-functions/basename.texi: Mention dirname module and
28030         base_name() function.
28031         * doc/posix-functions/dirname.texi: Mention dir_name() and
28032         mdir_name() functions.
28033         Suggested by Werner LEMBERG <wl@gnu.org>.
28035 2014-09-24  Jim Meyering  <meyering@fb.com>
28037         exclude: declare exclude_patopts static
28038         * lib/exclude.c (exclude_patopts): Declare static,
28039         to avoid triggering a -Wmissing-prototypes warning.
28040         The alternative (declaring it in the .h file) would
28041         require publicizing the private "struct patopts".
28043 2014-09-21  Werner Lemberg  <wl@gnu.org>
28045         dirname: support compilation with C++
28046         * lib/dirname.h: Add necessary C linkage declarations.
28048 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
28050         qsort_r: include <config.h>
28051         Problem reported by Tom G. Christensen in:
28052         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
28053         * lib/qsort.c [!_LIBC]: Include <config.h> first.
28055 2014-09-16  Dylan Cali  <calid1984@gmail.com>
28057         avltree-list: avoid compiler warnings (trivial)
28058         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
28059         -Werror=suggest-attribute=pure.
28060         * lib/gl_array_list.c: Likewise.
28061         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
28062         declaration to avoid -Werror=missing-prototypes.  This is not added
28063         to a header as only exported for tests.  Add (void) to the
28064         check_invariants() call to indicate we're discarding the result
28065         in this context which avoids -Werror=unused-value.  Note we don't
28066         use ignore_value here to avoid a dependency as we know we'll not
28067         be adding __attribute__((warn_unused_result)) to check_invariants().
28068         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
28070 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28072         qsort_r: new module, for GNU-style qsort_r
28073         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
28075 2014-09-15  Werner LEMBERG  <wl@gnu.org>
28077         strerror_r-posix: support compilation with C++
28078         * lib/strerror_r.c: Add necessary C linkage declarations.
28080 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
28082         fcntl-h: fix compilation with Intel C++ compiler (trivial)
28083         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
28085 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
28087         mountlist: use /proc/self/mountinfo when available
28088         Use libmount to propagate device IDs provided by Linux in
28089         /proc/self/mountinfo.  This will give more accurate output when
28090         using df in chroot'ed environments as the device IDs are not
28091         determined by stat() which may be inaccurate within the chroot.
28092         * lib/mountlist.c (read_file_system_list): Use the libmount routines
28093         from util-linux to parse "/proc/self/mountinfo" or fall back to
28094         standard getmntent() processing.
28095         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
28096         getmntent() is used, as is the case on GNU/Linux.
28098 2014-09-07  Eric Wong  <normalperson@yhbt.net>
28100         users.txt: add cmogstored
28101         cmogstored has used gnulib since the beginning in 2012 to support
28102         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
28104 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28106         Trivial change.
28107         * gnulib-tool: Use same options as build-aux/bootstrap to download
28108         PO files.
28110 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
28112         Trivial change.
28113         * gnulib-tool: Fallback to wget when rsync of PO files fails.
28115 2014-09-04  Eric Blake  <eblake@redhat.com>
28117         maintainer-makefile: add syntax check for useless ';;'
28118         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
28120 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
28122         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
28123         Problem reported by Assaf Gordon in:
28124         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
28125         Apparently Ubuntu is doing some fancy link-time optimization
28126         that doesn't work with -lpthread but does work with -pthread.
28127         Work around the bug by preferring -pthread to -lpthread.
28128         * m4/pthread.m4 (gl_PTHREAD_CHECK):
28129         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
28130         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
28131         Treat -pthread like -lpthread.
28133 2014-09-04  Eric Blake  <eblake@redhat.com>
28135         error: drop spurious semicolon
28136         * lib/error.c (__error_at_line): Fix ';;'.
28138 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28140         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
28141         * m4/gnulib-common.m4 (AC_C_RESTRICT):
28142         Override AC_C_RESTRICT unconditionally.
28143         Update from autoconf, incorporating:
28144         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
28145         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
28147 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28149         manywarnings: add GCC 4.9 warnings
28150         Also, make it easier to maintain this in the future.
28151         * build-aux/gcc-warning.spec: Add -Wabi-tag,
28152         -Wconditionally-supported, -Wdelete-incomplete,
28153         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
28154         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
28155         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
28156         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
28157         only for older GCC versions that need them.  Handle
28158         -Wnormalized=nfc specially, so that the 'comm' command used
28159         for maintenance doesn't get confused.
28161 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
28163         vasnprintf: fix bugs in width computation
28164         * lib/vasnprintf.c (VASNPRINTF):
28165         Rework previous change, which introduced a bug,
28166         to avoid the warning in a different way.
28167         Avoid undefined behavior if the width arg is less than -INT_MAX.
28168         Avoid unnecessary use of HAS_WIDTH local.
28170 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
28172         vasnprintf: Avoid signed/unsigned comparison warning.
28173         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
28174         compare end addr of generated string w/ maximum end addr.
28176 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
28178         parse-datetime: Avoid pointer difference.
28179         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
28180         instead of calculating difference of pointers.  This removes an
28181         annoying warning, devoid of any use.
28183 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28185         qsort_r: new module, for GNU-style qsort_r
28186         This works even on FreeBSD, which has an incompatible qsort_r API.
28187         * MODULES.html.sh: Add it.
28188         * doc/glibc-functions/qsort_r.texi: It's now supported.
28189         * lib/qsort.c: New file, taken from glibc with minor changes
28190         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
28191         removed.
28192         * lib/qsort_r.c: New file, compiled only on FreeBSD.
28193         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
28194         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
28195         * modules/qsort_r, modules/qsort_r-tests: New files.
28196         * modules/stdlib (Makefile): Set up its defaults.
28197         * tests/test-qsort_r.c: New file.
28199 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
28201         vla: new module
28202         GNU RCS can use this, mostly for documentation I expect.  See:
28203         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
28204         * MODULES.html.sh: Add vla.
28205         * lib/vla.h, modules/vla: New files.
28207 2014-08-07  Daiki Ueno  <ueno@gnu.org>
28209         localename: make gl_locale_name_thread really thread-safe on Windows
28210         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
28211         "glthread/lock.h".
28212         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
28213         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
28215 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
28217         getpass: don't assume struct termios
28218         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
28219         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
28220         * lib/getpass.c (getpass): Port to systems lacking struct termios.
28222         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
28223         Problem reported by Jonas 'Sortie' Termansen in:
28224         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
28225         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
28226         Implement via sysconf for platforms that lack getdtablesize.
28228         vararrays: modernize AC_C_VARARRAYS for C11
28229         This backports a change I recently made to Autoconf.
28230         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
28231         VLAs are not supported, as this is what C11 does.  The old macro
28232         HAVE_C_VARARRAYS is still defined if they are supported, but is
28233         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
28235 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
28237         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
28238         * build-aux/install-reloc (func_create_wrapper): Also wrap
28239         strerror-override, stat, stat.
28241 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
28243         sys_select: fix FD_ZERO problem on Solaris 10
28244         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
28245         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
28246         to expand to an expression that invoked memset without necessarily
28247         including <string.h>.  The problem was that the first include
28248         defined _SYS_TIME_H, causing the second include to short-circuit.
28249         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
28250         Also, fix what appears to be a cut-and-paste typo, by replacing
28251         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
28252         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
28254         accept: document Solaris 10 type glitch
28255         * doc/posix-functions/accept.texi (accept): Mention that
28256         Solaris 10 'accept' takes void * last arg, not socklen_t *.
28258 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
28260         extern-inline: port to FreeBSD, DragonFly
28261         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
28262         is present if either __DragonFly__ or __FreeBSD__ is defined.
28263         FreeBSD problem reported by Andrey Borzenkov in:
28264         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
28265         Also, worry about __APPLE__ only if __MACH__ is also defined,
28266         as this is more consistent with the rest of gnulib.
28267         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
28268         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
28270 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28272         regex: Make #if/#ifdef usage consistent for DEBUG
28273         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
28274         of the inconsistent usage of #if and #ifdef as that works with
28275         both Glibc and Gnulib's style.
28277 2014-07-31  Eric Blake  <eblake@redhat.com>
28279         openat-die: use _Noreturn markup
28280         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
28281         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
28282         _Noreturn.
28284 2014-07-30  Eric Blake  <eblake@redhat.com>
28286         test-open: port to cygwin, which lacks Fortify
28287         * tests/test-open.h (ALWAYS_INLINE): New macro.
28288         (__always_inline): Don't abuse internal symbol on non-glibc.
28290 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
28292         localename: Enforce declarations before statements.
28293         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
28294         first statement.
28296 2014-07-18  Jim Meyering  <meyering@fb.com>
28298         test-userspec: don't look up numeric user names
28299         * tests/test-userspec.c: I found a system for which getpwnam("0")
28300         returned a pointer to a non-root user's entry, and that made the
28301         test fail.
28302         (T): Prefix each numeric input with "+", to inhibit lookup.
28304 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
28306         localcharset, localename: MS-Windows support for non-default locales
28307         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
28308         falling back on the default system codepage, try extracting
28309         the codepage from what 'setlocale' returns.  This allows to
28310         take into account changes of the codeset due to non-default
28311         locale set by a previous call to 'setlocale'.
28312         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
28313         Define if not already defined.
28314         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
28315         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
28316         current locale by calling 'setlocale', then converting the
28317         locale name into LCID by calling 'get_lcid'.  This allows to
28318         take into account changes in the current locale from the
28319         default one, in contrast to GetThreadLocale.
28321 2014-07-14  Daiki Ueno  <ueno@gnu.org>
28323         announce-gen: avoid failure when Digest::SHA is installed
28324         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
28325         Digest::SHA1->new in print_checksums fails.
28326         * build-aux/announce-gen (digest_classes): New associative array
28327         for available message digest implementations.
28328         (print_locations): Use it.
28330 2014-07-13  Pádraig Brady  <P@draigBrady.com>
28332         gettext: revert "update macros to version 0.19"
28333         This reverts commit 9b9370ca, as it currently requires that
28334         developers of any project that explicitly uses the gettext module
28335         or implicitly uses it through the utimens-tests or
28336         futimens-tests modules, use gettext >= 0.19.
28337         However there are some stability and availablity issues with
28338         that version at present.  We can reinstate this soon, when stability
28339         is addressed and packages are more readily available.
28341 2014-07-12  Jim Meyering  <meyering@fb.com>
28343         regex: don't deref NULL upon heap allocation failure
28344         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
28345         failure in one more place.
28346         To trigger the segfault, configure grep -with-included-regex,
28347         build it, and run these commands:
28348         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28349         I discovered this while replying to a private report from
28350         Jens Schleusener about excessive memory consumption by grep
28351         when using a regular expression like the one above.
28353 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
28355         regex: fix memory leak in compiler
28356         Fix by Andreas Schwab in:
28357         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
28358         * lib/regcomp.c (parse_reg_exp): Deallocate partially
28359         constructed tree before returning error.
28361 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28363         announce-gen: avoid perl warnings
28364         * build-aux/announce-gen: add two minor checks to avoid
28365         "use of uninitialized value" warnings when command-line parameters are
28366         missing.
28368 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
28370         localename: avoid -Wsuggest-attribute={const,pure} warnings
28371         * lib/localename.c (string_has): Tag internal function as pure.
28372         * lib/localename.h (gl_locale_name_default): Tag extern declaration
28373         as const when appropriate.
28375 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
28377         nl_langinfo: Fix last change.
28378         * lib/nl_langinfo.c (includes): Drop redundant include.
28380 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28382         error: Fix -Wundef warnings in glibc
28383         * lib/error.c [_LIBC]: Define default macros for
28384         glibc.
28385         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
28386         Check _LIBC before STRERROR_R_CHAR_P.
28388         error: Sync from glibc master
28389         * lib/error.c [_LIBC]: Remove INTUSE usage.
28390         (error_tail): Remove unused macro ALLOCA_LIMIT.
28391         Fix potential buffer overflow.  Fix potential NULL dereference
28392         in strcmp.
28394 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
28396         nl_langinfo: fix build under mingw
28397         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
28399 2014-07-09  Andrew D Warshall  <warshall@99main.com>
28401         mountlist: do not classify a bind-mounted dir entry as "dummy"
28402         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
28403         1-argument getmntent() (instead of assuming absence).
28405 2014-07-08  Eric Blake  <eblake@redhat.com>
28407         maint.mk: less syntax-check noise when SIGPIPE is ignored
28408         * top/maint.mk (_sc_header_without_use)
28409         (sc_require_config_h_first): Parse full list.
28411 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
28412             Paul Eggert  <eggert@cs.ucla.edu>
28414         nl_langinfo: CODESET on MS-Windows and more items from localeconv
28415         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
28416         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
28417         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
28418         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
28419         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
28420         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
28421         Include <stdio.h> if Microsoft Windows.
28422         Include <time.h> if !REPLACE_NL_LANGINFO.
28423         (ctype_codeset): New function, taken from rpl_nl_langinfo,
28424         and with improvements for Microsoft Windows.
28425         (rpl_nl_langinfo): Use it.
28426         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
28427         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
28428         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
28429         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
28430         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
28431         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
28432         corresponding values returned by 'localeconv'.  Compute the values
28433         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
28434         'strftime' with a suitable struct tm value.
28436 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28438         Bruno Haible has stepped down as maintainer.
28439         See Karl Berry in:
28440         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
28441         Daiki Ueno has volunteered to maintain libunistring; see:
28442         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
28443         * modules/gen-uni-tables, modules/libunistring:
28444         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
28445         * modules/unicase/base, modules/unicase/cased:
28446         * modules/unicase/empty-prefix-context:
28447         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
28448         * modules/unicase/locale-language, modules/unicase/special-casing:
28449         * modules/unicase/tocasefold, modules/unicase/tolower:
28450         * modules/unicase/totitle, modules/unicase/toupper:
28451         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
28452         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
28453         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
28454         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
28455         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
28456         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
28457         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
28458         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
28459         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
28460         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
28461         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
28462         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
28463         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
28464         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
28465         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
28466         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
28467         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
28468         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
28469         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
28470         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
28471         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
28472         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
28473         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
28474         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
28475         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
28476         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
28477         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
28478         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
28479         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
28480         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
28481         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
28482         * modules/unicase/ulc-casexfrm, modules/unicodeio:
28483         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
28484         * modules/uniconv/u16-conv-to-enc:
28485         * modules/uniconv/u16-strconv-from-enc:
28486         * modules/uniconv/u16-strconv-from-locale:
28487         * modules/uniconv/u16-strconv-to-enc:
28488         * modules/uniconv/u16-strconv-to-locale:
28489         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
28490         * modules/uniconv/u32-strconv-from-enc:
28491         * modules/uniconv/u32-strconv-from-locale:
28492         * modules/uniconv/u32-strconv-to-enc:
28493         * modules/uniconv/u32-strconv-to-locale:
28494         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
28495         * modules/uniconv/u8-strconv-from-enc:
28496         * modules/uniconv/u8-strconv-from-locale:
28497         * modules/uniconv/u8-strconv-to-enc:
28498         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
28499         * modules/unictype/bidicategory-all:
28500         * modules/unictype/bidicategory-byname:
28501         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
28502         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
28503         * modules/unictype/bidiclass-byname:
28504         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
28505         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
28506         * modules/unictype/block-all, modules/unictype/block-list:
28507         * modules/unictype/block-of, modules/unictype/block-test:
28508         * modules/unictype/category-C, modules/unictype/category-Cc:
28509         * modules/unictype/category-Cf, modules/unictype/category-Cn:
28510         * modules/unictype/category-Co, modules/unictype/category-Cs:
28511         * modules/unictype/category-L, modules/unictype/category-LC:
28512         * modules/unictype/category-Ll, modules/unictype/category-Lm:
28513         * modules/unictype/category-Lo, modules/unictype/category-Lt:
28514         * modules/unictype/category-Lu, modules/unictype/category-M:
28515         * modules/unictype/category-Mc, modules/unictype/category-Me:
28516         * modules/unictype/category-Mn, modules/unictype/category-N:
28517         * modules/unictype/category-Nd, modules/unictype/category-Nl:
28518         * modules/unictype/category-No, modules/unictype/category-P:
28519         * modules/unictype/category-Pc, modules/unictype/category-Pd:
28520         * modules/unictype/category-Pe, modules/unictype/category-Pf:
28521         * modules/unictype/category-Pi, modules/unictype/category-Po:
28522         * modules/unictype/category-Ps, modules/unictype/category-S:
28523         * modules/unictype/category-Sc, modules/unictype/category-Sk:
28524         * modules/unictype/category-Sm, modules/unictype/category-So:
28525         * modules/unictype/category-Z, modules/unictype/category-Zl:
28526         * modules/unictype/category-Zp, modules/unictype/category-Zs:
28527         * modules/unictype/category-all, modules/unictype/category-and:
28528         * modules/unictype/category-and-not, modules/unictype/category-byname:
28529         * modules/unictype/category-longname, modules/unictype/category-name:
28530         * modules/unictype/category-none, modules/unictype/category-of:
28531         * modules/unictype/category-or, modules/unictype/category-test:
28532         * modules/unictype/category-test-withtable:
28533         * modules/unictype/combining-class:
28534         * modules/unictype/combining-class-all:
28535         * modules/unictype/combining-class-byname:
28536         * modules/unictype/combining-class-longname:
28537         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
28538         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
28539         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
28540         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
28541         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
28542         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
28543         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
28544         * modules/unictype/digit, modules/unictype/joininggroup-all:
28545         * modules/unictype/joininggroup-byname:
28546         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
28547         * modules/unictype/joiningtype-all:
28548         * modules/unictype/joiningtype-byname:
28549         * modules/unictype/joiningtype-longname:
28550         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
28551         * modules/unictype/mirror, modules/unictype/numeric:
28552         * modules/unictype/property-all, modules/unictype/property-alphabetic:
28553         * modules/unictype/property-ascii-hex-digit:
28554         * modules/unictype/property-bidi-arabic-digit:
28555         * modules/unictype/property-bidi-arabic-right-to-left:
28556         * modules/unictype/property-bidi-block-separator:
28557         * modules/unictype/property-bidi-boundary-neutral:
28558         * modules/unictype/property-bidi-common-separator:
28559         * modules/unictype/property-bidi-control:
28560         * modules/unictype/property-bidi-embedding-or-override:
28561         * modules/unictype/property-bidi-eur-num-separator:
28562         * modules/unictype/property-bidi-eur-num-terminator:
28563         * modules/unictype/property-bidi-european-digit:
28564         * modules/unictype/property-bidi-hebrew-right-to-left:
28565         * modules/unictype/property-bidi-left-to-right:
28566         * modules/unictype/property-bidi-non-spacing-mark:
28567         * modules/unictype/property-bidi-other-neutral:
28568         * modules/unictype/property-bidi-pdf:
28569         * modules/unictype/property-bidi-segment-separator:
28570         * modules/unictype/property-bidi-whitespace:
28571         * modules/unictype/property-byname:
28572         * modules/unictype/property-case-ignorable:
28573         * modules/unictype/property-cased:
28574         * modules/unictype/property-changes-when-casefolded:
28575         * modules/unictype/property-changes-when-casemapped:
28576         * modules/unictype/property-changes-when-lowercased:
28577         * modules/unictype/property-changes-when-titlecased:
28578         * modules/unictype/property-changes-when-uppercased:
28579         * modules/unictype/property-combining:
28580         * modules/unictype/property-composite:
28581         * modules/unictype/property-currency-symbol:
28582         * modules/unictype/property-dash:
28583         * modules/unictype/property-decimal-digit:
28584         * modules/unictype/property-default-ignorable-code-point:
28585         * modules/unictype/property-deprecated:
28586         * modules/unictype/property-diacritic:
28587         * modules/unictype/property-extender:
28588         * modules/unictype/property-format-control:
28589         * modules/unictype/property-grapheme-base:
28590         * modules/unictype/property-grapheme-extend:
28591         * modules/unictype/property-grapheme-link:
28592         * modules/unictype/property-hex-digit:
28593         * modules/unictype/property-hyphen:
28594         * modules/unictype/property-id-continue:
28595         * modules/unictype/property-id-start:
28596         * modules/unictype/property-ideographic:
28597         * modules/unictype/property-ids-binary-operator:
28598         * modules/unictype/property-ids-trinary-operator:
28599         * modules/unictype/property-ignorable-control:
28600         * modules/unictype/property-iso-control:
28601         * modules/unictype/property-join-control:
28602         * modules/unictype/property-left-of-pair:
28603         * modules/unictype/property-line-separator:
28604         * modules/unictype/property-logical-order-exception:
28605         * modules/unictype/property-lowercase, modules/unictype/property-math:
28606         * modules/unictype/property-non-break:
28607         * modules/unictype/property-not-a-character:
28608         * modules/unictype/property-numeric:
28609         * modules/unictype/property-other-alphabetic:
28610         * modules/unictype/property-other-default-ignorable-code-point:
28611         * modules/unictype/property-other-grapheme-extend:
28612         * modules/unictype/property-other-id-continue:
28613         * modules/unictype/property-other-id-start:
28614         * modules/unictype/property-other-lowercase:
28615         * modules/unictype/property-other-math:
28616         * modules/unictype/property-other-uppercase:
28617         * modules/unictype/property-paired-punctuation:
28618         * modules/unictype/property-paragraph-separator:
28619         * modules/unictype/property-pattern-syntax:
28620         * modules/unictype/property-pattern-white-space:
28621         * modules/unictype/property-private-use:
28622         * modules/unictype/property-punctuation:
28623         * modules/unictype/property-quotation-mark:
28624         * modules/unictype/property-radical:
28625         * modules/unictype/property-sentence-terminal:
28626         * modules/unictype/property-soft-dotted:
28627         * modules/unictype/property-space:
28628         * modules/unictype/property-terminal-punctuation:
28629         * modules/unictype/property-test, modules/unictype/property-titlecase:
28630         * modules/unictype/property-unassigned-code-value:
28631         * modules/unictype/property-unified-ideograph:
28632         * modules/unictype/property-uppercase:
28633         * modules/unictype/property-variation-selector:
28634         * modules/unictype/property-white-space:
28635         * modules/unictype/property-xid-continue:
28636         * modules/unictype/property-xid-start:
28637         * modules/unictype/property-zero-width, modules/unictype/scripts:
28638         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
28639         * modules/unictype/syntax-c-whitespace:
28640         * modules/unictype/syntax-java-ident:
28641         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
28642         * modules/unigbrk/u16-grapheme-breaks:
28643         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
28644         * modules/unigbrk/u32-grapheme-breaks:
28645         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
28646         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
28647         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
28648         * modules/unigbrk/uc-is-grapheme-break:
28649         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
28650         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
28651         * modules/unilbrk/u16-width-linebreaks:
28652         * modules/unilbrk/u32-possible-linebreaks:
28653         * modules/unilbrk/u32-width-linebreaks:
28654         * modules/unilbrk/u8-possible-linebreaks:
28655         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
28656         * modules/unilbrk/ulc-possible-linebreaks:
28657         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
28658         * modules/uniname/uniname, modules/uninorm/base:
28659         * modules/uninorm/canonical-decomposition:
28660         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
28661         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
28662         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
28663         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
28664         * modules/uninorm/nfkc, modules/uninorm/nfkd:
28665         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
28666         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
28667         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
28668         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
28669         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
28670         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
28671         * modules/unistdio/base, modules/unistdio/u-printf-args:
28672         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
28673         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
28674         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
28675         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
28676         * modules/unistdio/u16-u16-sprintf:
28677         * modules/unistdio/u16-u16-vasnprintf:
28678         * modules/unistdio/u16-u16-vasprintf:
28679         * modules/unistdio/u16-u16-vsnprintf:
28680         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
28681         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
28682         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
28683         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
28684         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
28685         * modules/unistdio/u32-u32-asnprintf:
28686         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
28687         * modules/unistdio/u32-u32-sprintf:
28688         * modules/unistdio/u32-u32-vasnprintf:
28689         * modules/unistdio/u32-u32-vasprintf:
28690         * modules/unistdio/u32-u32-vsnprintf:
28691         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
28692         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
28693         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
28694         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
28695         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
28696         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
28697         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
28698         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
28699         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
28700         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
28701         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
28702         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
28703         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
28704         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
28705         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
28706         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
28707         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
28708         * modules/unistr/u16-check, modules/unistr/u16-chr:
28709         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
28710         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
28711         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
28712         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
28713         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
28714         * modules/unistr/u16-move, modules/unistr/u16-next:
28715         * modules/unistr/u16-prev, modules/unistr/u16-set:
28716         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
28717         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
28718         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
28719         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
28720         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
28721         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
28722         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
28723         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
28724         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
28725         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
28726         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
28727         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
28728         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
28729         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
28730         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
28731         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
28732         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
28733         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
28734         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
28735         * modules/unistr/u32-next, modules/unistr/u32-prev:
28736         * modules/unistr/u32-set, modules/unistr/u32-startswith:
28737         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
28738         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
28739         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
28740         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
28741         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
28742         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
28743         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
28744         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
28745         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
28746         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
28747         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
28748         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
28749         * modules/unistr/u8-check, modules/unistr/u8-chr:
28750         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
28751         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
28752         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
28753         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
28754         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
28755         * modules/unistr/u8-next, modules/unistr/u8-prev:
28756         * modules/unistr/u8-set, modules/unistr/u8-startswith:
28757         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
28758         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
28759         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
28760         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
28761         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
28762         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
28763         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
28764         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
28765         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
28766         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
28767         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
28768         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
28769         * modules/uniwbrk/base, modules/uniwbrk/table:
28770         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
28771         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
28772         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
28773         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
28774         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
28775         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
28776         * modules/uniwidth/width, modules/utf16-ucs4:
28777         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
28778         * modules/utf8-ucs4-unsafe:
28779         Change maintainer from Bruno Haible to Daiki Ueno.
28780         This is my guess at the libunistring modules; please feel free
28781         to fix if I guessed incorrectly.
28782         * modules/accept4, modules/acl, modules/acos, modules/acosf:
28783         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
28784         * modules/areadlink, modules/array-list, modules/array-mergesort:
28785         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
28786         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
28787         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
28788         * modules/binary-io, modules/bison-i18n, modules/btowc:
28789         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
28790         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
28791         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
28792         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
28793         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
28794         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
28795         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
28796         * modules/closedir, modules/concat-filename, modules/copy-file:
28797         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
28798         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
28799         * modules/csharpcomp-script, modules/csharpexec:
28800         * modules/csharpexec-script, modules/ctype, modules/diffseq:
28801         * modules/dprintf, modules/dprintf-posix, modules/dup:
28802         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
28803         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
28804         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
28805         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
28806         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
28807         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
28808         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
28809         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
28810         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
28811         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
28812         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
28813         * modules/findprog, modules/findprog-lgpl, modules/floor:
28814         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
28815         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
28816         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
28817         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
28818         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
28819         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
28820         * modules/freadable, modules/freadahead, modules/freadptr:
28821         * modules/freadseek, modules/freopen, modules/frexp:
28822         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
28823         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
28824         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
28825         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
28826         * modules/ftello, modules/full-read, modules/full-write:
28827         * modules/fwritable, modules/fwriteerror, modules/gcd:
28828         * modules/get-rusage-as, modules/get-rusage-data:
28829         * modules/getdtablesize, modules/getrusage, modules/gettext:
28830         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
28831         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
28832         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
28833         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
28834         * modules/iconv, modules/iconv-h, modules/iconv_open:
28835         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
28836         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
28837         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
28838         * modules/integer_length_ll, modules/ioctl, modules/isatty:
28839         * modules/isblank, modules/isnand, modules/isnand-nolibm:
28840         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
28841         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
28842         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
28843         * modules/javaexec, modules/javaexec-script, modules/javaversion:
28844         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
28845         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
28846         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
28847         * modules/lib-symbol-visibility, modules/libsigsegv:
28848         * modules/linked-list, modules/linkedhash-list, modules/list:
28849         * modules/localcharset, modules/locale, modules/localeconv:
28850         * modules/localename, modules/lock, modules/log, modules/log-ieee:
28851         * modules/log10, modules/log10-ieee, modules/log10f:
28852         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
28853         * modules/log1p, modules/log1p-ieee, modules/log1pf:
28854         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
28855         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
28856         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
28857         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
28858         * modules/logf, modules/logf-ieee, modules/login_tty:
28859         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
28860         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
28861         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
28862         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
28863         * modules/mbscspn, modules/mbsinit, modules/mbslen:
28864         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
28865         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
28866         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
28867         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
28868         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
28869         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
28870         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
28871         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
28872         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
28873         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
28874         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
28875         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
28876         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
28877         * modules/posix_spawn, modules/posix_spawn-internal:
28878         * modules/posix_spawn_file_actions_addclose:
28879         * modules/posix_spawn_file_actions_adddup2:
28880         * modules/posix_spawn_file_actions_addopen:
28881         * modules/posix_spawn_file_actions_destroy:
28882         * modules/posix_spawn_file_actions_init:
28883         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
28884         * modules/posix_spawnattr_getpgroup:
28885         * modules/posix_spawnattr_getschedparam:
28886         * modules/posix_spawnattr_getschedpolicy:
28887         * modules/posix_spawnattr_getsigdefault:
28888         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
28889         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
28890         * modules/posix_spawnattr_setschedparam:
28891         * modules/posix_spawnattr_setschedpolicy:
28892         * modules/posix_spawnattr_setsigdefault:
28893         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
28894         * modules/pow, modules/powf, modules/printf-frexp:
28895         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
28896         * modules/progname, modules/propername, modules/pselect:
28897         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
28898         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
28899         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
28900         * modules/read, modules/readdir, modules/readlink:
28901         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
28902         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
28903         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
28904         * modules/relocatable-script, modules/remainder:
28905         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
28906         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
28907         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
28908         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
28909         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
28910         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
28911         * modules/setlocale, modules/sh-quote, modules/shutdown:
28912         * modules/signal, modules/signbit, modules/sigpipe:
28913         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
28914         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
28915         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
28916         * modules/snippet/link-warning, modules/snippet/unused-parameter:
28917         * modules/snprintf, modules/snprintf-posix, modules/spawn:
28918         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
28919         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
28920         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
28921         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
28922         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
28923         * modules/streq, modules/strerror_r-posix, modules/striconv:
28924         * modules/striconveh, modules/striconveha, modules/strncat:
28925         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
28926         * modules/sublist, modules/sys_resource, modules/sys_utsname:
28927         * modules/sys_wait, modules/system-posix, modules/system-quote:
28928         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
28929         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
28930         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
28931         * modules/truncf, modules/truncf-ieee, modules/truncl:
28932         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
28933         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
28934         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
28935         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
28936         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
28937         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
28938         * modules/wait-process, modules/waitpid, modules/wcpcpy:
28939         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
28940         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
28941         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
28942         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
28943         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
28944         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
28945         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
28946         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
28947         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
28948         * modules/write, modules/xconcat-filename, modules/xlist:
28949         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
28950         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
28951         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
28952         * modules/y0, modules/y1, modules/yn:
28953         Remove Bruno Haible as maintainer; if he's the sole maintainer,
28954         change the maintainer to 'all'.  Let's hope someone volunteers.
28956 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
28958         mktime: merge #if/#ifdef usage from glibc
28959         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
28960         as that works with both Glibc's and Gnulib's style.
28961         See thread starting at Siddhesh Poyarekar's bug report at:
28962         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
28964 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
28966         git-version-gen: improve option descriptions
28967         * build-aux/git-version-gen: Mention that --prefix and --fallback
28968         have a mandatory argument.
28970 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28972         regex: fix memory leak in compiler
28973         Fix by Andreas Schwab in:
28974         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
28975         * lib/regcomp.c (parse_expression): Deallocate partially
28976         constructed tree before returning error.
28978         regex: merge patch from libc
28979         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
28980         Combine __USE_BSD and __USE_SVID into __USE_MISC.
28981         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
28983 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
28985         acl: port to gcc -Wredundant-decls
28986         From a request by Dmitry Antipov in:
28987         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
28988         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
28989         "#ifndef _GL_ACL_H".
28991 2014-06-11  Bruce Korb  <bkorb@gnu.org>
28992         Jim Meyering  <meyering@fb.com>
28994         parse-duration: eliminate 68-year duration limit
28995         * lib/parse-duration.c: Include "intprops.h".
28996         (TIME_MAX): Rename to MAX_DURATION and define to
28997         TYPE_MAXIMUM(time_t).
28998         * modules/parse-duration (Depends-on): Add intprops.
28999         Reported by Jonas 'Sortie' Termansen.
29001 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29003         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
29004         * modules/pthread (Depends-on): Add 'extensions', as it defines
29005         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
29006         (configure.ac-early): New section.
29007         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
29008         it is no longer needed.
29010 2014-06-14  Pádraig Brady  <P@draigBrady.com>
29012         pthread: define thread-safe macros on some platforms
29013         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
29014         for thread-safe operation on some platforms.
29016 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
29018         regex: don't be multithreaded if USE_UNLOCKED_IO.
29019         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
29020         * lib/regex_internal.h: Do not use multithreaded version if
29021         USE_UNLOCKED_IO is defined.  This is a hack, but it works
29022         around a porting bug with coreutils 8.22 on AIX 7.1.
29024 2014-06-11  Daiki Ueno  <ueno@gnu.org>
29026         gettext: update macros to version 0.19
29027         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
29028         depend on gl_EXTERN_INLINE and drop support for older Bison
29029         versions.
29031 2014-06-10  Pádraig Brady  <P@draigBrady.com>
29033         select,poll: fix console handle check on windows 8
29034         lib/poll.c (IsConsoleHandle): Change from testing the lower
29035         2 bits of the handle to the more expensive but accurate syscall.
29036         lib/select.c: Likewise.
29038 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29040         select: fix waiting on anonymous pipes on MS-Windows
29041         * lib/select.c (rpl_select): Fall back to polling when select()
29042         indicates there is nothing to check, while due to the timeout not
29043         expiring, activity is indicated on one of the handles.
29044         Also clear the TIMEOUT argument if the timer does expire.
29046 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
29048         times: fix to return non constant value on MS-Windows
29049         * lib/times.c (times): Don't use the process creation time,
29050         rather clock() which on windows returns the number of
29051         clock ticks since the process started.
29053 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
29055         isatty: fix to work on windows 8
29056         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
29057         2 bits of the handle to the more expensive but accurate syscall.
29059 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
29061         maint: fix typo in fdl.texi
29062         * doc/fdl.texi: Fix typo (missing '@').
29063         Somehow this was in fdl.texi but not fdl-1.3.texi.
29065 2014-06-06  Ben Walton  <bdwalton@gmail.com>
29067         mountlist: avoid hasmntopt const type warning on solaris
29068         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
29069         with char * instead of const char *.  Passing the constant string
29070         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
29071         to avoid the warning.
29073 2014-06-04  Eric Blake  <eblake@redhat.com>
29075         maintainer-makefile: delete obsolete code
29076         * top/maint.mk (build_aux): Drop old code, as threatened.
29078         maintainer-makefile: avoid spurious error messages
29079         * top/maint.mk (syntax-check): Guard definition and use of
29080         $(shell) by whether Makefile is present.
29082 2014-06-03  Ben Walton  <bdwalton@gmail.com>
29084         rename: avoid unused-but-set-variable compiler warning
29085         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
29086         it is possible that dst_exists may be set but not used.  Mark it with
29087         the unused attribute to avoid compiler warnings.
29089 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29091         rename: mark a label as potentially unused
29092         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
29093         by marking the out label as potentially unused.
29094         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
29096 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29098         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
29099         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
29101 2014-06-02  Ben Walton  <bdwalton@gmail.com>
29103         acl: apply pure attribute to two functions
29104         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
29105         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
29107 2014-06-01  Pádraig Brady  <P@draigBrady.com>
29109         gnulib-common.m4: add _GL_UNUSED_LABEL
29110         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
29111         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
29113 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
29115         dup2, fcntl, fcntl-h: port to AIX 7.1
29116         This fixes some porting problems discovered when testing the latest
29117         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
29118         in grep but it could be important for other applications.
29119         * doc/posix-functions/dup2.texi:
29120         * doc/posix-functions/fcntl.texi:
29121         * doc/posix-headers/fcntl.texi:
29122         Document AIX bugs.
29123         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
29124         Define to 0 if outside 'int' range.
29125         * m4/dup2.m4 (gl_FUNC_DUP2):
29126         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29127         Check for getdtablesize.  If it's available, test a value just
29128         outside its range instead of testing 1000000.  When cross-compiling,
29129         guess that AIX will fail this improved test.
29131 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
29133         printf, config.rpath: Port to FreeBSD 10.
29134         Problem reported by Tijl Coosemans in:
29135         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
29136         * build-aux/config.rpath (hardcode_libdir_flag_spec)
29137         (hardcode_direct): Simplify FreeBSD configuration.
29138         (library_names_spec): Don't mishandle FreeBSD 10+.
29139         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
29140         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
29141         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
29142         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
29143         Don't mishandle FreeBSD 10+ when cross-compiling.
29145         ftoastr: work around compiler bug in IBM xlc 12.1
29146         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
29147         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
29148         around a compiler bug in IBM xlc 12.1.0.0: it complains
29149         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
29150         _GL_FLT_PREC_BOUND.'
29152 2014-05-30  Kieran Colford  <colfordk@gmail.com>
29154         valgrind-tests: fixed misleading help message
29155         * m4/valgrind-tests.m4: The help message generated by configure
29156         implied that valgrind was disabled by default, which it wasn't.
29157         Adjusted the help message using s/enable/disable/ to clarify.
29159 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
29161         isfinite, isinf, isnan tests: fix for little-endian PowerPC
29162         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
29163         first double of a PowerPC "double double" pair.
29164         * tests/test-isinf.c (test_isinfl): Likewise.
29165         * tests/test-isnan.c (test_long_double): Likewise.
29166         * tests/test-isnanl.h (main): Likewise.
29167         * tests/test-signbit.c (test_signbitl): Likewise.
29169 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
29171         exclude-tests: port to AIX 7.1
29172         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
29173         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
29174         the regex code uses locks.
29176 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
29178         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
29179         Without this fix, Emacs would sometimes call sigprocmask instead
29180         of pthread_sigmask, which is a no-no in multithreaded applications.
29181         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
29182         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29183         Suppress check for pthread_sigmask working without -lpthread if
29184         the application always links with -lpthread.  Do not link with
29185         $LIBMULTITHREAD if gl_THREADLIB is not defined.
29186         * m4/timer_time.m4 (gl_TIMER_TIME):
29187         Require gl_THREADLIB only if it is defined.  Do not append
29188         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
29190 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
29192         gnulib-tool: wget translations using --no-verbose rather than --quiet
29193         This allows the user to see error messages if any (--quiet hides them)
29194         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
29196 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
29198         gnulib-tool: adjust translation wget to avoid a https redirection
29199         Context: http://translationproject.org/latest/gnulib redirects to
29200            https://translationproject.org/latest/gnulib/
29201         Rationale: if the user falls back to wget, she doesn't have rsync and
29202         is probably in a minimal build environment, where packages such as
29203         'ca-certificates' are missing as well, resulting in a failed (and
29204         difficult to detect since ignored) translation initial fetch.
29205         Consequently let's avoid https if possible, and add the missing
29206         trailing slash.  This also avoids an unnecessary 302 redirection.
29207         * gnulib-tool: Add trailing slash to gnulib URL.
29209 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29211         getlogin_r-tests: check return value rather than errno
29212         * tests/test-getlogin_r.c (main): As per POSIX we should be
29213         verifying the return value from getlogin_r() rather than errno.
29215 2014-05-22  Pádraig Brady  <P@draigBrady.com>
29217         getlogin_r-tests: fix various issues in recent change
29218         * tests/test-getlogin_r.c: Include required headers that were
29219         missed in recent commit eec20b4e.
29220         Also consistently check the errno rather than the return value from
29221         getlogin_r as POSIX only specifies that non zero is returned on error.
29222         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
29224 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
29226         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
29227         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
29228         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
29229         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
29230         * lib/spawn-pipe.c:
29231         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
29232         and then 'int open64(const char *, int, ...);', which means the
29233         declaration for 'open' gets lost if we later '#undef open'.
29234         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
29235         where the compilation reported the non-fatal error "In function
29236         'openat_proc_name' ... warning: implicit declaration of function
29237         'open'".  In this case the error is relatively harmless, but in
29238         other cases it might not be so minor.
29240 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
29242         xalloc: don't potentially generate invalid code for xmemdup calls
29243         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
29244         this function can initialize the newly-allocated storage with new
29245         pointers, which means this function is not malloc-like.  See:
29246         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
29248 2014-05-19  Pádraig Brady  <P@draigBrady.com>
29250         getlogin_r-tests: avoid false failure under sudo/ssh etc.
29251         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
29252         changes from commit 97249cf29 to not depend on environment variables.
29254 2014-05-18  Pádraig Brady  <P@draigBrady.com>
29256         getlogin-tests: avoid false failure under cron
29257         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
29258         since that's not what's under test.  Centos 6 was seen to return
29259         EINVAL for ttyname() when run from cron.
29261 2014-05-16  Jim Meyering  <meyering@fb.com>
29263         mbrtowc.m4: fix a comment typo
29264         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
29265         emitted documentation string.
29267 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
29269         mbrlen, mbrtowc: fix bug with empty input
29270         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
29271         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
29272         so this is mainly for documentation.
29273         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
29274         (gl_FUNC_MBRTOWC): Use it.
29275         * tests/test-mbrtowc.c (main): Test for the bug.
29277 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
29279         doc: document mbrtowc and mbrlen problem with empty input
29280         * doc/posix-functions/mbrlen.texi (mbrlen):
29281         * doc/posix-functions/mbrtowc.texi (mbrtowc):
29282         Document portability problem when the input string is empty.  See:
29283         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
29285         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
29286         Problem reported by Eli Zaretskii in:
29287         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
29288         * doc/posix-functions/execl.texi (execl):
29289         * doc/posix-functions/execle.texi (execle):
29290         * doc/posix-functions/execlp.texi (execlp):
29291         * doc/posix-functions/execv.texi (execv):
29292         * doc/posix-functions/execve.texi (execve):
29293         * doc/posix-functions/execvp.texi (execvp):
29294         Mention spawn+exit problem on non-Cygwin Windows platforms.
29296 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
29298         getlogin-tests: avoid false failure under sudo/ssh etc.
29299         * modules/getlogin-tests (configure.ac): Check for ttyname().
29300         * tests/test-getlogin.c (main): Don't depend on environment variables
29301         to correlate with getlogin(), since sudo and ssh etc. can tamper
29302         with the LOGNAME and USER env vars.  Instead lookup the name from
29303         the uid associated with the stdin tty.
29305 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29307         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
29308         These were found when building the latest grep snapshot on IRIX 6.5.
29309         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
29310         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
29311         never used later.
29312         * lib/quotearg.c (quoting_options_from_style):
29313         * lib/xstrtol.c (__xstrtol):
29314         Use enum instead of 0, to pacify IRIX 6.5 cc.
29316 2014-04-18  Pádraig Brady  <P@draigBrady.com>
29318         gitlog-to-changelog: revert inclusion of git-log-fix file
29319         * build-aux/git-log-fix: Delete dummy file.
29320         * modules/gitlog-to-changelog: Don't reference (overwrite)
29321         the project specific git-log-fix file.
29323 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
29325         maint.mk: Relax the copyright check to cater for non FSF projects
29326         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
29327         to not require the "Free" suffix after the copyright years.
29329 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
29331         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
29332         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
29333         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
29334         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
29335         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
29337 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
29339         exclude: port to strict C99
29340         Strict C does not allow converting a function pointer to void *
29341         and vice versa.  Pass a pointer to a function pointer instead.
29342         * lib/exclude.c (add_exclude_file):
29343         Pass the address of the function pointer.
29344         (call_addfn): And deference the address here, to match.
29346 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
29348         regex: do not depend on malloc-gnu
29349         * modules/regex (Depends-on): Remove malloc-gnu.
29350         It's no longer needed, because of the 2012-12-29 patch
29351         "regex: port to hosts where malloc (0) == NULL".
29352         Reported by Nathan Kennedy in:
29353         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
29355 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
29357         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
29358         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
29359         * doc/posix-functions/expl.texi: Mention the workaround.
29361 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29363         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
29364         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
29365         size to be zero even when the pointer is nonnull.  This
29366         accommodates the use case where P is malloc (0) and *PN is 0 on a
29367         host where malloc (0) yields nonnull.
29369 2014-04-09  Eric Blake  <eblake@redhat.com>
29371         fts: avoid unnecessary strlen calls
29372         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
29374 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29376         fts: avoid unnecessary strlen calls
29377         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
29378         when that can be faster than strlen.
29380 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29382         fts: avoid unnecessary strlen calls
29383         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
29384         (fts_build): Store the length of the dp->d_name entry in a local variable
29385         instead of calling strlen() several times via the above, removed macro.
29386         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
29387         run by ~4%, yet this reduces the execution time by about a third if run
29388         via "ltrace -c rm -rf some-dir".
29390 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29392         obstack: Remove ancient NeXTSTEP gcc support conditional
29393         This change will ease merging with glibc.  The "#if ... __NEXT__"
29394         causes a warning with -Wundef which glibc now enables by default.
29395         Problem reported by Will Newton in
29396         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
29397         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
29398         so go with that.
29399         * lib/obstack.h (__extension__):
29401 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
29403         obstack: merge with glibc changes
29404         * lib/obstack.c, lib/obstack.h: Merge from glibc.
29405         This is mostly indenting and commentary changes.
29406         Instances of 'register' have been removed.
29408 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29410         strftime: wrap macros in "do {...} while(0)"
29411         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
29412         this macro in "do {...} while(0)" to prevent false use as a
29413         single statement, e.g., in an un-braced "{}" else-block.
29414         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
29415         (strftime_case_): Remove 'else' after 'goto' - which was the
29416         only non-fatal, un-braced use of one of the above macros.
29417         Spotted by coverity (NESTING_INDENT_MISMATCH).
29419 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
29421         modechange: avoid memory leaks for invalid octal modes
29422         * lib/modechange.c (mode_compile): During the parsing of
29423         notations like +40, free the 'mc' buffer for invalid mode
29424         strings like +17777 (greater than the maximum octal mode),
29425         =18 (bad octal mode characters) or u=1 ('affected' with
29426         octal modes).
29427         Reproducer, e.g.:
29428             $ valgrind --leak-check=full chmod +17777 file
29429         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
29430         add notations +40, 00440, etc.".
29431         Spotted by coverity (RESOURCE_LEAK).
29433 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
29435         gitlog-to-changelog: include a dummy git-log-fix file
29436         Problem reported by Nathan Stratton Treadway in:
29437         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
29438         * build-aux/git-log-fix: New file.
29440 2014-03-13  Jim Meyering  <meyering@fb.com>
29442         gitlog-to-changelog: also include the file, git-log-fix
29443         * modules/gitlog-to-changelog (Files): Add git-log-fix.
29444         Reported by Assaf Gordon.
29446 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
29448         regex: port to OS X 10.8.5 en_US.UTF-8 locale
29449         This fixes a bug when ignoring case and when comparing the
29450         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
29451         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
29452         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
29453         titlecase letter is neither lowercase nor uppercase, but
29454         uppercasing the titlecase letter (via towupper) yields the
29455         uppercase letter, so the two letters should match when ignoring case.
29456         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
29457         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
29458         Don't test whether a character is lowercase before uppercasing it.
29460 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
29462         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
29463         This is basically one of the options Bruno Haible proposed in:
29464         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
29465         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
29466         * lib/stdint.in.h: Use it.
29467         * modules/stdint (Depends-on): Add sys_types.
29469 2014-02-26  Pádraig Brady  <P@draigBrady.com>
29471         parse-datetime: fix crash or infloop in TZ="" parsing
29472         * lib/parse-datetime.y (parse_datetime): Break out of the
29473         TZ="" parsing loop once the second significant " is found.
29474         Also skip over any subsequent whitespace to be consistent
29475         with the non TZ= case.
29476         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
29478 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
29480         savedir: new symbol for fast-read version
29481         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
29482         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
29483         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
29484         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
29486 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
29488         unistd: port readlink to Mac OS X 10.3.9
29489         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
29490         around self-include problem in Mac OS X 10.3.9 when combined with
29491         readlink module.  Problem reported by Klaus Zietler in
29492         <http://bugs.gnu.org/16825>.
29494 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29496         diffseq: remove TOO_EXPENSIVE heuristic
29497         Problem with diffutils reported by Vincent Lefevre in
29498         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
29499         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
29500         Although appropriate for circa-1993 hardware, these days the heuristic
29501         seems to be more trouble than it's worth.
29502         * lib/diffseq.h: Modernize citations.
29503         (struct context): Remove member too_expensive.
29504         All uses changed.
29505         (struct partition): Remove members lo_minimal, hi_minimal.
29506         All uses changed.
29507         (diag, compareseq): Remove arg find_minimal.  All uses changed.
29508         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
29509         1993 to make 'diff' run faster (but not as well) on large inputs.
29510         These days, computers are fast enough that it's typically better
29511         to run slower but more accurately.
29512         * lib/fstrcmp.c: Remove duplicate comment.
29513         * lib/fstrcmp.c (strcmp_bounded):
29514         * lib/git-merge-changelog.c (compute_differences):
29515         Adjust to diffseq.h changes.
29516         * NEWS: Document the change.
29518         savedir: simplify by using stpcpy
29519         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
29520         (streamsavedir): Use stpcpy instead.
29521         * modules/savedir (Depends-on): Add stpcpy.
29523 2014-02-21  Pádraig Brady  <P@draigBrady.com>
29525         spawn: fix link error on uclibc
29526         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
29527         to incorporate -lrt if needed (on uclibc for example).
29528         * modules/posix_spawn: Reference the substituted LIB.
29530 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
29531         timer: fix uClibc detection of threading
29532         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
29533         enabled in uClibc.
29535 2014-02-21  Eric Blake  <eblake@redhat.com>
29537         maintainer-makefiles: provide AC_PROG_SED for older autoconf
29538         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
29540 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
29542         exclude: add support for posix regexps
29544         This commit adds support for POSIX extended regular expressions
29545         and fixes a long-standing memory leak (pattern buffer was never
29546         freed).  It also implements a new interface function to read
29547         exclude patterns from a FILE, which passes an additional parameter
29548         to its callback function, thereby allowing to preserve its state
29549         between invocations.
29551         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
29552         (pattern_buffer): New struct.
29553         (exclude): New member patbuf.
29554         (exclude_add_pattern_buffer): New function.
29555         (free_exclude_segment): Free regexps.
29556         (free_exclude): Free allocated pattern buffers.
29557         (exclude_patopts): New function.
29558         (file_pattern_matches): Use exclude_patopts.
29559         (add_exclude): support regexps.
29560         (add_exclude_fp): New function.
29561         (add_exclude_file): Rewrite using add_exclude_fp.
29562         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29563         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29564         (add_exclude_fp)
29565         (add_exclude_file): Rewrite using add_exclude_fp.
29566         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
29567         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
29568         (add_exclude_fp)
29569         (exclude_add_pattern_buffer): New prototypes.
29570         * modules/exclude: Depends on regex and filename.
29572 2014-02-20  Eric Blake  <eblake@redhat.com>
29574         maintainer-makefiles: use $(SED) for syntax check
29575         * modules/maintainer-makefile (configure.ac): Check for sane sed.
29576         * top/maint.mk: Change sed to $(SED).
29578 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
29579             Paul Eggert  <eggert@cs.ucla.edu>
29581         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
29582         Patch based on an idea by Dick Streefland in
29583         <https://savannah.gnu.org/patch/?7892>.
29584         * NEWS: Document this.
29585         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
29586         (direntry_t, comparison_function): New types.
29587         (direntry_cmp_name): New function.
29588         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
29589         (streamsavedir, savedir): New arg OPTION.
29590         (streamsavedir): Simplify memory allocation.
29591         (fdsavedir): Remove.
29592         * lib/savedir.h (enum savedir_option): New type.
29593         (streamsavedir, savedir): New arg OPTION.
29594         (fdsavedir): Remove.
29596 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
29598         file-type: add support for doors and other less-common file types
29599         Problem with S_ISDOOR reported by Rich Burridge.
29600         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
29601         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
29602         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
29604 2014-01-23  Eric Blake  <eblake@redhat.com>
29606         pthread: work around winpthread header pollution on mingw
29607         * lib/time.in.h: Move pthread workarounds...
29608         * lib/pthread.in.h: ...here.
29609         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
29610         detect macro pollution on mingw.
29611         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
29613 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
29615         qacl: check for fchmod
29616         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
29617         and qset-acl.c both use HAVE_FCHMOD.
29619 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
29621         fdopen-tests: port to Tru64
29622         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
29623         descriptor that is not open, as POSIX doesn't specify the
29624         resulting behavior and the test does not work on Tru64.
29625         Problem reported by Steven M. Schweda in:
29626         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
29628         stdalign: port to HP-UX compilers
29629         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
29630         if __HP_cc or __HP_aCC are nonzero.
29632 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
29634         strtoimax: port to platforms lacking 'long long'
29635         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
29636         check whether strtoll is declared, which causes the C file to
29637         wrongly report an error.  Problem reported by Steven M. Schweda in:
29638         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
29639         * lib/strtoimax.c (strtoull):
29640         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
29641         (strtoll): Declare only if HAVE_LONG_LONG_INT.
29643 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
29645         relocatable-perl: fix texi syntax
29646         * doc/relocatable-maint.texi: Escape braces.
29648 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
29650         relocatable-perl: like relocatable-script, but for Perl scripts
29651         * build-aux/relocatable.pl.in: Add.
29652         * doc/relocatable-maint.texi: Add documentation.
29653         * modules/relocatable-perl: Add.
29655 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
29657         tests: fix export bug in previous patch
29658         Problem reported by Jim Meyering.
29659         * tests/init.sh (re_shell): New var, which is exported instead of
29660         re_shell_.
29662         tests: simplify porting to Solaris 10 /bin/sh
29663         Some test cases in 'grep' need a shell that groks '$(';
29664         export re_shell_ for their benefit.  Problem reported for 'grep'
29665         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
29666         * tests/init.sh (re_shell_): Export if it's used.
29668 2014-01-06  Eric Blake  <eblake@redhat.com>
29670         md5, sha1, sha256, sha512: support older autoconf
29671         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
29672         for autoconf < 2.63b.
29674         include_next: port to autoconf 2.63
29675         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
29677 2014-01-04  Jim Meyering  <meyering@fb.com>
29679         maint: add a gnulib-local rule to keep non-ascii out of .texi files
29680         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
29681         so that "make sc_maint" will ding anyone who puts non-ascii
29682         in any of gnulib's .texi files.
29684 2014-01-03  Jim Meyering  <meyering@fb.com>
29686         freadable, fwritable, fwriting: declare with the "pure" attribute
29687         * lib/freadable.h (freadable): Declare with the "pure" attribute.
29688         * lib/fwritable.h (fwritable): Likewise.
29689         * lib/fwriting.h (fwriting): Likewise.
29690         Suggested by Bruno Haible.
29692         maint.mk: adapt openat.h-include-without-use test
29693         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
29694         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
29695         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
29696         With this change, running "make sc_maint" in gnulib's top-level
29697         directory now passes for me.
29699 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29701         doc: use ASCII in .texi files where UTF-8 isn't needed
29702         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
29703         * doc/posix-functions/setkey.texi, doc/regex.texi:
29704         Use ASCII input, not UTF-8.
29706 2014-01-02  Jim Meyering  <meyering@fb.com>
29708         freading: declare with the "pure" attribute
29709         * lib/freading.h (freading): Declare with the "pure" attribute.
29711         manywarnings: remove -Wmudflap
29712         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
29713         it is no longer supported in gcc-4.9-to-be.
29715 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29717         relocatable-script: remove unused code
29718         Problem reported by Reuben Thomas in:
29719         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
29720         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
29722 2014-01-01  Jim Meyering  <meyering@fb.com>
29724         maint: fix public-submodule-commit to work with newer git
29725         * top/maint.mk (public-submodule-commit): Remove excess quoting.
29726         We were over-quoting the test arguments, and somewhere prior to
29727         version 1.8.5.2.229, git stopped removing those excess quotes,
29728         which made the test fail, since the unexpanded strings would
29729         always differ; using GIT_TRACE=1 confirmed that the git merge-base
29730         command wasn't even being run.
29732 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29734         doc: update main copyright year
29735         * doc/gnulib.texi: Update copyright date.
29737 2014-01-01  Eric Blake  <eblake@redhat.com>
29739         version-etc: new year
29740         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
29741         * all files: run 'make update-copyright'
29743 2013-12-24  Eric Blake  <eblake@redhat.com>
29745         passfd: give nicer error for recvfd at eof
29746         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
29747         * tests/test-passfd.c (main): Enhance test to cover this.
29749 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29751         gettimeofday: port recent C++ fix to Emacs
29752         Without this further patch, Emacs won't build due to
29753         the portcheck failing.  Also, this simplifies the patch a bit.
29754         * lib/time.in.h (localtime, gmtime): Don't replace unless
29755         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
29756         * lib/time.in.h (localtime, gmtime):
29757         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
29758         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29759         * modules/time (time.h):
29760         Don't worry about the possibility of localtime and gmtime
29761         being absent; they're present in all C libraries we know about.
29762         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
29763         Don't assume sys_time is present and has been initialized.
29764         Instead, use a hack that should work even if it hasn't been.
29765         Don't use a portcheck for gmtime or localtime; this supports
29766         the hack.
29767         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
29769 2013-12-17  John W. Eaton  <jwe@gnu.org>
29771         gettimeofday: fix C++ crosscompilation
29773         Never replace gmtime and localtime by macros when compiling with
29774         C++, this prevents <ctime> from being included.
29776         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
29777         define gmtime and localtime as preprocessor macros.  Instead
29778         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
29779         REPLACE_LOCALTIME substitutions.
29780         * lib/time.in.h: Declare gmtime and localtime when needed.
29781         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
29782         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
29783         * modules/time: Depend on gettimeofday, and substitute the above
29784         variables in time.h.
29786 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29788         qacl: port to Windows better
29789         See Eli Zaretskii in
29790         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
29791         * lib/file-has-acl.c (acl_access_nontrivial):
29792         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
29793         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
29795 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
29797         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
29798         * lib/gl_openssl.h: Cast void pointers to a specific type.
29800 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29802         open-tests: fix build failure with -Werror=old-style-declaration
29803         * tests/test-open.h: Reorder the inline to avoid the issue.
29805 2013-12-07  Pádraig Brady  <P@draigBrady.com>
29807         md5, sha1, sha256, sha512: fix link error with partial libcrypto
29808         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
29809         init time, so that if early checks find crypto routines,
29810         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
29811         avoiding link failures.
29813 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29815         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
29816         This provides a new way to specify the default for
29817         gl_CRYPTO_CHECK, one that is reflected in the --help message.
29818         Emacs uses this, as well as the old way.
29819         This attempts to implement a suggestion by Pádraig Brady in
29820         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
29821         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
29822         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
29824         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
29825         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
29826         Add support for a new option, --with-openssl=auto, which causes
29827         the library to be used if available and silently ignored if not.
29828         Add support to allow configure.ac to specify its own
29829         default, by setting with_openssl_default before invoking gl_INIT.
29831 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29833         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
29834         Problem reported by Daiki Ueno in:
29835         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
29836         * tests/test-open.h (__always_inline):
29837         New macro, if not already defined.
29838         (test_open): Use it.
29840 2013-12-04  Eric Blake  <eblake@redhat.com>
29842         include_next: minimize code duplication
29843         * modules/include_next (Depends-on): Add absolute-header.
29844         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
29845         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
29847 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29849         getcwd: fix compile error in configure check
29850         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
29852 2013-12-04  Pádraig Brady  <P@draigBrady.com>
29854         regex: suppress core dumps from detection code
29855         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
29856         to suppress core dumps that may well occur on glibc systems.
29857         These core dumps might not be cleaned up automatically, or could
29858         trigger some system core dump handling logic.
29860 2013-12-03  Pádraig Brady  <P@draigBrady.com>
29862         md5, sha1, sha256, sha512: support mandating use of openssl
29863         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
29864         description, to list the now 3 separate options.  also don't
29865         mention the default=no, since this is implicit given the option
29866         is described as --with-openssl rather than --without-openssl.
29867         If projects change the default they're free to document that.
29868         with --with-openssl[=yes] we now error out when the specified
29869         hash algorithm is not available in libcrypto.
29871 2013-12-03  Ivailo  <xakepa10@gmail.com>
29873         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
29874         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
29875         -Wformat-nonliteral checks, as these edge cases are part of the test.
29877 2013-12-03  Eric Blake  <eblake@redhat.com>
29879         regex: avoid glibc deadlock during configure
29880         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
29881         glibc bug 15078 in turn triggers bug 16159.
29882         Reported by Michal Privoznik.
29884 2013-12-02  Pádraig Brady  <P@draigBrady.com>
29886         md5, sha1, sha256, sha512: use openssl routines if available.
29887         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
29888         routines will be used if available, requiring apps to link @LIB_CRYPTO@
29889         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
29890         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
29891         in the standard system location.
29892         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
29893         * m4/sha256.m4: Likewise with SHA256.
29894         * m4/sha512.m4: Likewise with SHA512.
29895         * m4/md5.m4: Likewise with MD5.
29896         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
29897         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
29898         * lib/sha256.h: Likewise with SHA256.
29899         * lib/sha512.h: Likewise with SHA512.
29900         * lib/md5.h: Likewise with MD5.
29901         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
29902         * lib/sha256.c: Likewise with SHA256.
29903         * lib/sha512.c: Likewise with SHA512.
29904         * lib/md5.c: Likewise with MD5.
29905         * modules/crypto/sha1 (Link:): Add the new optional lib.
29906         (Depends-on:): Add dependency on extern-inline.
29907         * modules/crypto/sha256: Likewise.
29908         * modules/crypto/sha512: Likewise.
29909         * modules/crypto/md5: Likewise.
29910         * modules/crypto/sha1-tests: Reference the lib here too.
29911         * modules/crypto/md5-tests: Likewise.
29912         * modules/crypto/gc-des-tests: Likewise.
29913         * modules/crypto/gc-hmac-md5-tests: Likewise.
29914         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29915         * modules/crypto/gc-hmac-sha256-tests: Likewise.
29916         * modules/crypto/gc-hmac-sha512-tests: Likewise.
29917         * modules/crypto/gc-md5-tests: Likewise.
29918         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29919         * modules/crypto/gc-sha1-tests: Likewise.
29920         * modules/crypto/gc-tests: Likewise.
29921         * modules/crypto/hmac-md5-tests: Likewise.
29922         * modules/crypto/hmac-sha1-tests: Likewise.
29923         * modules/crypto/hmac-sha256-tests: Likewise.
29924         * modules/crypto/hmac-sha512-tests: Likewise.
29926 2013-11-29  RV1971  <rv1971@web.de>
29928         base64: (trivial) fix compilation regression on some compilers
29929         * lib/base64.c: Don't return the void function,
29930         instead split to a separate return statement.
29932 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29934         ignore-value: revert previous code change
29935         * lib/ignore-value.h (ignore_value): Use __extension__ and
29936         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
29937         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
29938         Change the comment to try to explain this better.
29940 2013-11-27  Pádraig Brady  <P@draigBrady.com>
29942         selinux-h: improve stub types and add more stub functions
29944         * lib/se-selinux.in.h: Change security_context_t to a typedef
29945         rather than a define, as it's a pointer type and so is better
29946         as a typedef to avoid issues declaring multiple variables
29947         with the comma operator.  Also add stub for string_to_security_class().
29948         * lib/se-context.in.h: Add stub functions for
29949         context_{type,range,role,user}_get().
29951 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29953         ignore-value: prefer GCC version back through 2.0
29954         The code didn't match the comments, so I did a bit of software
29955         archaeology.  GCC 2.0 seems to support __extension__ and
29956         __typeof__, so fix both code and comments to use 2.0.
29957         * lib/ignore-value.h (ignore_value): Use __extension__ and
29958         __typeof__ for GCC 2.0 through 3.3, too.
29960 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
29962         pty: Activate the signature wrapper of forkpty.
29963         The intended preprocessor macro HAVE_FORKPTY is
29964         never defined, yet `lib/forkpty.c' depends on it.
29966         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
29967         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
29968         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
29970 2013-11-18  Jim Meyering  <meyering@fb.com>
29971         and Paul Eggert  <eggert@cs.ucla.edu>
29973         quotearg: don't attempt to store 1 << 31 into an "int"
29974         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
29975         gcc's new -fsanitize=undefined and running its tests triggered some
29976         new test failures due to undefined behavior, all with this diagnostic:
29977           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
29978             cannot be represented in type int
29979         Rather than shifting "1" left to form a mask, shift the bits right and
29980         simply use "1" as the mask.
29982 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
29984         error: depend on stdio
29985         Problem reported by Nikos Mavrogiannopoulos in
29986         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
29987         * modules/error (Depends-on): Add stdio.
29989 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
29991         * doc/relocatable-maint.texi (Supporting Relocation): Improve
29992         wording.
29993         Reported by Reuben Thomas <rrt@sc3d.org>.
29995 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29997         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
29998         New function and macro, to work around _DARWIN_C_SOURCE problem.
29999         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
30001 2013-11-11  Pádraig Brady  <P@draigBrady.com>
30003         base64: provide a fast path for encoding well sized buffers
30004         Avoid conditionals in the base64 encoding loop,
30005         which was seen to give 60% better throughput.
30006         * lib/base64.c (base64_encode_fast): A new function to be called
30007         when we don't want to NUL terminate, and we have enough space
30008         in the output to encode the given input.
30009         (base64_encode): Call the _fast() version when appropriate.
30010         Also remove a redundant mask with 0x3F on the first encoded byte.
30012 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30014         extern-inline: port better to OS X 10.9
30015         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
30016         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
30017         OS X 10.9, except for g++ where the bug is still present.
30018         See <http://trac.macports.org/ticket/41033>.
30020 2013-11-08  Eric Blake  <eblake@redhat.com>
30022         fpending: fix regression on DragonFly BSD
30023         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
30024         * lib/fpending.h (__fpending): Don't declare twice.
30025         Reported by GW in
30026         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
30028 2013-11-05  Jim Meyering  <meyering@fb.com>
30030         hash: relax license to LGPLv2+, for libguestfs
30031         * modules/hash (License): Change from GPL to LGPLv2+.
30033 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30035         intprops: port to Oracle Studio c99
30036         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
30037         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
30039 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30041         obstack: pacify HP C
30042         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
30043         warning "conversion from pointer to smaller integer" from HP
30044         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
30045         C89 or later nowadays, so cast to void instead of int.  Privately
30046         reported by H.Merijn Brand.  Also, change header to match glibc's,
30047         to make checking against glibc easier.
30049 2013-10-29  Jim Meyering  <meyering@fb.com>
30051         maint.mk: prefer gpgv2 over gpgv
30052         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
30053         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
30054         Reported by Gary Vaughan.
30056 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
30058         isnan: port to VAX
30059         Reported by John Klos for NetBSD-5/VAX in
30060         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
30061         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
30062         (FUNC): Use it.
30064 2013-10-28  Jim Meyering  <meyering@fb.com>
30066         gnulib-tool: protect against CDPATH
30067         * gnulib-tool: Many "cd" built-in functions print a directory name
30068         to stdout when CDPATH is set, e.g.,
30069           $ bash -c 'CDPATH=/; cd tmp'
30070           /tmp
30071         Unset it, when possible.  Prompted by a comment from Bruce Korb.
30073         maint.mk: restore functionality removed by recent change...
30074         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
30075         the context of a shallow-cloned gnulib repository: "git describe"
30076         would fail in such a directory.  However, that change made it so
30077         the reported gnulib revision no longer includes the version number
30078         or a commit count, even when run from a full clone.
30079         * top/maint.mk (gnulib-version): Use the full "git describe"
30080         output when possible, e.g., the form above, rather than the
30081         abbreviated, no-tag, no-commit-count string, and fall back to
30082         using a 10-byte hash, rather than the default minimal-length
30083         hash prefix, since while the minimal-length one may be fine today,
30084         it is likely not to be unique for very long.
30086 2013-10-26  Jim Meyering  <meyering@fb.com>
30088         maint.mk: fix "release" target to build _version
30089         This fixes a bug in README-release whereby following the outlined
30090         steps, one would publish a tarball whose programs would report
30091         --version output not consistent with the package version number.
30092         This bug caused grep-2.15 to produce a grep program whose
30093         --version option made it print 2.14.56-1e3d rather than 2.15.
30094         * top/maint.mk (release): Making this target build "_version"
30095         ensures that the new version number is reflected in configure.
30097 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
30099         install-reloc: Support multi-binary installation.
30100         * build-aux/install-reloc: Support installing multiple programs in
30101         one invocation, as done by Automake starting with commit
30102         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
30103         Haible <bruno@clisp.org>, archived at
30104         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
30105         Reported by Sylvain <beuc@gnu.org>.
30107 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30109         selinux-h: Really build without selinux when library is missing.
30110         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
30111         continue without selinux, as already told in the warning message.
30113 2013-10-21  Jim Meyering  <meyering@fb.com>
30115         regex: also remove dependency on HAVE_WCSCOLL
30116         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
30118 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
30120         xfreopen: Fix typo. s/frepoen/freopen/
30121         * lib/xfreopen.c: Fix description.
30122         * modules/xfreopen: Likewise.
30124 2013-10-21  Jim Meyering  <meyering@fb.com>
30126         regex: don't depend on wcscoll
30127         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
30128         It is no longer used.
30130 2013-10-20  Jim Meyering  <meyering@fb.com>
30132         error: add the printf attribute to a static function
30133         * lib/error.c (error_tail): Add the printf attribute, to placate
30134         gcc's -Werror=suggest-attribute=format option.
30136 2013-09-30  Jim Meyering  <meyering@fb.com>
30138         fpending, obstack, strerror-override: use pure+const function attrs
30139         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
30140         * lib/obstack.c (_obstack_allocated_p): Likewise.
30141         * lib/obstack.h (_obstack_memory_used): Likewise.
30142         (_obstack_memory_used): Likewise.
30143         * lib/strerror-override.h (strerror_override): Declare with
30144         the "const" attribute.
30146 2013-10-18  Eric Blake  <eblake@redhat.com>
30148         extern-inline: make safe for -Wundef usage
30149         Reported by Vladimir 'phcoder' Serbinenko in
30150         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
30151         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
30153 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30155         mkfifo-tests, etc.: allow HP-UX 11.11 bug
30156         Problem reported by Daniel Richard G. in
30157         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
30158         * doc/posix-functions/mkfifo.texi (mkfifo):
30159         * doc/posix-functions/mkfifoat.texi (mkfifoat):
30160         * doc/posix-functions/mknod.texi (mknod):
30161         * doc/posix-functions/mknodat.texi (mknodat):
30162         Document the HP-UX 11.11 bug.
30163         * tests/test-mkfifo.h (test_mkfifo):
30164         Allow the HP-UX 11.11 bug.
30166 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30168         acl: allow cross-compilation to Gentoo
30169         Problem reported by Gabriel Marcano in
30170         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
30171         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
30172         test only whether it links.
30174 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30176         mgetgroups: remove dependency on realloc-gnu
30177         The dependency violates the comment in realloc-gnu, which
30178         says that tests can't depend on realloc-gnu; some tests depend
30179         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
30180         Problem reported by Daniel Richard G. in
30181         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
30182         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
30183         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
30184         not realloc-gnu.
30186 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30188         regex-tests: port to HP-UX 11.11
30189         Problem reported by Daniel Richard G. in
30190         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
30191         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
30193 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30195         verify: document some 'assume' pitfalls
30196         * doc/verify.texi (Compile-time Assertions):
30197         Mention that 'assume (E)' can sometimes slow things down.
30198         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
30200 2013-10-10  Eric Blake  <eblake@redhat.com>
30202         strtoumax: fix typo in previous commit.
30203         * modules/strtoumax (Depends-on): Fix typo.
30204         * modules/strtoimax (Depends-on): Likewise.
30206 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30208         strtoumax: port to Solaris 8
30209         This problem was introduced in the recent HP-UX patch.
30210         Reported by Tom G. Christensen in
30211         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
30212         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
30213         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
30215 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
30217         strtoimax, strtoumax: port to HP-UX 11.11
30218         Problem reported by Daniel Richard G. in
30219         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
30220         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
30221         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
30222         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
30223         REPLACE_STRTOUMAX.
30224         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
30225         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
30226         Replace the function if defined as a macro but not as a function.
30227         * modules/inttypes-incomplete (inttypes.h): Substitute
30228         REPLACE_STRTOUMAX.
30229         * modules/strtoumax (configure.ac): Replace strtoumax if
30230         REPLACE_STRTOUMAX.
30232 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30234         strtoimax: port to HP-UX 11.11
30235         Problem reported by Daniel Richard G.
30236         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
30237         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
30238         they might clash with inttypes.h.
30240 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30242         New module 'count-trailing-zeros'.
30243         * MODULES.html.sh: Mention it.
30244         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
30245         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
30246         * modules/count-trailing-zeros-tests:
30247         * tests/test-count-trailing-zeros.c:
30248         New files.
30250         count-leading-zeros: port to MSC; support types wider than 64 bits
30251         The ideas behind the MSC port are stolen from Emacs.
30252         * lib/count-leading-zeros.h:
30253         Don't include verify.h: it's no longer needed, as types wider than
30254         64 bits are now supported.
30255         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
30256         performance with MSC.  All uses changed.  Do not assume that TYPE
30257         has at most 64 bits.
30258         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
30259         All uses changed.  Fold the subtraction from 31 into the table.
30261         count-one-bits: port to MSC; support types wider than 64 bits
30262         The ideas behind the MSC port are stolen from Emacs.
30263         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
30264         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
30265         Don't include verify.h: it's no longer needed, as types wider than
30266         64 bits are now supported.
30267         (COUNT_ONE_BITS_GENERIC): New macro.
30268         (popcount_supported) [_MSC_VER]: New inline function.
30269         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
30270         performance with MSC.  All uses changed.  Do not assume that TYPE
30271         has at most 64 bits.
30272         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
30274 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
30276         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
30277         * lib/mountlist.c (read_file_system_list): fix leak of directory
30278         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
30280 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30282         tests: improve diagnostic when an assertion fails
30283         * tests/macros.h (ASSERT): Report the assertion that failed.
30285 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30287         verify: new macro 'assume'
30288         This is taken from Emacs, and should be generally useful.
30289         * doc/verify.texi (assume): Document it.
30290         * lib/verify.h (assume): New macro.
30291         (__has_builtin): Expand to 0 if not defined.
30293 2013-09-26  Eric Blake  <eblake@redhat.com>
30295         dup2, dup3: work around another cygwin crasher
30296         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
30297         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
30298         * tests/test-dup2.c (main): Likewise.
30299         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
30300         * lib/dup3.c (dup3): Likewise.
30301         * doc/posix-functions/dup2.texi (dup2): Document it.
30302         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30304         getdtablesize: work around cygwin issue
30305         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
30306         * modules/getdtablesize (configure.ac): Build replacement.
30307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
30308         * modules/unistd (Makefile.am): Expose the witness.
30309         * lib/unistd.in.h (getdtablesize): Declare replacement.
30310         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
30311         * tests/test-getdtablesize.c (main): Test it.
30312         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
30314 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
30316         pmccabe2html: escaping of special characters
30317         Escape all '<', '>', and '&' in HTML output.
30318         * build-aux/pmccabe2html (html_fnc): Call gsub()
30319         instead of sub() to capture all '<', '>', and '&'.
30320         Neither of '<' and '>' is special in a regexp,
30321         so first arguments to gsub() are corrected. Also,
30322         in replacement strings, ampersand must be escaped.
30323         Finally, '&' must be handled first, then '<' and '>'.
30325 2013-09-24  Eric Blake  <eblake@redhat.com>
30327         manywarnings: enable nicer gcc warning messages
30328         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
30329         some -f options for optimal warnings.
30331 2013-09-21  Jim Meyering  <meyering@fb.com>
30333         timespec: use the new TIMESPEC_RESOLUTION in a few more places
30334         * lib/timespec-add.c (timespec_add): Also replace 999999999
30335         with TIMESPEC_RESOLUTION - 1.
30336         * lib/timespec-sub.c (timespec_sub): Likewise.
30338 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30340         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
30341         Problem reported by Dagobert Michelsen via Eric Blake in
30342         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
30343         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
30344         not AC_COMPILE_IFELSE.
30346 2013-09-23  Eric Blake  <eblake@redhat.com>
30348         configmake: support new --runstatedir option
30349         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
30350         even if autoconf was too old to provide the command line option.
30351         * modules/configmake (Makefile.am): Propagate it to .h file.
30353 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30355         ctype, string: depend on extern-inline
30356         This is needed to complete the recent OS X fixes.
30357         Also, fix related documentation as suggested by Eric Blake.
30358         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30359         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
30360         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
30361         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
30362         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
30363         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
30364         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
30365         * doc/posix-functions/toupper.texi:
30366         List the 'ctype' gnulib module.
30367         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
30368         * doc/posix-functions/strncpy.texi:
30369         List the 'string' gnulib module.
30370         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
30371         Add string.
30372         * modules/ctype, modules/string (Depends-on): Add extern-inline.
30374 2013-09-19  Pádraig Brady  <P@draigBrady.com>
30376         userspec: support optional parameters to parse_user_spec()
30377         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
30378         then avoid group processing and treat the full spec as a user.
30379         (parse_with_separator): Allow the USERNAME and GROUPNAME to
30380         be optional params (NULL), in which case they're ignored.
30382 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
30384         timespec: new function make_timespec, and new constants
30385         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
30386         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
30387         (make_timespec): New function.
30388         * lib/dtotimespec.c (dtotimespec):
30389         * lib/timespec-add.c (timespec_add):
30390         * lib/timespec-sub.c (timespec_sub):
30391         * lib/utimens.c (validate_timespec):
30392         * lib/utimensat.c (rpl_utimensat):
30393         Use these new constants and functions.
30395         stdio: OS X port of putc_unlocked + extern inline
30396         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
30397         * doc/posix-functions/putc_unlocked.texi:
30398         * doc/posix-functions/putchar_unlocked.texi:
30399         Document this portability problem.
30401         signal: OS X port of sigaddset etc. + extern inline
30402         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
30403         (sigismember): #undef on problematic Apple platforms.
30404         * doc/posix-functions/sigaddset.texi:
30405         * doc/posix-functions/sigdelset.texi:
30406         * doc/posix-functions/sigemptyset.texi:
30407         * doc/posix-functions/sigfillset.texi:
30408         * doc/posix-functions/sigismember.texi:
30409         Document this portability problem.
30411         extern-inline: do not always suppress extern inline on OS X
30412         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
30413         extern inline on Apple only if the particular compile-time
30414         configuration is known to have the problem.
30415         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
30416         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
30417         other Gnulib modules.
30419         extern-inline: document fixes for ctype and wctype macros
30420         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
30421         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
30422         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
30423         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
30424         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
30425         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
30426         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
30427         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
30428         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
30429         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
30430         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
30431         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
30432         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
30433         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
30434         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
30435         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
30436         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
30437         * doc/posix-functions/strncpy.texi:
30438         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
30439         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
30440         Document that Gnulib fixes portability problems with these
30441         functions on OS X 10.8 and earlier when called from plain inline
30442         or extern inline functions.
30444 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
30446         fflush, freadahead, fseeko: Fix for Android
30447         Suggested by Bruno Haible in:
30448         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
30449         * lib/stdio-impl.h: Use local __sfileext definition.
30451 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
30453         pmccabe2html: Portability to other awk versions.
30454         The functions systime() and strftime() are available
30455         in Gawk only.  Properly close two HTML-tags 'style'
30456         and 'span'.
30457         * build-aux/pmccabe2html (BEGIN): Store timing
30458         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
30459         systime() in HTML_COMMENT.
30460         (html_header): Correctly close tag 'style'.
30461         (END): Replace strftime() by CHRONOS_TIME.  Close
30462         tag 'span' correctly, not as 'div'.
30464 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
30466         getgroups: statement without effect
30467         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
30468         Change equality conditional to expected assignment.
30470 2013-09-09  Eric Blake  <eblake@redhat.com>
30472         glob: fix compilation
30473         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
30475 2013-09-07  Eric Blake  <eblake@redhat.com>
30477         glob: fix build for platforms without __THROW
30478         * lib/glob.in.h (__THROW): Add definition again.
30480 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
30482         regex-quote: fix buffer access out of bounds
30483         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
30484         * lib/regex-quote.c (regex_quote_spec_pcre):
30485         Fix typo that resulted in an out-of-bounds read.
30487 2013-09-04  Eric Blake  <eblake@redhat.com>
30489         glob: avoid -Wattribute warnings on glibc
30490         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
30491         __THROWNL, not __THROW, on static functions.
30492         * lib/glob.in.h (__THROW): Adjust...
30493         (__THROWNL): ...accordingly.
30495 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
30497         headers: check that _GL_INLINE_HEADER_BEGIN is defined
30498         Suggested by Bruce Korb in:
30499         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
30500         * doc/extern-inline.texi (extern inline):
30501         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
30502         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
30503         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
30504         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
30505         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
30506         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
30507         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
30508         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
30509         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
30510         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
30511         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
30512         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
30513         * lib/xtime.h:
30514         Check that _GL_INLINE_HEADER_BEGIN is defined.
30516 2013-08-29  Pádraig Brady  <P@draigBrady.com>
30518         bootstrap: remove the --version requirement from ancillary tools
30519         * build-aux/bootstrap (check_exists): A new refactored function to
30520         determine if a command exists.
30521         (find_tool): Use the new function which does not require the
30522         --version option to be supported.
30523         (check_versions): Use the new function.
30525 2013-08-26  Simon Josefsson  <simon@josefsson.org>
30527         gc: support HMAC-SHA256 and HMAC-SHA512.
30528         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
30529         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
30530         functions.
30531         (gc_hmac_md5): Use symbolic constant.
30532         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
30533         (gc_hmac_sha256, gc_hmac_sha512): New functions.
30534         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
30535         * m4/sha256.m4: Protect against empty expansion.
30536         * m4/sha512.m4: Likewise.
30537         * lib/hmac-sha256.c: New file.
30538         * lib/hmac-sha512.c: Likewise.
30539         * m4/gc-hmac-sha256.m4: Likewise.
30540         * m4/gc-hmac-sha512.m4: Likewise.
30541         * m4/gc-sha256.m4: Likewise.
30542         * m4/gc-sha512.m4: Likewise.
30543         * modules/crypto/gc-hmac-sha256: Likewise.
30544         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30545         * modules/crypto/gc-hmac-sha512: Likewise.
30546         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30547         * modules/crypto/hmac-sha256: Likewise.
30548         * modules/crypto/hmac-sha256-tests: Likewise.
30549         * modules/crypto/hmac-sha512: Likewise.
30550         * modules/crypto/hmac-sha512-tests: Likewise.
30551         * tests/test-gc-hmac-sha256.c: Likewise.
30552         * tests/test-gc-hmac-sha512.c: Likewise
30553         * tests/test-hmac-sha256.c: Likewise.
30554         * tests/test-hmac-sha512.c: Likewise
30556 2013-08-24  Daiki Ueno  <ueno@gnu.org>
30558         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
30559         of AC_CHECK_DECLS.
30561 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30563         selinux-at: omit unnecessary include
30564         * lib/selinux-at.c: Don't include dosname.h; not needed, since
30565         this source file doesn't use its macros, and subsidiary files that
30566         use the macros already include it.
30568 2013-08-21  Eric Blake  <eblake@redhat.com>
30570         d-ino: avoid false negative on symlink
30571         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
30572         Reported by Stephane Chazelas.
30574 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
30576         bootstrap: port to OpenBSD sed
30577         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
30578         does not interpret `-' as a file argument to mean stdin.
30580 2013-08-15  Eric Blake  <eblake@redhat.com>
30582         warnings: minor optimization
30583         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
30585         warnings: check -Wfoo rather than -Wno-foo
30586         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
30587         -Wno-, test if the compiler recognizes the positive form instead.
30589 2013-08-15  Karl Berry  <karl@gnu.org>
30591         * config/srclist-update: add option "doclicense" to placate
30592         pulling *.texi files from Emacs.  Write terse usage
30593         documentation at the top.
30595 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
30597         xvasprintf-tests: port to GCC with hardening flags
30598         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
30599         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
30600         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
30602 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30604         fpending: port to recent Cygwin change to stdio_ext.h
30605         Reported by LRN in
30606         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
30607         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
30608         just declare __fpending unless it's a macro.
30609         A duplicate decl shouldn't hurt.
30610         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
30611         call compiles and links, instead of separately checking for
30612         decl and lib function.
30613         * modules/fpending (configure-ac):
30614         Adjust to fpending.m4's renaming of shell variable.
30616 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30618         sys_time: port to OpenBSD
30619         * lib/sys_time.in.h: Simply delegate to the system's header
30620         in the BSDish cases as well.  Problem reported by Mike Miller in
30621         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
30622         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
30623         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
30624         wider than time_t.
30626 2013-08-09  Pádraig Brady  <P@draigBrady.com>
30628         bootstrap: support checksum utils having -c but not --status
30629         * build-aux/bootstrap: Only look for sha1sum if updating po files.
30630         Add sha1 to the list of supported checksum utils since it's now
30631         supported through adjustments below.
30632         (update_po_files): Remove the use of --status
30633         in a way that will suppress all error messages, but since this is
30634         only used to minimize updates, it shouldn't cause an issue.
30635         Exit early if there is a problem updating the po file checksums.
30636         (find_tool): Remove the check for --version support as this
30637         is optional as per commit 86186b17.  Don't even check for the
30638         presence of the command as if that is needed, it's supported
30639         through configuring prerequisites in bootstrap.conf.
30640         Prompt that when a tool isn't found, one can define an environment
30641         variable to add to the hardcoded search list.
30643 2013-08-05  Jim Meyering  <meyering@fb.com>
30645         regex: port to non-glibc/lock-using systems
30646         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
30647         system with GNULIB_LOCK would fail due to absence of the
30648         included "glthread/lock.h".  This would affect any package
30649         for which the "lock" module is used only by the regex module,
30650         and not explicitly used.
30651         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
30652         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
30653         Add a dependency on the "lock" module.
30655 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30657         localecharset: make locale_charset thread-safe on Mac OS X
30658         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
30659         instead of MB_CUR_MAX.
30661 2013-07-20  Daiki Ueno  <ueno@gnu.org>
30663         gettext: update to version 0.18.3
30664         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
30665         require AC_PROG_SED to allow user to specify custom sed command when
30666         generating en@quot PO file.
30668 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
30670         bootstrap: use correct source when copying build-aux files
30671         * build-aux/bootstrap (gnulib_extra_files): This variable is
30672         relative to upstream gnulib layout, not downstream.
30674 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
30676         tmpdir: fix bug in VMS port
30677         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
30678         See Steven M. Schweda in
30679         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
30681 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
30683         tmpdir: port to VMS, to // != /, and to long dirs
30684         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
30685         __secure_getenv, so that we're more like the glibc version.
30686         All uses changed.
30687         (path_search): Don't put slash after directory if __VMS.
30688         Problem reported by Steven M. Schweda in
30689         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
30690         Simplify code to add slash; no need for a loop.
30691         Do not remove trailing slash from "//".
30692         Do not assume dlen <= INT_MAX.
30694 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30696         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
30697         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
30698         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
30699         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
30701         accept4, dup3, pipe2: port to Cygwin
30702         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
30703         * lib/accept4.c (accept4) [O_BINARY]:
30704         * lib/dup3.c (dup3) [O_BINARY]:
30705         * lib/pipe2.c (pipe2) [O_BINARY]:
30706         Use set_binary_mode, not setmode.
30707         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
30708         * modules/binary-io (Depends-on): Remove module indicator.
30709         These last two bits undo the previous change to pipe2 and binary-io.
30711 2013-07-09  Pádraig Brady  <P@draigBrady.com>
30713         mountlist: add support for deallocating returned list entries
30714         * lib/mountlist.c (free_mount_entry): A new exported function
30715         to deallocate a mount list entry.
30716         (read_file_system_list): Refactor to use the new deallocation function.
30717         Suggested by Anton Ovchinnikov.
30719 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
30721         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
30722         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
30723         * lib/stdalign.in.h (_Alignas, _Alignof):
30724         Port to FreeBSD 9.1, and to C11 and C++11.
30725         (_Alignas): Also support ICC.
30726         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
30727         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
30729 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30731         fnmatch: don't goto over declaration
30732         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
30733         undefined behavior for goto over a declaration.
30734         Problem reported by Charlie Brown in
30735         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
30737         pipe2: decouple from binary-io a bit
30738         This is for Emacs, which needs pipe2 but not binary-io.
30739         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
30740         * modules/binary-io (Depends-on): Add module indicator.
30742 2013-07-03  Eric Blake  <eblake@redhat.com>
30744         mgetgroups: relax license to LGPLv2+
30745         * modules/getugroups (License): Change from GPLv3+.
30746         * modules/mgetgroups (License): Likewise.
30747         * modules/getgroups (License): Change from LGPLv3+.
30749         xalloc-oversized: relax license to LGPLv2+
30750         * modules/xalloc-oversized (License): Change from GPLv3+.
30752         nproc: relax license to LGPLv2+
30753         * modules/nproc (License): Change from LGPLv3+.
30755         bootstrap: honor --no-git
30756         * build-aux/bootstrap: Don't even try to use git when user is
30757         pointing to a static checkout.
30759 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
30761         ignore-value: port to gcc -pedantic
30762         * lib/ignore-value.h (ignore_value):
30763         Port to gcc -pedantic, by using __extension__.
30764         Reindent as per usual gnulib style nowadays.
30765         Simplify GCC version check.
30767 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
30769         extern-inline: port to gcc -std=c89
30770         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30771         Do not use __gnu_inline__ if pedantic and pre-C99.
30773 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
30775         doc: document extern-inline
30776         * doc/extern-inline.texi: New file.
30777         * doc/gnulib.texi (alloca-opt): Include it.
30778         * m4/extern-inline.m4: Move some comments to documentation,
30779         and others closer to what they describe.
30781         doc: chatter less
30782         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
30783         (updated-stamp): Use it.  This causes 'make' to output just
30784         one file name rather than zillions.
30786         fflush, fseeko: port to musl cross-compiles
30787         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
30788         on some implementation that (1) is not known to be buggy,
30789         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
30790         cross-compiled to so we can't easily check for lack of
30791         conformance.  This is for cross-compiling to musl.
30792         Reported by Rich Felker in
30793         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
30794         * m4/fclose.m4 (gl_FUNC_FCLOSE):
30795         * m4/fflush.m4 (gl_FUNC_FFLUSH):
30796         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
30797         Adjust to above change.
30798         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
30799         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
30800         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
30801         known not to work, or unknown.
30803 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30805         msvc-inval: port to mingw-w64
30806         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
30807         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
30808         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
30810 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
30812         getcwd-lgpl: port to Tru64
30813         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
30814         Problem reported by Steven M. Schweda in
30815         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
30817         tests: port large-fd POSIX spawn tests to OS X
30818         Problem reported by Daiki Ueno in
30819         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
30820         * tests/test-posix_spawn_file_actions_addclose.c:
30821         * tests/test-posix_spawn_file_actions_adddup2.c:
30822         * tests/test-posix_spawn_file_actions_addopen.c:
30823         Include <limits.h>, for OPEN_MAX, if available.
30824         (big_fd): New static function.
30825         (main): Use it.
30827 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
30829         tests/nap.h: use an adaptive delay to avoid ctime update issues
30830         The recent change in nap.h (5191133e) decreased the probability of lost
30831         races to about a third, however such problems could still be observed
30832         in virtual machines and openSUSE's OBS.
30833         Before, nap() detected the needed time once empirically and then used
30834         that delay (together with a small correction multiplier) in further
30835         calls.  This problem has been reported and discussed several times,
30836         including guesses about possible kernel issues:
30837         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
30838         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
30839         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
30840         http://bugs.gnu.org/12820
30841         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
30842         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
30843         Now, nap() avoids the race alltogether by verifying on a reference
30844         file whether a timestamp difference has happened.
30845         * tests/nap.h (nap_fd): Define file descriptor variable for the
30846         witness file.
30847         (nap_works): Change return value to bool.  Change passing
30848         the old file's status by value instead of by reference as this function
30849         does no longer update that timestamp; rename the function argument from
30850         st to old_st.  Remove the local variables cdiff and mdiff because that
30851         function now returns true/false instead of the precise delay.
30852         (guess_delay): Remove function.
30853         (clear_tmp_file): Add new function to close and unlink the witness file.
30854         (nap): Instead of re-using the delay which has been calculated during
30855         the first call, avoid the race by actually verifying that a timestamp
30856         difference can be observed on the current file system.  Use an adaptive
30857         approach for the delay to minimize execution time.  Assert that the
30858         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
30859         = 2^31 - 1 = 2.1s.
30860         Use atexit to call clear_tmp_file when the process terminates.
30862 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
30864         sig2str: port to C++
30865         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
30866         Reported by Daniel J Sebald in
30867         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
30869 2013-05-30  Eric Blake  <eblake@redhat.com>
30871         docs: mention cygwin shortcoming in <sys/un.h>
30872         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
30874         vasnprintf: silence mingw compiler warning
30875         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
30877 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30879         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
30880         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
30881         This fixes a porting bug I recently reintroduced in regex, and
30882         some other instances that I discovered while testing the fix.
30883         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
30884         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
30885         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
30886         with an empty argument if this is a pedantic pre-C99 GCC.
30887         * lib/verify.h: Do not use _Static_assert if this is a pedantic
30888         pre-C11 GCC.
30890         regex: adapt to locking regime instead of depending on pthread
30891         Instead of depending on pthread, adapt to whatever thread
30892         modules are in use.  Problem reported by Ludovic Courtès in
30893         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
30894         and by Mats Erik Andersson in
30895         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
30896         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
30897         Support either the 'lock' module, or the 'pthread' module, or
30898         no module.
30899         (lock_lock, lock_unlock): New macros.
30900         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
30901         * modules/lock, modules/pthread (configure.ac): Add module indicator.
30902         * modules/regex (Depends-on): Remove pthread.
30904 2013-05-22  Eric Blake  <eblake@redhat.com>
30906         getgroups: document portability issues
30907         * doc/glibc-functions/initgroups.texi (initgroups): Mention
30908         multithread safety.
30909         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
30910         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
30911         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
30912         getugroups.
30913         * doc/posix-functions/getgroups.texi (getgroups): Mention
30914         multithread safety and mgetgroups.
30916 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
30918         test-lchown, test-chown: also skip test if chown fails with EPERM
30919         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
30920         skip this test, to handle FAT file systems.
30921         * tests/test-chown.h (test_chown): Likewise.
30923 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30925         regex: fix dfa race in multithreaded uses
30926         Problem reported by Ludovic Courtès in
30927         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
30928         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
30929         New macros.  All uses of __libc_lock_define, __libc_lock_init
30930         changed to use the first two of these.
30931         (__libc_lock_lock, __libc_lock_unlock): New macros, for
30932         non-glibc platforms.
30933         (struct re_dfa_t): Define the lock unconditionally.
30934         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
30935         '#ifdef _LIBC"s.
30936         * modules/regex (Depends-on): Add pthread, if we use the
30937         included regex.
30939         * lib/regcomp.c: Do actions that are not needed for glibc,
30940         but may be needed elsewhere.
30941         (regfree, re_compile_internal): Destroy the lock.
30942         (re_compile_internal): Check for lock-initialization failure.
30944         malloca: port to compilers that reject size-zero arrays
30945         This fixes a bug introduced in my previous patch.
30946         * lib/malloca.c (struct preliminary_header): Use an int
30947         rather than a character array of size int; that's simpler.
30948         (struct header): Remove, replacing with ...
30949         (union header): New type.  This avoids the need for declaring a
30950         character array of size zero, which is not allowed on some platforms.
30951         All uses changed.
30953 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
30955         parse-datetime, tests: don't use "string" + int
30956         Recent versions of 'clang' complain about C source code that
30957         uses expressions of the form '"string literal" + integer',
30958         I guess on the theory that it's confusing for readers who are
30959         used to C++.  On those grounds I suppose it's OK to make this
30960         minor style change.
30961         * lib/parse-datetime.y (parse_datetime):
30962         * tests/test-fchdir.c (main):
30963         * tests/test-snprintf-posix.h (test_function):
30964         * tests/test-snprintf.c (main):
30965         * tests/test-vasnprintf-posix.c (test_function):
30966         * tests/test-vasnprintf.c (test_function):
30967         * tests/test-vsnprintf.c (main):
30968         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
30969         Rewrite '"str" + E' to '&"str"[E]'.
30971 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
30973         argmatch: port to C++
30974         * lib/argmatch.h [__cplusplus]: Add extern "C".
30976         argp: typo fix
30977         * lib/argp-help.c: Typo in comment.
30979 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
30981         manywarnings: update for GCC 4.8.0
30982         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
30983         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
30984         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
30985         -Wmissing-noreturn, as they are duplicates of other warnings.
30986         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
30987         was documented to be flaky in earlier versions of GCC.
30989         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
30990         * tests/test-spawn.c (main):
30991         * tests/test-sys_socket.c (main):
30992         * tests/test-sys_wait.c (main):
30993         Don't have a switch value that isn't covered by a case.
30995         getaddrinfo-tests: port --enable-gcc-warnings to clang
30996         * tests/test-getaddrinfo.c (simple):
30997         Avoid casts from looser to stricter-aligned pointers.
30999         thread: port --enable-gcc-warnings to clang
31000         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
31001         Include <signal.h>, to pacify a warning about pthread_sigmask.
31003         stdio: use __REDIRECT for fwrite, fwrite_unlocked
31004         * lib/stdio.in.h (fwrite):
31005         When working around bug 11959, use __REDIRECT rather than '#define
31006         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
31007         fix the -Wunused-value issue with clang, and it works with GCC too.
31008         Problem with targeting reported by Eric Blake in
31009         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
31010         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
31011         debugging the fwrite issue.
31013         stdio: port --enable-gcc-warnings to clang
31014         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
31015         since the GCC workaround for fwrite does not pacify clang.
31017         sig2str: port --enable-gcc-warnings to clang
31018         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
31020         obstack: port --enable-gcc-warnings to clang
31021         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
31022         Avoid casts from looser to stricter-aligned pointers.
31024         memchr2: port --enable-gcc-warnings to clang
31025         * lib/memchr2.c (memchr2):
31026         Avoid casts from looser to stricter-aligned pointers.
31028         mbsstr: port --enable-gcc-warnings to clang
31029         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
31030         Avoid casts from looser to stricter-aligned pointers.
31032         malloca: port --enable-gcc-warnings to clang
31033         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
31034         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
31036         inttostr: port --enable-gcc-warnings to clang
31037         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
31039         warnings: port to clang
31040         Problem reported by Daniel P. Berrange via Eric Blake in
31041         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
31042         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
31043         (gl_WARN_ADD): Use it.
31045 2013-05-11  Jim Meyering  <meyering@fb.com>
31047         quotearg: do not read beyond end of buffer
31048         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
31049         end of an ARG for which no length was specified.  With an N-byte
31050         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
31051         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
31052         via coreutils' misc/sort-debug-keys.sh test and detected by running
31053         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
31054         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
31055         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
31056         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
31057         characters correctly."
31059 2013-05-11  Daiki Ueno  <ueno@gnu.org>
31061         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
31062         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
31063         compilation target is Mac OS X 10.6.
31064         Problem reported by parafin and Andoni Morales in
31065         <http://savannah.gnu.org/bugs/?37844> and
31066         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
31068 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
31070         mkdir-p: remove assumptions about umask and mode
31071         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
31072         umask is 0, or that MODE is a subset of MODE_BITS.
31074 2013-05-10  Eric Blake  <eblake@redhat.com>
31076         maint.mk: catch more abuse of HAVE_DECL in syntax-check
31077         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
31079 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
31081         deps: require Automake >= 1.9.6 in generated Makefile fragments
31083         That is the same minimal version required in the DEPENDENCIES file.
31084         Moreover, the old code generated a requirement of Automake >= 1.5,
31085         and that is an insanely outdated version.
31087         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
31088         * tests/havelib/rpathlx/Makefile.am: Likewise.
31089         * tests/havelib/rpathly/Makefile.am: Likewise.
31090         * tests/havelib/rpathlyx/Makefile.am: Likewise.
31091         * tests/havelib/rpathlz/Makefile.am: Likewise.
31092         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
31093         * tests/havelib/rpathx/Makefile.am: Likewise.
31094         * tests/havelib/rpathy/Makefile.am: Likewise.
31095         * tests/havelib/rpathz/Makefile.am: Likewise.
31097 2013-05-08  Eric Blake  <eblake@redhat.com>
31099         bootstrap: AC_INIT may have more than four parameters
31100         * build-aux/bootstrap (extract_package_name): Correctly extract
31101         non-empty tarname field.  Avoid range in regex.
31102         Based on a report by Sami Kerola <kerolasa@iki.fi>.
31104 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
31106         qacl: port to MS-Windows port of GNU Emacs
31107         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
31108         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
31109         port of GNU Emacs.  Problem reported by Eli Zaretskii in
31110         <http://bugs.gnu.org/14295#14>.
31112 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
31114         acl: include quote.h
31115         * lib/copy-acl.c: Include quote.h.
31116         * lib/set-acl.c: Likewise.
31118 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
31120         fchownat, renameat, unlinkat: update statat dependencies
31121         These modules use statat and lstatat, not fstatat; so depend on
31122         the statat module, which was split out recently from fstatat.
31123         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
31124         * modules/renameat: Likewise.  Also delete fstat.
31125         URL: http://bugs.gentoo.org/468790
31127 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
31129         Assume gnulib is checked out from Git, not CVS
31131         In fact, access to the gnulib repository through CVS has been
31132         disabled, or more precisely, got broken and was never restored; see:
31133         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
31135         Note that support for CVS is not removed completely and unthinkingly
31136         by this change: only support for CVS checkouts of gnulib itself is
31137         removed.  For example, the 'bootstrap' script still cater to .cvsingore
31138         files and CVS directories, for the benefit of those poor gnulib clients
31139         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
31141         * gnulib-tool: Simplify accordingly.
31142         * posix-modules: Likewise.
31143         * MODULES.html.sh: Likewise.
31144         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
31145         repository.
31146         * doc/gnulib-intro.texi: Likewise.
31147         * doc/gnulib-readme.texi: Likewise.
31148         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
31149         sample '.gitignore' file rather than a sample '.cvsignore'.
31150         * NEWS: Update.
31151         * m4/extensions.m4: While at it, remove a comment mistakenly referring
31152         to "CVS Autoconf" rather than "git Autoconf".
31154 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
31156         utimensat-tests, etc.: try to fix some races
31157         Problem reported by Bernhard Voelker in
31158         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
31159         I don't know whether this patch fixes that race condition, but it
31160         fixes *some* race conditions, so it should be a win.
31161         * modules/chown-tests (Depends-on):
31162         * modules/fchownat-tests (Depends-on):
31163         * modules/fdutimensat-tests (Depends-on):
31164         * modules/futimens-tests (Depends-on):
31165         * modules/lchown-tests (Depends-on):
31166         * modules/stat-time-tests (Depends-on):
31167         * modules/utimens-tests (Depends-on):
31168         * modules/utimensat-tests (Depends-on):
31169         Depend on nanosleep, not usleep.
31170         * modules/chown-tests (test_chown_LDADD):
31171         * modules/lchown-tests (test_lchown_LDADD):
31172         * modules/stat-time-tests (test_stat_time_LDADD):
31173         New macro.
31174         * modules/fchownat-tests (test_fchownat_LDADD):
31175         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
31176         * modules/futimens-tests (test_futimens_LDADD):
31177         * modules/utimens-tests (test_utimens_LDADD):
31178         * modules/utimensat-tests (test_utimensat_LDADD):
31179         Add $(LIB_NANOSLEEP).
31180         * modules/stat-time-tests (Files): Add tests/nap.h.
31181         * tests/nap.h: Include <limits.h>, for INT_MAX.
31182         (lt_mtime): Remove.
31183         (diff_timespec): New function.
31184         (get_stat): Rename from get_mtime.  All callers changed.
31185         (nap_works): Determine the needed delay by inspecting the
31186         file system's timestamp jumps; this should be more reliable.
31187         Look at both mtime and ctime, and take the maximum of the two jumps.
31188         (nap_works, guess_delay):
31189         Return a nanosecond count, not a microsecond count.
31190         All callers changed.
31191         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
31192         failure.
31193         (nap): Multiply the guess by 1.125, to accommodate the case where
31194         the file system's clock is a bit slower than nanosleep's clock.
31195         * tests/test-stat-time.c (BASE): New macro.
31196         Include nap.h.
31197         (nap): Remove; nap.h now defines this.  This removes a duplicate
31198         implementation of 'nap'.
31200         utimens, utimensat: work around Solaris UTIME_OMIT bug
31201         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
31202         Linux kernel 2.6.32 does.  Work around it in the same way.
31203         * doc/posix-functions/futimens.texi (futimens):
31204         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
31205         * lib/utimens.c (fdutimens, lutimens):
31206         * lib/utimensat.c (rpl_utimensat): Work around the bug.
31208         gettext: now it's your responsibility to add -I$(top_builddir)/intl
31209         Formerly, it was your responsibility to do this for all Makefile.ams
31210         other than Gnulib's.  Now it's your responsibility to do it for
31211         Gnulib's Makefile.am, too.
31212         * NEWS: Document this.
31213         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
31215         acl: include errno.h to get errno
31216         Reported by Daiki Ueno in
31217         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
31218         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
31220 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
31222         tests: don't assume getdtablesize () <= 10000000
31223         * modules/cloexec-tests:
31224         * modules/dup2-tests:
31225         * modules/dup3-tests:
31226         * modules/nonblocking-tests:
31227         * modules/posix_spawn_file_actions_addclose-tests:
31228         * modules/posix_spawn_file_actions_adddup2-tests:
31229         * modules/posix_spawn_file_actions_addopen-tests:
31230         * modules/unistd-safer-tests:
31231         Depend on the getdtablesize module.
31232         * tests/test-cloexec.c:
31233         * tests/test-dup-safer.c:
31234         * tests/test-dup2.c:
31235         * tests/test-dup3.c:
31236         * tests/test-fcntl.c:
31237         * tests/test-nonblocking.c:
31238         * tests/test-posix_spawn_file_actions_addclose.c:
31239         * tests/test-posix_spawn_file_actions_adddup2.c:
31240         * tests/test-posix_spawn_file_actions_addopen.c:
31241         Don't assume getdtablesize () <= 10000000.
31243 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
31245         extern-inline: work around bug in Sun c99
31246         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31247         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
31249 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
31251         qacl: new module, broken out from the acl module
31252         This is for GNU Emacs, which wants the acl functions but does
31253         not want 'error' invoked when they fail.
31254         * lib/acl-internal.h: Do not include error.h, quote.h.
31255         (ENOSYS, ENOTSUP): Remove; no longer needed.
31256         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
31257         * lib/acl.h: Include <stdbool.h>.
31258         (acl_errno_valid): New function.
31259         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
31260         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
31261         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
31262         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
31263         (ACL_INTERNAL_INLINE): Remove; no longer needed.
31264         * lib/file-has-acl.c (file_has_acl):
31265         * lib/qcopy-acl.c (qcopy_acl):
31266         * lib/qset-acl.c (qset_acl):
31267         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
31268         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
31269         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
31270         lib/file-has-acl.c, m4/acl.m4 to qacl module.
31271         Add lib/set-acl.c.
31272         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
31273         Add qacl.
31274         (configure.ac): Move gl_FUNC_ACL to qacl module.
31275         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
31276         Rename set-mode-acl.c to set-acl.c.
31277         * lib/acl-errno-valid.c: New file.
31278         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
31279         copy_acl function remains in copy-acl.c.
31280         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
31281         (_): Remove; not needed.
31282         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
31283         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
31284         * modules/qacl: New file, moved from the old modules/acl.
31285         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
31286         Remove set-mode-acl.c, copy-acl.c.
31287         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
31289         alignof, intprops, malloca: port better to IBM's C compiler
31290         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
31291         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
31292         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
31294 2013-04-25  Daiki Ueno  <ueno@gnu.org>
31296         wctype-h: fix gettext link error on mingw
31297         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
31298         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
31299         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
31300         rpl_towupper and rpl_towupper.
31302 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
31304         regex-tests, regex: allow glibc re_search behavior
31305         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
31306         re_search input data to make the multi-character collating element
31307         in it clearly visible, and treat re_search return code 0 as valid.
31308         * m4/regex.m4 (gl_REGEX): Likewise.
31310 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31312         stdalign: doc fix
31313         * doc/posix-headers/stdalign.texi (stdalign.h):
31314         Gnulib doesn't support '_Alignof expr'.
31316 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31318         stdalign: port to stricter ISO C11
31319         ISO C11 says that _Alignof's operand must be a parenthesized type.
31320         Problem reported by Eli Zaretskii in
31321         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
31322         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
31323         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
31325 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
31327         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
31328         Problem reported by Marco Atzeri in
31329         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
31330         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
31331         Simply delegate to the system <sys/select.h> in this case too.
31332         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
31333         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
31334         be needed on Solaris either.
31335         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
31336         Simply delegate to the system <sys/time.h> in this case.
31338 2013-03-19  Karl Berry  <karl@gnu.org>
31340         * build-aux/gnupload: check for erroneous (with gnupload) use of
31341         ftp-upload.gnu.org, tweak help.
31343 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31345         copy-file, rpmatch: fix problems found by cppcheck
31346         Reported by Arno Onken in
31347         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
31348         * lib/rpmatch.c (try): Fix memory leak.
31349         * lib/copy-file.c: Include "ignore-value.h".
31350         (qcopy_file_preserving): Ignore chown value.
31351         * modules/copy-file (Depends-on): Add ignore-value.
31353 2013-01-27  Jim Meyering  <jim@meyering.net>
31355         prefix-gnulib-mk: give better diagnostics
31356         * build-aux/prefix-gnulib-mk: Don't just "die".
31357         Give better diagnostics upon failure.
31359 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
31361         putenv: port to Solaris 10
31362         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
31363         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
31364         is not what is wanted here.
31365         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
31366         declaration, not for its existence.
31368 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
31370         mktime: fix configure typo
31371         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
31373 2013-03-12  Eric Blake  <eblake@redhat.com>
31375         regex-tests: skip UTF-8 test on mingw
31376         * modules/regex-tests (Depends-on): Add localcharset.
31377         * tests/test-regex.c (main): Use it to skip test on mingw.
31379 2013-03-11  Eric Blake  <eblake@redhat.com>
31381         tests: make it easier to bypass alarm time in debugger
31382         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
31383         * tests/test-memmem.c (main): Likewise.
31384         * tests/test-passfd.c (main): Likewise.
31385         * tests/test-ptsname.c (main): Likewise.
31386         * tests/test-ptsname_r.c (main): Likewise.
31387         * tests/test-strcasestr.c (main): Likewise.
31388         * tests/test-strstr.c (main): Likewise.
31390         regex: port to mingw's recent addition of undeclared alarm
31391         * doc/posix-functions/alarm.texi (alarm): Document that alarm
31392         exists but still doesn't work in newer mingw.
31393         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
31394         not existence.  Ensure SIGALRM is not trapped.
31395         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
31396         * m4/regex.m4 (gl_REGEX): Likewise.
31397         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
31398         * tests/test-regex.c (main): Use correct probe for alarm.
31400         putenv: avoid compilation warning on mingw
31401         * lib/putenv.c (_unsetenv): Protect variable declaration.
31402         (putenv): Fix indentation.
31404 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
31406         unistd: don't prevent Tru64 Unix from using gnulib strtod.
31407         * lib/unistd.in.h: be careful not to include un-needed system
31408         stdlib.h from here, because that prevents gnulib stdlib.h from
31409         defining rpl_strtod correctly.
31411 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
31413         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
31414         changesets, but for the 'precision 0' test.
31415         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31416         round-to-even, since POSIX says rounding is implementation-defined
31417         and OS X 10.8.2 rounds 1.51 to 1 here.
31419         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
31420         changeset.
31421         * tests/test-vasprintf-posix.c (test_function): Don't insist on
31422         round-to-even, since POSIX says rounding is implementation-defined
31423         and OS X 10.8.2 rounds 1.5 to 1 here.
31425 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
31427         vasnprintf-posix-tests: allow rounding 1.5 to 1
31428         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
31429         round-to-even, since POSIX says rounding is implementation-defined
31430         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
31431         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
31433         bootstrap: port to FreeBSD
31434         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
31435         that treat '--' differently.  Reported by Mats Erik Andersson in
31436         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
31438 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
31440         regex: rename remaining __attribute calls to __attribute__.
31441         2012-02-25 changed definition of __attribute, but left some uses
31442         unchanged, preventing compilation of regex module on most non-gcc
31443         environments.
31444         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
31445         (lookup_collation_sequence_value, build_range_exp)
31446         (build_collating_symbol): Set attributes with newly renamed
31447         __attribute__ decorator.
31448         * lib/regex_internal.c (re_string_peek_byte_case)
31449         (re_node_set_compare, re_node_set_contains): Likewise.
31450         * lib/regexec.c (acquire_init_state_context): Likewise.
31452 2013-03-06  Bruno Haible  <bruno@clisp.org>
31454         execute: Revert last change, but use a different condition.
31455         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
31456         on Windows.
31458 2013-03-05  Eric Blake  <eblake@redhat.com>
31460         execute: drop dead code
31461         * lib/execute.c (nonintr_close, nonintr_open): Delete.
31463 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
31465         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
31466         * m4/non-recursive-gnulib-prefix-hack.m4
31467         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
31468         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
31469         <http://bugs.gnu.org/10305#237>.
31471 2013-03-04  Eric Blake  <eblake@redhat.com>
31473         test-getsockopt: avoid compiler warning
31474         * tests/test-getsockopt.c (includes): Ensure close is declared.
31476 2013-03-02  Bruno Haible  <bruno@clisp.org>
31478         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
31479         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
31481 2013-03-02  Bruno Haible  <bruno@clisp.org>
31483         gettext: Update to version 0.18.2.
31484         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
31485         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
31486                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
31488 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
31490         regex: merge patches from libc
31492         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31493         * lib/regex_internal.h (__attribute__): Rename from __attribute.
31494         All uses changed.
31495         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
31496         (re_string_wchar_at, re_string_elem_size_at):
31497         Mark function as possibly unused.
31499         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
31500         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
31501         elements compare against the byte sequence of it, not its name.
31503 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31505         putenv: port better to native Windows
31506         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31507         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
31508         (_unsetenv): Use _putenv if available.
31509         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
31510         a bit less likely to cause damage.
31511         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
31512         Fix the wrong value with SetEnvironmentVariable.
31513         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
31514         code better.
31516 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31518         regex: ignore old-style-definition warnings
31519         * lib/regex.c: Add pragma to ignore these warnings.
31520         Problem reported for GNU tar by Pavel Raiskup.
31522 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
31524         getcwd: support coreutils better
31525         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
31526         but this might not be correct in coreutils, which disables
31527         the raw decl checks.  Problem reported by Nagendra in
31528         <http://bugs.gnu.org/10305#192>.
31529         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
31530         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
31531         Test the getcwd function, not any macro, since getcwd.c wants the
31532         function.
31533         * m4/getcwd.m4 (gl_FUNC_GETCWD):
31534         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
31535         compile, as might happen if there's a macro but no function.
31537         strtod: support coreutils better
31538         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
31539         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
31540         disables the raw decl checks.  This assumes there is an underlying
31541         strtod, but that's a safe assumption these days.
31542         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
31544         mountlist: port to HP NonStop
31545         Reported by Joachim Schmitz in
31546         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
31547         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
31548         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
31550 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31552         extern-inline: avoid compilation error with HP-UX cc
31553         Reported by Richard Lloyd in
31554         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
31555         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
31556         Suppress extern inline with HP-UX cc.  This should be safe,
31557         though it may hurt performance.  Perhaps someone with some HP-UX
31558         experience can come up with a higher-performance fix.
31560 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
31562         putenv: fix heap corruption with mixed putenv/_putenv
31563         Problem reported by Michael Goffioul in
31564         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
31565         * lib/putenv.c (putenv) [HAVE__PUTENV]:
31566         Rely on _putenv to allocate the new environment.
31567         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
31568         * modules/putenv (configure.ac): Use it.
31570 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
31572         unsetenv etc.: port to Solaris 11 + GNU Emacs
31573         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
31574         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
31575         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
31576         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
31577         idea but is too painful to fix right now), and without this gnulib
31578         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
31579         compiling unsetenv.c on Solaris 11.  Fix the problem for
31580         unsetenv.c, and fix other similar occurrences.
31582 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
31584         secure_getenv: fix C++ declaration typo
31585         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
31586         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
31587         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
31589 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
31591         careadlinkat: stop exporting careadlinkatcwd
31592         Only Emacs used it directly, and Emacs no longer needs it.
31593         * NEWS: Document this simplification.
31594         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
31595         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
31596         for readlink.
31597         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
31598         Don't include stdlib.h; no longer needed.
31599         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
31600         * lib/relocwrapper.c: Adjust comment to match new dependencies.
31601         * modules/areadlink (Depends-on): Add readlink.
31602         (Maintainer): Add self.
31603         * modules/careadlinkat (Depends-on): Remove readlink.
31605         extensions: port better to HP-UX
31606         This is merged from git Autoconf.
31607         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31608         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
31609         so that it's compatible with the value used when compiling.
31611         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
31612         Problem reported by Mats Erik Andersson in
31613         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
31614         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31615         openpty function exists, not merely when we intend to replace it.
31616         This corrects the 2013-01-31 patch, which mistakenly defined
31617         HAVE_OPENPTY even on hosts that lacked it.
31619 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31621         secure_getenv: fix include typo
31622         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
31624         secure_getenv: port better to FreeBSD and Solaris
31625         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
31626         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
31627         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
31628         This works better on BSDish platforms.
31629         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
31630         Test for issetugid if __secure_getenv is missing.
31632 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
31634         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
31635         Some of these changes are merged in from git Autoconf.
31636         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
31637         When deciding whether to define _XOPEN_SOURCE, inspect the
31638         preprocessor macro __hpux instead of the more-heavyweight
31639         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
31640         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
31641         as the key for __EXTENSIONS__.
31643         unistd: avoid namespace pollution on non-glibc systems
31644         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
31645         This avoids namespace pollution on non-glibc systems, by causing
31646         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
31647         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
31648         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
31650 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
31652         tmpdir: use secure_getenv
31653         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
31654         Define to secure_getenv, not getenv.
31655         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
31656         as that's now secure_getenv's job.
31657         * modules/tmpdir (Depends-on): Add secure_getenv.
31659         tempname: use secure_getenv
31660         * lib/tempname.c (__secure_getenv) [!_LIBC]:
31661         Define to secure_getenv, not getenv.
31662         * modules/tempname (Depends-on):
31663         Add secure_getenv.
31665         secure_getenv: new module
31666         * MODULES.html.sh (Extra functions based on ANSI C 89):
31667         Add secure_getenv.
31668         * doc/glibc-functions/secure_getenv.texi: New file.
31669         * doc/gnulib.texi: Include it.
31670         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
31671         New files.
31672         * lib/stdlib.in.h (secure_getenv): New decl.
31673         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
31674         * modules/stdlib (stdlib.h):
31675         Add secure_getenv checks.
31677 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
31679         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
31680         Reported for OS X 10.8.2 by Assaf Gordon in
31681         <http://bugs.gnu.org/13516>.
31682         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
31683         !HAVE_OPENAT && !HAVE_FDOPENDIR.
31684         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
31685         so that they can be kept in sync more easily.  Avoid PATH_MAX
31686         test on the Hurd.  Sync from test-getcwd.c for errno tests after
31687         mkdir or chdir failure.
31688         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
31689         lib/getcwd.c.
31690         (test_abort_bug): Do not test for the deep directory bug unless we
31691         have openat support.  Avoid PATH_MAX test on the Hurd.
31693         regex-tests, regex: fix bug: memset undeclared
31694         * tests/test-regex.c: Don't include regex.h twice.  Include
31695         string.h, to declare memset.  Christensen's report also mentioned
31696         this issue.
31697         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
31698         test-regex.c, to avoid future problems like this.  Remove
31699         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
31700         twice.
31702         regex-tests: fix link errors on older Solaris
31703         These need to link with @LIBINTL@ to get libintl_gettext.
31704         Problem reported by Tom G. Christensen in
31705         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
31706         * modules/regex-tests (test_regex_LDADD): New macro.
31708 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
31710         regex-tests: new module
31711         * modules/regex-tests, tests/test-regex.c: New files.
31713         regex: fix off-by-one error in configure test
31714         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
31716 2013-01-31  Eric Blake  <eblake@redhat.com>
31718         regex: avoid infinite configure test
31719         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
31721 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
31723         openpty: fix bug where HAVE_OPENPTY wasn't defined
31724         See the thread starting at:
31725         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
31726         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
31727         openpty function exists, not merely when we intend to replace it.
31729 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
31731         sys_time: port to Solaris 2.6
31732         There is a circularity problem on Solaris 2.6, where <time.h> includes
31733         <sys/time.h> for struct timespec.  The include nesting is gnulib
31734         <time.h>, system <time.h>, gnulib <sys/time.h>, system
31735         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
31736         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
31737         <sys/siginfo.h>; the last, innermost file needs struct
31738         timestruc_t, which is defined in <sys/time.h>, which has not been
31739         fully parsed.  Problem reported by Tom G. Christensen in
31740         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
31741         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
31742         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
31743         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
31744         uses split double-inclusion guards.
31746 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
31748         regex: test for buffer overrun
31749         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
31750         for the just-fixed regex bug.
31752 2013-01-29  Andreas Schwab  <schwab@suse.de>
31754         regex: fix buffer overrun in regexp matcher [BZ #15078]
31755         * lib/regexec.c (extend_buffers): Add parameter min_len.
31756         (check_matching): Pass minimum needed length.
31757         (clean_state_log_if_needed): Likewise.
31758         (get_subexp): Likewise.
31760 2013-01-28  Pádraig Brady  <P@draigBrady.com>
31762         mountlist: don't consider "devtmpfs" as dummy
31763         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
31764         as there is storage associcated with it.
31766 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
31768         futimens-tests, utimens-tests: Depend on gettext.
31769         This works around a problem introduced in my 2013-01-12 patch,
31770         which added @LIBINTL@ to these modules.
31771         * modules/futimens-tests (Depends-on):
31772         * modules/utimens-tests (Depends-on): Add gettext.
31774 2013-01-26  Eric Blake  <eblake@redhat.com>
31776         test-getpeername: fix typo
31777         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
31779 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
31781         bootstrap: remove the need for a sorted .gitignore file
31782         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
31783         rename to insert_if_absent(), so that we don't need or generate
31784         a sorted .gitignore file.  We do require a .gitignore with no
31785         existing duplicate entries and enforce that.
31786         (sort_patterns): Remove this function as we now use the simpler
31787         technigue of inserting blacklist entries at the top of the file,
31788         assuming gnulib won't be inserting !whitelist entries.
31790 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
31792         readlinkat: don't depend on gl_FUNC_OPENAT
31793         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
31794         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
31795         renameat.m4, symlinkat.m4; but one thing at a time.
31797         statat: new module, split out from fstatat
31798         GNU Emacs needs the POSIX-specified fstatat, but not the
31799         gnulib-specified statat and lstat.  Split the latter two into a
31800         new module 'statat'.
31801         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
31802         * lib/openat.h, lib/statat.c (STATAT_INLINE):
31803         Rename from FSTATAT_INLINE. All uses changed.
31804         * modules/fstatat (Files): Remove lib/statat.c.
31805         (gl_MODULE_INDICATOR([fstatat])): Remove.
31806         (lib_SOURCES): Remove.
31807         (Maintainer): Add self.
31808         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
31809         * tests/test-fstatat.c (BASE): Don't define if already defined.
31810         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
31812 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
31814         tests: don't assume fd 99 is closed
31815         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
31816         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
31817         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
31818         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
31819         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
31820         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
31821         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
31822         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
31823         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
31824         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
31825         * tests/test-fwrite.c, tests/test-getpeername.c:
31826         * tests/test-getsockname.c, tests/test-getsockopt.c:
31827         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
31828         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
31829         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
31830         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
31831         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
31832         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
31833         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
31834         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
31835         * tests/test-unlinkat.c, tests/test-unlockpt.c:
31836         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
31837         Close file descriptor 99, instead of assuming it's already closed.
31839 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
31841         stpncpy: port to OS X 10.8
31842         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
31843         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
31845 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
31847         unistd: port to recent mingw
31848         * lib/unistd.in.h: Remove special invocation convention for mingw,
31849         which breaks for the latest mingw version.  See John W. Eaton in
31850         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
31852         largefile: port better to Mac OS X 10.5
31853         This patch is backported from Autoconf git.
31854         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
31855         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
31856         with ino_t size being different for configuration time versus
31857         build/run time.  Problem reported by PHO in
31858         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
31860 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31862         doc: clarify -Werror
31863         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
31864         clarify that it's intended for developers, not for ordinary builds,
31865         and mention --enable-gcc-warnings as one possible use.
31867 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
31869         stdint: fix build with Android's Bionic fox x86
31870         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
31871         was already included as _SSIZE_T_DEFINED_ might also be defined
31872         in include/machine/_types.h, which is included by stdio.h
31874 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
31876         net_if-tests: port to Solaris 7 + GCC 3.4.6
31877         Problem reported by Tom G. Christensen in
31878         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
31879         * tests/test-net_if.c (ni): Move to next the code that uses it,
31880         so that it's declared only if needed.
31882 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
31884         net_if-tests: port to older Solaris
31885         Problem reported by Tom G. Christensen in
31886         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31887         * modules/net_if-tests (NET_IF_LIB): New substitution.
31888         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
31889         (HAVE_IF_NAMEINDEX): New C macro.
31890         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
31892         system-quote-tests: port to older Solaris
31893         Problem reported by Tom G. Christensen in
31894         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31895         * tests/test-system-quote-child.c (fopen, fread): Undef.
31897         c-xvasprintf etc.: fix link errors on older Solaris
31898         These need to link with @LIBINTL@ to get libintl_gettext.
31899         Problem reported by Tom G. Christensen in
31900         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
31901         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
31902         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
31903         * modules/futimens-tests (test_futimens_LDADD):
31904         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
31906 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
31908         locale: port to Solaris 2.6 and 7 + GNU gettext
31909         * lib/locale.in.h: Just include_next <locale.h> when
31910         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
31911         when combining the localename module with GNU gettext 0.18.2.
31912         Problem reported by Tom G. Christensen in
31913         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
31915 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31917         stdlib: port to Solaris 2.6
31918         Also, the code worked on Solaris 7 through 9 only by accident.
31919         Problem reported by Tom G. Christensen in
31920         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
31921         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
31922         simply include the system stdlib.h.
31923         * lib/getopt.in.h (__need_system_stdlib_h):
31924         * lib/pthread.in.h (__need_system_stdlib_h):
31925         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
31926         Define when including <stdlib.h>, to avoid problems at least for
31927         the pthread case on Solaris 2.6 and 7.  These .h files can get by
31928         with the system stdlib.h.
31930 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31932         doc: update main copyright year
31933         * doc/gnulib.texi: Update copyright date.
31935         doc: improve ISO 8601 discussion
31936         * doc/parse-datetime.texi (Combined date and time of day items):
31937         Specify more carefully what formats are supported and what is
31938         done with excess precision.
31940 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
31942         doc: avoid small caps
31943         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
31944         they're more trouble than they're worth.  Suggested by Karl Berry
31945         in <http://bugs.gnu.org/13360>.
31947         regex: conform to strict C
31948         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
31949         From Aharon Robbins.
31951         gnulib-tool: fix incompatibility with autopoint 0.18.2
31952         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
31953         Problem reported by Tom G. Christensen in
31954         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
31956 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31958         fprintftime: bring back and reword fwrite comment
31959         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
31961         stdio: remove now-unnecessary stdio.c
31962         Since stdio.in.h no longer uses inline functions, we no longer
31963         need to compile the extern versions.
31964         * lib/stdio.c: Remove.
31965         * modules/stdio (Files): Remove lib/stdio.c.
31966         (lib_SOURCES): Remove.
31968         unicodeio: depend on stdio, not ignore-value
31969         * lib/unicodeio.c: Do not include ignore-value.h.
31970         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
31971         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
31973         fprintftime: depend on stdio, not ignore-value
31974         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
31975         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
31976         since the stdio module arranges to silence that warning now.
31977         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
31979 2012-10-04  Simon Josefsson  <simon@josefsson.org>
31981         stdint-tests: Fix expanded-before-required-warning.
31982         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
31984 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
31986         fwrite: silence __wur only for older glibc versions
31987         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
31988         This will help us remove this workaround some time in the far future.
31990 2013-01-03  Eric Blake  <eblake@redhat.com>
31992         fwrite: silence __wur without using inline
31993         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
31994         just gcc, and in a way that avoids inline issues.
31995         * modules/stdio (Depends-on): Drop extern-inline.
31997 2013-01-03  Jim Meyering  <jim@meyering.net>
31999         update-copyright: avoid copyright notice date corruption
32000         Given a sequence of copyright year numbers in which the final
32001         one was a two-digit number that happened to be a substring of
32002         a preceding four-digit year number, we would mistakenly update
32003         the substring (from two- to four-digit) rather than the two-digit
32004         number at the end, which, combined with the addition of the current
32005         4-digit year number would yield two 5-digit year numbers, e.g.,
32006         here, it would convert the first "99" to "1999, 2013" rather than
32007         the final one:
32008           1991, 99
32009           11999, 20131, 1999
32010         * build-aux/update-copyright: Tighten a regexp.
32011         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
32012         Reported by Joseph Myers in
32013         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
32015 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32017         regex: omit needless signed-pointer casts
32018         * lib/regcomp.c (build_charclass, build_charclass_op):
32019         Use char *, not unsigned char *, for class name and extra.
32020         The char values are always nonnegative so there's no need to
32021         insist on unsigned char * here, and using char * removes the need
32022         for casts.  Reported by Aharon Robbins in
32023         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32025         regex: support Gawk, which never uses alloca
32026         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
32027         Do not include in this case.  Gawk doesn't supply a substitute
32028         alloca.h and doesn't need one.
32030         regex: port __libc_lock_define usage to C89
32031         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
32032         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
32033         does not conform to C89, as it has an empty macro argument.
32034         Reported by Aharon Robbins in
32035         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32037 2013-01-01  Eric Blake  <eblake@redhat.com>
32039         maint: update all copyright year number ranges
32040         Run "make update-copyright".
32042         version-etc: bump copyright year reported in --version
32043         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
32045 2012-12-31  Eric Blake  <eblake@redhat.com>
32047         sigprocmask-tests: skip test if pid is unexpectedly large
32048         * tests/test-sigprocmask.c (main): Add range check.
32050         git-version-gen: avoid test -z portability glitch
32051         * build-aux/git-version-gen: Prefer portable test spelling, since
32052         git-version-gen is run on more than just developer machines.
32054 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
32056         git-version-gen: add --fallback option to use if git is not present
32057         * build-aux/git-version-gen: Add support for the new option --fallback,
32058         which comes into play when there is no $tarball_version_file and
32059         git is not working.
32060         (scriptversion): Update.
32062         maint.mk: handle missing git with more grace
32063         * top/maint.mk (no-submodule-changes, public-submodule-commit):
32064         Quietly proceed if git is not present.
32066 2012-12-31  Eric Blake  <eblake@redhat.com>
32068         dup2: work around cygwin bug
32069         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
32070         * lib/dup2.c (rpl_dup2): Work around it.
32071         * doc/posix-functions/dup2.texi (dup2): Document it.
32073 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
32075         regex: remove unnecessary dependency on localcharset.h
32076         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
32077         hasn't been needed for years.
32078         * modules/regex (Depends-on): Remove localcharset.
32080         regex: revert single-byte change
32081         * lib/regexec.c (check_node_accept_bytes): Revert previous change
32082         to this function.  This was alredy fixed in a different way, at
32083         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
32084         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
32085         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
32087         regex: simplify based on Gawk version
32088         * lib/regex_internal.c (re_dfa_add_node): Simplify.
32089         Reported by Aharon Robbins in
32090         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32092 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
32094         regex: check that pattern char is single-byte
32095         Reported by Aharon Robbins in
32096         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32097         * lib/regexec.c (check_node_accept_bytes):
32098         Return 0 if the pattern string has a multibyte character here.
32100         regex: implement rational ranges
32101         Reported by Aharon Robbins in
32102         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32103         * lib/regcomp.c (build_range_exp) [!_LIBC]:
32104         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
32105         Implement rational ranges.
32107         regex: avoid redefining __wctype
32108         Reported by Aharon Robbins in
32109         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32110         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
32111         #undef before defining.
32113         regex: port to hosts where malloc (0) == NULL
32114         Reported by Aharon Robbins in
32115         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32116         * lib/regex_internal.c (re_node_set_alloc):
32117         Don't assume that malloc (0) yields nonnull.
32118         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
32119         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
32120         * modules/regex (Files): Add m4/eealloc.m4.
32122         regex: port to C89
32123         Reported by Aharon Robbins in
32124         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
32125         * lib/regcomp.c (init_word_char): Declaration before statement.
32127         regex: merge glibc changes
32128         Also, copy the license wording from glibc.  This simplifies
32129         merging changes.  gnulib-tool will change the wording to GPL as
32130         appropriate, when importing it to other packages.  The only
32131         glibc change made since the last merge, which needs merging, is:
32132         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
32133         * lib/regex_internal.h (gettext): Remove use of INTUSE.
32135         * users.txt: Add Emacs.
32137         doc: omit mention of version when not needed
32138         * doc/gnulib-intro.texi (Portability and Application Code):
32139         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
32140         Don't mention particular dates or versions when not necessary, so
32141         that the documentation won't go out of date so quickly.
32143         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
32145 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
32147         bootstrap: pass --force to autoreconf.
32148         * build-aux/bootstrap (AUTORECONFFLAGS): New.
32149         Add "--force" so that Automake's ylwrap and other such tools
32150         be updated at each bootstrap invocation.
32151         Use it.
32153 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
32155         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
32156         The earlier patch forgot to update one of the #if conditions, causing
32157         a problem on Debian testing i386 reported by Mats Erik Andersson
32158         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
32159         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
32160         (__argp_fmtstream_puts, argp_fmtstream_puts)
32161         (__argp_fmtstream_write, argp_fmtstream_write)
32162         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
32164         * doc/gnulib-readme.texi: Minor fixups.
32165         (Portability guidelines): Modernize URLs.  Remove some repetition.
32166         (Indent with spaces not TABs): Reword to avoid too-long lines.
32167         Remove some '@ifset standalone' stuff that isn't used.
32169         * doc/gnulib-readme.texi (Portability guidelines):
32170         ctype.h, not ctime.h.
32172         Correct name of POSIX.1-2001.
32173         * doc/posix-functions/fgetc.texi (fgetc):
32174         * doc/posix-functions/fgets.texi (fgets):
32175         * doc/posix-functions/fread.texi (fread):
32176         * doc/posix-functions/fscanf.texi (fscanf):
32177         * doc/posix-functions/getc.texi (getc):
32178         * doc/posix-functions/getchar.texi (getchar):
32179         * doc/posix-functions/scanf.texi (scanf):
32180         POSIX.1-2001, not POSIX-2001.
32182         doc: move README into manual
32183         * README: Move contents to new file doc/gnulib-readme.texi.
32184         Replace with a one-line summary.
32185         * doc/gnulib.texi (Brief Overview): New section,
32186         with old intro preface.  Include gnulib-readme.texi for contents.
32187         (Philosophy): Rename from "Introduction", since this
32188         section no longer introduces the rest.  Write a new preface.
32189         * doc/gnulib-readme.texi: New file, with the old contents of
32190         README texinfo-ized.  This way, the README info appears
32191         in the online and printed manual.
32193 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
32195         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
32196         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
32197         c_vasprintf() prototype.
32199 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
32201         c-vasprintf: Fix "empty declaration" warning reported by GCC.
32202         * lib/c-vasprintf.h: Remove stray semicolon.
32204 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
32206         gettext: avoid obsolete macro AM_PROG_MKDIR_P
32207         It is obsolete and is planned to be removed from Automake 1.14; see
32208         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
32209         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
32210         (installdirs-data, installdirs-data-yes):
32211         Use $(MKDIR_P), not $(mkdir_p).
32212         * m4/intl.m4 (AM_INTL_SUBDIR):
32213         * m4/po.m4 (AM_PO_SUBDIRS):
32214         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
32216 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
32218         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
32219         On this platform, we are not optimizing but we are using
32220         the substitute for extern inlines, so compile as if
32221         C99-style extern inline, or a substitute, is available.
32222         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
32223         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
32224         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
32225         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
32226         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
32227         Declare as ARGP_FS_EI, not as extern.
32228         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
32229         (__option_is_short, _option_is_end, __option_is_end)
32230         [!_LIBC && __USE_EXTERN_INLINES]:
32231         Declare as ARGP_EI, not as extern.
32233 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
32235         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
32236         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
32237         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
32238         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
32239         ...), as the latter is fatal with older Autoconfs.
32240         Problem reported and fix suggested by Eric Blake in thread starting at
32241         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
32243 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
32245         AC_PROG_MKDIR_P: don't workaround if not buggy
32246         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
32247         Define only for Autoconf versions before 2.62.
32248         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
32249         undocumented m4_PACKAGE_VERSION, for consistency with the
32250         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
32251         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
32252         was introduced in 2.62.
32254 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
32256         New 'c-*printf' modules for formatted output in C locale.
32258         New module 'c-vasnprintf'.
32259         * modules/c-vasnprintf: New file.
32260         * lib/c-vasnprintf.c: New file.
32261         * lib/c-vasnprintf.h: New file.
32263         New module 'c-snprintf'.
32264         * modules/c-snprintf: New file.
32265         * modules/c-snprintf-tests: New file.
32266         * lib/c-snprintf.c: New file.
32267         * lib/c-snprintf.h: New file.
32268         * tests/test-c-snprintf.c: New file.
32269         * tests/test-c-snprintf.sh: New file.
32271         New module 'c-vsnprintf'.
32272         * modules/c-vsnprintf: New file.
32273         * modules/c-vsnprintf-tests: New file.
32274         * lib/c-vsnprintf.c: New file.
32275         * lib/c-vsnprintf.h: New file.
32276         * tests/test-c-vsnprintf.c: New file.
32277         * tests/test-c-vsnprintf.sh: New file.
32279         New module 'c-vasprintf'.
32280         * modules/c-vasprintf: New file.
32281         * modules/c-vasprintf-tests: New file.
32282         * lib/c-asprintf.c: New file.
32283         * lib/c-vasprintf.c: New file.
32284         * lib/c-vasprintf.h: New file.
32285         * tests/test-c-vasprintf.c  +: New file.
32286         * tests/test-c-vasprintf.sh: New file.
32288         New module 'c-xvasprintf'.
32289         * modules/c-xvasprintf: New file.
32290         * modules/c-xvasprintf-tests: New file.
32291         * lib/c-xasprintf.c: New file.
32292         * lib/c-xvasprintf.c: New file.
32293         * lib/c-xvasprintf.h: New file.
32294         * tests/test-c-xvasprintf.c: New file.
32295         * tests/test-c-xvasprintf.sh: New file.
32297 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
32299         argp: better 'inline'
32300         Use extern-inline module to declare extern inline functions.
32301         This avoids some bogus warning diagnostics.  Problem discovered
32302         when modifying GNU tar to use the manywarnings module.
32303         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
32304         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
32305         Define based on extern-inline.
32306         * modules/argp (Depends-on): Add extern-inline.
32308 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32310         filemode, sys_stat: Handle MPX files a la AIX.
32311         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
32312         * lib/sys_stat.in.h (S_ISMPX): New macro.
32313         * tests/test-sys_stat.c: Add tests for MPX files.
32315 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32317         x-to-1: honor $PERL
32318         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
32319         a chance to use his preferred version of Perl.  This is typically
32320         required by Darwin users whose default /usr/bin/perl does not have all
32321         the libraries required by help2man, and who need to use their MacPorts
32322         installation of Perl instead.
32324 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32326         gnu-web-doc-update: add all the new files, even in new directories
32327         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
32328         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
32329         Use it.
32330         (main): Don't use cvsutils to get the list of unknown files,
32331         just add all the existing files and directories.
32333 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
32335         gnu-web-doc-update: improve --help
32336         * build-aux/gnu-web-doc-update: Move comments into --help.
32338 2012-12-07  Eric Wong  <normalperson@yhbt.net>
32340         mountlist: recognize more "dummy" file systems
32341         * lib/mountlist.c (ME_DUMMY_0):
32342         Add these dummy FS names to the list:
32343         - "debugfs" virtual filesystem for kernel debugging
32344         - "devpts" PTY slave filesystem
32345         - "devtmpfs" device filesystem on top of tmpfs/ramfs
32346         - "fusectl" control filesystem for FUSE
32347         - "mqueue" enumerates POSIX message queues
32348         - "rpc_pipefs" kernel <-> userspace bridge for NFS
32349         - "sysfs" is for exporting kernel objects
32350         - "devfs" device filesystem for Linux 2.4 and FreeBSD
32352 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
32354         extern-inline: avoid incompatibility with Darwin Libc
32355         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
32356         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
32357         Problem reported by Akim Demaille in
32358         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
32360 2012-12-11  Simon Josefsson  <simon@josefsson.org>
32362         gnupload: Work with GnuPG using gpg-agent (for smartcards).
32363         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
32364         let it handle password prompting.
32366 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
32368         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
32369         * lib/canonicalize.c (canonicalize_filename_mode):
32370         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
32371         fetching the current directory.  Don't overrun the beginning of
32372         rpath if there's no slashes after the MS-Windows drive letter.
32374 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
32376         maint.mk: avoid extra forks
32377         * top/maint.mk (_cfg_mk): The GNU make manual documents that
32378         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
32379         So use that instead of "$(shell test -f FILE && echo FILE)".
32381 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32383         vasnprintf: fix ASCII_ONLY typo
32384         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32385         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32386         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
32387         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
32388         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
32390 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32392         list, oset, xlist, xoset: fix extern inline issue with C99
32393         This was introduced by my recent changes for 'inline'.
32394         Problem reported for gettext by Daiki Ueno in
32395         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
32396         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
32397         (gl_list_nx_create, gl_list_size, gl_list_node_value)
32398         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
32399         (gl_list_previous_node, gl_list_get_at)
32400         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
32401         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
32402         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
32403         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
32404         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
32405         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
32406         (gl_list_iterator_free, gl_sortedlist_search)
32407         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
32408         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
32409         (gl_sortedlist_remove):
32410         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
32411         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
32412         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
32413         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
32414         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
32415         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
32416         (gl_list_add_at, gl_sortedlist_add):
32417         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
32418         Wrap these extern decls inside "#if 0", because they are implemented
32419         as inline functions, and extern inline is not what's wanted here.
32420         It would simplify these .h files to remove the extern decls entirely,
32421         although a downside would be less-clear separation between
32422         specification and implementation.
32424 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
32426         sys_stat: no 'static inline'
32427         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
32428         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
32430         extern-inline: no 'static inline'
32431         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
32432         Do not require AC_C_INLINE.
32433         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
32434         'static inline', for older compilers.
32436         snippet/warn-on-use: no 'static inline'
32437         * build-aux/snippet/warn-on-use.h:
32438         Remove unnecessary 'inline' in comment.
32440         rbtree-list, rbtreehash-list: no 'static inline'
32441         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
32442         * lib/gl_anytree_list2.h (node_at):
32443         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
32444         (gl_oset_first, add_nodes_to_buckets):
32445         Now static, not static inline.
32447         regex: no 'static inline'
32448         * lib/regex_internal.c (calc_state_hash):
32449         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
32450         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
32451         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
32452         Now static, not static inline.
32453         (inline) [__GNUC__ < 3 && _LIBC]:
32454         Remove macro; no longer needed.
32456         xvasprintf: no 'static inline'
32457         * lib/xvasprintf.c (xstrcat):
32458         Now static, not static inline.
32459         * m4/xvasprintf.m4 (gl_XVASPRINTF):
32460         Do not require AC_C_INLINE.
32462         parse-datetime, parse-duration: no 'static inline'
32463         * lib/parse-datetime.y (to_uchar):
32464         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
32465         (scale_n_add):
32466         Now static, not static inline.
32467         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
32468         * modules/parse-duration (configure.ac):
32469         Do not require AC_C_INLINE.
32471         getaddrinfo: no 'static inline'
32472         * lib/getaddrinfo.c (validate_family):
32473         Now static, not static inline.
32474         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
32475         Do not require AC_C_INLINE.
32477         ftruncate, fts, lstat, openat, raise: no 'static inline'
32478         * lib/ftruncate.c (chsize_nothrow):
32479         * lib/fts.c (opendirat, diropen):
32480         * lib/lstat.c (orig_lstat):
32481         * lib/openat.c (orig_openat):
32482         * lib/raise.c (raise_nothrow):
32483         Now static, not static inline.
32484         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
32485         * m4/fts.m4 (gl_FUNC_FTS_CORE):
32486         * m4/lstat.m4 (gl_PREREQ_LSTAT):
32487         * m4/openat.m4 (gl_PREREQ_OPENAT):
32488         * m4/raise.m4 (gl_PREREQ_RAISE):
32489         Do not require AC_C_INLINE.
32491         fflush, stat: no 'static inline'
32492         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
32493         (clear_ungetc_buffer, disable_seek_optimization)
32494         (restore_seek_optimization, update_fpos_cache):
32495         * lib/stat.c (orig_stat):
32496         Now static, not static inline.
32497         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
32498         (update_fpos_cache):
32499         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
32500         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
32501         * m4/stat.m4 (gl_PREREQ_STAT):
32502         Do not require AC_C_INLINE.
32504         error, filevercmp: no 'static inline'
32505         * lib/error.c (is_open, flush_stdout):
32506         * lib/filevercmp.c (order):
32507         Now static, not static inline.
32508         * m4/error.m4 (gl_PREREQ_ERROR):
32509         * modules/filevercmp (configure.ac):
32510         Do not require AC_C_INLINE.
32512         dup, execute, fatal-signal, etc.: no 'static inline'
32513         * lib/dup.c (dup_nothrow):
32514         * lib/execute.c (nonintr_close, nonintr_open):
32515         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
32516         * lib/fopen.c (orig_fopen):
32517         * lib/freadseek.c (freadptrinc):
32518         * lib/freopen.c (orig_freopen):
32519         * lib/fstat.c (orig_fstat, fstat_nothrow):
32520         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
32521         (get_rusage_as_via_iterator):
32522         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
32523         * lib/getdtablesize.c (_setmaxstdio_nothrow):
32524         * lib/isatty.c (_isatty_nothrow):
32525         * lib/open.c (orig_open):
32526         * lib/read.c (read_nothrow):
32527         * lib/sigprocmask.c (signal_nothrow):
32528         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
32529         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
32530         * lib/wait-process.c (unregister_slave_subprocess):
32531         * lib/write.c (write_nothrow):
32532         Now static, not static inline.
32533         * lib/spawn-pipe.c (nonintr_open): Define only if
32534         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
32535         * m4/dup.m4 (gl_PREREQ_DUP):
32536         * m4/execute.m4 (gl_EXECUTE):
32537         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
32538         * m4/fopen.m4 (gl_PREREQ_FOPEN):
32539         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
32540         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
32541         * m4/fstat.m4 (gl_PREREQ_FSTAT):
32542         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
32543         * m4/isatty.m4 (gl_PREREQ_ISATTY):
32544         * m4/open.m4 (gl_PREREQ_OPEN):
32545         * m4/read.m4 (gl_PREREQ_READ):
32546         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
32547         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
32548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
32549         * m4/wait-process.m4 (gl_WAIT_PROCESS):
32550         * m4/write.m4 (gl_PREREQ_WRITE):
32551         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
32552         Do not require AC_C_INLINE.
32554         c-strtod, memcoll, readutmp: no 'static inline'
32555         * lib/c-strtod.c (c_locale):
32556         * lib/memcoll.c (strcoll_loop):
32557         * lib/readutmp.c (desirable_utmp_entry):
32558         Now static, not static inline.
32559         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
32560         * m4/memcoll.m4 (gl_MEMCOLL):
32561         * m4/readutmp.m4 (gl_READUTMP):
32562         Do not require AC_C_INLINE.
32564         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
32565         * lib/arctwo.c (to_uchar):
32566         * lib/md4.c (set_uint32):
32567         * lib/md5.c (set_uint32):
32568         * lib/sha1.c (set_uint32):
32569         * lib/sha256.c (set_uint32):
32570         * lib/sha512.c (set_uint64):
32571         Now static, not static inline.  This is a bit simpler, and doesn't
32572         affect performance with GCC and default optimization.
32573         * m4/arctwo.m4 (gl_ARCTWO):
32574         * m4/md4.m4 (gl_MD4):
32575         * m4/md5.m4 (gl_MD5):
32576         * m4/sha1.m4 (gl_SHA1):
32577         * m4/sha256.m4 (gl_SHA256):
32578         * m4/sha512.m4 (gl_SHA512):
32579         Do not require AC_C_INLINE.
32581         cond, lock, thread: better 'inline'
32582         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
32583         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
32584         New macros.  Use them instead of static inline, for header functions.
32585         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
32586         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32587         * lib/glthread/lock.c (gl_waitqueue_init)
32588         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
32589         * lib/glthread/thread.c (get_current_thread_handle):
32590         Change 'static inline' to 'inline'.
32591         * lib/glthread/cond.h, lib/glthread/thread.h:
32592         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32593         * m4/cond.m4 (gl_COND):
32594         * m4/lock.m4 (gl_PREREQ_LOCK):
32595         * m4/thread.m4 (gl_THREAD):
32596         Do not require AC_C_INLINE.
32597         * modules/cond, modules/thread (Depends-on): Add extern-inline.
32599         chdir-long, cycle-check, savewd: better 'inline'
32600         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
32601         (find_non_slash):
32602         * lib/cycle-check.c (is_zero_or_power_of_two):
32603         * lib/savewd.c (savewd_delegating):
32604         Change 'static inline' to 'inline'.
32605         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
32606         Replace all remaining uses of 'static inline' with it.
32607         * lib/savewd.h:
32608         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32609         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
32610         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
32611         * m4/savewd.m4 (gl_SAVEWD):
32612         Do not require AC_C_INLINE.
32613         * modules/savewd (Depends-on): Add extern-inline.
32615         base32, base64: no need for 'inline'
32616         * lib/base32.c (to_uchar, get_8, decode_8):
32617         * lib/base64.c (to_uchar, get_4, decode_4):
32618         Change 'static inline' to 'inline'.
32619         * m4/base32.m4 (gl_PREREQ_BASE32):
32620         * m4/base64.m4 (gl_PREREQ_BASE64):
32621         Do not require AC_C_INLINE.
32623         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
32624         * lib/gl_array_oset.c (gl_array_nx_add_at):
32625         (gl_array_remove_at):
32626         * lib/gl_linkedhash_list.c (hash_resize_after_add)
32627         (add_to_bucket, remove_from_bucket):
32628         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
32629         Change 'static inline' to 'static', as it's simpler to omit
32630         'inline' unless there's a significant performance advantage.
32632         list, oset, xlist, xoset, xsublist: simplify via extern inline
32633         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
32634         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
32635         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
32636         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
32637         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
32638         New macro.  Replace all uses of 'static inline' with it.
32639         [HAVE_INLINE]: Implement functions as *_INLINE functions,
32640         instead of as macros FOO that are defined to static inline
32641         functions FOO_inline.
32642         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
32643         * lib/gl_xsublist.c:
32644         Reimplement from scratch, by defining the corresponding *_INLINE
32645         macro and including the corresponding .h file.  This is simpler.
32646         * modules/list, modules/oset, modules/xlist, modules/xoset:
32647         (Files): Remove m4/gl_list.m4.
32648         (configure.ac): Remove gl_LIST.
32649         * m4/gl_list.m4: Remove.
32650         * modules/list, modules/oset, modules/xlist, modules/xoset:
32651         * modules/xsublist:
32652         (Depends-on): Depend on extern-inline, not inline.
32654         xalloc: better 'inline'
32655         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
32656         New macro.  Replace all uses of 'static inline' with it.
32657         (static_inline): Remove.
32658         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32659         Let 'extern inline' do the work automatically, instead of doing
32660         it by hand.
32661         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
32662         Remove.  All uses removed.
32663         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
32665         gethrxtime: better 'inline'
32666         * lib/xtime.c: New file.
32667         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
32668         * lib/xtime.h (XTIME_INCLUDE):
32669         New macros.  Replace all uses of 'static inline' with them.
32670         * lib/gethrxtime.c (gethrxtime): Define only if
32671         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
32672         this source file is now always compiled, because of the extern inline.
32673         * lib/gethrxtime.h, lib/xtime.h:
32674         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32675         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
32676         if gethrtime works, as they're not needed in that case.
32677         (gl_XTIME): Do not require AC_C_INLINE.
32678         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
32679         compiled now.  Move the check into gl_GETHRXTIME.
32680         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
32681         (Depends-on): Add extern-inline.
32682         (configure.ac): gethrxtime is always compiled now.
32683         (lib_SOURCES): Add gethrxtime.c.
32685         wctype-h: better 'inline'
32686         * lib/wctype-h.c: New file.
32687         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
32688         New macro.  Replace all uses of 'static inline' with it.
32689         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32690         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
32691         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
32692         (Depends-on): Add extern-inline.
32694         unistd: better 'inline'
32695         * lib/unistd.c: New file.
32696         * lib/unistd.in.h (_GL_UNISTD_INLINE):
32697         New macro.  Replace all uses of 'static inline' with it.
32698         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32699         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
32700         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
32701         (Depends-on): Add extern-inline.
32703         sys_socket: better 'inline'
32704         * lib/sys_socket.c: New file.
32705         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
32706         New macro.  Replace all uses of 'static inline' with it.
32707         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32708         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
32709         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
32710         (Depends-on): Add extern-inline.
32712         stdio: better 'inline'
32713         * lib/stdio.c: New file.
32714         * lib/stdio.in.h (_GL_STDIO_INLINE):
32715         New macro.  Replace all uses of 'static inline' with it.
32716         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32717         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
32718         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
32719         (Depends-on): Add extern-inline.
32721         sigaction: better 'inline'
32722         * lib/sig-handler.c: New file.
32723         * lib/sig-handler.h (SIG_HANDLER_INLINE):
32724         New macro.  Replace all uses of 'static inline' with it.
32725         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32726         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
32727         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
32728         (Depends-on): Add extern-inline.
32730         selinux-h: better 'inline'
32731         * lib/se-context.c, lib/se-selinux.c: New files.
32732         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
32733         * lib/se-context.in.h (SE_CONTEXT_INLINE):
32734         New macro.  Replace all uses of 'static inline' with it.
32735         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32736         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
32737         New macro.  Replace all uses of 'static inline' with it.
32738         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32739         * modules/selinux-h (Files, lib_SOURCES):
32740         Add lib/se-context.c, lib/se-selinux.c.
32741         (Depends-on): Add extern-inline.
32742         (configure.ac): Do not require AC_C_INLINE.
32744         pthread: better 'inline'
32745         * lib/pthread.c: New file.
32746         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
32747         New macro.  Replace all uses of 'static inline' with it.
32748         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32749         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32750         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
32751         * modules/pthread (Files): Add lib/pthread.c.
32752         (Depends-on): Add extern-inline.
32754         math: better 'inline'
32755         * lib/math.c: New file.
32756         * lib/math.in.h (_GL_MATH_INLINE):
32757         New macro.  Replace all uses of 'static inline' with it.
32758         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32759         * m4/math_h.m4 (gl_MATH_H):
32760         Do not require AC_C_INLINE.
32761         * modules/math (Files, lib_SOURCES):
32762         Add lib/math.c.
32763         (Depends-on): Add extern-inline.
32765         count-one-bits: better 'inline'
32766         * lib/count-one-bits.c: New file.
32767         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
32768         New macro.  Replace all uses of 'static inline' with it.
32769         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32770         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
32771         Do not require AC_C_INLINE.
32772         * modules/count-one-bits (Files, lib_SOURCES):
32773         Add lib/count-one-bits.c.
32774         (Depends-on): Add extern-inline.
32776         count-leading-zeros: better 'inline'
32777         * lib/count-leading-zeros.c: New file.
32778         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
32779         New macro.  Replace all uses of 'static inline' with it.
32780         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32781         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
32782         Do not require AC_C_INLINE.
32783         * modules/count-leading-zeros (Files, lib_SOURCES):
32784         Add lib/count-leading-zeros.c.
32785         (Depends-on): Add extern-inline.
32787         bitrotate: better 'inline'
32788         * lib/bitrotate.c: New file.
32789         * lib/bitrotate.h (BITROTATE_INLINE):
32790         New macros.
32791         Replace all uses of 'static inline' with them.
32792         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
32793         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
32794         (Depends-on): Add extern-inline.
32795         (configure.ac): Do not require AC_C_INLINE.
32797 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
32799         maint.mk: avoid gratuitous failure
32800         Reported by Stefano Lattarini in
32801         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
32802         * top/maint.mk (public-submodule-commit): Quote more safely.
32804 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
32806         canonicalize, canonicalize-lgpl: support MS-Windows file names
32807         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
32808         for test cases, which it'd be nice to add at some point.
32809         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
32810         * lib/canonicalize.c (canonicalize_filename_mode):
32811         * lib/canonicalize-lgpl.c (__realpath):
32812         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
32813         slash is at the beginning of the file name.  Use ISSLASH, instead
32814         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
32815         the first character with '/'.  Test for
32816         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
32817         with a drive letter.
32818         * lib/canonicalize.c (SLASHES): New macro.
32819         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
32821 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
32823         fts: introduce FTS_VERBATIM
32824         * lib/fts_.h (FTS_VERBATIM): New bit flag.
32825         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
32826         * lib/fts.c (fts_open): Honor it.
32828 2012-11-09  Pádraig Brady  <P@draigBrady.com>
32830         getlogin-tests: allow errno == ENXIO
32831         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32832         with errno == ENXIO (No controlling tty).
32833         getlogin_r-tests: Likewise. Also allow errno == ENOENT
32834         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
32835         with errno == ENOENT.  This was reported to happen in various
32836         situations on GNU/Linux.
32838 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32840         getlogin-tests: allow errno == ENOENT
32841         * tests/test-getlogin.c (main): Skip tests if getlogin fails
32842         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
32843         when running a test in an Emacs shell buffer.
32845 2012-11-08  Jim Meyering  <jim@meyering.net>
32847         tests/nap.h: avoid warning about unused variable
32848         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
32850         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
32851         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
32852         white space before each of the special-cased file names, to avoid
32853         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
32854         in http://bugs.gnu.org/12830.
32856 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32858         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
32859         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
32860         fails with errno == EBADF when fd is opened with O_PATH.
32861         Reported by Jim Meyering in
32862         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
32863         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32864         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
32866 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32868         test-utimens: speed up by taking shorter naps
32869         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
32870         New functions.
32871         (nap): Use them, to do a better job of guessing the delay.
32872         On Fedora 17 with ext4 atop md atop hard disks, this made
32873         test-utimens run 10x faster, because the test napped for
32874         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
32875         <http://bugs.gnu.org/12820#11>.
32877 2012-11-07  Jim Meyering  <jim@meyering.net>
32879         mountlist.c: fix a compilation failure
32880         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
32881         I introduced while transforming commit v0.0-7683-g613bcb6
32883 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32885         errno: port to LynxOS 178 2.2.2
32886         Problem reported by Joel Brobecker in
32887         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
32888         * doc/posix-headers/errno.texi (errno.h): Document this.
32889         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
32890         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
32891         Supply a string for EILSEQ.
32892         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
32894 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32896         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
32897         Linux kernel 2.6.39 introduced O_PATH (see
32898         <http://lwn.net/Articles/433854/>) and this is a better fallback
32899         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
32900         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
32901         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
32902         * lib/fcntl.in.h (O_ACCMODE):
32903         * tests/test-fcntl-h.c (main):
32904         Do not reject O_ACCMODE merely because it has more than the
32905         minimal number of bits, as POSIX allows extensions here.
32907 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
32909         mountlist: do not classify a bind-mounted dir entry as "dummy"
32910         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
32911         the "none"-testing clause.
32912         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
32913         exception for bind-mounted directories.
32915 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
32917         quote: provide a means to escape strings with nul characters
32918         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
32919         (quote, quote_n): Rename formal arguments for consistency with
32920         quotearg.
32922 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
32924         test-raise: don't assume 199 is an invalid signal
32925         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
32927         sh-quote-tests: port to Solaris 9
32928         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
32929         Problem reported by Dagobert Michelsen in
32930         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
32932 2012-10-28  Jim Meyering  <jim@meyering.net>
32934         maint.mk: rename a new configurable variable
32935         * top/maint.mk (_gl_translatable_string_re): Rename from
32936         translation-markers: _gl_ prefix to insulate from user Makefile code,
32937         and the _re suffix to inform that it's a regular expression.
32939 2012-10-26  Eric Blake  <eblake@redhat.com>
32941         maint.mk: let packages tweak sc_po_check pattern
32942         * top/maint.mk (sc_po_check): Add translation-markers, to allow
32943         finding files with other translation markers.
32945 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
32947         euidaccess: speed up 'configure' on GNU hosts
32948         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
32949         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
32950         it's needed only in this case.  Use AC_CHECK_DECLS, not
32951         AC_CHECK_DECLS_ONCE.
32952         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
32953         or AC_REQUIRE for AC_FUNC_GETGROUPS.
32955         * lib/regexec.c (re_search_internal): Fix grammar in comment.
32957 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32959         fchmodat, fchownat, fstatat: port to non-inlining compilers
32960         Problem reported for FreeBSD 9 by Jim Meyering in
32961         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
32962         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
32963         New files, which define FCHMODAT_INLINE etc.
32964         * lib/fchmodat.c (FCHMODAT_INLINE):
32965         * lib/fchownat.c (FCHOWNAT_INLINE):
32966         * lib/fstatat.c (FSTATAT_INLINE):
32967         Remove, as chmodat.c etc. now do this.
32968         * modules/fchmodat (Files): Add lib/chmodat.c.
32969         * modules/fchownat (Files): Add lib/chownat.c.
32970         * modules/fstatat (Files): Add lib/statat.c.
32972 2012-10-15  Jim Meyering  <jim@meyering.net>
32974         fchmodat.c, fchownat.c: compile-impeding typos
32975         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
32976         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
32977         Introduced in commit v0.0-7636-gd202279.
32979 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
32981         fcntl-h: support GNU flags like O_IGNORE_CTTY
32982         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
32983         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
32984         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
32985         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
32986         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
32987         Define to 0 if not already defined.
32988         * tests/test-fcntl-h.c: Test these new flags.
32990 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
32992         faccessat, etc.: support AT_FDCWD-only use
32993         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
32994         this function only if its first argument is AT_FDCWD.
32995         Emacs wants faccessat for AT_EACCESS but not for any first-arg
32996         values other than AT_FDCWD, so it doesn't want all the openat
32997         machinery with fchdir etc.
32998         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
32999         * modules/fstatat, modules/mkdirat, modules/openat (Files):
33000         * modules/unlinkat (Files):
33001         Remove lib/openat-priv.h, as at-internal supplies this file.
33002         Removing this file here allows us to support programs like Emacs
33003         that avoid at-internal.
33005         faccessat: speed up 'configure' on mainstream hosts
33006         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
33007         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
33008         since it's only on unusual platforms that we need to check for
33009         'access', and it's better not to slow 'configure' down on all
33010         platforms.
33012         faccessat: port to Solaris 10
33013         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
33014         Needed on Solaris 10, which doesn't have AT_EACCESS,
33015         so we need the Gnulib fcntl.h, which defines it.
33017 2012-10-14  Pádraig Brady  <P@draigBrady.com>
33018         canonicalize: fix C89 compilation
33019         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
33020         declarations so C89 is supported.  Also remove the comment
33021         referencing memorty allocation as the suggested feature could
33022         not be implemented as suggested.
33023         Reported by Michael Goffioul.
33025 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33027         group-member: omit unnecessary dependencies
33028         This is for Emacs, which has its own allocator and where we
33029         don't want to use xalloc.
33030         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
33031         since we no longer use xmalloc.  Do not include stdbool.h, since
33032         the changes below happen to remove the only use of bool.
33033         (GROUPBUF_SIZE): New constant.
33034         (struct group_info): Remove n_groups member.  Add groupbuf member.
33035         This lets us get the groups without using malloc, usually.
33036         (free_group_info, get_group_info): Adjust to this.
33037         (get_group_info): Return the number of groups found, or -1 on error.
33038         Use plain malloc not xmalloc, and treat its failure as if there
33039         are no groups, as the user already loses in case of error.
33040         (group_member): Simplify, based on changes to get_group_info.
33041         * modules/group-member (Depends-on): Remove dependencies on
33042         xalloc and stdbool.  Add dependency on xalloc-oversized.
33044 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
33046         gethrxtime: port to C++
33047         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
33049 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
33051         ptsname: fix macro-name typo
33052         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
33054 2012-10-03  Simon Josefsson  <simon@josefsson.org>
33056         inttostr: Relax license.
33057         * modules/inttostr (License): Change from LGPL to LGPLv2+.
33059 2012-10-03  Eric Blake  <eblake@redhat.com>
33061         ptsname_r: support ptys returned by FreeBSD posix_openpt
33062         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
33063         lives in /dev/pts/.
33065 2012-10-02  Eric Blake  <eblake@redhat.com>
33067         pselect: reject invalid file descriptors
33068         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
33069         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
33070         * modules/pselect (Depends-on): Add dup2.
33071         * doc/posix-functions/pselect.texi (pselect): Document this.
33073         select: reject invalid file descriptors
33074         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
33075         * lib/select.c (rpl_select) [!win32]: Work around it.
33076         * modules/select (Depends-on): Add dup2.
33077         * doc/posix-functions/select.texi (select): Document this.
33079         select: enhance test
33080         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
33081         New functions.
33082         (test_function): Enhance test.
33083         (do_select_bad_fd): Avoid any stale errno values.
33085         ptsname: reject invalid file descriptors
33086         http://www.austingroupbugs.net/view.php?id=503
33087         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
33088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
33089         * modules/stdlib (Makefile.am): Replace witness.
33090         * lib/stdlib.in.h (ptsname): Allow for replacement.
33091         * modules/ptsname (configure.ac): Trigger replacement.
33092         * doc/posix-functions/ptsname.texi (ptsname): Document this.
33094 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
33096         hash-pjw-bare: new module
33097         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
33098         * lib/hash-pjw-bare.h: Likewise.
33099         * modules/hash-pjw-bare: New file.
33100         * MODULES.html.sh (Misc): Add it.
33102 2012-10-02  Eric Blake  <eblake@redhat.com>
33104         manywarnings: cater to more gcc infelicities
33105         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
33106         -Wuninitialized without -O.
33108 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
33110         select, poll tests: Make setsockopt invocation effective.
33111         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
33112         the bind() call.
33113         * tests/test-select.h (open_server_socket): Likewise.
33115 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
33117         sockets, sys_stat: restore AC_C_INLINE
33118         This undoes the 2012-09-22 patch.
33119         * m4/sockets.m4 (gl_SOCKETS):
33120         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33121         Restore AC_C_INLINE, since MSVC requires __inline or _inline
33122         and does not support plain 'inline'.  Reported by Bruno Haible in
33123         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
33125 2012-09-30  Bruno Haible  <bruno@clisp.org>
33127         localeconv tests: Avoid test failure on OpenIndiana.
33128         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
33129         skip the 'grouping' and 'mon_grouping' tests.
33130         Reported by Jim Meyering.
33132 2012-09-30  Bruno Haible  <bruno@clisp.org>
33134         havelib: Follow libtool developments.
33135         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
33136         Suggested by Simon Josefsson.
33138 2012-09-29  Jim Meyering  <meyering@redhat.com>
33140         fstatat.c: fix a compile-impeding typo
33141         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
33142         Introduced in commit v0.0-7636-gd202279.
33143         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
33145 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
33147         extern-inline: provide a -Wundef safe config.h
33148         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
33149         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
33150         to produce a -Wundef warning free config.h.
33152 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
33154         hash-pjw: relax license to LGPLv2+
33155         * modules/hash-pjw (License): Relax, with consent of author.
33157 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33159         maint.mk: fix strict vs. lazy variable issues with RELEASE
33160         * top/maint.mk (_equal): New function.
33161         (member_check): Strip the result to avoid spurious spaces.
33162         (url_dir_list): Do not use ifeq, which is strict, as it will
33163         require RELEASE_TYPE to be defined.
33164         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
33165         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
33166         (announcement_Cc_alpha,announcement_mail_headers_alpha)
33167         (announcement_Cc_beta,announcement_mail_headers_beta)
33168         (announcement_Cc_stable,announcement_mail_headers_stable): these.
33169         (release): Do not depend on $(release-type), as it forces its
33170         evaluation.  Bounce to it.
33172 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
33174         maint.mk: formatting changes
33175         * top/maint.mk: Indent bodies of if's.
33177 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
33179         maint.mk: factor the validation of RELEASE_TYPE
33180         With help from Jim Meyering.
33181         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
33182         * top/maint.mk (_empty, _sp): Move their definition earlier.
33183         (member-check, release-type): New.
33184         Use the latter instead of $(RELEASE_TYPE).
33185         Remove now useless local checks.
33187 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33189         maint.mk: provide "make upload" to ease uploading
33190         See
33191         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
33192         Do not depend simply on the current $(VERSION), as there may have been
33193         new commits since the tarball generation.  Rather, rely on $(RELEASE),
33194         as "make release-commit" already does.
33196         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
33197         "make TYPE".
33199         * top/maint.mk (upload_command, upload, release): New.
33200         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
33201         (VERSION): first word of $(RELEASE) is always right.
33202         (emit_upload_commands): Adjust.
33203         * top/README-release: Update.
33205 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
33207         maint.mk: silent rules
33208         With help from Stefano Lattarini.
33209         * top/maint.mk (writable-files): Use $(AM_V_GEN).
33210         (announcement): Use $(AM_V_at).
33212 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
33214         localename: port gl_locale_name_thread_unsafe to FreeBSD
33215         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
33216         and use the simpler FreeBSD implementation on Mac OS X as well.
33217         Original idea suggested by Ed Maste in
33218         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
33220 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33222         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
33223         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
33224         * lib/mbuiter.c, lib/xsize.c: New files.
33225         * lib/binary-io.h (BINARY_IO_INLINE):
33226         * lib/eealloc.h (EEALLOC_INLINE):
33227         * lib/mbfile.h (MBFILE_INLINE):
33228         * lib/mbiter.h (MBITER_INLINE):
33229         * lib/mbuiter.h (MBUITER_INLINE):
33230         * lib/xsize.h (XSIZE_INLINE):
33231         New macros.
33232         Replace all uses of 'static inline' with them.
33233         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33234         * m4/eealloc.m4 (gl_EEALLOC):
33235         * m4/mbfile.m4 (gl_MBFILE):
33236         * m4/mbiter.m4 (gl_MBITER):
33237         * m4/xsize.m4 (gl_XSIZE):
33238         Do not require AC_C_INLINE.
33239         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
33240         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
33241         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
33242         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
33243         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
33244         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
33245         * modules/binary-io, modules/eealloc, modules/mbfile:
33246         * modules/mbiter, modules/mbuiter:
33247         (Depends-on): Add extern-inline.
33249         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
33250         * lib/pipe-filter-aux.c: New file.
33251         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
33252         Replace all uses of 'static inline' with it.
33253         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33254         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
33255         (filter_retcode): No real need for inline here.
33256         * modules/pipe-filter-gi, modules/pipe-filter-ii:
33257         (Files): Add lib/pipe-filter-aux.c.
33258         (Depends-on): Add extern-inline.
33259         (configure.ac): Do not require AC_C_INLINE.
33260         (lib_SOURCES): Add pipe-filter-aux.c.
33262         fdutimensat: omit unnecessary AC_C_INLINE
33263         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
33265         fchmodat, fchownat, fstatat: use extern-inline
33266         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
33267         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
33268         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
33269         New macros.
33270         * lib/openat.h:
33271         Replace all uses of 'static inline' with them.
33272         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33273         * modules/fchmodat, modules/fchownat, modules/fstatat:
33274         * modules/openat-h:
33275         (Depends-on):
33276         Add extern-inline.
33277         (configure.ac): Remove AC_C_INLINE.
33279         acl, mbchar, priv-set: use extern-inline
33280         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
33281         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
33282         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
33283         New macros.
33284         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
33285         Replace all uses of 'static inline' with it.
33286         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33287         * m4/acl.m4 (gl_FUNC_ACL):
33288         * m4/mbchar.m4 (gl_MBCHAR):
33289         * m4/priv-set.m4 (gl_PRIV_SET):
33290         Remove AC_C_INLINE, since 'inline' is no longer used directly.
33291         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
33292         Add extern-inline.
33294         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
33295         * m4/sockets.m4 (gl_SOCKETS):
33296         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
33297         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
33298         environments where it's already guaranteed to work, so we needn't
33299         check for it at 'configure'-time.
33301         tls-tests: omit unnecessary 'inline'
33302         * tests/test-tls.c (perhaps_yield): No longer inline.
33303         Simplicity and portability trump efficiency in test cases.
33305         utimens-tests: avoid unnecessary 'inline'
33306         * modules/fdutimensat-tests (configure.ac):
33307         * modules/futimens-tests (configure.ac):
33308         * modules/utimens-tests (configure.ac):
33309         * modules/utimensat-tests (configure.ac):
33310         Remove AC_C_INLINE.
33311         * tests/test-utimens-common.h (ctime_compare):
33312         No longer inline.  Simplicity and portability trump efficiency here.
33314         misc: don't limit commentary to inline functions
33315         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
33316         * lib/xalloc-oversized.h, lib/xsize.h:
33317         Contrast macros to functions in general, not just to inline functions,
33318         when the commentary does not apply only to inline functions.
33320 2012-09-20  Jim Meyering  <meyering@redhat.com>
33322         non-recursive-gnulib-prefix-hack: new module
33323         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
33324         the file that originated in Bison.
33325         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
33326         largely copied from a snippet that resided in bison's configure.ac.
33327         * modules/non-recursive-gnulib-prefix-hack: New file.
33328         * MODULES.html.sh (Support for maintaining and releasing projects):
33329         Add it.
33331 2012-09-18  Jim Meyering  <meyering@redhat.com>
33333         maint.mk: generalize _gl_tight_scope for non-recursive make
33334         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
33335         that *.h would describe additional .h files in the directory
33336         specified by $(_gl_TS_dir).  I.e., add this...
33337         (_gl_TS_other_headers): New variable.
33339         maint.mk: exempt trailing blanks found in "binary" files
33340         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
33341         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
33342         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33344 2012-09-17  Jim Meyering  <meyering@redhat.com>
33346         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
33347         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
33348         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
33349         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33351 2012-09-17  Jim Meyering  <meyering@redhat.com>
33353         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
33354         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
33355         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
33356         It is not in the same category as "exit (0)" or "exit (1)", and
33357         besides, I know of no symbolic name for that 77.  Reported by
33358         Richard W.M. Jones in
33359         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33361 2012-09-17  Jim Meyering  <meyering@redhat.com>
33363         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
33364         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
33365         all uses of #define, not just those that start in column 1.
33366         Richard W.M. Jones reported a false positive in
33367         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
33369 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
33371         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
33372         * lib/localcharset.c (locale_charset) [DARWIN7]:
33373         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
33374         as these two values are incompatible.  Problem reported by Max Horn.
33375         For more discussion, please see
33376         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
33378         doc: document sticky-EOF issue
33379         * doc/posix-functions/fgetc.texi (fgetc):
33380         * doc/posix-functions/fgets.texi (fgets):
33381         * doc/posix-functions/fread.texi (fread):
33382         * doc/posix-functions/fscanf.texi (fscanf):
33383         * doc/posix-functions/getc.texi (getc):
33384         * doc/posix-functions/getchar.texi (getchar):
33385         * doc/posix-functions/scanf.texi (scanf):
33386         Mention that glibc and default Solaris do not conform to
33387         C99 and POSIX-2001 or later, with respect to how getchar
33388         etc. behave when feof reports nonzero.
33390 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33392         poll: fix poll(0, NULL, msec)
33393         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
33394         but nfd is 0.  In that case poll should behave like select.
33396 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
33397             Paolo Bonzini  <bonzini@gnu.org>
33399         poll: fix for systems that can't recv() on a non-socket
33400         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
33401         is readable.  In this case POLLHUP will not be supported.
33402         * doc/posix-functions/poll.texi: Document this.
33404 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
33406         poll/select: document portability problems not fixed by Gnulib.
33407         * doc/posix-functions/poll.texi: poll does not work well on
33408         pipes under Windows.  It has the same limitations as select on
33409         BeOS.
33410         * doc/posix-functions/select.texi: select does not work well
33411         on pipes under Windows.
33413 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
33415         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
33416         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
33417         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
33418         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
33420 2012-09-06  Eric Blake  <eblake@redhat.com>
33422         net_if: give more details about the bug being fixed
33423         * doc/posix-headers/net_if.texi: Add clarification.
33425 2012-09-05  Eric Blake  <eblake@redhat.com>
33427         net_if: new module
33428         * modules/net_if: New module, borrowing ideas from netinet_in.
33429         * m4/net_if_h.m4: New file.
33430         * lib/net_if.in.h: Likewise.
33431         * doc/posix-headers/net_if.texi (net/if.h): Document it.
33432         * MODULES.html.sh (lacking POSIX:2008): Likewise.
33433         * tests/test-net_if.c: Make function checks conditional.
33434         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
33436 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33438         readutmp: fix non-portable UT_PID use
33439         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
33440         Use `UT_PID (u) > 0' as absolute condition.
33442 2012-09-04  Jim Meyering  <meyering@redhat.com>
33444         fts: reduce two or more trailing spaces to just one, usually
33445         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
33446         or more slashes, trim all but the final one.  But if a name consists
33447         solely of two slashes, don't modify it.  If it consists solely of
33448         three or more slashes, strip all but one.
33450         This is part of the solution to a minor problem with rm:
33451         it would print a bogus ELOOP diagnostic when failing to remove
33452         the slash-decorated name of a symlink-to-directory:
33454             $ mkdir d && ln -s d s && env rm -r s/
33455             rm: cannot remove 's': Too many levels of symbolic links
33457         With the change below and a trivial don't-trim-trailing-slashes
33458         adjustment to remove.c, it does this:
33460             $ env rm -r s/
33461             rm: cannot remove 's/': Not a directory
33463         Improved by: Eric Blake
33465         fts: when there is no risk of overlap, use memcpy, not memmove
33466         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
33468 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
33470         stdbool: be more compatible with mixed C/C++ compiles
33471         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
33472         Define to bool, true, false, respectively, as GCC's builtin
33473         stdbool.h does.  Problem reported by Michael Goffioul in
33474         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
33476 2012-08-28  Jim Meyering  <meyering@redhat.com>
33478         revert last change: it was not needed
33479         * tests/test-vc-list-files-git.sh: There's already a test for
33480         a working git, just below.
33482 2012-08-28  Jim Meyering  <meyering@redhat.com>
33484         tests: test-vc-list-files-git.sh: skip if git is not available
33485         * tests/test-vc-list-files-git.sh: Skip this test when git is
33486         not available.
33488 2012-08-26  Bruno Haible  <bruno@clisp.org>
33490         gnulib-tool: Remove no-op option --no-changelog.
33491         * gnulib-tool (func_usage): Don't mention --no-changelog.
33492         (do_changelog): Remove variable.
33493         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33495 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33497         doc: remove fdl-1.2.texi
33498         It is no longer used or maintained, and its use of @acronym
33499         is problematic.  See the thread containing
33500         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
33501         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
33502         * doc/old-licenses/fdl-1.2.texi: Remove.
33504         execinfo: port to FreeBSD
33505         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
33506         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
33507         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
33508         * modules/execinfo (Link): Add $(LIB_EXECINFO).
33510 2012-08-23  Jim Meyering  <meyering@redhat.com>
33512         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
33513         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
33514         to placate gcc's -Wold-style-declaration.
33516 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
33518         doc: do not use @acronym
33519         * doc/inet_ntoa.texi (inet_ntoa):
33520         * doc/parse-datetime.texi (Seconds since the Epoch)
33521         (Specifying time zone rules):
33522         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
33523         Don't use @acronym.  Problem reported by John Darlington in
33524         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
33526 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33528         stdnoreturn: port to newer GCCs
33529         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
33530         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
33531         Problem reported by Jim Meyering in
33532         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
33533         Also, rename the 'test' function to a void a clash with the
33534         already-supplied 'main' function; this fixes a bug that incorrectly
33535         rejected GCC 4.7.1's <stdnoreturn.h>.
33536         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
33537         Document GCC problem.
33539 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
33541         pipe-filter: fix comment typo
33542         * lib/pipe-filter.h: Mention correct function.
33544 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33546         execinfo: new module
33547         This is for Emacs.  Currently, it provides a no-effect stub
33548         on all platforms where it does not already work.
33549         It already works on glibc-based systems, and on Solaris 11.
33550         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
33551         New files.
33552         * doc/glibc-headers/execinfo.texi (execinfo.h):
33553         * MODULES.html.sh (Misc): Document it.
33555 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33557         extern-inline: support old GCC 'inline'
33558         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
33559         if available.  This applies to GCC versions 2.7 through 4.2, or
33560         when newer GCC is using -fgnu89-inline.  The goal is to address
33561         some of the performance issues mentioned by Bruno Haible in
33562         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
33564 2012-08-20  Eric Blake  <eblake@redhat.com>
33566         maint.mk: avoid redundant file name in message
33567         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
33568         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
33569         (sc_makefile_path_separator_check): Remove bogus $(ME).
33571 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
33573         timer-time: fix link order when static linking on glibc
33574         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
33575         _after_ -lrt so that it's significant.
33577 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33579         timespec: omit unnecessary AC_C_INLINE
33580         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
33582         stat-time: omit unnecessary AC_C_INLINE
33583         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
33584         Do not require AC_C_INLINE.
33586         ignore-value: omit unnecessary AC_C_INLINE
33587         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
33589         sys_select: avoid 'static inline'
33590         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
33592         mktime: avoid 'static inline'
33593         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
33594         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
33596 2012-08-19  Bruno Haible  <bruno@clisp.org>
33598         gnulib-tool: Improve coding style.
33599         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
33600         func_emit_lib_Makefile_am.
33601         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33603 2012-08-19  Bruno Haible  <bruno@clisp.org>
33605         gnulib-tool: Fix indentation.
33606         * gnulib-tool (func_import): Fix indentation.
33608 2012-08-19  Bruno Haible  <bruno@clisp.org>
33610         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
33611         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
33612         on the list of removed files.
33614 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33616         test-parse-datetime: avoid glibc leap-second glitch
33617         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
33618         with the 2012 rules.  Problem reported by Bruce Dubbs in
33619         <http://bugs.gnu.org/12206>.
33621 2012-08-14  Bruno Haible  <bruno@clisp.org>
33623         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
33624         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
33625         from argument.
33626         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33628 2012-08-14  Eric Blake  <eblake@redhat.com>
33630         ldexp: relax license
33631         * modules/ldexp (License): Trivial relax, since the module only
33632         provides a permissively licensed m4 file.
33634 2012-08-13  Bruno Haible  <bruno@clisp.org>
33636         gnulib-tool: Fix persistence of --witness-c-macro option.
33637         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
33638         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
33640 2012-08-11  Eric Blake  <eblake@redhat.com>
33642         count-leading-zeros: use a lookup table on non-gcc compilers
33643         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
33644         alternate implementation, suggested by Jim Meyering.
33646 2012-08-10  Eric Blake  <eblake@redhat.com>
33648         count-leading-zeros: new module
33649         * modules/count-leading-zeros: New module.
33650         * m4/count-leading-zeros.m4: New file.
33651         * lib/count-leading-zeros.h: Likewise.
33652         * modules/count-leading-zeros-tests: New test.
33653         * tests/test-count-leading-zeros.c: New file.
33654         * MODULES.html.sh (Integer arithmetic functions): Document it.
33656 2012-08-07  Simon Josefsson  <simon@josefsson.org>
33657             Jim Meyering  <meyering@redhat.com>
33659         maintainer-makefile: Fix syntax error with dash.
33660         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
33661         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
33663 2012-08-05  Jim Meyering  <meyering@redhat.com>
33665         extern-inline: also ignore -Wmissing-declarations
33666         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
33667         required with gcc-4.8.0-to-be.
33669         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
33670         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
33671         for /error ?([^,]*)/.  This avoids false-positives for strings like
33672         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
33674 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
33676         gnumakefile: better interaction with Automake-NG
33677         * modules/gnumakefile [Makefile.am]: The makefiles generated by
33678         Automake-NG always contain a definition of VPATH, even in non-VPATH
33679         builds (its value being simply '.' in that case).  So, in the
33680         'clean-GNUmakefile' rule, to determine whether running under a
33681         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
33682         '$(VPATH)' expands to the empty string.
33684 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
33686         base64: Use extern C scope in header file, for C++.
33687         * lib/base64.h: Add C++ namespace protection.
33689 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
33691         stat-time, timespec, u64: support naive out-of-dir builds
33692         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
33693         Use '#include "foo.h"', not '#include <foo.h>', when including
33694         one's own interface.  This works better when configuring with
33695         out-of-directory builds, since packages need not add an
33696         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
33698 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
33700         utimens: use extern-inline
33701         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
33702         * lib/utimens.h: Add copyright notice, since this is now large enough
33703         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33704         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
33705         * modules/utimens (Depends-on): Add extern-inline.
33707         u64: use extern-inline
33708         * lib/u64.c: New file.
33709         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33710         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
33711         * modules/u64 (Files): Add lib/u64.c.
33712         (Depends-on): Add extern-inline.
33713         (configure.ac): No need to require AC_C_INLINE, since extern-inline
33714         does that now.
33715         (lib_SOURCES): Add u64.c.
33717         timespec: use extern-inline
33718         * lib/timespec.c: New file.
33719         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33720         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
33721         * modules/timespec (Files): Add lib/timespec.c.
33722         (Depends-on): Add extern-inline.
33723         (lib_SOURCES): Add timespec.c.
33725         stat-time: use extern-inline
33726         * lib/stat-time.c: New file.
33727         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33728         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
33729         * modules/stat-time (Files): Add lib/stat-time.c.
33730         (Depends-on): Add extern-inline.
33731         (lib_SOURCES): Add stat-time.c.
33733         extern-inline: new module
33734         * modules/extern-inline, m4/extern-inline.m4: New files.
33735         This is for better support of 'extern inline' a la ISO C99,
33736         with a portable alternative on compilers that do not support
33737         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
33738         of the Emacs executable, when compiled with debugging disabled,
33739         which is a typical way that Emacs is built while developing.
33741 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
33743         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
33744         * build-aux/do-release-commit-and-tag: Move variable definitions
33745         together.
33746         ($branch): Instead of defaulting to "master", default to the current
33747         branch (as gnu-web-doc-update does).
33748         (help): Display the current values of the option arguments.
33749         * top/maint.mk (release-commit): New.
33750         * top/README-release: Simplify the corresponding step.
33752 2012-07-30  Eric Blake  <eblake@redhat.com>
33754         passfd: fix comment on recvfd
33755         * lib/passfd.c (recvfd): Fix comment.
33756         Reported by Jann Horn <jannhorn@googlemail.com>.
33758 2012-07-30  Jim Meyering  <meyering@redhat.com>
33760         maint.mk: avoid a sub-shell
33761         * top/maint.mk (release-prep): Remove unneeded sub-shell.
33763 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33765         maint.mk: use silent-rules support from Automake
33766         * top/maint.mk (news-check, vc-diff-check, announcement)
33767         (no-submodule-changes, alpha beta stable, release-prep)
33768         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
33770 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33772         maint.mk: provide a web-manual-update target
33773         * top/maint.mk: here.
33774         * top/README-release: Use it to simplify the web manual update step.
33776 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33778         README-release: shorten the circuit to post a news
33779         * top/README-release: Point directly to the news submission form.
33781 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33783         gnu-web-doc-update: fix --help
33784         * build-aux/gnu-web-doc-update: The information "top level" was written
33785         twice.
33787 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
33789         maint.mk: absolute VPATH issue
33790         * top/maint.mk (release-prep): Help Git find .git/.
33791         From Jim Meyering.
33793 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33795         gitlog-to-changelog: fix previous change
33796         * build-aux/gitlog-to-changelog: Fix condition.
33797         Add missing ";".
33799 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33801         gitlog-to-changelog: don't expect .git to be in $srcdir
33802         Reported by Bruno Haible.
33803         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
33804         * build-aux/gitlog-to-changelog (&git_dir_option): New.
33805         Use it.
33807 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
33809         maint.mk: absolute VPATH build fix
33810         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
33811         $(srcdir) is not a parent of $(builddir).
33813 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
33815         clean-temp: Fix memory leak.
33816         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
33817         'files' members of tmpdir.
33819 2012-07-27  Jim Meyering  <meyering@redhat.com>
33821         maint.mk: new rule: refresh-gnulib-patches
33822         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
33823         Use this rule to refresh them.
33824         * top/maint.mk (refresh-gnulib-patches): New rule.
33826 2012-07-24  Bruno Haible  <bruno@clisp.org>
33828         gnulib-tool: Fix handling of inctests variable.
33829         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
33830         Reported by Nick Bowler <nbowler@elliptictech.com>.
33832 2012-07-22  Bruno Haible  <bruno@clisp.org>
33834         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
33835         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
33836         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33837         Remove exemption for getpass.h.
33838         Suggested by Eric Blake.
33840 2012-07-20  Eric Blake  <eblake@redhat.com>
33842         verify: document conflict with -Wnested-externs
33843         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
33845         maint.mk: forbid exit(-1)
33846         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
33848 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
33850         fsusage: port back to Solaris
33851         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
33852         error (fsd not declared) on Solaris 10.  Reported privately by
33853         Andrew Borodin.
33855 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
33857         gnu-web-doc-update: fix error messages
33858         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
33860         gnu-web-doc-update: check the requirements.
33861         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
33862         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
33863         * build-aux/bootstrap (find_tool): Comment change.
33865 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
33867         maint.mk: minor simplication.
33868         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
33869         for default values.
33871 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
33873         gitlog-to-changelog: VPATH build issues
33874         If builddir is not a subdirectory of srcdir, running git from it will
33875         fail.
33876         * build-aux/gitlog-to-changelog (--srcdir): New option.
33878 2012-07-15  Bruno Haible  <bruno@clisp.org>
33880         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
33881         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
33882         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
33883         Remove exemption for fpending.h.
33884         Suggested by Eric Blake.
33886 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33888         pthread_sigmask: fix bug on FreeBSD 9
33889         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
33890         Include string.h.
33891         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
33892         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
33893         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
33894         but pthread_sigmask (1729, NULL, NULL) returns zero.
33895         See <http://bugs.gnu.org/11884>.
33896         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
33897         by inspecting whether the main call changed the old mask.
33899 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
33901         README-release: make it more legible
33902         * top/README-release: Improve typography slightly.
33904 2012-07-15  Jim Meyering  <meyering@redhat.com>
33906         maint: require that each sc_... command start with "@"
33907         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
33908         "make sc_maint" helps us avoid this nit.
33910 2012-07-15  Jim Meyering  <meyering@redhat.com>
33912         maint.mk: add leading "@" to quiet new "make syntax-check" rule
33913         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
33915 2012-07-13  Eric Blake  <eblake@redhat.com>
33917         maint.mk: new syntax check for HAVE_DECL checks
33918         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
33919         * cfg.mk
33920         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
33921         Exempt some false positives.
33922         Based on a report by Karel Zak.
33924         argp: make HAVE_DECL usage consistent
33925         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
33926         macros, not whether they are defined.
33927         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
33928         convention with other declaration checks.
33929         Reported by Karel Zak, with suggestions from Paul Eggert.
33931         stat-time: relax license to LGPLv2+
33932         * modules/stat-time (License): Relax, with consent of all authors.
33934         strndup: fix m4 usage error
33935         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
33936         defined, to either 0 or 1.
33937         Reported by Karel Zak.
33939 2012-07-11  Jim Meyering  <meyering@redhat.com>
33941         maint: enable the sc_avoid_if_before_free syntax-check rule
33942         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
33943         (if_before_free_offenders_): Define.
33944         (if_before_free_basename_re_): Define.
33945         Exempt current files with useless if-before-free.
33947 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
33949         gettext: do not assume '#define ... defined ...' behavior
33950         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
33951         Do not use '#define FOO ... defined BAR ...', as the C standard says
33952         it's not portable to expect that this works after macro expansion.
33953         Problem reported for gzip by Steven M. Schweda in
33954         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
33956 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
33958         getloadavg: clean out old Emacs and Autoconf cruft
33959         See Glenn Morris in <http://bugs.gnu.org/11905>.
33960         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
33961         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
33962         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
33963         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
33965 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
33967         bootstrap: let warn be like tests/init.sh's warn_
33968         Reported by Jim Meyering.
33969         * build-aux/bootstrap (warn): Remove, replaced by...
33970         (warnf_, warn_): these.
33971         Adjust callers.
33972         Shorten messages that no longer fit in 80 columns.
33974 2012-07-09  Bruno Haible  <bruno@clisp.org>
33976         getopt: Simplify after Emacs changed.
33977         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
33978         (gl_GETOPT_IFELSE): Remove macro.
33980 2012-07-09  Jim Meyering  <meyering@redhat.com>
33982         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
33983         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
33985         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
33986         Bugs in both of those conspired to make the
33987         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
33988         _sc_search_regexp's handling of non-empty $in_files would filter
33989         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
33990         choice of in_files value meant there would be no match in most
33991         projects, due to the presence of two or more Makefile.in files.
33992         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
33993         Fix a bug in how a non-empty $$in_files was processed:
33994         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
33995         in spite of the name, it's a regexp, not a list of file names.
33997 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33999         getloadavg, getopt: fix commentary re configure.in
34000         Autoconf is deprecating the name 'configure.in', so change it to
34001         to the new name 'configure.ac' in a couple of places.
34002         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
34003         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
34004         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
34005         Emacs has renamed it to configure.ac, and it no longer refers
34006         to these macros anyway.
34008         timespec: mark functions with const attributes
34009         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
34010         Mark with _GL_ATTRIBUTE_CONST.
34012 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34014         canonicalize[-lgpl]: handle "guessing" values when cross-building
34015         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34016         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
34017         matches "*yes" instead of just "yes".  Regression introduced in commit
34018         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
34020 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
34021             Bruno Haible  <bruno@clisp.org>
34023         canonicalize: make the right guess when cross-compiling to GNU
34024         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
34025         determine whether cross-compiling to glibc systems, so as to
34026         include GNU/Hurd.
34028 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34030         timespec-sub: avoid duplicate include
34031         * lib/timespec-sub.c: Do not include <config.h> twice.
34032         Reported by Juanma Barranquero.
34034 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
34036         bootstrap: use a more consistent error reporting scheme
34037         * build-aux/bootstrap (warn, die): New.
34038         Use them.
34040 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34042         sys_time: allow too-wide tv_sec
34043         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
34044         timeval even if tv_sec is wider than time_t.  This allows
34045         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
34046         as without this patch gnulib replaces struct timeval
34047         and OpenBSD futimes therefore has a type mismatch.
34048         * doc/posix-headers/sys_time.texi: Mention this.
34050         pthread: check for both pthread_create and pthread_join
34051         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
34052         alter the check so that it tests for both pthread_create and
34053         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
34054         Suggested by Bruno Haible and Richard Yao in
34055         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
34057         parse-datetime: doc tuneup
34058         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
34059         spacing issues.
34061 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
34063         do-release-commit-and-tag: fix the previous commit
34064         * build-aux/do-release-commit-and-tag: Actually the test was right,
34065         but the comment and the error message were misleading.
34066         Fix comment, and improve error message.
34067         Perform check first, so that NEWS is not modified uselessly.
34069         do-release-commit-and-tag: fix typo
34070         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
34071         _not_ start with a stub.
34073 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34075         pthread: check for pthread_create, not pthread_join
34076         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
34077         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
34078         pthread_join in libc.  I hope this removes the need for all the
34079         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
34080         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
34082 2012-07-04  Jim Meyering  <meyering@redhat.com>
34084         parse-datetime: fix failure to diagnose invalid input
34085         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
34086         rather than diagnosing the invalid input.  Now it reports this:
34087         date: invalid date '\260'
34088         * lib/parse-datetime.y (to_uchar): Define.
34089         (yylex): Don't sign-extend "other" bytes.
34090         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
34091         Thanks to Bruno Haible for the patch to this file.
34092         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
34093         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
34095 2012-07-03  Jim Meyering  <meyering@redhat.com>
34097         bootstrap: do not require now-removed build-aux/missing
34098         Now that build-aux/missing is, er, missing, bootstrap would
34099         silently fail.
34100         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
34101         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
34102         no longer part of gnulib.
34103         Diagnose the failure.
34105 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34107         alloca: add support for HP NonStop TNS/E native
34108         * lib/alloca.in.h (alloca): Support the new host.
34109         From a suggestion by Joachim Schmitz in
34110         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
34112 2012-07-02  Pádraig Brady  <P@draigBrady.com>
34114         fsusage: remove code not needed on non GNU/Linux systems.
34116         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34117         Don't include headers no longer needed in this case.
34118         * lib/fsusage.c [STAT_STATVFS &&
34119         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
34120         STAT_STATFS2_FRSIZE to exclude code not used in this case.
34122 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34124         fsusage: include files needed for glibc 2.6 fallback
34125         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
34126         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
34127         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
34128         Problem reported by Ludovic Courtès in
34129         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
34131         fsusage: avoid needless check on GNU/Linux
34132         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
34133         on GNU/Linux systems, since it can't possibly work.
34135 2012-07-01  Bruno Haible  <bruno@clisp.org>
34137         log: Fix an autoconf >= 2.64 warning.
34138         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
34139         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34141 2012-06-28  Bruno Haible  <bruno@clisp.org>
34143         log10f: Fix possible configuration problem.
34144         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
34145         $LOGF_LIBM.
34146         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34148 2012-06-28  Bruno Haible  <bruno@clisp.org>
34150         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
34151         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
34152         not gl_cv_func_unlink_works.
34153         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
34155 2012-06-27  Eric Blake  <eblake@redhat.com>
34157         config: drop scripts that automake says are not independent
34158         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
34159         * build-aux/elisp-comp: Delete.
34160         * build-aux/missing: Likewise.
34161         * build-aux/ylwrap: Likewise.
34162         * modules/elisp-comp: Likewise.
34163         * MODULES.html.sh: Drop mention of elisp-comp.
34164         * NEWS: Mention this.
34166 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
34168         root-uid: new module
34169         This is for portability to Tandem's NonStop Kernel.
34170         * lib/root-uid.h, modules/root-uid: New files.
34171         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
34172         * lib/write-any-file.c, tests/test-sethostname2.c:
34173         Include "root-uid.h".
34174         * lib/euidaccess.c (euidaccess):
34175         * lib/pt_chown.c (main):
34176         * lib/unlinkdir.c (cannot_unlink_dir):
34177         * lib/write-any-file.c (can_write_any_file):
34178         * m4/mknod.m4 (gl_FUNC_MKNOD):
34179         * tests/test-sethostname2.c (geteuid, main):
34180         Don't assume ROOT_UID == 0.
34181         * modules/euidaccess (Depends-on):
34182         * modules/pt_chown (Depends-on):
34183         * modules/sethostname-tests (Depends-on):
34184         * modules/unlinkdir (Depends-on):
34185         * modules/write-any-file (Depends-on):
34186         Add root-uid.
34188         regex: use locale-independent comparison for codeset name
34189         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
34190         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
34191         for codeset name.
34192         * lib/regex_internal.h: Do not include <strings.h>, since we
34193         no longer use strcasecmp.
34194         * modules/regex (Depends-on): Remove strcase.
34196 2012-06-23  Bruno Haible  <bruno@clisp.org>
34198         getopt-posix: No longer guarantee that option processing is resettable.
34199         * doc/posix-functions/getopt.texi: Drop description of problem with
34200         internal state. Fix info about mingw and msvc9.
34201         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
34202         option processing by getopt(). Run three test programs instead of one.
34203         Simplify cross-compilation guess.
34204         * NEWS: Mention the change.
34205         Reported by Rich Felker <dalias@aerifal.cx>.
34207 2012-06-26  Bruno Haible  <bruno@clisp.org>
34209         argp, regex: Ensure strcasecmp gets declared.
34210         * lib/argp-help.c: Include <strings.h>.
34211         * lib/regex_internal.h: Likewise.
34212         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
34214 2012-06-24  Bruno Haible  <bruno@clisp.org>
34216         ptsname_r: Make it consistent with ptsname on AIX.
34217         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
34218         implementation as for OSF/1.
34219         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
34220         a pty master.
34222         ptsname_r: Make it consistent with ptsname on OSF/1.
34223         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34224         OSF/1.
34226 2012-06-24  Bruno Haible  <bruno@clisp.org>
34228         ttyname_r: Fix result on OSF/1, Solaris.
34229         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
34231 2012-06-24  Bruno Haible  <bruno@clisp.org>
34233         ptsname_r: Add support for Solaris.
34234         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
34235         Solaris.
34237         ptsname_r: Fix test failure on native Windows.
34238         * modules/ptsname_r (Depends-on): Add isatty.
34240         ptsname_r: Fix test failures on IRIX, Solaris.
34241         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
34242         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
34243         accordingly.
34244         * lib/ptsname_r.c: Include <fcntl.h>.
34245         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
34246         set errno if fd is invalid.
34247         * tests/test-isatty.c (main): Update comments.
34249 2012-06-24  Bruno Haible  <bruno@clisp.org>
34251         ptsname test: Extend test.
34252         * tests/test-ptsname.c: Include <errno.h>.
34253         (main): Test behaviour with invalid file descriptor.
34255 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34257         time: fix obsolete comment
34258         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
34259         reference to HAVE_STRUCT_TIMESPEC in comment.
34261 2012-06-23  Bruno Haible  <bruno@clisp.org>
34263         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
34264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
34265         does not handle abbreviated long options with equivalent
34266         disambiguations, set gl_replace_getopt to yes.
34267         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
34269 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
34271         time_r: fix typo that always overrode localtime_r decl
34272         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
34273         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
34274         not in a standard include.
34276 2012-06-22  Bruno Haible  <bruno@clisp.org>
34278         Write "Mac OS X" instead of "MacOS X".
34279         * README: Write "Mac OS X" instead of "MacOS X".
34280         * build-aux/bootstrap: Likewise.
34281         * build-aux/install-reloc: Likewise.
34282         * lib/acl-internal.h: Likewise.
34283         * lib/acl_entries.c: Likewise.
34284         * lib/argp-ba.c: Likewise.
34285         * lib/argp-pv.c: Likewise.
34286         * lib/config.charset: Likewise.
34287         * lib/copy-acl.c: Likewise.
34288         * lib/csharpexec.c: Likewise.
34289         * lib/euidaccess.c: Likewise.
34290         * lib/fbufmode.c: Likewise.
34291         * lib/fflush.c: Likewise.
34292         * lib/file-has-acl.c: Likewise.
34293         * lib/filemode.h: Likewise.
34294         * lib/fpurge.c: Likewise.
34295         * lib/freadable.c: Likewise.
34296         * lib/freadahead.c: Likewise.
34297         * lib/freading.c: Likewise.
34298         * lib/freadptr.c: Likewise.
34299         * lib/freadseek.c: Likewise.
34300         * lib/fseeko.c: Likewise.
34301         * lib/fseterr.c: Likewise.
34302         * lib/fsusage.c: Likewise.
34303         * lib/fwritable.c: Likewise.
34304         * lib/fwriting.c: Likewise.
34305         * lib/get-rusage-as.c: Likewise.
34306         * lib/get-rusage-data.c: Likewise.
34307         * lib/getdomainname.c: Likewise.
34308         * lib/idpriv-drop.c: Likewise.
34309         * lib/idpriv-droptemp.c: Likewise.
34310         * lib/localcharset.c: Likewise.
34311         * lib/locale.in.h: Likewise.
34312         * lib/localename.c: Likewise.
34313         * lib/mbsrtowcs-state.c: Likewise.
34314         * lib/nproc.c: Likewise.
34315         * lib/passfd.c: Likewise.
34316         * lib/posix_openpt.c: Likewise.
34317         * lib/printf-parse.c: Likewise.
34318         * lib/progreloc.c: Likewise.
34319         * lib/safe-read.h: Likewise.
34320         * lib/safe-write.h: Likewise.
34321         * lib/sched.in.h: Likewise.
34322         * lib/set-mode-acl.c: Likewise.
34323         * lib/signal.in.h: Likewise.
34324         * lib/stdint.in.h: Likewise.
34325         * lib/stdio-impl.h: Likewise.
34326         * lib/stdlib.in.h: Likewise.
34327         * lib/strtod.c: Likewise.
34328         * lib/sys_select.in.h: Likewise.
34329         * lib/tcgetsid.c: Likewise.
34330         * lib/unistd.in.h: Likewise.
34331         * lib/unlockpt.c: Likewise.
34332         * lib/vasnprintf.c: Likewise.
34333         * lib/vma-iter.c: Likewise.
34334         * lib/wcsrtombs-state.c: Likewise.
34335         * m4/acl.m4: Likewise.
34336         * m4/acosl.m4: Likewise.
34337         * m4/asinl.m4: Likewise.
34338         * m4/atanl.m4: Likewise.
34339         * m4/c-stack.m4: Likewise.
34340         * m4/cosl.m4: Likewise.
34341         * m4/expl.m4: Likewise.
34342         * m4/extensions.m4: Likewise.
34343         * m4/fdatasync.m4: Likewise.
34344         * m4/fmal.m4: Likewise.
34345         * m4/frexp.m4: Likewise.
34346         * m4/frexpf.m4: Likewise.
34347         * m4/frexpl.m4: Likewise.
34348         * m4/fsusage.m4: Likewise.
34349         * m4/getdomainname.m4: Likewise.
34350         * m4/getloadavg.m4: Likewise.
34351         * m4/getopt.m4: Likewise.
34352         * m4/gettext.m4: Likewise.
34353         * m4/gnulib-common.m4: Likewise.
34354         * m4/intdiv0.m4: Likewise.
34355         * m4/intlmacosx.m4: Likewise.
34356         * m4/largefile.m4: Likewise.
34357         * m4/ldexpl.m4: Likewise.
34358         * m4/link-follow.m4: Likewise.
34359         * m4/locale-ar.m4: Likewise.
34360         * m4/locale-fr.m4: Likewise.
34361         * m4/locale-ja.m4: Likewise.
34362         * m4/locale-tr.m4: Likewise.
34363         * m4/locale-zh.m4: Likewise.
34364         * m4/locale_h.m4: Likewise.
34365         * m4/lock.m4: Likewise.
34366         * m4/logl.m4: Likewise.
34367         * m4/mathfunc.m4: Likewise.
34368         * m4/minus-zero.m4: Likewise.
34369         * m4/mktime.m4: Likewise.
34370         * m4/mmap-anon.m4: Likewise.
34371         * m4/multiarch.m4: Likewise.
34372         * m4/nanosleep.m4: Likewise.
34373         * m4/nocrash.m4: Likewise.
34374         * m4/poll.m4: Likewise.
34375         * m4/printf-frexpl.m4: Likewise.
34376         * m4/printf.m4: Likewise.
34377         * m4/signbit.m4: Likewise.
34378         * m4/sinl.m4: Likewise.
34379         * m4/sqrtl.m4: Likewise.
34380         * m4/strerror_r.m4: Likewise.
34381         * m4/tanl.m4: Likewise.
34382         * m4/threadlib.m4: Likewise.
34383         * m4/ttyname_r.m4: Likewise.
34384         * m4/unlink.m4: Likewise.
34385         * m4/visibility.m4: Likewise.
34386         * m4/wcwidth.m4: Likewise.
34387         * tests/minus-zero.h: Likewise.
34388         * tests/test-alloca-opt.c: Likewise.
34389         * tests/test-copy-acl.sh: Likewise.
34390         * tests/test-copy-file.sh: Likewise.
34391         * tests/test-fdatasync.c: Likewise.
34392         * tests/test-file-has-acl.sh: Likewise.
34393         * tests/test-flock.c: Likewise.
34394         * tests/test-fsync.c: Likewise.
34395         * tests/test-localename.c: Likewise.
34396         * tests/test-malloca.c: Likewise.
34397         * tests/test-nonblocking-pipe.h: Likewise.
34398         * tests/test-nonblocking-socket.h: Likewise.
34399         * tests/test-openpty.c: Likewise.
34400         * tests/test-posix_openpt.c: Likewise.
34401         * tests/test-ptsname.c: Likewise.
34402         * tests/test-ptsname_r.c: Likewise.
34403         * tests/test-sameacls.c: Likewise.
34404         * tests/test-select.h: Likewise.
34405         * tests/test-set-mode-acl.sh: Likewise.
34406         * tests/test-snprintf-posix.h: Likewise.
34407         * tests/test-sprintf-posix.h: Likewise.
34408         * tests/test-strtod.c: Likewise.
34409         * tests/test-time.c: Likewise.
34410         * tests/test-vasnprintf-posix.c: Likewise.
34411         * tests/test-vasprintf-posix.c: Likewise.
34412         * doc/acl-resources.txt: Likewise.
34413         * doc/**/*.texi: Likewise.
34414         Reported by Max Horn <max@quendi.de>.
34416 2012-06-22  Bruno Haible  <bruno@clisp.org>
34418         grantpt: Relax requirement regarding invalid file descriptors.
34419         * lib/grantpt.c: Don't include <fcntl.h>.
34420         (grantpt): Don't verify the validity of the file descriptor.
34421         * modules/grantpt (Depends-on): Remove fcntl-h.
34422         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
34423         file descriptors.
34424         * doc/posix-functions/grantpt.texi: Document more platforms on which
34425         grantpt succeeds for invalid file descriptors.
34426         Reported by Rich Felker <dalias@aerifal.cx>.
34428 2012-06-22  Bruno Haible  <bruno@clisp.org>
34430         fbufmode test: Don't test unportable behaviour.
34431         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
34432         (main): Invoke it three times.
34433         Reported by Szabolcs Nagy <nsz@port70.net>
34434         and Rich Felker <dalias@aerifal.cx>.
34436 2012-06-21  Bruno Haible  <bruno@clisp.org>
34438         gnulib-tool: Refactor inctests variable.
34439         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
34440         (func_modules_transitive_closure,
34441         func_modules_transitive_closure_separately,
34442         func_import, func_create_testdir): Update.
34444         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
34445         * gnulib-tool: Accept option --without-tests.
34446         (func_usage): Document --without-tests option. Rearrange.
34447         (inctests): Normalize according to the mode.
34448         * NEWS: Mention the change.
34449         Suggested by Simon Josefsson.
34451 2012-06-21  Bruce Korb  <bkorb@gnu.org>
34453         parse-duration test: Avoid spurious output.
34454         * tests/test-parse-duration.sh: Reindent with leading tabs.
34456 2012-06-21  Jim Meyering  <meyering@redhat.com>
34458         maint: disable the strncpy prohibition
34459         * cfg.mk: Do not prohibit strncpy here.
34461 2012-06-21  Bruno Haible  <bruno@clisp.org>
34463         nonblocking: Avoid compilation error on mingw64.
34464         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
34465         fscanf.
34466         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
34467         * modules/vfscanf (configure.ac): Likewise.
34468         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
34469         definition only if stdio.h has prepared it.
34470         Reported by Daniel P. Berrange <berrange@redhat.com>.
34472 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
34474         gnulib-tool: Use readlink if it is available.
34475         * gnulib-tool (func_readlink): Choose function more appropriately.
34477 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34479         posixtm-tests: port to buggy compiler
34480         Problem reported by Simon Josefsson in
34481         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
34482         * modules/posixtm-tests (Depends-on): Add stdint.
34483         * tests/test-posixtm.c (struct posixtm_test.t_expected):
34484         Now of type int_least64_t, not int64_t, both because that's
34485         what INT64_C returns and because int_least64_t works even
34486         on 72-bit hosts.
34487         (T): Use INT64_C on constants outside the traditional int range,
34488         to work around compiler bug noted by Simon.
34490         mktime: fix integer overflow in 'configure'-time test
34491         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
34492         after integer overflow.  Problem reported by Rich Felker in
34493         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
34494         Also, don't look for further instances of a bug if we've already
34495         found one instance; this helps 'configure' run faster.
34497 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
34499         tmpfile, clean-temp: Fix invocation of GetVersionEx.
34500         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
34501         GetVersionEx correctly.
34502         * lib/clean-temp.c (supports_delete_on_close): Likewise.
34504 2012-06-20  Bruno Haible  <bruno@clisp.org>
34506         fdopen: Allow implementations that don't reject invalid fd arguments.
34507         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
34508         succeeds.
34509         Reported by Rich Felker <dalias@aerifal.cx>.
34511 2012-06-20  Simon Josefsson  <simon@josefsson.org>
34513         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
34514         bring in LIBINTL.
34516 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34518         init.sh: do not rely on autoupated PWD
34519         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
34520         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
34521         Although Nelson's bug was not necessarily fixed by this patch,
34522         it seems wise to make the change for safety.
34523         * tests/init.sh (path_prepend_): Do not rely on PWD updating
34524         automagically after 'cd'; this is not reliable on older shells.
34525         (setup_): Fail if we cannot cd to temporary directory.
34527 2012-06-19  Bruno Haible  <bruno@clisp.org>
34529         stat, fstat: Avoid warnings on mingw64.
34530         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
34531         redefining.
34532         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
34533         Reported by Daniel P. Berrange <berrange@redhat.com>.
34535 2012-06-19  Bruno Haible  <bruno@clisp.org>
34537         stdioext: Add support for musl libc.
34539         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
34540         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
34542         * m4/fseterr.m4: New file.
34543         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
34544         function exists.
34545         * modules/fseterr (Files): Add m4/fseterr.m4.
34546         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
34547         __fseterr does not exist.
34548         (Makefile.am): Remove fseterr.c from lib_SOURCES.
34550         * lib/freadable.h: Update comment.
34552         * lib/fwritable.h: Update comment.
34554         * lib/freading.h: Update comment.
34556         * lib/fwriting.h: Update comment.
34558         * m4/freadahead.m4: New file.
34559         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
34560         that function exists.
34561         * modules/freadahead (Files): Add m4/freadahead.m4.
34562         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
34563         __freadahead does not exist.
34564         (Makefile.am): Remove freadahead.c from lib_SOURCES.
34566         * m4/freadptr.m4: New file.
34567         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
34568         function exists.
34569         * modules/freadptr (Files): Add m4/freadptr.m4.
34570         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
34571         __freadptr does not exist.
34572         (Makefile.am): Remove freadptr.c from lib_SOURCES.
34574         * m4/freadseek.m4: New file.
34575         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
34576         exists.
34577         * modules/freadseek (Files): Add m4/freadseek.m4.
34578         (configure.ac): Invoke gl_FUNC_FREADSEEK.
34580         * lib/fpurge.c (fpurge): Update comment.
34582         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
34584 2012-06-19  Bruno Haible  <bruno@clisp.org>
34586         *printf-posix: Put more info into config.log.
34587         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
34588         exit code into config.log.
34590 2012-06-19  Bruno Haible  <bruno@clisp.org>
34592         getopt-gnu: Fix exit code overflow in autoconf test.
34593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
34594         to keep them below < 128.
34596 2012-06-17  Jim Meyering  <meyering@redhat.com>
34598         maint.mk: fix typo in code to derive GPG key at release time
34599         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
34601 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
34603         regex: avoid warning when pointers are not long
34604         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
34605         and uintptr_t, not long, for portability to hosts where pointers and
34606         long have different sizes.  Issue noted by Daniel P. Berrange in
34607         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
34608         and fix suggested by Bruno Haible in
34609         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
34611 2012-06-17  Bruno Haible  <bruno@clisp.org>
34613         dummy: Relicense into the public domain.
34614         * modules/dummy (License): Set to "public domain".
34615         Suggested by Reuben Thomas.
34617 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34619         announce-gen: VPATH issues
34620         * build-aux/announce-gen (--srcdir): New option, used to trim the
34621         $srcdir part of the path from $builddir to NEWS.
34622         * top/maint.mk (announcement): Adjust.
34624 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
34626         gnu-web-doc-update: VPATH builds
34627         * build-aux/gnu-web-doc-update (--builddir): New option.
34628         Revamp the handling of options.
34629         Prefer $(...) to `...`.
34630         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
34631         the template, and it is GNU mktemp specific.
34632         Prefer set -e to long series of &&.
34633         Restore the initial git branch, not "master".
34634         Properly initialize submodules (don't rely only on bootstrap).
34635         Do not reconfigure blindly, use config.status.
34636         * top/README-release: Update instructions for gnu-web-doc-update.
34638 2012-06-11  Jim Meyering  <meyering@redhat.com>
34640         maint.mk: revert most of the previous change re "all these"
34641         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
34642         For rationale, see the discussion at
34643         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
34645 2012-06-10  Karl Berry  <karl@gnu.org>
34647         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
34649         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
34651 2012-06-10  Bruce Korb  <bkorb@gnu.org>
34653         parse-duration: Relicense under LGPLv2+.
34654         * modules/parse-duration (License): Change to LGPLv2+.
34656 2012-06-10  Jim Meyering  <meyering@redhat.com>
34658         maint.mk: prohibit common grammar error: "all these"
34659         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
34660         the list of prohibited word sequences.  It should be "all of these".
34661         * lib/tempname.c (__gen_tempname): Fix one of them.
34663 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34665         do-release-commit-and-tag: support VPATH builds
34666         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
34667         (noteworthy): Defined earlier to factor its value.
34668         (noteworthy_stub): New.
34669         Use it to factor.
34670         (help_version): Split into...
34671         (help, version): these.
34672         Adjust the option processing part.
34673         Support "--option=value" in addition to "--option value".
34674         (builddir): New.
34675         (--builddir): New option.
34676         * top/README-release: Document this.
34677         Reword slightly so that the reader cannot understand that he
34678         has to do these steps before calling do-release-commit-and-tag.
34680 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34682         readme-release: also require announce-gen and maintainer-makefile
34683         * modules/readme-release (Depends-on): here.
34684         * modules/announce-gen, modules/do-release-commit-and-tag,
34685         modules/gnu-web-doc-update, modules/maintainer-makefile
34686         (Description): Point to readme-release.
34688 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
34690         maint.mk: fix VPATH issues.
34691         * top/maint.mk (news-check): GNU Make understand $< very well.
34692         (release-prep): NEWS is in $(srcdir).
34694 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
34696         readme-release: require the promoted modules.
34697         * modules/readme-release (Depends-on): Add
34698         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
34699         in this text.
34701 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34702             Bruno Haible  <bruno@clisp.org>
34704         error, strerror-override: Support mingw64 from Fedora 17.
34705         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
34706         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
34707         EINPROGRESS.
34708         * lib/strerror-override.h (strerror_override): Test it.
34709         * lib/strerror-override.c (strerror_override): Likewise.
34710         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
34712 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34713             Bruno Haible  <bruno@clisp.org>
34715         error, strerror-override: Support mingw64 from Fedora 17.
34716         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
34717         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
34718         * lib/strerror-override.h (strerror_override): Test it.
34719         * lib/strerror-override.c (strerror_override): Likewise.
34721 2012-06-03  Bruno Haible  <bruno@clisp.org>
34723         error, strerror-override: Support new errno values from POSIX:2008.
34724         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
34725         ENOTRECOVERABLE.
34726         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
34727         platforms.
34728         * lib/strerror-override.c (strerror_override): Conditionalize the
34729         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
34730         * lib/strerror-override.h (strerror_override): Declare also if
34731         GNULIB_defined_EOWNERDEAD is defined.
34732         * tests/test-errno.c (e130, e131): New variables.
34733         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
34734         ENOTRECOVERABLE.
34735         Reported by Paolo Bonzini.
34737 2012-05-31  Jim Meyering  <meyering@redhat.com>
34739         savewd: add missing dependency on sys_wait module
34740         * modules/savewd (Depends-on): Add sys_wait, needed at least
34741         for MSVC.  Report and suggested change by Michael Goffioul.
34743 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34745         system-quote-tests: port to CentOS 5
34746         Problem reported by Tom G. Christensen in
34747         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
34748         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
34750 2012-05-29  Jim Meyering  <meyering@redhat.com>
34752         maint: fix typos in comments and ChangeLog
34753         Culprits identified and fixed mostly automatically using these commands:
34754         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
34755         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
34756         using http://github.com/lyda/misspell-check
34757         * ChangeLog: Fix typos.
34758         * doc/solaris-versions: Likewise.
34759         * lib/regexec.c (re_search_stub): Likewise.
34760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
34762 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
34764         manywarnings: remove duplicate -Wmultichar entry
34765         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
34766         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
34767         so keep the entry marked as documented.
34769 2012-05-27  Karl Berry  <karl@gnu.org>
34771         * config/srclist.txt (mktime.c): remove last libc sync,
34772         perhaps just temporarily.
34774 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
34776         regex: don't assume uint64_t or uint32_t
34777         * lib/regcomp.c (init_word_char): Don't assume that the types
34778         uint64_t and uint32_t exist.  The C standard doesn't guarantee
34779         them, and on some 32-bit compilers there is no uint64_t.
34780         Problem reported by Gianluigi Tiesi in
34781         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
34783 2012-05-25  Jim Meyering  <meyering@redhat.com>
34785         maint.mk: add strncpy-prohibiting syntax-check rule
34786         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
34788 2012-05-24  Jim Meyering  <meyering@redhat.com>
34790         maint.mk: compute $(gpg_key_ID) more portably
34791         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
34792         That use of sed is not portable to some fringe systems.
34793         Reported by Paul Eggert in
34794         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
34796 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
34798         mktime: sync from glibc
34799         * config/srclist.txt: Uncomment mktime.c.
34800         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
34801         First, indent with tabs, since glibc uses tabs and doesn't want to
34802         change and we'd rather be identical to glibc.  Also, two small
34803         coding changes:
34804         (isdst_differ): Use &&, not &, as && is the usual style.
34805         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
34806         for clarity.
34808 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34810         announce-gen: du -h is more portable than du --human
34811         * build-aux/announce-gen (sizes): Invoke du with -h instead
34812         of --human.  Accept leading white space in its output.
34814 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34816         announce-gen: Improve diagnostics.
34817         * build-aux/announce-gen: When parsing command line options,
34818         prefer "announce-gen: option --release-type requires an argument"
34819         to "Option release-type requires an argument".
34821 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
34823         maint.mk: gpg_key_ID: use sed more portably
34824         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
34825         the closing brace.
34826         (refresh-po): Fuse two sed invocations into one.
34828 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
34830         gitlog-to-changelog: support the log message format used in Bison.
34831         * build-aux/gitlog-to-changelog: Support --strip-tab and
34832         --strip-cherry-picked.
34834 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
34836         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
34837         the rest of the current time slice to another thread in the current
34838         process. So if the thread that feeds the file decscriptor we're
34839         polling is not in the current process, we get busy-waiting.
34840         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
34841         Patch from Theodore Leblond.
34842         * lib/select.c: Split polling out of the loop that sets the output
34843         fd_sets.  Check for zero result and loop if the wait timeout is
34844         infinite.
34846 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34848         select: Fix build error on IRIX 6.5.
34849         * lib/select.c: Include stddef.h for NULL.
34851 2012-05-21  Simon Josefsson  <simon@josefsson.org>
34853         gc: fix libgcrypt detection on older machines.
34854         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
34855         copyright years because the file has been distributed every year
34856         since it was created.
34858 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34860         crypto: fix bug in large buffer handling
34861         Problem reported by Serge Belyshev for glibc in
34862         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
34863         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
34864         * lib/md4.c (md4_process_block):
34865         * lib/md5.c (md5_process_block):
34866         * lib/sha1.c (sha1_process_block):
34867         * lib/sha256.c (sha256_process_block):
34868         Don't assume the buffer length is less than 2**32.
34869         * lib/sha512.c (sha512_process_block): Likewise.
34870         Here, the bug is present only in the rare case where the host does
34871         not support uint64_t or where size_t is wider than 64 bits.
34872         Use u64size to work around the problems.
34873         * lib/u64.h (u64size): New macro.
34875 2012-05-15  Pádraig Brady  <P@draigBrady.com>
34877         fsusage: fix block size returned on older Linux 2.6
34879         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
34880         which is available since Linux 2.6.
34881         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
34882         when the member is available so it can be used as a fallback.
34883         * doc/posix-functions/statvfs.texi: Mention the hang issue
34884         on Linux < 2.6.36.
34886 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
34888         bootstrap: suppress stderr chatter
34889         * build-aux/bootstrap (insert_sorted_if_absent, main program):
34890         Omit unnecessary chatter to stderr.  The main program chatter
34891         was there only inadvertantly.
34893         bootstrap: .gitignore files created by autopoint, libtool
34894         I ran into this problem when bootstrapping the latest diffutils.
34895         After './bootstrap', 'git status' reported lots of untracked files
34896         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
34897         autopoint and do not need to be version-controlled.
34898         * build-aux/bootstrap: Put into .gitignore the files that
34899         autopoint and libtool create, by keeping track of files that exist
34900         after but not before these programs are run.
34901         (version_controlled_file): Move up.  2nd arg is now full file
34902         name, not base name; this is more convenient.  Put CVS at the end,
34903         as it's now somewhat deprecated.
34905 2012-05-14  Jim Meyering  <meyering@redhat.com>
34907         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
34908         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
34909         definition.  Reported by Bruno Haible.
34911 2012-05-13  Bruno Haible  <bruno@clisp.org>
34912             Paul Eggert  <eggert@cs.ucla.edu>
34914         binary-io: Define set_binary_mode function.
34915         * lib/binary-io.h (set_binary_mode): New function.
34916         (SET_BINARY): Define in terms of set_binary_mode.
34917         * modules/binary-io (configure.ac): Require AC_C_INLINE.
34918         * tests/test-binary-io.c (main): Accept an argument, and test either
34919         set_binary_mode or SET_BINARY depending on the argument.
34920         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
34921         argument. Clean up also t-bin-out0.tmp.
34923 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
34925         bootstrap: take advantage of POSIX shell features
34927         The 'bootstrap' script offered by Gnulib script already uses POSIX
34928         shell features (like $((...)) arithmetic expansions) that are not
34929         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
34930         means that bootstrap must already be run using a proper POSIX shell,
34931         which will thus provide more features, like ${var#pattern} parameter
34932         expansion or inversion of a command exit status with '!'.  We can
34933         thus use these features to improve the clarity and the performances
34934         of the bootstrap script.
34936         Suggested by Eric Blake.
34938         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
34939         of sed/expr plus command substitutions, to save some forks.  While
34940         we are at it, prefer the POSIX $(...) form of command substitution,
34941         rather than the legacy form `...` (since the former is visually
34942         clearer and interacts better with quoting), and prefer the idiom:
34943           "if ! CMD; then ACTION ..."
34944         over the idiom:
34945           "if CMD; then :; else ACTION ..."
34946         which was required by legacy Bourne shells not supporting '!'.
34948 2012-05-12  Bruno Haible  <bruno@clisp.org>
34950         system-quote: Add more comments.
34951         * lib/system-quote.h: Add more comments about wilcards and limitations.
34952         Suggested by Eli Zaretskii <eliz@gnu.org>.
34954         sh-quote, system-quote: Add comments about wildcards.
34955         * lib/sh-quote.h: Clarify what happens with wildcard characters.
34956         * lib/system-quote.h: Likewise.
34957         Reported by Eli Zaretskii <eliz@gnu.org>.
34959 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34961         fsusage: check for GNU/Linux statvfs problem dynamically
34962         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
34963         Define STAT_STATFS2_BSIZE too, since in this case the code now
34964         checks dynamically whether statvfs is reliable, falling back on
34965         Linux-style statfs otherwise.
34966         (statvfs_works): New function, for dynamically testing statvfs.
34967         (get_fs_usage) [STAT_STATVFS]: Use it.
34968         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
34969         statvfs on GNU/Linux hosts, since it's now done dynamically.
34971 2012-05-10  Bruno Haible  <bruno@clisp.org>
34973         system-quote, execute, spawn-pipe: Escape '?' on Windows.
34974         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
34975         '?' character.
34976         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
34977         * tests/test-system-quote-main.c (check_all): Check also strings like
34978         "??????????".
34979         Reported by Eli Zaretskii <eliz@gnu.org>.
34981 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
34983         _Noreturn: port config.h to gcc -Wundef
34984         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
34985         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
34986         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
34988 2012-05-10  Bruno Haible  <bruno@clisp.org>
34990         system-quote: Refactor.
34991         * lib/system-quote.h (system_quote_copy): Fix comment.
34992         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
34993         New functions, extracted from system_quote_copy.
34994         (system_quote_length, system_quote_copy): Use these functions.
34995         Reported by Paul Eggert.
34997 2012-05-08  Bruno Haible  <bruno@clisp.org>
34999         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
35000         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
35002 2012-05-08  Bruno Haible  <bruno@clisp.org>
35004         Tests for module 'system-quote'.
35005         * modules/system-quote-tests: New file.
35006         * tests/test-system-quote.sh: New file.
35007         * tests/test-system-quote-main.c: New file.
35008         * tests/test-system-quote-child.c: New file.
35010         New module 'system-quote'.
35011         * lib/system-quote.h: New file.
35012         * lib/system-quote.c: New file.
35013         * modules/system-quote: New file.
35015 2012-05-08  Bruno Haible  <bruno@clisp.org>
35017         sh-quote: Make C++ safe and allow multiple inclusion.
35018         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
35019         declarations in extern "C".
35021 2012-05-08  Bruno Haible  <bruno@clisp.org>
35023         sh-quote tests: Make tests stricter.
35024         * tests/test-sh-quote.c (check_one): Check the return value of
35025         shell_quote_copy.
35026         (main): Check a string with a CR character. Check a string that
35027         contains UCHAR_MAX.
35029 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
35031         warnings.m4: provide a means to specify the program to compile.
35032         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
35033         (gl_WARN_ADD): here.
35034         Use gl_AS_VAR_APPEND.
35035         Support an argument to specify the program to compile.
35036         (gl_WARN_ADD): Accept an argument to specify the program to compile.
35037         AC_SUBST the WARN_CFLAGS when they are used.
35038         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
35039         leave this to gl_WARN_ADD.
35041 2012-05-08  Eric Blake  <eblake@redhat.com>
35043         doc: recommendations on gettext version
35044         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
35045         choice between versions.
35046         * DEPENDENCIES (gettext): Cover both approaches.
35048 2012-05-08  Jim Meyering  <meyering@redhat.com>
35050         init.sh: explain why EXEEXT support uses aliases rather than functions
35051         * tests/init.sh: Add a comment.
35053         init.sh: don't let bash aliases interfere with tests
35054         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
35055         is bash.  This avoids problems for those who alias standard commands to
35056         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
35057         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
35059 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35061         stdint: be more consistent with glibc, SunOS libc
35062         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
35063         (gl_int_fast16_t, gl_uint_fast16_t)
35064         (gl_int_fast32_t, gl_uint_fast32_t)
35065         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
35066         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
35067         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35068         Be consistent with glibc by default, and with SunOS 5.10 and later
35069         if __sun is defined.  This lessens the likelihood of clashes if
35070         code compiled for older hosts is combined with code compiled for
35071         newer ones.  Problem reported by Niels Möller in
35072         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
35074 2012-05-07  Eric Blake  <eblake@redhat.com>
35076         isatty: relax license to LGPLv2+
35077         * modules/isatty (License): Relax license.
35079 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35081         stat-size: comment fix
35082         * lib/stat-size.h: Remove obsolete comment about indenting.
35084 2012-05-06  Bruno Haible  <bruno@clisp.org>
35086         Tests for module 'sh-quote'.
35087         * modules/sh-quote-tests: New file.
35088         * tests/test-sh-quote.c: New file.
35090 2012-05-06  Bruno Haible  <bruno@clisp.org>
35092         sh-quote: Improve shell_quote_argv's signature.
35093         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
35094         * lib/sh-quote.c (shell_quote_argv): Likewise.
35096 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
35098         stdint: document issues with int_fast8_t etc.
35099         * doc/posix-headers/stdint.texi (stdint.h): Say that other
35100         stdint.h substitutes may define these types differently.  See
35101         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
35103 2012-05-05  Bruno Haible  <bruno@clisp.org>
35105         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
35106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
35107         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
35108         or 'guessing no (mishandles large arguments)'.
35110 2012-05-05  Bruno Haible  <bruno@clisp.org>
35112         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
35113         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
35114         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35115         set gl_cv_func_link_follows_symlink to "guessing no".
35117 2012-05-05  Bruno Haible  <bruno@clisp.org>
35119         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
35120         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
35121         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
35122         "guessing no".
35123         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
35125 2012-05-05  Bruno Haible  <bruno@clisp.org>
35127         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
35128         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
35129         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
35130         set gl_cv_struct_dirent_d_ino to "guessing yes".
35132 2012-05-05  Bruno Haible  <bruno@clisp.org>
35134         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
35135         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
35136         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
35137         "guessing yes".
35139 2012-05-05  Bruno Haible  <bruno@clisp.org>
35141         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
35142         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
35143         compiling to a glibc system, set gl_cv_func_signbit and
35144         gl_cv_func_signbit_gcc to "guessing yes".
35146 2012-05-05  Bruno Haible  <bruno@clisp.org>
35148         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
35149         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
35150         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
35151         to "guessing yes".
35152         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
35153         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
35155 2012-05-05  Bruno Haible  <bruno@clisp.org>
35157         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
35158         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
35159         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
35160         gl_cv_func_realpath_works to "guessing yes".
35162 2012-05-05  Bruno Haible  <bruno@clisp.org>
35164         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
35165         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
35166         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
35168 2012-05-04  Bruno Haible  <bruno@clisp.org>
35170         Tweak last commit.
35171         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
35172         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35174 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
35176         unistd_h: make it easier to avoid sys_types_h
35177         This is useful for Emacs, which has its own method of porting to
35178         Windows, and which therefore does not need the sys_types_h module.
35179         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
35180         code moved here from gl_SYS_TYPES_H.
35181         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
35182         using the code directly.
35183         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
35184         gl_SYS_TYPES_H.
35185         * modules/sys_types (Files):
35186         * modules/unistd (Files): Add m4/off_t.m4.
35188 2012-05-03  Bruno Haible  <bruno@clisp.org>
35190         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
35191         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
35192         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
35193         "guessing yes" or "guessing no".
35194         (gl_FUNC_LSTAT): Update.
35195         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
35196         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35197         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
35199 2012-05-03  Bruno Haible  <bruno@clisp.org>
35201         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
35202         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
35203         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
35204         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
35205         cross-compiling, choose the first alternative on glibc systems.
35206         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
35208 2012-05-03  Bruno Haible  <bruno@clisp.org>
35210         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
35211         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
35212         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
35214 2012-05-03  Bruno Haible  <bruno@clisp.org>
35216         chown: Avoid "guessing no" when cross-compiling to glibc systems.
35217         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
35219 2012-05-03  Bruno Haible  <bruno@clisp.org>
35221         Avoid "guessing no" guesses when cross-compiling to glibc systems.
35222         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
35223         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
35224         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
35225         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
35226         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
35227         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
35228         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
35229         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
35230         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
35231         compiling to glibc systems, set gl_cv_func_chown_slash_works,
35232         gl_cv_func_chown_ctime_works to "guessing yes".
35233         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
35234         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
35235         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
35236         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
35237         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
35238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
35239         compiling to glibc systems, set gl_cv_func_open_directory_works to
35240         "guessing yes".
35241         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
35242         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
35243         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
35244         "guessing yes".
35245         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
35246         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
35247         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
35248         compiling to glibc systems, set gl_cv_func_floorf_ieee to
35249         "guessing yes".
35250         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
35251         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
35252         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
35253         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
35254         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
35255         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
35256         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
35257         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
35258         "guessing yes".
35259         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
35260         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
35261         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
35262         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
35263         "guessing yes".
35264         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
35265         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
35266         "guessing yes".
35267         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
35268         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
35269         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
35270         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
35271         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
35272         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
35273         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
35274         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
35275         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
35276         compiling to glibc systems, set gl_cv_func_log10f_ieee to
35277         "guessing yes".
35278         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
35279         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
35280         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
35281         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
35282         "guessing yes".
35283         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
35284         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
35285         "guessing yes".
35286         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
35287         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
35288         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
35289         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
35290         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
35291         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
35292         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
35293         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
35294         compiling to glibc systems, set gl_cv_func_mkfifo_works to
35295         "guessing yes".
35296         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
35297         compiling to glibc systems, set gl_cv_func_mknod_works to
35298         "guessing yes".
35299         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
35300         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
35301         "guessing yes".
35302         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
35303         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
35304         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
35305         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
35306         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
35307         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
35308         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
35309         compiling to glibc systems, set gl_cv_func_svid_putenv to
35310         "guessing yes".
35311         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
35312         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
35313         "guessing yes".
35314         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
35315         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
35316         "guessing yes".
35317         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
35318         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
35319         to "guessing yes".
35320         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
35321         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
35322         to "guessing yes".
35323         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
35324         compiling to glibc systems, set gl_cv_func_rmdir_works to
35325         "guessing yes".
35326         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
35327         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
35328         gl_cv_func_unlink_parent_fails to "guessing yes".
35329         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
35330         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
35331         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
35332         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
35333         gl_cv_func_rename_dest_works to "guessing yes".
35334         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
35335         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
35336         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
35337         compiling to glibc systems, set gl_cv_func_roundf_ieee to
35338         "guessing yes".
35339         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
35340         compiling to glibc systems, set gl_cv_func_roundl_ieee to
35341         "guessing yes".
35342         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
35343         compiling to glibc systems, set gl_cv_func_setenv_works to
35344         "guessing yes".
35345         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
35346         compiling to glibc systems, set gl_cv_func_unsetenv_works to
35347         "guessing yes".
35348         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
35349         compiling to glibc systems, set gl_cv_func_sleep_works to
35350         "guessing yes".
35351         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
35352         compiling to glibc systems, set gl_cv_func_stat_file_slash to
35353         "guessing yes".
35354         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
35355         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
35356         "guessing yes".
35357         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
35358         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
35359         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
35360         compiling to glibc systems, set gl_cv_func_truncf_ieee to
35361         "guessing yes".
35362         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
35363         compiling to glibc systems, set gl_cv_func_truncl_ieee to
35364         "guessing yes".
35365         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
35366         compiling to glibc systems, set gl_cv_func_usleep_works to
35367         "guessing yes".
35368         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
35369         compiling to glibc systems, set gl_cv_func_futimesat_works to
35370         "guessing yes".
35372 2012-05-03  Bruno Haible  <bruno@clisp.org>
35374         Say "guessing yes" or "guessing no" when cross-compiling.
35375         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
35376         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
35377         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
35378         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
35379         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
35380         am_cv_func_working_getline to "guessing yes" or "guessing no".
35381         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
35382         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
35383         (gl_FUNC_MEMMEM): When cross-compiling, set
35384         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
35385         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
35386         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
35387         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
35388         set gl_cv_func_strcasestr_works_always to "guessing yes" or
35389         "guessing no".
35390         (gl_FUNC_STRCASESTR): When cross-compiling, set
35391         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
35392         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
35393         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
35394         (gl_FUNC_STRSTR): When cross-compiling, set
35395         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
35396         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
35397         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
35398         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
35399         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
35401 2012-05-01  Bruno Haible  <bruno@clisp.org>
35403         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
35404         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
35405         * build-aux/reloc-ldflags: Likewise.
35406         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
35408 2012-05-01  Bruno Haible  <bruno@clisp.org>
35410         gnulib-tool: Remove transitional code.
35411         * gnulib-tool: Don't warn about --import with 0 arguments any more.
35412         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
35414 2012-05-01  Bruno Haible  <bruno@clisp.org>
35416         getcwd: Fix misindentation.
35417         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
35419 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35421         exclude: process exclude and include directives in order
35422         This restores the pre-2009 behavior, and is part of a fix of a
35423         grep bug reported by Quentin Arce in
35424         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
35425         * lib/exclude.c (struct exclude): Remove 'tail' member.
35426         (new_exclude_segment): Prepend the new segment instead of appending.
35427         Return void, since that's now more convenient.
35428         (file_pattern_matches): Renamed from excluded_file_pattern_p.
35429         (file_name_matches): Renamed from excluded_file_name_p.
35430         (file_pattern_matches, file_name_matches):
35431         Return true if the pattern matches, not if it excludes.
35432         All callers changed.
35433         (excluded_file_name): Process the list in reverse order;
35434         since the list is now reversed this restores the pre-2009 behavior.
35435         (add_exclude): Adjust to new reversed-order list.  Use local var
35436         rather than macro, for clarity.
35437         * tests/test-exclude7.sh: Adjust to corrected behavior.
35439         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
35440         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
35441         it's not possible here.  Handle the case of \ at end of pattern
35442         without dumping core.
35443         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
35445         _Noreturn: future-proof non-GNU and non-MSVC compilers
35446         * build-aux/snippet/_Noreturn.h (_Noreturn):
35447         * m4/gnulib-common.m4 (gl_COMMON_BODY):
35448         Do not define _Noreturn if __STDC_VERSION__ indicates this is
35449         C11 or later.  This is more likely to work with random future C
35450         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
35451         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
35453         exclude: handle wildcards with FNM_EXTMATCH
35454         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
35455         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
35456         comment that "has wildcards" really means "has or may have
35457         wildcards".  Simplify by avoiding the need to call strcspn.
35459 2012-04-29  Bruno Haible  <bruno@clisp.org>
35461         gnulib-tool: Fix list of authors.
35462         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
35464 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
35466         bootstrap: support Automake-NG in $buildreq
35467         * bootstrap (check_versions): Handle automake and aclocal from
35468         Automake-NG specially.  They can be specified as respectively
35469         the "automake-ng" and "aclocal-ng" requirements.
35471 2012-04-25  Eric Blake  <eblake@redhat.com>
35473         bootstrap: only force latest Makefile.in.in for gettext module
35474         * build-aux/bootstrap (with_gettext): Only install latest
35475         Makefile.in.in for projects requesting bleeding edge gettext.
35477 2012-04-22  Bruno Haible  <bruno@clisp.org>
35479         doc: Mention reason for replacement on glibc/Linux systems.
35480         * doc/posix-functions/dprintf.texi: Mention the problem with special
35481         'long double' values.
35482         * doc/posix-functions/fprintf.texi: Likewise.
35483         * doc/posix-functions/printf.texi: Likewise.
35484         * doc/posix-functions/snprintf.texi: Likewise.
35485         * doc/posix-functions/sprintf.texi: Likewise.
35486         * doc/posix-functions/vdprintf.texi: Likewise.
35487         * doc/posix-functions/vfprintf.texi: Likewise.
35488         * doc/posix-functions/vprintf.texi: Likewise.
35489         * doc/posix-functions/vsnprintf.texi: Likewise.
35490         * doc/posix-functions/vsprintf.texi: Likewise.
35491         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
35492         platforms with F_DUPFD_CLOEXEC problems.
35493         * doc/posix-functions/glob.texi: Mention which platforms are affected
35494         by the problem with symbolic links.
35495         * doc/posix-functions/linkat.texi: Mention the problem with
35496         AT_SYMLINK_FOLLOW on Linux.
35498 2012-04-22  Bruno Haible  <bruno@clisp.org>
35500         pwrite: Don't replace on all platforms.
35501         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
35503 2012-04-22  Bruno Haible  <bruno@clisp.org>
35505         rint* tests: Avoid gcc warnings.
35506         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
35507         * tests/test-rintf.c (INFINITY, NAN): Likewise.
35508         * tests/test-rintl.c (INFINITY, NAN): Likewise.
35510 2012-04-21  Bruno Haible  <bruno@clisp.org>
35512         users.txt: Update.
35513         * users.txt: Add freedink, wdiff. Update URLs for projects that have
35514         switched from CVS to git, bzr, or svn.
35516 2012-04-21  Bruno Haible  <bruno@clisp.org>
35518         Large File Support for native Windows platforms.
35520         * m4/largefile.m4 (gl_LARGEFILE): New macro.
35521         * modules/largefile (configure.ac): Require gl_LARGEFILE.
35523         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
35524         type.
35525         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
35526         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
35527         * doc/posix-headers/sys_types.texi: Mention the effect of the
35528         'largefile' module.
35530         * lib/fcntl.in.h: Add comments about off_t.
35531         * modules/fcntl-h (Depends-on): Add sys_types.
35533         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
35534         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
35535         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
35536         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
35537         * modules/unistd (Depends-on): Add sys_types.
35538         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
35540         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
35541         instead of lseek.
35542         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
35543         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
35544         * modules/lseek (Depends-on): Add sys_types.
35546         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
35547         msvc-nothrow.h.
35548         (SetFileSize): New function.
35549         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
35550         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
35551         if Large File Support is requested.
35552         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
35553         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
35555         * lib/stdio.in.h: Add comments about off_t.
35556         * modules/stdio (Depends-on): Add sys_types.
35558         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
35559         instead of ftello.
35560         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
35561         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
35562         (gl_PREREQ_FTELLO): New macro.
35563         * modules/ftello (Depends-on): Add sys_types.
35564         (configure.ac): Incoke gl_PREREQ_FTELLO.
35566         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
35567         instead of fseeko.
35568         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
35569         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
35570         (gl_PREREQ_FSEEKO): New macro.
35571         * modules/fseeko (Depends-on): Add sys_types.
35572         (configure.ac): Invoke gl_PREREQ_FSEEKO.
35574         * lib/sys_stat.in.h: Add comments about off_t.
35575         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
35576         64-bit integer for st_size in 'struct stat'.
35577         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
35578         Define _GL_WINDOWS_64_BIT_ST_SIZE.
35579         * modules/sys_stat (Depends-on): Add sys_types.
35580         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
35582         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
35583         instead of stat or _stat.
35585         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
35586         'struct _stati64' instead of fstat and 'struct stat'.
35587         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
35588         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
35590         Reported by Ray Satiro <raysatiro@yahoo.com>.
35592 2012-04-19  Eric Blake  <eblake@redhat.com>
35594         bootstrap: accommodate older libtool
35595         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
35596         Reported by Daniel P. Berrange.
35598 2012-04-19  Jim Meyering  <meyering@redhat.com>
35600         announce-gen: avoid failure due to lack of Digest::SHA1
35601         Even with the preferred Digest::SHA available, this script
35602         would fail when the backup module, Digest::SHA1, was not installed.
35603         * build-aux/announce-gen: Quote the conditional use of "use".
35604         Reported by Reuben Thomas in:
35605         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
35607         bootstrap: don't let a user's CDPATH setting affect this script
35608         When CDPATH is set, cd will sometimes generate output.
35609         When "cd" is run in a subshell whose output matters, that
35610         surprising-to-some output can cause malfunction.
35611         Unsetting CDPATH turns off this shell "feature."
35612         * build-aux/bootstrap (CDPATH): Unset.
35613         Reported by Reuben Thomas in:
35614         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
35615         and inspired by his patch here:
35616         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
35618 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
35619         and Jim Meyering  <meyering@redhat.com>
35621         maint.mk: catch "see @xref{}" and similar
35622         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
35623         prohibit "See also @xref{", "Also see @pxref{", and similar.
35625 2012-04-16  Jim Meyering  <meyering@redhat.com>
35627         bootstrap: really use gnulib's po/Makefile.in.in
35628         * build-aux/bootstrap: Correct the source file name in previous change.
35629         Reported by Akim Demaille.
35631         configmake: correct minor inconsistency in Makefile rule
35632         * modules/configmake (Makefile.am): All other rules like this one
35633         run the final "mv -f ..." in the same backslash-continued command
35634         as the one that does everything else.  This one put the mv -f ...
35635         command on a separate, non-backslash-continued line.
35636         Make it like the others.
35638         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
35639         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
35640         the one from gettext.  Reported by Akim Demaille.
35642 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
35644         Fix recursion of install-* into po directories.
35645         Bison's install-pdf bug reported by Hans Aberg at
35646         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
35647         * build-aux/po/Makefile.in.in (install-dvi, install-html)
35648         (install-info, install-pdf, install-ps): New targets.
35650 2012-04-16  Jim Meyering  <meyering@redhat.com>
35652         maint: avoid spurious "make sc_maint" failure
35653         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
35654         exempt all *.class file names, for lib/javaversion.class.
35656 2012-04-15  Bruno Haible  <bruno@clisp.org>
35658         lseek: Make configure test independent of environment.
35659         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
35660         Windows, we know that lseek() on pipes is broken; skip the runtime
35661         test.
35663 2012-04-14  Bruno Haible  <bruno@clisp.org>
35665         stat: Bypass buggy override in mingw64.
35666         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
35667         * lib/stat.c (stat) [mingw64]: Define to _stat.
35668         * doc/posix-functions/stat.texi: Mention mingw64 bug.
35670 2012-04-14  Bruno Haible  <bruno@clisp.org>
35672         pathmax: Fix compilation error on MSVC 9.
35673         * modules/pathmax (Depends-on): Add unistd.
35675 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35677         README: document pointer comparison assumption
35678         * README (Portability guidelines): Document assumption about
35679         pointer comparisons, in response to a recent bug-gnulib comment by
35680         Jeffrey Kegler.
35682 2012-04-12  Bruno Haible  <bruno@clisp.org>
35684         Tests for module 'getrusage'.
35685         * modules/getrusage-tests: New file.
35686         * tests/test-getrusage.c: New file.
35688         New module 'getrusage'.
35689         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
35690         warn-on-use.h.
35691         (getrusage): New declaration.
35692         * lib/getrusage.c: New file.
35693         * m4/getrusage.m4: New file.
35694         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
35695         is declared.
35696         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
35697         HAVE_GETRUSAGE.
35698         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
35699         snippet/c++defs, snippet/warn-on-use.
35700         (Makefile.am): Update generation of sys/resource.h. Substitute
35701         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
35702         * modules/getrusage: New file.
35703         * doc/posix-functions/getrusage.texi: Mention the new module.
35705 2012-04-12  Bruno Haible  <bruno@clisp.org>
35707         Tests for module 'sys_resource'.
35708         * modules/sys_resource-tests: New file.
35709         * tests/test-sys_resource.c: New file.
35711         New module 'sys_resource'.
35712         * lib/sys_resource.in.h: New file.
35713         * m4/sys_resource_h.m4: New file.
35714         * modules/sys_resource: New file.
35715         * doc/posix-headers/sys_resource.texi: Mention the new module.
35717 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
35719         ioctl: Fix compilation error on mingw.
35720         * lib/ioctl.c: Include <windows.h>.
35721         Also reported by Ray Satiro <raysatiro@yahoo.com>.
35723 2012-04-04  Jim Meyering  <meyering@redhat.com>
35725         regex: correct #pragma guard expression
35726         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
35727         not 4.3.  Correct its cpp guard expression.
35729 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
35731         regex: remove unnecessary type punning
35732         Problem reported by Vladimir Serbinenko in
35733         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
35734         * lib/regex.h (struct re_pattern_buffer): Change the type of
35735         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
35736         Fix comment to match code.
35737         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
35738         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
35739         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35740         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
35741         (set_regs):
35742         Omit no-longer-necessary casts.
35744 2012-04-03  Bruno Haible  <bruno@clisp.org>
35746         Tests for module 'ilogbl'.
35747         * modules/ilogbl-tests: New file.
35748         * tests/test-ilogbl.c: New file.
35750         New module 'ilogbl'.
35751         * lib/math.in.h (ilogbl): New declaration.
35752         * lib/ilogbl.c: New file.
35753         * m4/ilogbl.m4: New file.
35754         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
35755         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
35756         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
35757         Split sed invocation, to avoid the limit of 100 substitutions of
35758         HP-UX 'sed'.
35759         * modules/ilogbl: New file.
35760         * tests/test-math-c++.cc: Check the declaration of ilogbl.
35761         * doc/posix-functions/ilogbl.texi: Mention the new module.
35763 2012-04-03  Bruno Haible  <bruno@clisp.org>
35765         Tests for module 'ilogbf'.
35766         * modules/ilogbf-tests: New file.
35767         * tests/test-ilogbf.c: New file.
35769         New module 'ilogbf'.
35770         * lib/math.in.h (ilogbf): New declaration.
35771         * lib/ilogbf.c: New file.
35772         * m4/ilogbf.m4: New file.
35773         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
35774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
35775         REPLACE_ILOGBF.
35776         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
35777         REPLACE_ILOGBF.
35778         * modules/ilogbf: New file.
35779         * tests/test-math-c++.cc: Check the declaration of ilogbf.
35780         * doc/posix-functions/ilogbf.texi: Mention the new module.
35782 2012-04-03  Bruno Haible  <bruno@clisp.org>
35784         Tests for module 'ilogb'.
35785         * modules/ilogb-tests: New file.
35786         * tests/test-ilogb.c: New file.
35787         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
35788         tests/test-logb-ieee.h.
35790         New module 'ilogb'.
35791         * lib/math.in.h (ilogb): New declaration.
35792         * lib/ilogb.c: New file.
35793         * m4/ilogb.m4: New file.
35794         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
35795         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
35796         REPLACE_ILOGB.
35797         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
35798         REPLACE_ILOGB.
35799         * modules/ilogb: New file.
35800         * tests/test-math-c++.cc: Check the declaration of ilogb.
35801         * doc/posix-functions/ilogb.texi: Mention the new module.
35803 2012-04-03  Bruno Haible  <bruno@clisp.org>
35805         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
35806         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
35807         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
35808         (main): Check their values.
35809         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
35810         problem.
35812 2012-04-03  Bruno Haible  <bruno@clisp.org>
35814         Tests for module 'logbl-ieee'.
35815         * modules/logbl-ieee-tests: New file.
35816         * tests/test-logbl-ieee.c: New file.
35818         New module 'logbl-ieee'.
35819         * modules/logbl-ieee: New file.
35821         Tests for module 'logb-ieee'.
35822         * modules/logb-ieee-tests: New file.
35823         * tests/test-logb-ieee.c: New file.
35825         New module 'logb-ieee'.
35826         * modules/logb-ieee: New file.
35828         Tests for module 'logbf-ieee'.
35829         * modules/logbf-ieee-tests: New file.
35830         * tests/test-logbf-ieee.c: New file.
35831         * tests/test-logb-ieee.h: New file.
35833         New module 'logbf-ieee'.
35834         * modules/logbf-ieee: New file.
35836 2012-04-03  Bruno Haible  <bruno@clisp.org>
35838         Tests for module 'logbl'.
35839         * modules/logbl-tests: New file.
35840         * tests/test-logbl.c: New file.
35842         New module 'logbl'.
35843         * lib/math.in.h (logbl): New declaration.
35844         * lib/logbl.c: New file.
35845         * m4/logbl.m4: New file.
35846         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
35847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
35848         REPLACE_LOGBL.
35849         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
35850         REPLACE_LOGBL.
35851         * modules/logbl: New file.
35852         * tests/test-math-c++.cc: Check the declaration of logbl.
35853         * doc/posix-functions/logbl.texi: Mention the new module.
35855 2012-04-02  Bruno Haible  <bruno@clisp.org>
35857         Tests for module 'logbf'.
35858         * modules/logbf-tests: New file.
35859         * tests/test-logbf.c: New file.
35861         New module 'logbf'.
35862         * lib/math.in.h (logbf): New declaration.
35863         * lib/logbf.c: New file.
35864         * m4/logbf.m4: New file.
35865         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
35866         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
35867         REPLACE_LOGBF.
35868         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
35869         REPLACE_LOGBF.
35870         * modules/logbf: New file.
35871         * tests/test-math-c++.cc: Check the declaration of logbf.
35872         * doc/posix-functions/logbf.texi: Mention the new module.
35874 2012-04-02  Bruno Haible  <bruno@clisp.org>
35876         logb tests: More tests.
35877         * tests/test-logb.h: New file, based on tests/test-logb.c and
35878         tests/test-frexp.h.
35879         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
35880         (main): Just invoke test_function.
35881         * modules/logb-tests (Files): Add tests/test-logb.h,
35882         tests/minus-zero.h, tests/randomd.c.
35883         (Makefile.am): Add randomd.c to test_logb_SOURCES.
35885         logb: Provide replacement and workarounds.
35886         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
35887         is 1.
35888         * lib/logb.c: New file.
35889         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
35890         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
35891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
35892         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
35893         * modules/logb (Files): Add lib/logb.c.
35894         (Depends-on): Add isfinite, frexp, isnand.
35895         (configure.ac): Compile the replacement code logb.c if needed.
35896         * tests/test-math-c++.cc: Check the declaration of logb.
35897         * doc/posix-functions/logb.texi: Mention the replacement and the bug
35898         with subnormal numbers.
35900 2012-04-02  Bruno Haible  <bruno@clisp.org>
35902         log10* tests: Speed up.
35903         * tests/test-log10.h (test_function): Reduce amount of random numbers
35904         to test.
35906 2012-04-01  Bruno Haible  <bruno@clisp.org>
35908         logf-ieee: Fix test whether logf works.
35909         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
35911 2012-04-01  Bruno Haible  <bruno@clisp.org>
35913         log10l: Work around log10l-ieee test failure on IRIX 6.5.
35914         * lib/log10l.c: Include <float.h>
35915         (log10l): On IRIX, normalize the +Infinity value.
35916         * modules/log10l (Depends-on): Add 'float'.
35917         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
35918         +Infinity.
35920         log10f-ieee: Work around test failure on NetBSD 5.1.
35921         * m4/log10f-ieee.m4: New file.
35922         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
35923         test whether log10f works with a negative argument. Replace it if not.
35924         * lib/log10f.c (log10f): For negative arguments, return NaN.
35925         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
35926         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
35927         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
35929         log10f-ieee: Work around test failure on Solaris 9.
35930         * modules/log10f-ieee (Depends-on): Add log10-ieee.
35931         (configure.ac): Require gl_FUNC_LOG10F.
35933         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
35934         * m4/log10-ieee.m4: New file.
35935         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
35936         whether log10 works with a negative argument. Replace it if not.
35937         * lib/log10.c (log10): For negative arguments, return NaN.
35938         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
35939         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
35940         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
35942         Tests for module 'log10l-ieee'.
35943         * modules/log10l-ieee-tests: New file.
35944         * tests/test-log10l-ieee.c: New file.
35946         New module 'log10l-ieee'.
35947         * modules/log10l-ieee: New file.
35949         Tests for module 'log10-ieee'.
35950         * modules/log10-ieee-tests: New file.
35951         * tests/test-log10-ieee.c: New file.
35953         New module 'log10-ieee'.
35954         * modules/log10-ieee: New file.
35956         Tests for module 'log10f-ieee'.
35957         * modules/log10f-ieee-tests: New file.
35958         * tests/test-log10f-ieee.c: New file.
35959         * tests/test-log10-ieee.h: New file.
35961         New module 'log10f-ieee'.
35962         * modules/log10f-ieee: New file.
35964 2012-04-01  Bruno Haible  <bruno@clisp.org>
35966         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
35967         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
35968         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
35969         workaround.
35970         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
35971         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
35972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
35973         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
35974         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
35975         (Depends-on): Update conditions.
35976         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
35977         IRIX 6.5, OSF/1 5.1 problems.
35979 2012-04-01  Bruno Haible  <bruno@clisp.org>
35981         log10f: Work around OSF/1 5.1 bug.
35982         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
35983         * lib/log10f.c (log10f): If logf exists, use it and provide just the
35984         workaround.
35985         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
35986         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
35987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
35988         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
35989         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
35990         (Depends-on): Update conditions.
35991         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
35993 2012-04-01  Bruno Haible  <bruno@clisp.org>
35995         log10: Work around OSF/1 5.1 bug.
35996         * lib/math.in.h (log10): New declaration.
35997         * lib/log10.c: New file.
35998         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
35999         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
36000         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
36001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
36002         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
36003         * modules/log10 (Files): Add lib/log10.c.
36004         (Depends-on): Add math.
36005         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
36006         * tests/test-math-c++.cc: Check the declaration of log10.
36007         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
36009 2012-03-31  Bruno Haible  <bruno@clisp.org>
36011         log10l tests: More tests.
36012         * modules/log10l-tests (Files): Add tests/test-log10l.h,
36013         tests/minus-zero.h, tests/randoml.c.
36014         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
36015         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
36016         (main): Invoke test_function.
36018         log10f tests: More tests.
36019         * modules/log10f-tests (Files): Add tests/test-log10.h,
36020         tests/minus-zero.h, tests/randomf.c.
36021         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
36022         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
36023         (main): Invoke test_function.
36025         log10 tests: More tests.
36026         * tests/test-log10.h: New file.
36027         * modules/log10-tests (Files): Add tests/test-log10.h,
36028         tests/minus-zero.h, tests/randomd.c.
36029         (Makefile.am): Add randomd.c to test_log10_SOURCES.
36030         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
36031         (main): Invoke test_function.
36033 2012-03-31  Simon Josefsson  <simon@josefsson.org>
36035         fflush: Fix syntax error.
36036         * lib/fflush.c: Include unused-parameter.h, needed for
36037         _GL_UNUSED_PARAMETER.
36038         * modules/fflush (Depends-on): Add snippet/unused-parameter.
36040 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36042         regex: pacify GCC when compiling GRUB
36043         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
36044         a diagnostic.  Reported by Vladimir Serbinenko in
36045         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
36047 2012-03-29  Eric Blake  <eblake@redhat.com>
36049         stdio: don't assume gets any more
36050         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
36051         support.
36052         * modules/stdio (Makefile.am): Likewise.
36053         * lib/stdio-read.c (gets): Likewise.
36054         * tests/test-stdio-c++.cc: Likewise.
36055         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
36056         * lib/stdio.in.h (gets): Make warning occur in more places.
36057         * doc/posix-functions/gets.texi (gets): Update documentation.
36058         Reported by Christer Solskogen.
36060         maint.mk: fix syntax checks without exclusions
36061         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
36062         Reported by Daniel P. Berrange.
36064         strerror_r: avoid compiler warning
36065         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
36066         level.
36068         fflush: avoid compiler warning
36069         * lib/fflush.c (update_fpos_cache): Mark variables that are
36070         potentially unused.
36072 2012-03-25  Bruno Haible  <bruno@clisp.org>
36074         Tests for module 'localeconv'.
36075         * modules/localeconv-tests: New file.
36076         * tests/test-localeconv.c: New file.
36078         New module 'localeconv'.
36079         * lib/locale.in.h (localeconv): New declaration.
36080         * lib/localeconv.c: New file.
36081         * m4/localeconv.m4: New file.
36082         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
36083         REPLACE_LOCALECONV.
36084         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
36085         REPLACE_LOCALECONV.
36086         * modules/localeconv: New file.
36087         * modules/nl_langinfo (Depends-on): Add localeconv.
36088         * modules/human (Depends-on): Likewise.
36089         * doc/posix-functions/localeconv.texi: Mention the new module.
36091 2012-03-25  Bruno Haible  <bruno@clisp.org>
36093         locale: Provide a complete 'struct lconv'.
36094         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36095         'struct lconv' does not contain int_p_cs_precedes.
36096         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36097         * doc/posix-headers/locale.texi: Update.
36099         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
36100         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
36101         * doc/posix-headers/locale.texi: Update.
36103         locale: Provide a working 'struct lconv'.
36104         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
36105         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
36106         'struct lconv' does not even contain decimal_point.
36107         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
36108         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
36109         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
36110         * doc/posix-headers/locale.texi: Mention the problems with
36111         'struct lconv'.
36112         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
36114 2012-03-24  Bruno Haible  <bruno@clisp.org>
36116         Enable common subexpression optimization in GCC.
36117         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
36118         macros.
36119         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
36120         GCC attribute 'const'.
36121         (uc_locale_language): Declare with GCC attribute 'pure'.
36122         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
36123         with GCC attribute 'const'.
36124         * lib/unictype.in.h (uc_is_general_category_withtable,
36125         uc_combining_class, uc_combining_class_name,
36126         uc_combining_class_long_name, uc_bidi_class_name,
36127         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
36128         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
36129         uc_decimal_value, uc_digit_value, uc_numeric_value,
36130         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
36131         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
36132         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
36133         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
36134         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
36135         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
36136         Declare with GCC attribute 'const'.
36137         (uc_general_category_name, uc_general_category_long_name,
36138         uc_general_category_byname, uc_general_category,
36139         uc_is_general_category, uc_combining_class_byname,
36140         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
36141         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
36142         Declare with GCC attribute 'pure'.
36143         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
36144         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
36145         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
36146         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
36147         with GCC attribute 'pure'.
36148         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
36149         'const'.
36150         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
36151         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
36152         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
36153         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
36154         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
36155         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
36156         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
36157         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
36158         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
36159         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
36160         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
36161         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
36162         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
36163         GCC attribute 'pure'.
36164         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
36165         'const'.
36166         * lib/uniwidth.in.h (uc_width): Simplify declaration.
36167         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
36168         u32_strwidth): Declare with GCC attribute 'pure'.
36170         Enable common subexpression optimization in GCC.
36171         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36172         (alphasort): Declare with GCC attribute 'pure'.
36173         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36174         (atoll): Declare with GCC attribute 'pure'.
36175         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36176         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36177         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
36178         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
36179         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
36180         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
36181         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
36183 2012-03-24  Bruno Haible  <bruno@clisp.org>
36185         gnulib-tool: Avoid unintended error output from 'cmp'.
36186         * gnulib-tool (func_add_file, func_update_file, func_import): Use
36187         "cmp -s", not "cmp > /dev/null".
36189 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
36191         gnulib-tool: fix imprecise comments w.r.t. an automake bug
36193         It's not just Automake versions < 1.9b that creates an empty
36194         pkgdatadir at installation time if pkgdata_DATA is specified
36195         to empty; modern automake versions do this as well, at least
36196         until automake 1.11.4 (not yet released at the moment of writing,
36197         but soon to appear).  That behaviour was generally considered a
36198         feature rather than a bug, at least until this discussion:
36199         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
36201         See also automake bugs #10997 and #11030.
36203         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
36204         reference to relevant automake bug numbers.
36205         (func_emit_tests_Makefile_am): Likewise.
36207 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36209         announce-gen: use Digest::SHA when possible
36210         * build-aux/announce-gen: Use Digest::SHA when possible, falling
36211         back to Digest::SHA1 if necessary.
36213 2012-03-20  Jim Meyering  <meyering@redhat.com>
36215         tests: avoid gcc warnings about argv vs. const initializers
36216         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
36217         warnings about discarding 'const' qualifier from pointer target type.
36218         * tests/test-posix_spawn2.c (main): Likewise.
36220 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
36222         README-release: simplify slightly
36223         * top/README-release: Run "git checkout master" only once.
36225 2012-03-15  Mark Wielaard  <mark@klomp.org>
36227         git-merge-changelog: add specific example on how to use with hg.
36228         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
36230 2012-03-18  Mark Wielaard  <mark@klomp.org>
36232         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
36234 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
36236         git-version-gen: don't let "prefix" envvar cause trouble
36237         * build-aux/git-version-gen (prefix): Initialize properly,
36238         so as not to use a value specified via the environment.
36239         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
36241 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36243         regex: diagnose too-large repeat counts in EREs
36244         Previously, the code did not diagnose the too-large repeat count
36245         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
36246         as if it were 'b\{1000000000}', which is unexpected.
36247         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
36248         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
36249         is a reasonable one for this problem.  Another option would be to
36250         create a new REG_OVERFLOW error for repeat counts that are too large.
36251         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
36252         count is too large, so that the caller can distinguish the two cases.
36253         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
36254         "Too large" return code, and that repeat counts are one example of this.
36256 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36258         doc: some glibc x32 integer width issues
36259         * doc/posix-headers/sys_types.texi (sys/types.h):
36260         * doc/posix-headers/time.texi (time.h):
36261         Mention that glibc x32 does not conform to POSIX in a couple of
36262         areas related to integer widths.
36264 2012-03-15  Bruno Haible  <bruno@clisp.org>
36266         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
36267         * lib/fma.c (VOLATILE): New macro.
36268         (FUNC): Use it to work around a GCC compiler bug.
36270 2012-03-13  Bruno Haible  <bruno@clisp.org>
36272         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36273         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
36274         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
36275         REPLACE_HYPOTL to 1.
36276         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
36278 2012-03-13  Bruno Haible  <bruno@clisp.org>
36280         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36281         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
36282         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
36283         REPLACE_REMAINDERL to 1.
36284         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
36285         bug.
36287 2012-03-13  Bruno Haible  <bruno@clisp.org>
36289         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36290         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
36291         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
36292         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
36293         too big rounding errors.
36294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
36295         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
36296         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
36297         (Depends-on): Update conditions.
36298         * tests/test-sqrtl.c (my_ldexpl): New function.
36299         (main): Add test of a particular value.
36300         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36302 2012-03-13  Pádraig Brady  <P@draigBrady.com>
36304         doc: Update timer_* platform portability notes.
36305         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
36306         that always return ENOSYS.
36307         * doc/posix-functions/timer_delete.texi: Likewise.
36308         * doc/posix-functions/timer_gettime.texi: Likewise.
36309         * doc/posix-functions/timer_settime.texi: Likewise.
36311 2012-03-13  Bruno Haible  <bruno@clisp.org>
36313         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
36314         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
36315         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
36316         REPLACE_CBRTL to 1.
36317         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
36319 2012-03-13  Bruno Haible  <bruno@clisp.org>
36321         remainderl: Avoid compilation error on AIX >= 5.2.
36322         * lib/math.in.h (remainderl): Undefine macro from the system header.
36324 2012-03-13  Bruno Haible  <bruno@clisp.org>
36326         Avoid compilation errors with MSVC option -fp:strict.
36327         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
36328         * lib/cbrtf.c: Likewise.
36329         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36331 2012-03-12  Bruno Haible  <bruno@clisp.org>
36333         uninorm: Don't crash in out-of-memory conditions.
36334         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
36335         gracefully.
36336         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
36337         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
36339 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
36341         quote: fix syntax-check
36342         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
36343         also exports quote_quoting_options.
36345 2012-03-12  Simon Josefsson  <simon@josefsson.org>
36347         Collapse list of copyright years to ranges.  See
36348         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
36349         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
36350         build-aux/csharpexec.sh.in, build-aux/gnupload,
36351         build-aux/install-reloc, build-aux/javacomp.sh.in,
36352         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
36353         build-aux/move-if-change, build-aux/reloc-ldflags,
36354         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
36356 2012-03-11  Bruno Haible  <bruno@clisp.org>
36358         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36359         * m4/log2f-ieee.m4: New file.
36360         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
36361         whether log2f works with a minus zero argument. Replace it if not.
36362         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
36363         (Depends-on): Add log2-ieee.
36364         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
36365         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
36367         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
36368         * m4/log2-ieee.m4: New file.
36369         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
36370         whether log2 works with a minus zero argument. Replace it if not.
36371         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
36372         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
36373         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
36375         Tests for module 'log2l-ieee'.
36376         * modules/log2l-ieee-tests: New file.
36377         * tests/test-log2l-ieee.c: New file.
36379         New module 'log2l-ieee'.
36380         * modules/log2l-ieee: New file.
36382         Tests for module 'log2-ieee'.
36383         * modules/log2-ieee-tests: New file.
36384         * tests/test-log2-ieee.c: New file.
36386         New module 'log2-ieee'.
36387         * modules/log2-ieee: New file.
36389         Tests for module 'log2f-ieee'.
36390         * modules/log2f-ieee-tests: New file.
36391         * tests/test-log2f-ieee.c: New file.
36392         * tests/test-log2-ieee.h: New file.
36394         New module 'log2f-ieee'.
36395         * modules/log2f-ieee: New file.
36397 2012-03-11  Bruno Haible  <bruno@clisp.org>
36399         Tests for module 'log2l'.
36400         * modules/log2l-tests: New file.
36401         * tests/test-log2l.c: New file.
36403         New module 'log2l'.
36404         * lib/math.in.h (log2l): New declaration.
36405         * lib/log2l.c: New file.
36406         * m4/log2l.m4: New file.
36407         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
36408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
36409         REPLACE_LOG2L.
36410         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
36411         REPLACE_LOG2L.
36412         * modules/log2l: New file.
36413         * tests/test-math-c++.cc: Check the declaration of log2l.
36414         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
36415         and OSF/1 problems.
36417 2012-03-11  Bruno Haible  <bruno@clisp.org>
36419         Tests for module 'log2f'.
36420         * modules/log2f-tests: New file.
36421         * tests/test-log2f.c: New file.
36423         New module 'log2f'.
36424         * lib/math.in.h (log2f): New declaration.
36425         * lib/log2f.c: New file.
36426         * m4/log2f.m4: New file.
36427         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
36428         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
36429         REPLACE_LOG2F.
36430         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
36431         REPLACE_LOG2F.
36432         * modules/log2f: New file.
36433         * tests/test-math-c++.cc: Check the declaration of log2f.
36434         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
36435         and OSF/1 and Cygwin problems.
36437 2012-03-11  Bruno Haible  <bruno@clisp.org>
36439         Tests for module 'log2'.
36440         * modules/log2-tests: New file.
36441         * tests/test-log2.c: New file.
36442         * tests/test-log2.h: New file.
36444         New module 'log2'.
36445         * lib/math.in.h (log2): New declaration.
36446         * lib/log2.c: New file.
36447         * m4/log2.m4: New file.
36448         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
36449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
36450         REPLACE_LOG2.
36451         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
36452         REPLACE_LOG2.
36453         * modules/log2: New file.
36454         * tests/test-math-c++.cc: Check the declaration of log2.
36455         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
36456         and OSF/1 and Cygwin problems.
36458 2012-03-11  Bruno Haible  <bruno@clisp.org>
36460         exp2* tests: More tests.
36461         * tests/test-exp2.h (test_function): Test all integral arguments that
36462         don't need to overflow or denormalized numbers.
36463         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
36464         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
36465         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
36467 2012-03-10  Bruno Haible  <bruno@clisp.org>
36469         log1pl-ieee: Work around test failure on AIX 7.1.
36470         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
36472         log1pl-ieee: Work around test failure on IRIX 6.5.
36473         * m4/log1pl-ieee.m4: New file.
36474         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
36475         test whether log1pl works with a minus zero argument. Replace it if
36476         not.
36477         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
36478         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
36479         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
36480         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
36481         (Depends-on): Update conditions.
36482         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36483         m4/signbit.m4.
36484         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
36485         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
36487         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
36488         * m4/log1pf-ieee.m4: New file.
36489         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
36490         test whether log1pf works with a minus zero argument. Replace it if
36491         not.
36492         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
36493         m4/signbit.m4.
36494         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
36495         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
36497         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
36498         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
36499         (configure.ac): Require gl_FUNC_LOG1PF.
36501         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
36502         * m4/log1p-ieee.m4: New file.
36503         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
36504         whether log1p works with a minus zero argument. Replace it if not.
36505         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
36506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
36507         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
36508         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
36509         (Depends-on): Update conditions.
36510         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
36511         m4/signbit.m4.
36512         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
36513         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
36515         Tests for module 'log1pl-ieee'.
36516         * modules/log1pl-ieee-tests: New file.
36517         * tests/test-log1pl-ieee.c: New file.
36519         New module 'log1pl-ieee'.
36520         * modules/log1pl-ieee: New file.
36522         Tests for module 'log1p-ieee'.
36523         * modules/log1p-ieee-tests: New file.
36524         * tests/test-log1p-ieee.c: New file.
36526         New module 'log1p-ieee'.
36527         * modules/log1p-ieee: New file.
36529         Tests for module 'log1pf-ieee'.
36530         * modules/log1pf-ieee-tests: New file.
36531         * tests/test-log1pf-ieee.c: New file.
36532         * tests/test-log1p-ieee.h: New file.
36534         New module 'log1pf-ieee'.
36535         * modules/log1pf-ieee: New file.
36537 2012-03-10  Bruno Haible  <bruno@clisp.org>
36539         Tests for module 'log1pl'.
36540         * modules/log1pl-tests: New file.
36541         * tests/test-log1pl.c: New file.
36543         New module 'log1pl'.
36544         * lib/math.in.h (log1pl): New declaration.
36545         * lib/log1pl.c: New file.
36546         * m4/log1pl.m4: New file.
36547         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
36548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
36549         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
36550         * modules/log1pl: New file.
36551         * tests/test-math-c++.cc: Check the declaration of log1pl.
36552         * doc/posix-functions/log1pl.texi: Mention the new module.
36554 2012-03-10  Bruno Haible  <bruno@clisp.org>
36556         Tests for module 'log1pf'.
36557         * modules/log1pf-tests: New file.
36558         * tests/test-log1pf.c: New file.
36560         New module 'log1pf'.
36561         * lib/math.in.h (log1pf): New declaration.
36562         * lib/log1pf.c: New file.
36563         * m4/log1pf.m4: New file.
36564         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
36565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
36566         REPLACE_LOG1PF.
36567         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
36568         REPLACE_LOG1PF.
36569         * modules/log1pf: New file.
36570         * tests/test-math-c++.cc: Check the declaration of log1pf.
36571         * doc/posix-functions/log1pf.texi: Mention the new module.
36573 2012-03-10  Bruno Haible  <bruno@clisp.org>
36575         log1p tests: More tests.
36576         * tests/test-log1p.h: New file.
36577         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
36578         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
36579         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
36580         (main): Invoke test_function.
36582         log1p: Provide replacement for Minix and MSVC.
36583         * lib/math.in.h (log1p): New declaration.
36584         * lib/log1p.c: New file.
36585         * m4/log1p.m4: New file.
36586         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
36587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
36588         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
36589         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
36590         (Depends-on): Add math, isnand, log, round.
36591         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
36592         HAVE_LOG1P is 0.
36593         * tests/test-math-c++.cc: Check the declaration of log1p.
36594         * doc/posix-functions/log1p.texi: Mention the replacement.
36596 2012-03-10  Bruno Haible  <bruno@clisp.org>
36598         math tests: Small simplification.
36599         * tests/test-exp.h (test_function): Use the same err_bound for
36600         'double' on platforms with sizeof (long double) == sizeof (double)
36601         than on platforms with sizeof (long double) > sizeof (double).
36602         * tests/test-exp2.h (test_function): Likewise.
36603         * tests/test-expm1.h (test_function): Likewise.
36604         * tests/test-log.h (test_function): Likewise.
36606 2012-03-10  Bruno Haible  <bruno@clisp.org>
36608         Fix some comments.
36609         * lib/expl.c: Fix an ambiguous comment.
36610         * lib/expm1.c: Likewise.
36611         * lib/expm1l.c: Likewise.
36612         * lib/exp2.c: Likewise.
36613         * lib/exp2l.c: Likewise.
36615 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
36617         regex: allow inclusion of <regex.h> before <limits.h>
36618         Without this patch, portable programs had to include <limits.h> before
36619         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
36620         I ran into this problem with a test version of GNU grep on Solaris 8.
36621         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
36622         This is done conditionally so that this change can be merged
36623         back to glibc.
36624         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
36625         using the included regex.
36627         fts: depend on fdopendir
36628         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
36629         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
36630         problem was introduced when fdopendir was split out.
36632 2012-03-10  Bruno Haible  <bruno@clisp.org>
36634         Remove unused variables.
36635         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
36636         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
36638 2012-03-10  Bruno Haible  <bruno@clisp.org>
36640         isnanf-nolibm: Fix last commit.
36641         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
36643         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
36644         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
36646 2012-03-10  Bruno Haible  <bruno@clisp.org>
36648         logf-ieee: Work around test failure on NetBSD 5.1.
36649         * m4/logf-ieee.m4: New file.
36650         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
36651         whether logf works with a negative argument. Replace it if not.
36652         * lib/logf.c (logf): For negative arguments, return NaN.
36653         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
36654         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
36655         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
36657         logf-ieee: Work around test failure on Solaris 9.
36658         * modules/logf-ieee (Depends-on): Add log-ieee.
36659         (configure.ac): Require gl_FUNC_LOGF.
36661         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36662         * m4/log-ieee.m4: New file.
36663         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
36664         log works with a negative argument. Replace it if not.
36665         * lib/log.c (log): For negative arguments, return NaN.
36666         * modules/log-ieee (Files): Add m4/log-ieee.m4.
36667         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
36668         * doc/posix-functions/log.texi: Mention the log-ieee module.
36670         Tests for module 'logl-ieee'.
36671         * modules/logl-ieee-tests: New file.
36672         * tests/test-logl-ieee.c: New file.
36674         New module 'logl-ieee'.
36675         * modules/logl-ieee: New file.
36677         Tests for module 'log-ieee'.
36678         * modules/log-ieee-tests: New file.
36679         * tests/test-log-ieee.c: New file.
36681         New module 'log-ieee'.
36682         * modules/log-ieee: New file.
36684         Tests for module 'logf-ieee'.
36685         * modules/logf-ieee-tests: New file.
36686         * tests/test-logf-ieee.c: New file.
36687         * tests/test-log-ieee.h: New file.
36689         New module 'logf-ieee'.
36690         * modules/logf-ieee: New file.
36692 2012-03-10  Bruno Haible  <bruno@clisp.org>
36694         log: Fix bug introduced on 2012-03-09.
36695         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
36697 2012-03-10  Pádraig Brady  <P@draigBrady.com>
36699         timer-time: link explicitly with pthreads on glibc
36700         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36701         to support static linking, when newer glibc is
36702         detected, as that contains pthread emulation of
36703         POSIX timer functions where required.
36704         * modules/timer-time: Depend on threadlib to
36705         pull in the appropriate library to link.
36707 2012-03-10  Bruno Haible  <bruno@clisp.org>
36709         log* tests: More tests.
36710         * tests/test-log.h: New file.
36711         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
36712         (main): Invoke test_function.
36713         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
36714         (main): Invoke test_function.
36715         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
36716         (main): Invoke test_function.
36717         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36718         tests/randomd.c.
36719         (Makefile.am): Add randomd.c to test_log_SOURCES.
36720         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36721         tests/randomf.c.
36722         (Makefile.am): Add randomf.c to test_logf_SOURCES.
36723         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
36724         tests/randoml.c.
36725         (Depends-on): Add 'float'.
36726         (Makefile.am): Add randoml.c to test_logl_SOURCES.
36728 2012-03-09  Bruno Haible  <bruno@clisp.org>
36730         logl: Work around OSF/1 5.1 bug.
36731         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
36732         * lib/logl.c (logl): If logl exists, use it and provide just the
36733         workaround.
36734         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
36735         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
36736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
36737         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
36738         * modules/logl (configure.ac): Consider REPLACE_LOGL.
36739         (Depends-on): Update conditions.
36740         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
36742 2012-03-09  Bruno Haible  <bruno@clisp.org>
36744         logf: Work around OSF/1 5.1 bug.
36745         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
36746         * lib/logf.c (logf): If logf exists, use it and provide just the
36747         workaround.
36748         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
36749         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
36750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
36751         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
36752         * modules/logf (configure.ac): Consider REPLACE_LOGF.
36753         (Depends-on): Update conditions.
36754         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
36756 2012-03-09  Bruno Haible  <bruno@clisp.org>
36758         log: Work around OSF/1 5.1 bug.
36759         * lib/math.in.h (log): New declaration.
36760         * lib/log.c: New file.
36761         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
36762         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
36763         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
36764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
36765         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
36766         * modules/log (Files): Add lib/log.c.
36767         (Depends-on): Add math.
36768         (configure.ac): If REPLACE_LOG is 1, compile an override.
36769         * tests/test-math-c++.cc: Check the declaration of log.
36770         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
36772 2012-03-09  Jim Meyering  <meyering@redhat.com>
36774         readtokens.c: adjust wording in a comment
36775         * lib/readtokens.c: Insert omitted "that" in a comment.
36777 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36779         modechange: add notations +40, 00440, etc.
36780         * lib/modechange.c (mode_compile): Support new notations
36781         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
36783 2012-03-08  Bruno Haible  <bruno@clisp.org>
36785         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
36786         * m4/exp2l-ieee.m4: New file.
36787         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
36788         test whether exp2l works with a NaN argument and with a negative
36789         infinity argument. Replace it if not.
36790         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
36791         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
36792         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
36793         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
36794         (Depends-on): Update conditions.
36795         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
36796         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
36797         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
36799         Tests for module 'exp2l-ieee'.
36800         * modules/exp2l-ieee-tests: New file.
36801         * tests/test-exp2l-ieee.c: New file.
36803         New module 'exp2l-ieee'.
36804         * modules/exp2l-ieee: New file.
36806         Tests for module 'exp2-ieee'.
36807         * modules/exp2-ieee-tests: New file.
36808         * tests/test-exp2-ieee.c: New file.
36810         New module 'exp2-ieee'.
36811         * modules/exp2-ieee: New file.
36813         Tests for module 'exp2f-ieee'.
36814         * modules/exp2f-ieee-tests: New file.
36815         * tests/test-exp2f-ieee.c: New file.
36816         * tests/test-exp2-ieee.h: New file.
36818         New module 'exp2f-ieee'.
36819         * modules/exp2f-ieee: New file.
36821 2012-03-08  Bruno Haible  <bruno@clisp.org>
36823         Tests for module 'exp2l'.
36824         * modules/exp2l-tests: New file.
36825         * tests/test-exp2l.c: New file.
36827         New module 'exp2l'.
36828         * lib/math.in.h (exp2l): New declaration.
36829         * lib/exp2l.c: New file.
36830         * lib/expl-table.c: New file, extracted from lib/expl.c.
36831         * lib/expl.c (gl_expl_table): New declaration.
36832         (expl): Remove expl_table. Update reference.
36833         * m4/exp2l.m4: New file.
36834         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
36835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
36836         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
36837         * modules/exp2l: New file.
36838         * modules/expl (Files): Add lib/expl-table.c.
36839         (configure.ac): Compile also expl-table.c.
36840         * tests/test-math-c++.cc: Check the declaration of exp2l.
36841         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
36842         problem.
36844 2012-03-08  Bruno Haible  <bruno@clisp.org>
36846         Tests for module 'exp2f'.
36847         * modules/exp2f-tests: New file.
36848         * tests/test-exp2f.c: New file.
36850         New module 'exp2f'.
36851         * lib/math.in.h (exp2f): New declaration.
36852         * lib/exp2f.c: New file.
36853         * m4/exp2f.m4: New file.
36854         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
36855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
36856         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
36857         * modules/exp2f: New file.
36858         * tests/test-math-c++.cc: Check the declaration of exp2f.
36859         * doc/posix-functions/exp2f.texi: Mention the new module and the
36860         IRIX problem.
36862 2012-03-08  Bruno Haible  <bruno@clisp.org>
36864         Tests for module 'exp2'.
36865         * modules/exp2-tests: New file.
36866         * tests/test-exp2.c: New file.
36867         * tests/test-exp2.h: New file.
36869         New module 'exp2'.
36870         * lib/math.in.h (exp2): New declaration.
36871         * lib/exp2.c: New file.
36872         * m4/exp2.m4: New file.
36873         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
36874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
36875         REPLACE_EXP2.
36876         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
36877         REPLACE_EXP2.
36878         * modules/exp2: New file.
36879         * tests/test-math-c++.cc: Check the declaration of exp2.
36880         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
36881         and OpenBSD problems.
36883 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
36885         savedir: fix comment typo
36886         * lib/savedir.c (savedirstream): Fix typo in comment.
36888 2012-03-08  Bruno Haible  <bruno@clisp.org>
36890         test-readtokens.c: use const; remove unwarranted cast
36891         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
36893 2012-03-08  Bruno Haible  <bruno@clisp.org>
36895         fmal: Avoid compilation error on AIX.
36896         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
36897         AIX 5.2..7.1.
36899 2012-03-08  Bruno Haible  <bruno@clisp.org>
36901         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
36902         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
36903         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
36904         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
36905         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
36906         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
36907         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
36909 2012-03-08  Bruno Haible  <bruno@clisp.org>
36911         remainderf: Override buggy system function on IRIX 6.5.
36912         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
36913         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
36914         when it exists.
36915         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
36917 2012-03-08  Jim Meyering  <meyering@redhat.com>
36919         test-readtokens.c: avoid const-related compilation warnings
36920         * tests/test-readtokens.c: Avoid const-related compilation warnings.
36922 2012-03-07  Jim Meyering  <meyering@redhat.com>
36923             Bruno Haible  <bruno@clisp.org>
36925         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
36926         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
36927         tests/randomd.c.
36928         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
36929         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
36930         tests/randoml.c.
36931         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
36933 2012-03-07  Bruno Haible  <bruno@clisp.org>
36935         expm1l: Avoid compilation error on AIX.
36936         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
36937         AIX 5.2..7.1.
36939 2012-03-07  Bruno Haible  <bruno@clisp.org>
36941         expm1l: Don't override undeclared system function on IRIX 6.5.
36942         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
36943         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
36944         it exists. Set HAVE_DECL_EXPM1L.
36945         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
36946         HAVE_EXPM1L.
36947         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
36948         HAVE_EXPM1L.
36949         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
36951 2012-03-07  Bruno Haible  <bruno@clisp.org>
36953         remainderl: Don't override undeclared system function on IRIX 6.5.
36954         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
36955         HAVE_REMAINDERL.
36956         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
36957         declared when it exists. Set HAVE_DECL_REMAINDERL.
36958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
36959         not HAVE_REMAINDERL.
36960         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
36961         HAVE_REMAINDERL.
36962         * doc/posix-functions/remainderl.texi: Mention missing declaration
36963         problem.
36965 2012-03-07  Bruno Haible  <bruno@clisp.org>
36967         rintf: Don't override undeclared system function on IRIX 6.5.
36968         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
36969         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
36970         exists. Set HAVE_DECL_RINTF.
36971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
36972         HAVE_RINTF.
36973         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
36974         HAVE_RINTF.
36975         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
36977 2012-03-07  Bruno Haible  <bruno@clisp.org>
36979         roundl: Avoid compilation error on AIX.
36980         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
36981         AIX 5.2..7.1.
36983 2012-03-07  Bruno Haible  <bruno@clisp.org>
36985         roundl: Don't override undeclared system function on IRIX 6.5.
36986         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
36987         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
36988         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
36989         * modules/roundl (configure.ac): For replacement code, test
36990         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
36991         (Depends-on): Update conditions.
36992         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
36994 2012-03-07  Bruno Haible  <bruno@clisp.org>
36996         roundf: Don't override undeclared system function on IRIX 6.5.
36997         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
36998         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
36999         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37000         * modules/roundf (configure.ac): For replacement code, test
37001         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
37002         (Depends-on): Update conditions.
37003         * modules/roundf-ieee (Depends-on): Update conditions.
37004         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
37006 2012-03-07  Bruno Haible  <bruno@clisp.org>
37008         round: Don't override undeclared system function on IRIX 6.5.
37009         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
37010         argument.
37011         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
37012         also when it is not declared. Set HAVE_ROUND. For replacement code,
37013         test HAVE_ROUND, not HAVE_DECL_ROUND.
37014         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
37015         not HAVE_DECL_ROUND.
37016         (Depends-on): Update conditions.
37017         * modules/round-ieee (Depends-on): Update conditions.
37018         * doc/posix-functions/round.texi: Mention the IRIX problem.
37020 2012-03-07  Bruno Haible  <bruno@clisp.org>
37022         copysignf: Don't override undeclared system function on IRIX 6.5.
37023         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
37024         HAVE_COPYSIGNF.
37025         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
37026         declared when it exists. Set HAVE_DECL_COPYSIGNF.
37027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
37028         not HAVE_COPYSIGNF.
37029         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
37030         HAVE_COPYSIGNF.
37031         * doc/posix-functions/copysignf.texi: Mention missing declaration
37032         problem.
37034 2012-03-07  Jim Meyering  <meyering@redhat.com>
37036         readtokens: add tests
37037         * modules/readtokens-tests: New file.
37038         * tests/test-readtokens.c: New file.
37040 2012-03-07  Jim Meyering  <meyering@redhat.com>
37042         quotearg: the module must now include quote.h
37043         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
37044         So must the module.
37045         * modules/quotearg (Files): Add quote.h.
37047 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
37049         readtokens: avoid core dumps with unusual calling patterns
37050         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
37051         * lib/readtokens.c: Include limits.h.
37052         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
37053         (readtoken): Don't cache the delimiters; the cache code was buggy
37054         if !delim && saved_delim, or if the new n_delim differs from the old.
37055         Also, it wasn't thread-safe.
37057 2012-03-07  Bruno Haible  <bruno@clisp.org>
37059         quote: Adhere to common module description layout.
37060         * modules/quote (Makefile.am): Add back empty section.
37062 2012-03-06  Akim Demaille  <demaille@gostai.com>
37064         quote: fuse into quotearg
37065         This patch is made for the benefit of Bison.
37066         quote does not leave the choice of the quoting style to the user.
37067         quoting_style provides poor customizability, yet quoting_options,
37068         which is very rich, is hidden inside quotearg.c.  So in order to
37069         allow quote customization, move its implementation to quotearg.c.
37070         * lib/quote.c: Remove.
37071         * modules/quote: Adjust.
37072         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
37073         warning: provide all the members of literal structs.
37074         (quote_quoting_options): New.
37075         (quote, quote_n): Import implementation from quote.c.
37076         * lib/quote.h: Import the comments from quote.c.
37077         (quote_quoting_options): New.
37079 2012-03-06  Bruno Haible  <bruno@clisp.org>
37081         Tests for module 'expm1l-ieee'.
37082         * modules/expm1l-ieee-tests: New file.
37083         * tests/test-expm1l-ieee.c: New file.
37085         New module 'expm1l-ieee'.
37086         * modules/expm1l-ieee: New file.
37088         Tests for module 'expm1f-ieee'.
37089         * modules/expm1f-ieee-tests: New file.
37090         * tests/test-expm1f-ieee.c: New file.
37092         New module 'expm1f-ieee'.
37093         * modules/expm1f-ieee: New file.
37095         Tests for module 'expm1-ieee'.
37096         * modules/expm1-ieee-tests: New file.
37097         * tests/test-expm1-ieee.c: New file.
37098         * tests/test-expm1-ieee.h: New file.
37100         New module 'expm1-ieee'.
37101         * modules/expm1-ieee: New file.
37102         * m4/expm1-ieee.m4: New file.
37103         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
37104         whether expm1 works with a minus zero argument. Replace it if not.
37105         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
37106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
37107         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
37108         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
37109         (Depends-on): Update conditions.
37110         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
37111         AIX problem.
37113 2012-03-06  Bruno Haible  <bruno@clisp.org>
37115         Work around expm1f bug on IRIX 6.5.
37116         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
37117         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
37118         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
37119         not work.
37120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
37121         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
37122         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
37123         (Depends-on): Update conditions.
37124         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
37126 2012-03-06  Bruno Haible  <bruno@clisp.org>
37128         Tests for module 'expm1l'.
37129         * modules/expm1l-tests: New file.
37130         * tests/test-expm1l.c: New file.
37132         New module 'expm1l'.
37133         * lib/math.in.h (expm1l): New declaration.
37134         * lib/expm1l.c: New file.
37135         * m4/expm1l.m4: New file.
37136         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
37137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
37138         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
37139         * modules/expm1l: New file.
37140         * tests/test-math-c++.cc: Check the declaration of expm1l.
37141         * doc/posix-functions/expm1l.texi: Mention the new module.
37143 2012-03-06  Bruno Haible  <bruno@clisp.org>
37145         Tests for module 'expm1f'.
37146         * modules/expm1f-tests: New file.
37147         * tests/test-expm1f.c: New file.
37149         New module 'expm1f'.
37150         * lib/math.in.h (expm1f): New declaration.
37151         * lib/expm1f.c: New file.
37152         * m4/expm1f.m4: New file.
37153         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
37154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
37155         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
37156         * modules/expm1f: New file.
37157         * tests/test-math-c++.cc: Check the declaration of expm1f.
37158         * doc/posix-functions/expm1f.texi: Mention the new module.
37160 2012-03-06  Bruno Haible  <bruno@clisp.org>
37162         Tests for module 'expm1'.
37163         * modules/expm1-tests: New file.
37164         * tests/test-expm1.c: New file.
37165         * tests/test-expm1.h: New file.
37167         New module 'expm1'.
37168         * lib/math.in.h (expm1): New declaration.
37169         * lib/expm1.c: New file.
37170         * m4/expm1.m4: New file.
37171         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
37172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
37173         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
37174         * modules/expm1: New file.
37175         * tests/test-math-c++.cc: Check the declaration of expm1.
37176         * doc/posix-functions/expm1.texi: Mention the new module.
37178 2012-03-06  Bruno Haible  <bruno@clisp.org>
37180         math: Ensure declarations of math functions.
37181         * modules/acosf (Depends-on): Add 'extensions'.
37182         * modules/asinf (Depends-on): Likewise.
37183         * modules/atan2f (Depends-on): Likewise.
37184         * modules/atanf (Depends-on): Likewise.
37185         * modules/cbrt (Depends-on): Likewise.
37186         * modules/cbrtf (Depends-on): Likewise.
37187         * modules/cbrtl (Depends-on): Likewise.
37188         * modules/copysignf (Depends-on): Likewise.
37189         * modules/copysignl (Depends-on): Likewise.
37190         * modules/cosf (Depends-on): Likewise.
37191         * modules/coshf (Depends-on): Likewise.
37192         * modules/expf (Depends-on): Likewise.
37193         * modules/fabsf (Depends-on): Likewise.
37194         * modules/fabsl (Depends-on): Likewise.
37195         * modules/fmaf (Depends-on): Likewise.
37196         * modules/fmal (Depends-on): Likewise.
37197         * modules/fmodf (Depends-on): Likewise.
37198         * modules/fmodl (Depends-on): Likewise.
37199         * modules/frexpf (Depends-on): Likewise.
37200         * modules/frexpl (Depends-on): Likewise.
37201         * modules/hypot (Depends-on): Likewise.
37202         * modules/hypotf (Depends-on): Likewise.
37203         * modules/hypotl (Depends-on): Likewise.
37204         * modules/ldexpf (Depends-on): Likewise.
37205         * modules/ldexpl (Depends-on): Likewise.
37206         * modules/log10f (Depends-on): Likewise.
37207         * modules/log10l (Depends-on): Likewise.
37208         * modules/log1p (Depends-on): Likewise.
37209         * modules/logb (Depends-on): Likewise.
37210         * modules/logf (Depends-on): Likewise.
37211         * modules/modff (Depends-on): Likewise.
37212         * modules/modfl (Depends-on): Likewise.
37213         * modules/powf (Depends-on): Likewise.
37214         * modules/remainderf (Depends-on): Likewise.
37215         * modules/remainderl (Depends-on): Likewise.
37216         * modules/rintf (Depends-on): Likewise.
37217         * modules/rintl (Depends-on): Likewise.
37218         * modules/sinf (Depends-on): Likewise.
37219         * modules/sinhf (Depends-on): Likewise.
37220         * modules/sqrtf (Depends-on): Likewise.
37221         * modules/tanf (Depends-on): Likewise.
37222         * modules/tanhf (Depends-on): Likewise.
37223         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
37224         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
37225         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
37226         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
37227         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
37228         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
37229         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
37230         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
37231         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
37232         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
37233         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
37234         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
37235         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
37236         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
37237         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
37238         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
37239         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
37240         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37241         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
37242         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
37243         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
37244         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
37245         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
37246         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
37247         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
37248         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
37249         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
37250         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
37251         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
37252         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
37253         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
37254         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
37255         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37256         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37257         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
37258         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
37259         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
37260         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
37261         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
37262         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
37263         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
37265 2012-03-06  Bruno Haible  <bruno@clisp.org>
37267         math: Update module names in warnings.
37268         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37269         tanl): Use specific module name in warn-on-use warning.
37271 2012-03-06  Bruno Haible  <bruno@clisp.org>
37273         expl: Simplify computation.
37274         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
37276 2012-03-05  Bruno Haible  <bruno@clisp.org>
37278         exp* tests: More tests.
37279         * tests/test-exp.h: New file.
37280         * tests/test-exp.c: Include <float.h> and test-exp.h.
37281         (main): Invoke test_function.
37282         * tests/test-expf.c: Include <float.h> and test-exp.h.
37283         (main): Invoke test_function.
37284         * tests/test-expl.c: Include <float.h> and test-exp.h.
37285         (main): Invoke test_function.
37286         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
37287         (Makefile.am): Add randomd.c to test_exp_SOURCES.
37288         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
37289         (Makefile.am): Add randomf.c to test_expf_SOURCES.
37290         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
37291         (Depends-on): Add 'float'.
37292         (Makefile.am): Add randoml.c to test_expl_SOURCES.
37294         expl: Fix precision of computed result.
37295         * lib/expl.c: Completely rewritten.
37296         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
37297         (Maintainer): Add me.
37298         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
37300 2012-03-05  Bruno Haible  <bruno@clisp.org>
37302         cbrt* tests: More tests.
37303         * tests/test-cbrt.h: New file.
37304         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
37305         (main): Invoke test_function.
37306         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
37307         (main): Invoke test_function.
37308         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
37309         (main): Invoke test_function.
37310         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
37311         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
37312         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
37313         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
37314         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
37315         (Depends-on): Add 'float'.
37316         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
37318 2012-03-05  Bruno Haible  <bruno@clisp.org>
37320         hypot* tests: More tests.
37321         * tests/test-hypot.h: New file, partially extracted from
37322         tests/test-hypotl.c.
37323         * tests/test-hypot.c: Include test-hypot.h.
37324         (main): Invoke test_function.
37325         * tests/test-hypotf.c: Include test-hypot.h.
37326         (main): Invoke test_function.
37327         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
37328         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
37329         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
37330         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
37331         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
37332         tests/randomf.c.
37333         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
37334         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
37335         tests/randoml.c.
37336         (Depends-on): Add 'fpucw', 'float'.
37337         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
37339 2012-03-05  Bruno Haible  <bruno@clisp.org>
37341         fpucw: Doc about FreeBSD.
37342         * lib/fpucw.h: Mention FreeBSD in comments.
37344 2012-03-04  Bruno Haible  <bruno@clisp.org>
37346         sqrt* tests: More tests.
37347         * tests/test-sqrt.h: New file.
37348         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
37349         (main): Invoke test_function.
37350         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
37351         (main): Invoke test_function.
37352         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
37353         (main): Invoke test_function.
37354         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
37355         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
37356         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
37357         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
37358         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
37359         (Depends-on): Add 'float'.
37360         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
37362 2012-03-04  Bruno Haible  <bruno@clisp.org>
37364         remainder* tests: More tests.
37365         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
37366         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
37367         (main): Invoke test_function.
37368         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
37369         (main): Invoke test_function.
37370         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
37371         (main): Invoke test_function.
37372         * modules/remainder-tests (Files): Add tests/test-remainder.h,
37373         tests/randomd.c.
37374         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
37375         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
37376         tests/randomf.c.
37377         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
37378         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
37379         tests/randoml.c.
37380         (Depends-on): Add 'float'.
37381         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
37383 2012-03-04  Bruno Haible  <bruno@clisp.org>
37385         remainder, remainderf, remainderl: Fix computation for large quotients.
37386         * lib/remainder.c: Completely rewritten.
37387         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
37388         USE_FLOAT.
37389         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
37390         USE_LONG_DOUBLE.
37391         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
37392         isnand, isinf. Remove round, fma.
37393         * modules/remainderf (Files): Add lib/remainder.c.
37394         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
37395         Remove roundf, fmaf.
37396         * modules/remainderl (Files): Add lib/remainder.c.
37397         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
37398         isinf. Remove roundl, fmal.
37399         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
37400         REMAINDER_LIBM.
37401         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
37402         REMAINDERF_LIBM.
37403         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
37404         REMAINDERL_LIBM.
37406 2012-03-04  Bruno Haible  <bruno@clisp.org>
37408         fmod* tests: More tests.
37409         * tests/test-fmod.h (my_ldexp): New function.
37410         (test_function): Reduce amount of random numbers to test. Add tests
37411         of very large quotients x / y.
37412         * tests/test-fmod.c (MAX_EXP): New macro.
37413         * tests/test-fmodf.c (MAX_EXP): Likewise.
37414         * tests/test-fmodl.c (MAX_EXP): Likewise.
37416 2012-03-04  Bruno Haible  <bruno@clisp.org>
37418         fmod, fmodl: Fix computation for large quotients x / y.
37419         * lib/fmod.c: Completely rewritten.
37420         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
37421         USE_LONG_DOUBLE.
37422         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
37423         isnand. Remove fma.
37424         * modules/fmodl (Files): Add lib/fmod.c.
37425         (Depends-on): Add float, isfinite, signbit, fabsl,
37426         frexpl, ldexpl, isnanl. Remove fma.
37427         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
37428         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
37430 2012-03-03  Bruno Haible  <bruno@clisp.org>
37432         fmod* tests: More tests.
37433         * tests/test-fmod.h: New file.
37434         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
37435         (main): Invoke test_function.
37436         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
37437         (main): Invoke test_function.
37438         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
37439         (main): Invoke test_function.
37440         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
37441         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
37442         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
37443         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
37444         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
37445         (Depends-on): Add 'float'.
37446         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
37448 2012-03-03  Bruno Haible  <bruno@clisp.org>
37450         rint* tests: More tests.
37451         * tests/test-rint.h: New file, partially extracted from
37452         tests/test-rintl.c.
37453         * tests/test-rint.c: Include test-rint.h.
37454         (main): Invoke test_function.
37455         * tests/test-rintf.c: Include test-rint.h.
37456         (main): Invoke test_function.
37457         * tests/test-rintl.c: Include test-rint.h.
37458         (main): Invoke test_function.
37459         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
37460         (Makefile.am): Add randomd.c to test_rint_SOURCES.
37461         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
37462         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
37463         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
37464         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
37466 2012-03-03  Bruno Haible  <bruno@clisp.org>
37468         modf* tests: More tests.
37469         * tests/test-modf.h: New file.
37470         * tests/test-modf.c: Include <float.h> and test-modf.h.
37471         (main): Invoke test_function.
37472         * tests/test-modff.c: Include <float.h> and test-modf.h.
37473         (main): Invoke test_function.
37474         * tests/test-modfl.c: Include <float.h> and test-modf.h.
37475         (main): Invoke test_function.
37476         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
37477         (Makefile.am): Add randomd.c to test_modf_SOURCES.
37478         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
37479         (Makefile.am): Add randomf.c to test_modff_SOURCES.
37480         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
37481         (Depends-on): Add 'float'.
37482         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
37484 2012-03-03  Bruno Haible  <bruno@clisp.org>
37486         fabs* tests: More tests.
37487         * tests/test-fabs.h: New file, partially extracted from
37488         tests/test-fabsl.c.
37489         * tests/test-fabs.c (RANDOM): New macro.
37490         * tests/test-fabsf.c (RANDOM): New macro.
37491         * tests/test-fabsl.c (RANDOM): New macro.
37492         * modules/fabs-tests (Files): Add tests/randomd.c.
37493         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
37494         * modules/fabsf-tests (Files): Add tests/randomf.c.
37495         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
37496         * modules/fabsl-tests (Files): Add tests/randoml.c.
37497         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
37499 2012-03-03  Bruno Haible  <bruno@clisp.org>
37501         ldexp* tests: More tests.
37502         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
37503         * tests/test-ldexp.c (RANDOM): New macro.
37504         * tests/test-ldexpf.c (RANDOM): New macro.
37505         * tests/test-ldexpl.c (RANDOM): New macro.
37506         * modules/ldexp-tests (Files): Add tests/randomd.c.
37507         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
37508         * modules/ldexpf-tests (Files): Add tests/randomf.c.
37509         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
37510         * modules/ldexpl-tests (Files): Add tests/randoml.c.
37511         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
37513 2012-03-03  Bruno Haible  <bruno@clisp.org>
37515         frexp* tests: More tests.
37516         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
37517         * tests/test-frexp.c (RANDOM): New macro.
37518         * tests/test-frexpf.c (RANDOM): New macro.
37519         * tests/test-frexpl.c (RANDOM): New macro.
37520         * modules/frexp-tests (Files): Add tests/randomd.c.
37521         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
37522         * modules/frexpf-tests (Files): Add tests/randomf.c.
37523         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
37524         * modules/frexpl-tests (Files): Add tests/randoml.c.
37525         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
37527 2012-03-03  Bruno Haible  <bruno@clisp.org>
37529         Support for pseudo-random numbers in tests.
37530         * tests/randomf.c: New file.
37531         * tests/randomd.c: New file.
37532         * tests/randoml.c: New file.
37533         * tests/macros.h (randomf, randomd, randoml): New declarations.
37535 2012-03-03  Bruno Haible  <bruno@clisp.org>
37537         frexp* tests: Refactor.
37538         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
37539         * tests/test-frexp.c: Include and use it.
37540         * tests/test-frexpf.c: Likewise.
37541         * tests/test-frexpl.c: Likewise.
37542         * modules/frexp-tests (Files): Add tests/test-frexp.h.
37543         * modules/frexpf-tests (Files): Likewise.
37544         * modules/frexpl-tests (Files): Likewise.
37546 2012-03-02  Jim Meyering  <meyering@redhat.com>
37548         maint: don't specify XZ_OPT=-9ev in dist-related rule
37549         Using xz's -9 option is warranted only if you have a very large
37550         tarball (see xz's documentation for the sizes vs. presets), and
37551         requires 64MiB of memory at decompression time.
37552         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
37553         Automake's default of just "-e" is fine.  Override on a
37554         per-package basis by setting XZ_OPT e.g., in cfg.mk.
37556 2012-03-01  Eric Blake  <eblake@redhat.com>
37558         maint.mk: allow announcement for non-gnulib project
37559         * maint.mk (announcement): Skip gnulib version if not used.
37561 2012-03-01  Jim Meyering  <meyering@redhat.com>
37563         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
37564         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
37565         envvar settings cannot interfere.  Otherwise, setting envvars like
37566         prohibit=foo require=bar, etc. would cause spurious test failures.
37568 2012-03-01  Eric Blake  <eblake@redhat.com>
37570         maint.mk: add per-line exclusions to prohibitions
37571         * maint.mk (_sc_search_regexp): Add $exclude parameter.
37572         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37573         (sc_const_long_option): Use it.
37575 2012-03-01  Bruno Haible  <bruno@clisp.org>
37577         Tests for module 'expl-ieee'.
37578         * modules/expl-ieee-tests: New file.
37579         * tests/test-expl-ieee.c: New file.
37581         New module 'expl-ieee'.
37582         * modules/expl-ieee: New file.
37584         Tests for module 'exp-ieee'.
37585         * modules/exp-ieee-tests: New file.
37586         * tests/test-exp-ieee.c: New file.
37588         New module 'exp-ieee'.
37589         * modules/exp-ieee: New file.
37591         Tests for module 'expf-ieee'.
37592         * modules/expf-ieee-tests: New file.
37593         * tests/test-expf-ieee.c: New file.
37594         * tests/test-exp-ieee.h: New file.
37596         New module 'expf-ieee'.
37597         * modules/expf-ieee: New file.
37599 2012-02-29  Bruno Haible  <bruno@clisp.org>
37601         cbrtl-ieee: Work around test failure on IRIX 6.5.
37602         * m4/cbrtl-ieee.m4: New file.
37603         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
37604         test whether cbrtl works with a minus zero argument. Replace it if not.
37605         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
37606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
37607         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
37608         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
37609         (Depends-on): Update conditions.
37610         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
37611         m4/signbit.m4.
37612         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
37613         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
37614         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
37616         Tests for module 'cbrtl-ieee'.
37617         * modules/cbrtl-ieee-tests: New file.
37618         * tests/test-cbrtl-ieee.c: New file.
37620         New module 'cbrtl-ieee'.
37621         * modules/cbrtl-ieee: New file.
37623         Tests for module 'cbrt-ieee'.
37624         * modules/cbrt-ieee-tests: New file.
37625         * tests/test-cbrt-ieee.c: New file.
37627         New module 'cbrt-ieee'.
37628         * modules/cbrt-ieee: New file.
37630         Tests for module 'cbrtf-ieee'.
37631         * modules/cbrtf-ieee-tests: New file.
37632         * tests/test-cbrtf-ieee.c: New file.
37633         * tests/test-cbrt-ieee.h: New file.
37635         New module 'cbrtf-ieee'.
37636         * modules/cbrtf-ieee: New file.
37638 2012-02-29  Bruno Haible  <bruno@clisp.org>
37640         cbrtf: Work around bug in IRIX 6.5 system function.
37641         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
37642         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
37643         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
37644         work.
37645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
37646         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
37647         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
37648         (Depends-on): Update conditions.
37649         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
37651 2012-02-29  Bruno Haible  <bruno@clisp.org>
37653         Tests for module 'cbrtl'.
37654         * modules/cbrtl-tests: New file.
37655         * tests/test-cbrtl.c: New file.
37657         New module 'cbrtl'.
37658         * lib/math.in.h (cbrtl): New declaration.
37659         * lib/cbrtl.c: New file.
37660         * m4/cbrtl.m4: New file.
37661         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
37662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
37663         HAVE_DECL_CBRTL.
37664         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
37665         HAVE_DECL_CBRTL.
37666         * modules/cbrtl: New file.
37667         * tests/test-math-c++.cc: Check the declaration of cbrtl.
37668         * doc/posix-functions/cbrtl.texi: Mention the new module.
37670 2012-02-29  Bruno Haible  <bruno@clisp.org>
37672         Tests for module 'cbrtf'.
37673         * modules/cbrtf-tests: New file.
37674         * tests/test-cbrtf.c: New file.
37676         New module 'cbrtf'.
37677         * lib/math.in.h (cbrtf): New declaration.
37678         * lib/cbrtf.c: New file.
37679         * m4/cbrtf.m4: New file.
37680         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
37681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
37682         HAVE_DECL_CBRTF.
37683         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
37684         HAVE_DECL_CBRTF.
37685         * modules/cbrtf: New file.
37686         * tests/test-math-c++.cc: Check the declaration of cbrtf.
37687         * doc/posix-functions/cbrtf.texi: Mention the new module.
37689 2012-02-29  Bruno Haible  <bruno@clisp.org>
37691         cbrt: Provide replacement on MSVC and Minix.
37692         * lib/math.in.h (cbrt): New declaration.
37693         * lib/cbrt.c: New file.
37694         * m4/cbrt.m4: New file.
37695         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
37696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
37697         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
37698         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
37699         (Depends-on): Add dependencies.
37700         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
37701         * tests/test-math-c++.cc: Check the declaration of cbrt.
37702         * doc/posix-functions/cbrt.texi: Mention that the module provides a
37703         replacement.
37705 2012-02-29  Bruno Haible  <bruno@clisp.org>
37707         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
37708         * m4/hypotl-ieee.m4: New file.
37709         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
37710         test whether hypotl works with mixed NaN and Infinity arguments.
37711         Replace it if not.
37712         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
37713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
37714         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
37715         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
37716         (Depends-on): Update conditions.
37717         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
37718         (Depends-on): Add hypot-ieee.
37719         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
37720         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
37722         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
37723         * m4/hypotf-ieee.m4: New file.
37724         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
37725         test whether hypotf works with mixed NaN and Infinity arguments.
37726         Replace it if not.
37727         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
37728         (Depends-on): Add hypot-ieee.
37729         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
37730         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
37732         hypot-ieee: Work around test failure on OSF/1 and native Windows.
37733         * lib/math.in.h (hypot): New declaration.
37734         * lib/hypot.c: New file.
37735         * m4/hypot-ieee.m4: New file.
37736         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
37737         whether hypot works with mixed NaN and Infinity arguments. Replace it
37738         if not.
37739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
37740         REPLACE_HYPOT.
37741         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
37742         * modules/hypot (Files): Add lib/hypot.c.
37743         (Depends-on): Add dependencies.
37744         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
37745         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
37746         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
37747         * tests/test-math-c++.cc: Check the declaration of hypot.
37748         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
37750         Tests for module 'hypotl-ieee'.
37751         * modules/hypotl-ieee-tests: New file.
37752         * tests/test-hypotl-ieee.c: New file.
37754         New module 'hypotl-ieee'.
37755         * modules/hypotl-ieee: New file.
37757         Tests for module 'hypot-ieee'.
37758         * modules/hypot-ieee-tests: New file.
37759         * tests/test-hypot-ieee.c: New file.
37761         New module 'hypot-ieee'.
37762         * modules/hypot-ieee: New file.
37764         Tests for module 'hypotf-ieee'.
37765         * modules/hypotf-ieee-tests: New file.
37766         * tests/test-hypotf-ieee.c: New file.
37767         * tests/test-hypot-ieee.h: New file.
37769         New module 'hypotf-ieee'.
37770         * modules/hypotf-ieee: New file.
37772 2012-02-29  Bruno Haible  <bruno@clisp.org>
37774         Remove unused variables.
37775         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
37776         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
37777         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
37778         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
37780 2012-02-29  Eric Blake  <eblake@redhat.com>
37782         termios: fix pid_t always, not just for tcgetsid
37783         * doc/posix-headers/termios.texi (termios.h): Mention problem.
37784         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
37785         just when building tcgetsid.
37787 2012-02-29  Bruno Haible  <bruno@clisp.org>
37789         Tests for module 'hypotl'.
37790         * modules/hypotl-tests: New file.
37791         * tests/test-hypotl.c: New file.
37793         New module 'hypotl'.
37794         * lib/math.in.h (hypotl): New declaration.
37795         * lib/hypotl.c: New file.
37796         * m4/hypotl.m4: New file.
37797         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
37799         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
37800         * modules/hypotl: New file.
37801         * tests/test-math-c++.cc: Check the hypotl declaration.
37802         * doc/posix-functions/hypotl.texi: Mention the new module.
37804 2012-02-29  Eric Blake  <eblake@redhat.com>
37806         tcgetsid: fix cygwin header bug
37807         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
37809         docs: update cygwin progress
37810         * doc/posix-functions/llround.texi (llround): Added in cygwin
37811         1.7.8.
37812         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
37813         * doc/glibc-functions/program_invocation_name.texi
37814         (program_invocation_name): Likewise.
37815         * doc/glibc-functions/program_invocation_short_name.texi
37816         (program_invocation_short_name): Likewise.
37817         * doc/glibc-functions/madvise.texi (madvise): Likewise.
37818         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
37819         Likewise.
37820         * doc/posix-functions/pthread_spin_destroy.texi
37821         (pthread_spin_destroy): Added in cygwin 1.7.10.
37822         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
37823         Likewise.
37824         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
37825         Likewise.
37826         * doc/posix-functions/pthread_spin_trylock.texi
37827         (pthread_spin_trylock): Likewise.
37828         * doc/posix-functions/pthread_spin_unlock.texi
37829         (pthread_spin_unlock): Likewise.
37830         * doc/posix-functions/pthread_setschedprio.texi
37831         (pthread_setschedprio): Likewise.
37832         * doc/posix-functions/pthread_attr_getstack.texi
37833         (pthread_attr_getstack): Likewise.
37834         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
37835         (pthread_attr_getstackaddr): Likewise.
37836         * doc/glibc-functions/pthread_getattr_np.texi
37837         (pthread_getattr_np): Likewise.
37838         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
37839         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
37840         * doc/posix-functions/clock_settime.texi (clock_settime):
37841         Likewise.
37842         * doc/posix-functions/pthread_attr_getguardsize.texi
37843         (pthread_attr_getguardsize): Likewise.
37844         * doc/posix-functions/pthread_attr_setguardsize.texi
37845         (pthread_attr_setguardsize): Likewise.
37846         * doc/posix-functions/pthread_attr_setstack.texi
37847         (pthread_attr_setstack): Likewise.
37848         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
37849         (pthread_attr_setstackaddr): Likewise.
37850         * doc/posix-functions/clock_getcpuclockid.texi
37851         (clock_getcpuclockid): Likewise.
37852         * doc/posix-functions/pthread_getcpuclockid.texi
37853         (pthread_getcpuclockid): Likewise.
37854         * doc/glibc-functions/error.texi (error): Likewise.
37855         * doc/glibc-functions/error_at_line.texi (error_at_line):
37856         Likewise.
37857         * doc/glibc-functions/error_message_count.texi
37858         (error_message_count): Likewise.
37859         * doc/glibc-functions/error_one_per_line.texi
37860         (error_one_per_line): Likewise.
37861         * doc/glibc-functions/error_print_progname.texi
37862         (error_print_progname): Likewise.
37863         * doc/posix-functions/pthread_condattr_getclock.texi
37864         (pthread_condattr_getclock): Likewise.
37865         * doc/posix-functions/pthread_condattr_setclock.texi
37866         (pthread_condattr_setclock): Likewise.
37867         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
37868         Likewise.
37869         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
37870         * doc/glibc-functions/getpt.texi (getpt): Likewise.
37871         * doc/glibc-functions/get_current_dir_name.texi
37872         (get_current_dir_name): Likewise.
37873         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
37874         Likewise.
37875         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
37876         wrong return type.
37877         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
37878         1.7.11.
37880 2012-02-29  Bruno Haible  <bruno@clisp.org>
37882         Tests for module 'hypotf'.
37883         * modules/hypotf-tests: New file.
37884         * tests/test-hypotf.c: New file.
37886         New module 'hypotf'.
37887         * lib/math.in.h (hypotf): New declaration.
37888         * lib/hypotf.c: New file.
37889         * m4/hypotf.m4: New file.
37890         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
37891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
37892         REPLACE_HYPOTF.
37893         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
37894         REPLACE_HYPOTF.
37895         * modules/hypotf: New file.
37896         * tests/test-math-c++.cc: Check the hypotf declaration.
37897         * doc/posix-functions/hypotf.texi: Mention the new module.
37899         hypot: Prepare for hypotf module.
37900         * m4/hypot.m4: New file.
37901         * modules/hypot (Files): Add m4/hypot.m4.
37902         (configure.ac): Invoke gl_FUNC_HYPOT.
37904 2012-02-29  Bruno Haible  <bruno@clisp.org>
37906         hypot tests: More tests.
37907         * tests/test-hypot.c: Include <float.h>.
37908         (main): Add tests about overflow and underflow.
37910 2012-02-29  Bruno Haible  <bruno@clisp.org>
37912         math code: Add comments.
37913         * lib/acosl.c: Add comment about related glibc source files.
37914         * lib/asinl.c: Likewise.
37915         * lib/atanl.c: Likewise.
37916         * lib/expl.c: Likewise.
37917         * lib/logl.c: Likewise.
37918         * lib/sincosl.c: Likewise.
37919         * lib/sinl.c: Likewise.
37920         * lib/tanl.c: Likewise.
37921         * lib/trigl.c: Likewise.
37922         * lib/cosl.c: Likewise. Fix comments.
37924 2012-02-28  Bruno Haible  <bruno@clisp.org>
37926         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
37927         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
37928         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
37929         HUGE_VALL are defined.
37930         (numeric_equald): Renamed from numeric_equal.
37931         (numeric_equalf, numeric_equall): New functions.
37932         (main): Check also HUGE_VALF, HUGE_VALL.
37933         * modules/math-tests (Files): Add tests/macros.h.
37934         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
37935         HUGE_VALL.
37937 2012-02-28  Bruno Haible  <bruno@clisp.org>
37939         doc: Move ISO C11 feature notes into POSIX chapters.
37940         * doc/posix-functions/aligned_alloc.texi: Renamed from
37941         doc/glibc-functions/aligned_alloc.texi.
37942         * doc/posix-functions/quick_exit.texi: Renamed from
37943         doc/glibc-functions/quick_exit.texi.
37944         * doc/posix-headers/uchar.texi: Renamed from
37945         doc/glibc-headers/uchar.texi.
37946         * doc/posix-functions/c16rtomb.texi: Renamed from
37947         doc/glibc-functions/c16rtomb.texi.
37948         * doc/posix-functions/c32rtomb.texi: Renamed from
37949         doc/glibc-functions/c32rtomb.texi.
37950         * doc/posix-functions/mbrtoc16.texi: Renamed from
37951         doc/glibc-functions/mbrtoc16.texi.
37952         * doc/posix-functions/mbrtoc32.texi: Renamed from
37953         doc/glibc-functions/mbrtoc32.texi.
37954         * doc/gnulib.texi: Update.
37955         (Glibc uchar.h): Remove section.
37956         Suggested by Eric Blake.
37958 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
37960         stdnoreturn: port to MSVC better
37961         MSVC standard headers use __declspec(noreturn), so #define noreturn
37962         to empty on that platform.  Reported by Bruno Haible in
37963         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
37964         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
37965         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
37967 2012-02-28  Bruno Haible  <bruno@clisp.org>
37969         doc: Mention new glibc headers and functions.
37970         * doc/glibc-headers/uchar.texi: New file.
37971         * doc/glibc-functions/aligned_alloc.texi: New file.
37972         * doc/glibc-functions/c16rtomb.texi: New file.
37973         * doc/glibc-functions/c32rtomb.texi: New file.
37974         * doc/glibc-functions/clock_adjtime.texi: New file.
37975         * doc/glibc-functions/fanotify_init.texi: New file.
37976         * doc/glibc-functions/fanotify_mark.texi: New file.
37977         * doc/glibc-functions/inet6_opt_append.texi: New file.
37978         * doc/glibc-functions/inet6_opt_find.texi: New file.
37979         * doc/glibc-functions/inet6_opt_finish.texi: New file.
37980         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
37981         * doc/glibc-functions/inet6_opt_init.texi: New file.
37982         * doc/glibc-functions/inet6_opt_next.texi: New file.
37983         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
37984         * doc/glibc-functions/inet6_rth_add.texi: New file.
37985         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
37986         * doc/glibc-functions/inet6_rth_init.texi: New file.
37987         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
37988         * doc/glibc-functions/inet6_rth_segments.texi: New file.
37989         * doc/glibc-functions/inet6_rth_space.texi: New file.
37990         * doc/glibc-functions/login.texi: New file.
37991         * doc/glibc-functions/mbrtoc16.texi: New file.
37992         * doc/glibc-functions/mbrtoc32.texi: New file.
37993         * doc/glibc-functions/name_to_handle_at.texi: New file.
37994         * doc/glibc-functions/ntp_gettimex.texi: New file.
37995         * doc/glibc-functions/open_by_handle_at.texi: New file.
37996         * doc/glibc-functions/prlimit.texi: New file.
37997         * doc/glibc-functions/process_vm_readv.texi: New file.
37998         * doc/glibc-functions/process_vm_writev.texi: New file.
37999         * doc/glibc-functions/recvmmsg.texi: New file.
38000         * doc/glibc-functions/scandirat.texi: New file.
38001         * doc/glibc-functions/sendmmsg.texi: New file.
38002         * doc/glibc-functions/setns.texi: New file.
38003         * doc/glibc-functions/timespec_get.texi: New file.
38004         * doc/gnulib.texi: Include them.
38005         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
38006         sections.
38007         Reported by Eric Blake.
38009 2012-02-28  Bruno Haible  <bruno@clisp.org>
38011         Avoid compilation errors with MSVC option -fp:strict.
38012         * lib/floor.c: Use MSVC specific pragma fenv_access.
38013         * lib/ceil.c: Likewise.
38014         * lib/trunc.c: Likewise.
38015         * lib/round.c: Likewise.
38016         * lib/rint.c: Likewise.
38017         * lib/fma.c: Likewise.
38018         * lib/integer_length.c: Likewise.
38019         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38020         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38021         * tests/test-floor2.c: Likewise.
38022         * tests/test-floorf2.c: Likewise.
38023         * tests/test-ceil2.c: Likewise.
38024         * tests/test-ceilf2.c: Likewise.
38025         * tests/test-trunc2.c: Likewise.
38026         * tests/test-truncf2.c: Likewise.
38027         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
38029 2012-02-27  Bruno Haible  <bruno@clisp.org>
38031         Tests for module 'sqrtl-ieee'.
38032         * modules/sqrtl-ieee-tests: New file.
38033         * tests/test-sqrtl-ieee.c: New file.
38035         New module 'sqrtl-ieee'.
38036         * modules/sqrtl-ieee: New file.
38038         Tests for module 'sqrt-ieee'.
38039         * modules/sqrt-ieee-tests: New file.
38040         * tests/test-sqrt-ieee.c: New file.
38042         New module 'sqrt-ieee'.
38043         * modules/sqrt-ieee: New file.
38045         Tests for module 'sqrtf-ieee'.
38046         * modules/sqrtf-ieee-tests: New file.
38047         * tests/test-sqrtf-ieee.c: New file.
38048         * tests/test-sqrt-ieee.h: New file.
38050         New module 'sqrtf-ieee'.
38051         * modules/sqrtf-ieee: New file.
38053 2012-02-27  Bruno Haible  <bruno@clisp.org>
38055         remainderl-ieee: Work around test failure on OSF/1.
38056         * m4/remainderl-ieee.m4: New file.
38057         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
38058         present, test whether remainderl works with a zero second argument.
38059         Replace it if not.
38060         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
38061         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
38062         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
38063         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
38064         (Depends-on): Update conditions.
38065         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
38066         (Depends-on): Add remainder-ieee.
38067         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
38068         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
38069         module.
38071         remainderf-ieee: Work around test failure on OSF/1.
38072         * m4/remainderf-ieee.m4: New file.
38073         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
38074         present, test whether remainderf works with a zero second argument.
38075         Replace it if not.
38076         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
38077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
38078         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
38079         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
38080         (Depends-on): Update conditions.
38081         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
38082         (Depends-on): Add remainder-ieee.
38083         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
38084         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
38085         module.
38087         remainder-ieee: Work around test failure on OSF/1.
38088         * m4/remainder-ieee.m4: New file.
38089         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
38090         present, test whether remainder works with a zero second argument.
38091         Replace it if not.
38092         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
38093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
38094         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
38095         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
38096         (Depends-on): Update dependencies.
38097         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
38098         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
38099         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
38101         Tests for module 'remainderl-ieee'.
38102         * modules/remainderl-ieee-tests: New file.
38103         * tests/test-remainderl-ieee.c: New file.
38105         New module 'remainderl-ieee'.
38106         * modules/remainderl-ieee: New file.
38108         Tests for module 'remainder-ieee'.
38109         * modules/remainder-ieee-tests: New file.
38110         * tests/test-remainder-ieee.c: New file.
38112         New module 'remainder-ieee'.
38113         * modules/remainder-ieee: New file.
38115         Tests for module 'remainderf-ieee'.
38116         * modules/remainderf-ieee-tests: New file.
38117         * tests/test-remainderf-ieee.c: New file.
38118         * tests/test-remainder-ieee.h: New file.
38120         New module 'remainderf-ieee'.
38121         * modules/remainderf-ieee: New file.
38123 2012-02-27  Bruno Haible  <bruno@clisp.org>
38125         modff, modfl: Fix configure syntax error.
38126         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
38127         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38129 2012-02-27  Bruno Haible  <bruno@clisp.org>
38131         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
38132         * m4/fmodl-ieee.m4: New file.
38133         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
38134         whether fmodl works with zero arguments. Replace it if not.
38135         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
38136         (Depends-on): Add fmod-ieee.
38137         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
38138         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
38140         fmodf-ieee: Work around test failure on OSF/1.
38141         * m4/fmodf-ieee.m4: New file.
38142         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
38143         whether fmodf works with zero arguments. Replace it if not.
38144         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
38145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
38146         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
38147         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
38148         (Depends-on): Update dependencies.
38149         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
38150         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
38151         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
38153         fmodf-ieee: Work around test failure on MSVC 9.
38154         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
38155         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
38157         fmod-ieee: Work around test failures on OSF/1, mingw.
38158         * m4/fmod-ieee.m4: New file.
38159         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
38160         whether fmod works with zero arguments. Replace it if not.
38161         * lib/math.in.h (fmod): New declaration.
38162         * lib/fmod.c: New file.
38163         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
38164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
38165         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
38166         * modules/fmod (Files): Add lib/fmod.c.
38167         (Depends-on): Add math, isinf, trunc, fma.
38168         (configure.ac): Arrange to compile lib/fmod.c if needed.
38169         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
38170         m4/signbit.m4.
38171         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
38172         * tests/test-math-c++.cc: Check the declaration of fmod.
38173         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
38175         fmodl-ieee: Fix test failures.
38176         * lib/fmodl.c (fmodl): Treat Inf specially.
38177         * modules/fmodl (Depends-on): Add isinf.
38179         Tests for module 'fmodl-ieee'.
38180         * modules/fmodl-ieee-tests: New file.
38181         * tests/test-fmodl-ieee.c: New file.
38183         New module 'fmodl-ieee'.
38184         * modules/fmodl-ieee: New file.
38186         Tests for module 'fmod-ieee'.
38187         * modules/fmod-ieee-tests: New file.
38188         * tests/test-fmod-ieee.c: New file.
38190         New module 'fmod-ieee'.
38191         * modules/fmod-ieee: New file.
38193         Tests for module 'fmodf-ieee'.
38194         * modules/fmodf-ieee-tests: New file.
38195         * tests/test-fmodf-ieee.c: New file.
38196         * tests/test-fmod-ieee.h: New file.
38198         New module 'fmodf-ieee'.
38199         * modules/fmodf-ieee: New file.
38201 2012-02-27  Bruno Haible  <bruno@clisp.org>
38203         Tests for module 'rintl-ieee'.
38204         * modules/rintl-ieee-tests: New file.
38205         * tests/test-rintl-ieee.c: New file.
38207         New module 'rintl-ieee'.
38208         * modules/rintl-ieee: New file.
38210         Tests for module 'rint-ieee'.
38211         * modules/rint-ieee-tests: New file.
38212         * tests/test-rint-ieee.c: New file.
38214         New module 'rint-ieee'.
38215         * modules/rint-ieee: New file.
38217         Tests for module 'rintf-ieee'.
38218         * modules/rintf-ieee-tests: New file.
38219         * tests/test-rintf-ieee.c: New file.
38220         * tests/test-rint-ieee.h: New file.
38222         New module 'rintf-ieee'.
38223         * modules/rintf-ieee: New file.
38225 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38227         regex: re_search etc. should return -2 when memory exhausted
38228         This bug was uncovered when testing 'grep'.  Without the fix,
38229         re_search and friends return -1 when memory is exhausted, but -1
38230         means no match, and this causes grep to falsely report no-match
38231         instead of memory-exhaustion.  See
38232         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
38233         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
38234         trouble; this can occur if re_search_internal ran out of memory.
38236 2012-02-26  Bruno Haible  <bruno@clisp.org>
38238         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
38239         * m4/modfl-ieee.m4: New file.
38240         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
38241         whether modfl works with Inf. Replace it if not.
38242         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
38243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
38244         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
38245         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
38246         (Depends-on): Update dependencies.
38247         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
38248         m4/signbit.m4.
38249         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
38250         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
38252         modfl-ieee: Fix dependencies.
38253         * modules/modfl-ieee (Depends-on): Add modf-ieee.
38255         modfl-ieee: Fix test failures.
38256         * lib/modfl.c (modfl): Treat NaN and Inf specially.
38257         * modules/modfl (Depends-on): Add isfinite, isinf.
38259         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
38260         * m4/modff-ieee.m4: New file.
38261         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
38262         whether modff works with NaN and Inf. Replace it if not.
38263         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
38264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
38265         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
38266         * modules/modff (configure.ac): Consider REPLACE_MODFF.
38267         (Depends-on): Update dependencies.
38268         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
38269         m4/signbit.m4.
38270         (Depends-on): Add modf-ieee.
38271         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
38272         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
38274         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
38275         * m4/modf-ieee.m4: New file.
38276         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
38277         whether modf works with NaN and Inf. Replace it if not.
38278         * lib/math.in.h (modf): New declaration.
38279         * lib/modf.c: New file.
38280         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
38281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
38282         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
38283         * modules/modf (Files): Add lib/modf.c.
38284         (Depends-on): Add math, isfinite, trunc, isinf.
38285         (configure.ac): Addrange to compile lib/modf.c if needed.
38286         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
38287         m4/signbit.m4.
38288         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
38289         * tests/test-math-c++.cc: Check the declaration of modf.
38290         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
38292         Tests for module 'modfl-ieee'.
38293         * modules/modfl-ieee-tests: New file.
38294         * tests/test-modfl-ieee.c: New file.
38296         New module 'modfl-ieee'.
38297         * modules/modfl-ieee: New file.
38299         Tests for module 'modf-ieee'.
38300         * modules/modf-ieee-tests: New file.
38301         * tests/test-modf-ieee.c: New file.
38303         New module 'modf-ieee'.
38304         * modules/modf-ieee: New file.
38306         Tests for module 'modff-ieee'.
38307         * modules/modff-ieee-tests: New file.
38308         * tests/test-modff-ieee.c: New file.
38309         * tests/test-modf-ieee.h: New file.
38311         New module 'modff-ieee'.
38312         * modules/modff-ieee: New file.
38314 2012-02-26  Bruno Haible  <bruno@clisp.org>
38316         Tests for module 'fabsl-ieee'.
38317         * modules/fabsl-ieee-tests: New file.
38318         * tests/test-fabsl-ieee.c: New file.
38320         New module 'fabsl-ieee'.
38321         * modules/fabsl-ieee: New file.
38323         Tests for module 'fabs-ieee'.
38324         * modules/fabs-ieee-tests: New file.
38325         * tests/test-fabs-ieee.c: New file.
38327         New module 'fabs-ieee'.
38328         * modules/fabs-ieee: New file.
38330         Tests for module 'fabsf-ieee'.
38331         * modules/fabsf-ieee-tests: New file.
38332         * tests/test-fabsf-ieee.c: New file.
38333         * tests/test-fabs-ieee.h: New file.
38335         New module 'fabsf-ieee'.
38336         * modules/fabsf-ieee: New file.
38338 2012-02-26  Bruno Haible  <bruno@clisp.org>
38340         Tests for module 'fmal-ieee'.
38341         * modules/fmal-ieee-tests: New file.
38342         * tests/test-fmal-ieee.c: New file.
38344         New module 'fmal-ieee'.
38345         * modules/fmal-ieee: New file.
38347         Tests for module 'fma-ieee'.
38348         * modules/fma-ieee-tests: New file.
38349         * tests/test-fma-ieee.c: New file.
38351         New module 'fma-ieee'.
38352         * modules/fma-ieee: New file.
38354         Tests for module 'fmaf-ieee'.
38355         * modules/fmaf-ieee-tests: New file.
38356         * tests/test-fmaf-ieee.c: New file.
38357         * tests/test-fma-ieee.h: New file.
38359         New module 'fmaf-ieee'.
38360         * modules/fmaf-ieee: New file.
38362 2012-02-26  Bruno Haible  <bruno@clisp.org>
38364         Tests for module 'ldexpl-ieee'.
38365         * modules/ldexpl-ieee-tests: New file.
38366         * tests/test-ldexpl-ieee.c: New file.
38368         New module 'ldexpl-ieee'.
38369         * modules/ldexpl-ieee: New file.
38371         Tests for module 'ldexp-ieee'.
38372         * modules/ldexp-ieee-tests: New file.
38373         * tests/test-ldexp-ieee.c: New file.
38375         New module 'ldexp-ieee'.
38376         * modules/ldexp-ieee: New file.
38378         Tests for module 'ldexpf-ieee'.
38379         * modules/ldexpf-ieee-tests: New file.
38380         * tests/test-ldexpf-ieee.c: New file.
38381         * tests/test-ldexp-ieee.h: New file.
38383         New module 'ldexpf-ieee'.
38384         * modules/ldexpf-ieee: New file.
38386 2012-02-26  Bruno Haible  <bruno@clisp.org>
38388         Refactor frexp*-ieee tests.
38389         * tests/test-frexp-ieee.h: New file.
38390         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
38391         (main): Just call test_function.
38392         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
38393         (main): Just call test_function.
38394         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
38395         (main): Just call test_function.
38396         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
38397         * modules/frexp-ieee-tests (Files): Likewise.
38398         * modules/frexpl-ieee-tests (Files): Likewise.
38400         Tests for module 'frexpl-ieee'.
38401         * modules/frexpl-ieee-tests: New file.
38402         * tests/test-frexpl-ieee.c: New file.
38404         New module 'frexpl-ieee'.
38405         * modules/frexpl-ieee: New file.
38407         Tests for module 'frexp-ieee'.
38408         * modules/frexp-ieee-tests: New file.
38409         * tests/test-frexp-ieee.c: New file.
38411         New module 'frexp-ieee'.
38412         * modules/frexp-ieee: New file.
38414         Tests for module 'frexpf-ieee'.
38415         * modules/frexpf-ieee-tests: New file.
38416         * tests/test-frexpf-ieee.c: New file.
38418         New module 'frexpf-ieee'.
38419         * modules/frexpf-ieee: New file.
38421 2012-02-26  Bruno Haible  <bruno@clisp.org>
38423         roundl-ieee tests: More tests.
38424         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38425         (main): Add tests for [MX] shaded specification in POSIX.
38426         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38427         (Depends-on): Add isnanl-nolibm.
38429         round-ieee tests: More tests.
38430         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38431         (main): Add tests for [MX] shaded specification in POSIX.
38432         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38433         (Depends-on): Add isnand-nolibm.
38435         roundf-ieee tests: More tests.
38436         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38437         (main): Add tests for [MX] shaded specification in POSIX.
38438         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38439         (Depends-on): Add isnanf-nolibm.
38441         truncl-ieee tests: More tests.
38442         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38443         (main): Add tests for [MX] shaded specification in POSIX.
38444         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38445         (Depends-on): Add isnanl-nolibm.
38447         trunc-ieee tests: More tests.
38448         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38449         (main): Add tests for [MX] shaded specification in POSIX.
38450         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38451         (Depends-on): Add isnand-nolibm.
38453         truncf-ieee tests: More tests.
38454         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38455         (main): Add tests for [MX] shaded specification in POSIX.
38456         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38457         (Depends-on): Add isnanf-nolibm.
38459         ceill-ieee tests: More tests.
38460         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38461         (main): Add tests for [MX] shaded specification in POSIX.
38462         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38463         (Depends-on): Add isnanl-nolibm.
38465         ceil-ieee tests: More tests.
38466         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38467         (main): Add tests for [MX] shaded specification in POSIX.
38468         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38469         (Depends-on): Add isnand-nolibm.
38471         ceilf-ieee tests: More tests.
38472         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38473         (main): Add tests for [MX] shaded specification in POSIX.
38474         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38475         (Depends-on): Add isnanf-nolibm.
38477         floorl-ieee tests: More tests.
38478         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
38479         (main): Add tests for [MX] shaded specification in POSIX.
38480         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38481         (Depends-on): Add isnanl-nolibm.
38483         floor-ieee tests: More tests.
38484         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
38485         (main): Add tests for [MX] shaded specification in POSIX.
38486         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38487         (Depends-on): Add isnand-nolibm.
38489         floorf-ieee tests: More tests.
38490         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
38491         (main): Add tests for [MX] shaded specification in POSIX.
38492         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
38493         (Depends-on): Add isnanf-nolibm.
38495 2012-02-26  Bruno Haible  <bruno@clisp.org>
38497         fpieee: More comments.
38498         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
38500 2012-02-25  Bruno Haible  <bruno@clisp.org>
38502         Tests for module 'log10l'.
38503         * modules/log10l-tests: New file.
38504         * tests/test-log10l.c: New file.
38505         * tests/test-math-c++.cc: Check the declaration of log10l.
38507         New module 'log10l'.
38508         * lib/math.in.h (log10l): New declaration.
38509         * lib/log10l.c: New file.
38510         * m4/log10l.m4: New file.
38511         * modules/log10l: New file.
38512         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
38513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
38514         HAVE_DECL_LOG10L.
38515         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
38516         HAVE_DECL_LOG10L.
38517         * doc/posix-functions/log10l.texi: Mention the new module.
38519 2012-02-25  Bruno Haible  <bruno@clisp.org>
38521         fmodl, remainder*: Avoid wrong results due to rounding errors.
38522         * lib/fmodl.c (fmodl): Correct the result if it is not within the
38523         expected bounds.
38524         * lib/remainderf.c (remainderf): Likewise.
38525         * lib/remainder.c (remainder): Likewise.
38526         * lib/remainderl.c (remainderl): Likewise.
38528 2012-02-25  Bruno Haible  <bruno@clisp.org>
38530         Tests for module 'remainderl'.
38531         * modules/remainderl-tests: New file.
38532         * tests/test-remainderl.c: New file.
38533         * tests/test-math-c++.cc: Check the declaration of remainderl.
38535         New module 'remainderl'.
38536         * lib/math.in.h (remainderl): New declaration.
38537         * lib/remainderl.c: New file.
38538         * m4/remainderl.m4: New file.
38539         * modules/remainderl: New file.
38540         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
38541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
38542         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
38543         HAVE_REMAINDERL.
38544         * doc/posix-functions/remainderl.texi: Mention the new module.
38546 2012-02-25  Bruno Haible  <bruno@clisp.org>
38548         Tests for module 'remainderf'.
38549         * modules/remainderf-tests: New file.
38550         * tests/test-remainderf.c: New file.
38551         * tests/test-math-c++.cc: Check the declaration of remainderf.
38553         New module 'remainderf'.
38554         * lib/math.in.h (remainderf): New declaration.
38555         * lib/remainderf.c: New file.
38556         * m4/remainderf.m4: New file.
38557         * modules/remainderf: New file.
38558         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
38559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
38560         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
38561         HAVE_REMAINDERF.
38562         * doc/posix-functions/remainderf.texi: Mention the new module.
38564 2012-02-25  Bruno Haible  <bruno@clisp.org>
38566         remainder: Support for MSVC.
38567         * lib/math.in.h (remainder): New declaration.
38568         * lib/remainder.c: New file.
38569         * m4/remainder.m4: New file.
38570         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
38571         (Depends-on): Add math, round, fma.
38572         (configure.ac): Use results of gl_FUNC_REMAINDER.
38573         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
38574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
38575         HAVE_DECL_REMAINDER.
38576         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
38577         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
38578         * tests/test-math-c++.cc: Check the declaration of remainder.
38579         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
38580         problems are fixed.
38582 2012-02-25  Bruno Haible  <bruno@clisp.org>
38584         Tests for module 'fmodl'.
38585         * modules/fmodl-tests: New file.
38586         * tests/test-fmodl.c: New file.
38587         * tests/test-math-c++.cc: Check the declaration of fmodl.
38589         New module 'fmodl'.
38590         * lib/math.in.h (fmodl): New declaration.
38591         * lib/fmodl.c: New file.
38592         * m4/fmodl.m4: New file.
38593         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
38594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
38595         REPLACE_FMODL.
38596         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
38597         REPLACE_FMODL.
38598         * modules/fmodl: New file.
38599         * doc/posix-functions/fmodl.texi: Mention the new module.
38601 2012-02-25  Bruno Haible  <bruno@clisp.org>
38603         Tests for module 'modfl'.
38604         * modules/modfl-tests: New file.
38605         * tests/test-modfl.c: New file.
38606         * tests/test-math-c++.cc: Check the declaration of modfl.
38608         New module 'modfl'.
38609         * lib/math.in.h (modfl): New declaration.
38610         * lib/modfl.c: New file.
38611         * m4/modfl.m4: New file.
38612         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
38613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
38614         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
38615         * modules/modfl: New file.
38616         * doc/posix-functions/modfl.texi: Mention the new module.
38618 2012-02-25  Bruno Haible  <bruno@clisp.org>
38620         Tests for module 'fabsl'.
38621         * modules/fabsl-tests: New file.
38622         * tests/test-fabsl.c: New file.
38623         * tests/test-math-c++.cc: Check the declaration of fabsl.
38625         New module 'fabsl'.
38626         * lib/math.in.h (fabsl): New declaration.
38627         * lib/fabsl.c: New file.
38628         * m4/fabsl.m4: New file.
38629         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
38630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
38631         REPLACE_FABSL.
38632         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
38633         REPLACE_FABSL.
38634         * modules/fabsl: New file.
38635         * doc/posix-functions/fabsl.texi: Mention the new module.
38637 2012-02-25  Bruno Haible  <bruno@clisp.org>
38639         fabs tests: More tests.
38640         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
38641         (zero): New variable.
38642         (main): Add tests for signed zero.
38643         * modules/fabs-tests (Files): Add tests/minus-zero.h.
38645         fabsf tests: More tests.
38646         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
38647         (zero): New variable.
38648         (main): Add tests for signed zero.
38649         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
38651 2012-02-24  Bruno Haible  <bruno@clisp.org>
38653         atanl: Provide function definition on MSVC.
38654         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
38655         function pointer.
38656         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
38658 2012-02-24  Bruno Haible  <bruno@clisp.org>
38660         acosl: Provide function definition on MSVC.
38661         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
38662         function pointer.
38663         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
38665 2012-02-24  Bruno Haible  <bruno@clisp.org>
38667         asinl: Provide function definition on MSVC.
38668         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
38669         function pointer.
38670         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
38672 2012-02-24  Bruno Haible  <bruno@clisp.org>
38674         tanl: Provide function definition on MSVC.
38675         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
38676         function pointer.
38677         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
38679 2012-02-24  Bruno Haible  <bruno@clisp.org>
38681         cosl: Provide function definition on MSVC.
38682         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
38683         function pointer.
38684         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
38686 2012-02-24  Bruno Haible  <bruno@clisp.org>
38688         sinl: Provide function definition on MSVC.
38689         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
38690         function pointer.
38691         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
38693 2012-02-24  Bruno Haible  <bruno@clisp.org>
38695         logl: Provide function definition on MSVC.
38696         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
38697         function pointer.
38698         * lib/math.in.h (logl): Undefine if it does not exist as a function.
38700 2012-02-24  Bruno Haible  <bruno@clisp.org>
38702         expl: Provide function definition on MSVC.
38703         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
38704         function pointer.
38705         * lib/math.in.h (expl): Undefine if it does not exist as a function.
38707 2012-02-24  Bruno Haible  <bruno@clisp.org>
38709         sqrtl: Provide function definition on MSVC.
38710         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
38711         a function pointer.
38712         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
38714 2012-02-24  Bruno Haible  <bruno@clisp.org>
38716         ceill: Provide function definition on MSVC.
38717         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
38718         used as a function pointer.
38719         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
38721 2012-02-24  Bruno Haible  <bruno@clisp.org>
38723         floorl: Provide function definition on MSVC.
38724         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
38725         used as a function pointer.
38726         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
38728 2012-02-24  Bruno Haible  <bruno@clisp.org>
38730         ceilf: Provide function definition on MSVC.
38731         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
38732         used as a function pointer.
38733         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
38735 2012-02-24  Bruno Haible  <bruno@clisp.org>
38737         floorf: Provide function definition on MSVC.
38738         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
38739         used as a function pointer.
38740         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
38742 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38744         stdnoreturn: new module
38745         This implements a replacement for C11's <stdnoreturn.h>.
38746         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
38747         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
38748         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
38749         * tests/test-stdnoreturn.c: New files.
38751 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
38753         regex: fix false multibyte matches in some regular expressions
38754         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
38755         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
38756         * lib/regex_internal.c (re_string_skip_chars):
38757         Fix miscomputation of remain_len that may cause incomplete
38758         multi-byte character and false match.
38760 2012-02-24  Jim Meyering  <meyering@redhat.com>
38762         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
38763         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
38764         uses with "==" *before* the call, e.g., 0 == strcmp (...)
38765         Remove now-unnecessary str''cmp obfuscation.
38766         Suggested by Akim Demaille.
38768 2012-02-24  Bruno Haible  <bruno@clisp.org>
38770         streq: Rename macro.
38771         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
38772         * NEWS: Mention the change.
38773         * lib/mbrtowc.c (mbrtowc): Update.
38774         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
38775         * lib/wcwidth.c (wcwidth): Update.
38776         Suggested by Akim Demaille and Jim Meyering.
38778 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38780         regex: fix typo in definition of MIN
38781         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
38782         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
38784 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38785             Bruno Haible  <bruno@clisp.org>
38787         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
38788         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
38789         entries into a stack-allocated buffer directly.
38790         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
38792 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
38793             Bruno Haible  <bruno@clisp.org>
38795         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
38797          - There were several instances of this pattern:
38799              for (;;) {
38800                n = acl (f, GETACLCNT, 0, NULL);
38801                [ allocate an array A of size N ]
38802                if (acl (f, GETACL, n, a) == n)
38803                  break;
38804              }
38806            This loop might never terminate if some other process is constantly
38807            manipulating the file's ACL.  The loop should be rewritten to
38808            terminate.
38810          - The acl (... GETACLNT ...) call is merely an optimization; its value
38811            is merely a hint as to how big to make the array.  A better
38812            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
38813            and just guess a reasonably-big size, growing the size and trying
38814            again if it's not large enough.  This guarantees termination, and
38815            saves a system call.
38817         * lib/acl-internal.h: Include <limits.h>.
38818         (MIN, SIZE_MAX): New macros.
38819         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
38820         a stack-allocated buffer, and use malloc if it does not fit. Don't
38821         use GETACLCNT.
38822         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38824 2012-02-19  Bruno Haible  <bruno@clisp.org>
38826         acl: Fix endless loop on Solaris with vxfs.
38827         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
38828         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
38829         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
38830         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
38831         * tests/test-sameacls.c (main)[Solaris]: Likewise.
38832         Reported by Bill Jones in
38833         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
38835 2012-02-19  Bruno Haible  <bruno@clisp.org>
38837         acl: Fix copy-acl test failure on Solaris 11.0.
38838         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
38839         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
38840         that this function returns 0 in some more cases.
38842 2012-02-19  Bruno Haible  <bruno@clisp.org>
38844         acl: Update doc references.
38845         * doc/acl-resources.txt: Update links to Solaris documentation.
38847 2012-02-19  Bruno Haible  <bruno@clisp.org>
38849         Fix test failure in many locales on Solaris 11.
38850         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
38851         'tr' arguments.
38852         * tests/test-pipe-filter-ii1.c (main): Likewise.
38853         * build-aux/bootstrap (check_versions): Run 'tr' command with range
38854         expressions in the C locale.
38855         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
38856         * m4/host-os.m4 (gl_HOST_OS): Likewise.
38858 2012-02-19  Bruno Haible  <bruno@clisp.org>
38860         gnulib-tool: Improve usage message.
38861         * gnulib-tool (func_usage): Move doc of --help and --version to the
38862         section "Operation modes".
38864 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
38866         README-release: make it easier to execute commands
38867         * top/README-release: break commands out on to separate lines.
38869 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
38871         GNUmakefile: simplify detection of unconfigured trees
38872         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
38873         whether the tree make is being run from is already configured or
38874         not.  Related simplifications.
38876 2012-02-13  Simon Josefsson  <simon@josefsson.org>
38878         * gnulib-tool (func_usage): Document --help and --version.
38880 2012-02-11  Jim Meyering  <meyering@redhat.com>
38882         bootstrap: don't exit 0 upon gnulib-tool failure
38883         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
38884         its exit status, not 0.
38886 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
38888         README-release: various improvements
38889         * top/README-release: Give a command to push changes for the
38890         release.  Add "distcheck" to list of other pre-release checks.
38891         Fix instance of "make stable" which should be "make TYPE".
38893 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38895         maint: replace FSF snail-mail addresses with URLs
38896         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
38897         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
38898         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
38899         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
38900         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
38901         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
38902         * lib/check-version.c, lib/check-version.h, lib/config.charset:
38903         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
38904         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
38905         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
38906         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
38907         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
38908         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
38909         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
38910         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
38911         * lib/glthread/thread.c, lib/glthread/thread.h:
38912         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
38913         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
38914         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
38915         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
38916         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
38917         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
38918         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
38919         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
38920         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
38921         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
38922         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
38923         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
38924         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
38925         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
38926         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
38927         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
38928         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
38929         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
38930         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
38931         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
38932         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
38933         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
38934         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
38935         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
38936         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
38937         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
38938         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
38939         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
38940         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
38941         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
38942         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
38943         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
38944         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
38945         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
38946         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
38947         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
38948         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
38949         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
38950         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
38951         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
38952         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
38953         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
38954         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
38955         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
38956         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
38957         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
38958         * tests/test-poll.c, tests/test-quotearg-simple.c:
38959         * tests/test-quotearg.c, tests/test-quotearg.h:
38960         * tests/test-round-ieee.c, tests/test-round1.c:
38961         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
38962         * tests/test-roundl-ieee.c, tests/test-roundl.c:
38963         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
38964         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
38965         * tests/test-strerror.c, tests/test-strerror_r.c:
38966         * tests/test-strsignal.c, tests/test-strverscmp.c:
38967         * tests/test-xmemdup0.c:
38968         Replace FSF snail mail addresses with URLs, as per GNU coding
38969         standards.  See glibc bug
38970         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
38972 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
38974         README-release: capitalize a word and split a line
38975         * top/README-release: Fix punctuation and spacing.
38977 2012-02-08  Akim Demaille  <demaille@gostai.com>
38979         fatal-signal: use C prototypes (with explicit void).
38980         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38981         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
38983 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38985         regex: spelling fix
38986         * lib/regexec.c: spelling fix
38988         regex: rely on stdint.h for SIZE_MAX
38989         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
38991 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38993         regex: merge glibc changes
38995         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
38996         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
38997         (init_word_char): Work even if bitset words are not exactly 32 or
38998         64 bits wide.  Don't assume there are no padding bits.
38999         * lib/regex.c [_LIBC]: Do not include <config.h>.
39000         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
39001         and -Wtype-limits.
39002         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
39003         needless disagreement with glibc.  All uses changed.  Define it to
39004         1 only if _GNU_SOURCE, to match glibc.
39005         (_REG_RM_NAME): Remove; no longer needed, since the names in
39006         question are now all protected by __USE_GNU.
39007         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
39008         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
39009         * lib/regex_internal.h (MIN): New macro.
39011         2012-01-03 Ulrich Drepper <drepper@gmail.com>
39012         * lib/regcomp.c (init_word_char): Optimize regex a bit.
39014         2011-12-30 Jakub Jelinek <jakub@redhat.com>
39015         * lib/regex_internal.c (re_string_fetch_byte_case):
39016         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
39017         is miscompiled, and it turns out it is because of an incorrect
39018         attribute on re_string_fetch_byte_case.  Unlike
39019         re_string_peek_byte_case, this one is really not pure, it modifies
39020         memory (increments pstr->cur_idx), and with the pure attribute GCC
39021         assumed it doesn't and it cached the presumed value of
39022         regexp->cur_idx in a variable across the
39023          for (;; ++i)
39024            {
39025              if (i >= BRACKET_NAME_BUF_SIZE)
39026                return REG_EBRACK;
39027              if (token->type == OP_OPEN_CHAR_CLASS)
39028                ch = re_string_fetch_byte_case (regexp);
39029              else
39030                ch = re_string_fetch_byte (regexp);
39031              if (re_string_eoi(regexp))
39032                return REG_EBRACK;
39033              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
39034                break;
39035              elem->opr.name[i] = ch;
39036            }
39038         2011-11-29 Andreas Schwab <schwab@redhat.com>
39039         * lib/regcomp.c (build_equiv_class):
39040         Fix access after end of search string in regex matcher.
39042         2011-11-12 Ulrich Drepper <drepper@redhat.com>
39043         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
39045         2011-10-12 Ulrich Drepper <drepper@redhat.com>
39046         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
39048         2011-10-11 Ulrich Drepper <drepper@redhat.com>
39049         * lib/regcomp.c (parse_branch, parse_sub_exp):
39050         More regex memory leak fixes and tests.
39051         (parse_sub_exp, parse_bracket_exp):
39052         Fix memory leak for some invalid regular expressions.
39054         2011-05-28 Ulrich Drepper <drepper@gmail.com>
39055         * lib/regex_internal.c, lib/regexec.c:
39056         Fix unnecessary overallocation due to incomplete character.  When
39057         incomplete characters are found at the end of a string the code
39058         ran amok and allocated lots of memory.  Stricter limits are now in
39059         place.
39061         2011-05-20 Reuben Thomas <rrt@sc3d.org>
39062         * lib/regex.h: Update documentation.
39064         2011-05-16 Aharon Robbins <arnold@skeeve.com>
39065         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
39067         2010-05-05 Andreas Schwab <schwab@redhat.com>
39068         * lib/regexec.c (find_collation_sequence_value):
39069         Fix lookup of collation sequence value during regexp matching.
39071         2010-01-22 Ulrich Drepper <drepper@redhat.com>
39072         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
39074         2008-01-16 Ulrich Drepper <drepper@redhat.com>
39075         * lib/regex.h: Cleanup namespace.
39077         2007-11-26 Ulrich Drepper <drepper@redhat.com>
39078         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
39080         2007-08-26 Ulrich Drepper <drepper@redhat.com>
39081         * lib/regex_internal.h: Prevent some declarations and definitions
39082         to be seen when used in tests.
39084         2005-05-06 Ulrich Drepper <drepper@redhat.com>
39085         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
39086         __libc_lock_* macros if not _LIBC.
39087         (struct re_dfa_t): Add lock.
39089 2012-02-07  Eric Blake  <eblake@redhat.com>
39091         maint.mk: also prohibit lower-case @var@
39092         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
39093         lower case, like @top_srcdir@.
39095 2012-02-04  Eric Blake  <eblake@redhat.com>
39097         canonicalize: avoid uninitialized memory use
39098         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
39099         random '/' left in dest.
39100         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
39102 2012-02-04  Bruno Haible  <bruno@clisp.org>
39104         isatty: Fix test failure of ptsname_r on native Windows.
39105         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
39106         and don't set errno.
39107         (isatty): Test first whether fd is valid. Set errno when returning 0.
39109 2012-02-04  Bruno Haible  <bruno@clisp.org>
39111         spawn-pipe tests: Fix a NULL program name in a diagnostic.
39112         * tests/test-spawn-pipe-main.c: Include progname.h.
39113         (main): Invoke set_program_name.
39114         * modules/spawn-pipe-tests (Depends-on): Add progname.
39116         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
39117         * tests/test-nonblocking-socket-main.c: Include progname.h.
39118         (main): Invoke set_program_name.
39119         * modules/nonblocking-socket-tests (Depends-on): Add progname.
39121         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
39122         * tests/test-nonblocking-pipe-main.c: Include progname.h.
39123         (main): Invoke set_program_name.
39124         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
39126 2012-02-04  Eric Blake  <eblake@redhat.com>
39128         canonicalize-lgpl: fix // handling
39129         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
39131         canonicalize: fix // handling
39132         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
39133         /// to //, since only // is special.
39135 2012-02-04  Bruno Haible  <bruno@clisp.org>
39137         ioctl: Fix test failure on native Windows.
39138         * lib/ioctl.c: Include msvc-nothrow.h.
39139         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
39141 2012-02-04  Bruno Haible  <bruno@clisp.org>
39143         fsync: Avoid test failure on native Windows.
39144         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
39145         read-only.
39147 2012-02-04  Bruno Haible  <bruno@clisp.org>
39149         sys_select: Avoid syntax error on OpenBSD 5.0.
39150         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
39151         currently being included, just include the system's <sys/select.h>.
39153 2012-02-04  Bruno Haible  <bruno@clisp.org>
39155         sys_select: Avoid syntax error on OpenBSD 5.0.
39156         * lib/sys_select.in.h: Include <signal.h> only after the include_next
39157         <sys/select.h>, not before.
39158         Reported by Jiri B <jirib@devio.us>.
39160 2012-02-04  Bruno Haible  <bruno@clisp.org>
39162         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
39163         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
39164         global variables.
39165         * tests/test-get-rusage-data.c (main): Likewise.
39166         Reported by Jim Meyering.
39168 2012-02-04  Bruno Haible  <bruno@clisp.org>
39170         stdioext: Fix last commit.
39171         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
39173 2012-02-03  Bruno Haible  <bruno@clisp.org>
39175         stdioext: Add tentative support for Plan9.
39176         * lib/stdio-impl.h: Include <errno.h>.
39177         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
39178         * lib/freadable.c (freadable): Likewise.
39179         * lib/fwritable.c (fwritable): Likewise.
39180         * lib/fbufmode.c (fbufmode): Likewise.
39181         * lib/freading.c (freading): Likewise.
39182         * lib/fwriting.c (fwriting): Likewise.
39183         * lib/freadptr.c (freadptr): Likewise.
39184         * lib/freadseek.c (freadptrinc): Likewise.
39185         * lib/freadahead.c (freadahead): Likewise.
39186         * lib/fpurge.c (fpurge): Likewise.
39187         * lib/fseeko.c (rpl_fseeko): Likewise.
39188         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
39189         Reported by Jens Staal <staal1978@gmail.com>.
39191 2012-02-02  Jim Meyering  <meyering@redhat.com>
39193         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
39194         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
39195         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
39196         not even to try to add the attribute.  Instead, add a pragma to suppress
39197         the suggestion/warning.
39199 2012-01-31  Karl Berry  <karl@gnu.org>
39201         setstate doc: typo.
39202         * doc/posix-functions/setstate.texi (setstate): { not (.
39204 2012-01-31  Bruno Haible  <bruno@clisp.org>
39206         popen: Make more robust on Windows.
39207         * lib/popen.c: On native Windows, use the _popen based code even if
39208         HAVE_POPEN is set.
39209         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
39210         environment variable on native Windows.
39212 2012-01-30  Bruno Haible  <bruno@clisp.org>
39214         pclose: Fix typo.
39215         * lib/stdio.in.h (pclose): Fix typo in warning message.
39217 2012-01-30  Bruno Haible  <bruno@clisp.org>
39219         doc about getlogin_r, setstate.
39220         * doc/posix-functions/getlogin_r.texi: List the incompatible
39221         declaration problem under "not fixed by gnulib".
39222         * doc/posix-functions/setstate.texi: Mention incompatible declaration
39223         problem on Solaris 11 and other platforms.
39225 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
39226             Bruno Haible  <bruno@clisp.org>
39228         poll tests: Make test more robust.
39229         * tests/test-poll.c: Include macros.h.
39230         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
39231         return value of various I/O operations.
39232         * modules/poll-tests (Files): Add tests/macros.h.
39234 2012-01-30  Bruno Haible  <bruno@clisp.org>
39236         sys_stat: Fix support for mingw64 and MSVC.
39237         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
39238         header files already do it.
39239         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
39240         stat itself.
39241         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39243 2012-01-30  Bruno Haible  <bruno@clisp.org>
39245         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
39246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
39247         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
39249 2012-01-29  Bruno Haible  <bruno@clisp.org>
39251         quotearg: Fix test failure on MacOS X 10.5.
39252         * tests/test-quotearg-simple.c: Include localcharset.h.
39253         (main): If the locale encoding is not ASCII, bypass the tests of
39254         locale_quoting_style and clocale_quoting_style.
39255         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
39257 2012-01-29  Jim Meyering  <meyering@redhat.com>
39259         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
39260         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
39261         detect uses of canonicalize_file_name.
39263 2012-01-28  Bruno Haible  <bruno@clisp.org>
39265         test-framework-sh: Fix test failure with AIX 7.1 diff.
39266         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
39267         in column 1, like 'diff -c' does.
39268         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
39269         whether 'diff -u' is used. Instead, test whether the output contains
39270         some '@' character.
39272 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39274         strtoimax: eliminate need for stdint.h, inttypes.h checks
39275         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
39276         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
39277         the prerequisites for a recently-introduced strtoimax test.
39278         I guess this might cause strtoimax to be replaced when not
39279         strictly necessary on older hosts, but this shouldn't introduce
39280         any bugs and it should make Emacs 'configure' faster on typical
39281         modern hosts.  Problem discovered when importing the latest gnulib
39282         to an Emacs test version.
39283         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
39285 2012-01-28  Bruno Haible  <bruno@clisp.org>
39287         sys_time: Override 'struct timeval' on some native Windows platforms.
39288         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
39289         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
39290         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
39291         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
39292         needs to be overridden.
39293         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
39294         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
39295         * tests/test-sys_select.c: Check that the tv_sec member has the same
39296         size as a 'time_t'.
39297         * tests/test-sys_time.c: Likewise.
39298         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
39299         is set, set also REPLACE_GETTIMEOFDAY.
39300         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
39301         convert the resulting 'struct timeval' before returning.
39302         * lib/select.c: Include <sys/time.h>.
39303         (select, timeval): Undefine at the right place.
39304         * modules/select (Depends-on): Add sys_time.
39305         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
39306         some Windows platforms.
39307         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
39309 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39311         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
39312         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
39313         an integer.
39314         * lib/fcntl.c (dupfd): Likewise.
39315         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
39317 2012-01-28  Bruno Haible  <bruno@clisp.org>
39319         fcntl: Avoid compilation error on native Windows.
39320         * modules/fcntl (Depends-on): Add 'close'.
39322 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39324         select, poll, isatty: Avoid warnings on x86_64 mingw64.
39325         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
39326         pointer to an integer.
39327         * lib/poll.c (IsConsoleHandle): Likewise.
39328         * lib/isatty.c (IsConsoleHandle): Likewise.
39330 2012-01-28  Jim Meyering  <meyering@redhat.com>
39332         doc: clarify README-release
39333         * top/README-release: Clarify: you should make a point to have
39334         the latest stable versions of build tools in your PATH, and the
39335         reference to buildreq is solely for its list of tool names, not
39336         for its minimal-functional version numbers.
39337         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
39339         maint.mk: use more readable (yet functionally equivalent) quoting
39340         It is common to quote a single quote in a single quoted string like
39341         this:  '...'\''...'.  Unless you know the idiom, that looks like
39342         gibberish, so prefer to double-quote the string when possible.
39343         Then you can use a more readable, lone single quote: "...'..."
39344         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
39345         "don't" is more readable than the equivalent 'don'\''t'.
39346         (sc_cast_of_x_alloc_return_value): Likewise.
39347         (sc_cast_of_alloca_return_value): Likewise.
39348         (sc_makefile_path_separator_check): Similar: use ":" in '...',
39349         rather than '\'':'\''.
39351 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39353         stdalign: relax _Alignof and tighten _Alignas test
39354         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
39355         as it was too strict: alignof must divide offsetof, but it need
39356         not equal offsetof.  Inspired by Joseph S. Myers's comment
39357         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
39358         Conversely, tighten the _Alignas test a bit, as the resulting
39359         alignment must be exactly 8.
39361 2012-01-27  Bruno Haible  <bruno@clisp.org>
39363         stdalign: Document the last change.
39364         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
39366 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
39368         stdalign: check that alignof and offsetof are consistent
39369         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
39370         Problem reported for gnulib by Richard W.M. Jones in
39371         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
39373 2012-01-27  Jim Meyering  <meyering@redhat.com>
39375         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
39376         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
39377         convert a sequence with gaps to the minimal containing range.
39378         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
39379         * tests/test-update-copyright.sh: Test for this.
39380         The FSF confirmed it is ok to do this, assuming there is at
39381         least one significant change per year in the affected range:
39382         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
39384 2012-01-26  Bruno Haible  <bruno@clisp.org>
39386         pipe2: refine doc about thread-safety
39387         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
39388         multithread-safety problem.
39389         * doc/glibc-functions/accept4.texi: Likewise.
39391 2012-01-26  Bruno Haible  <bruno@clisp.org>
39393         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
39394         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
39395         In the test program, include <fcntl.h>, for O_RDONLY.
39397 2012-01-26  Eric Blake  <eblake@redhat.com>
39399         pipe2: document lack of thread-safety in replacement
39400         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
39401         issue in replacement.
39402         * doc/glibc-functions/accept4.texi (accept4): Likewise.
39403         Based on a report by Eric Wong.
39405 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
39406             Bruno Haible  <bruno@clisp.org>
39408         malloca: Avoid warnings on x86_64 mingw64.
39409         * lib/malloca.c: Include <stdint.h>.
39410         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
39411         * modules/malloca (Depends-on): Add stdint.
39412         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
39414 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39416         obstack: remove __STDC__ conditionals
39417         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
39418         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
39419         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
39420         m4/include_next.m4 as the only gnulib-maintained places that still
39421         refer to __STDC__.
39423 2012-01-24  Bruno Haible  <bruno@clisp.org>
39425         havelib: Modern quoting.
39426         * build-aux/config.rpath: Quote 'like this', not `like this', as per
39427         the recent change to the GNU coding standards.
39429 2012-01-24  Bruno Haible  <bruno@clisp.org>
39431         stdint: Improve support for Android.
39432         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
39433         Reported by Simon Josefsson <simon@josefsson.org>.
39435 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39437         doc: omit trailing empty lines from INSTALL etc.
39438         * doc/Makefile (INSTALL): Omit trailing empty lines.
39439         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
39440         omit trailing empty lines.  This simplifies the build procedure.
39442 2012-01-23  Jim Meyering  <meyering@redhat.com>
39444         tests: avoid spurious warnings about gl_sockets_startup
39445         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
39446         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
39447         reporting a "statement with no effect".
39448         * tests/test-accept.c (main): Mark as "(void)".
39449         * tests/test-accept4.c (main): Likewise.
39450         * tests/test-bind.c (main): Likewise.
39451         * tests/test-connect.c (main): Likewise.
39452         * tests/test-getpeername.c (main): Likewise.
39453         * tests/test-getsockname.c (main): Likewise.
39454         * tests/test-getsockopt.c (main): Likewise.
39455         * tests/test-listen.c (main): Likewise.
39456         * tests/test-recv.c (main): Likewise.
39457         * tests/test-recvfrom.c (main): Likewise.
39458         * tests/test-send.c (main): Likewise.
39459         * tests/test-sendto.c (main): Likewise.
39460         * tests/test-setsockopt.c (main): Likewise.
39461         * tests/test-shutdown.c (main): Likewise.
39463 2012-01-21  Bruno Haible  <bruno@clisp.org>
39465         locale-fr.m4: Fix for Android.
39466         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
39467         failure of the test program on Bionic libc.
39469 2012-01-21  Jim Meyering  <meyering@redhat.com>
39471         bootstrap: fail when bootstrap_post_import_hook fails
39472         Otherwise, it's far too easy to miss diagnostics emitted
39473         between gnulib-tool's output and that of running configure.
39474         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
39476 2012-01-17  Jim Meyering  <meyering@redhat.com>
39478         maint: enable sc_trailing_blank
39479         * build-aux/pmccabe.css: Remove trailing blanks.
39480         * doc/acl-cygwin.txt: Likewise.
39481         * doc/gnu-oids.texi: Likewise
39482         * cfg.mk: Enable sc_trailing_blank.
39483         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
39485 2012-01-17  Jim Meyering  <meyering@redhat.com>
39487         maint: enable sc_prohibit_openat_without_use
39488         * cfg.mk: Enable sc_prohibit_openat_without_use.
39489         Exempt lib/selinux-at.c.
39491 2012-01-17  Jim Meyering  <meyering@redhat.com>
39493         maint: enable sc_prohibit_cloexec_without_use
39494         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
39495         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
39497 2012-01-17  Jim Meyering  <meyering@redhat.com>
39499         maint: enable sc_prohibit_intprops_without_use
39500         * cfg.mk: Enable sc_prohibit_intprops_without_use
39501         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
39503 2012-01-17  Jim Meyering  <meyering@redhat.com>
39505         maint: enable sc_prohibit_hash_pjw_without_use
39506         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
39507         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
39508         to match any use of \<hash_pjw\>, i.e., not necessarily with a
39509         following " (".
39511 2012-01-17  Jim Meyering  <meyering@redhat.com>
39513         maint: enable double-word-prohibiting rule
39514         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
39515         Exempt three files.
39517 2012-01-17  Jim Meyering  <meyering@redhat.com>
39519         maint: remove empty lines at EOF, but excluding modules/*
39520         Apply syntax rules at home as well as abroad.  Most changes
39521         were induced by running this:
39522           make srcdir=. _build-aux=build-aux -f top/maint.mk \
39523             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
39524             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
39525         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
39526         Exempt modules/* and two binary files.
39527         Also exempt doc/INSTALL*, per request from Bruno Haible.
39528         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
39529         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
39530         * doc/Copyright/request-assign.future: Likewise.
39531         * doc/Copyright/request-disclaim.changes: Likewise.
39532         * doc/INSTALL: Likewise.
39533         * doc/INSTALL.ISO: Likewise.
39534         * doc/INSTALL.UTF-8: Likewise.
39535         * doc/acl-cygwin.txt: Likewise.
39536         * doc/acl-resources.txt: Likewise.
39537         * doc/fdl-1.2.texi: Likewise.
39538         * doc/fdl-1.3.texi: Likewise.
39539         * doc/fdl.texi: Likewise.
39540         * lib/argp-pin.c: Likewise.
39541         * lib/round.c: Likewise.
39542         * lib/unicase/u16-totitle.c: Likewise.
39543         * lib/unictype/block_test.c: Likewise.
39544         * lib/uninorm/canonical-decomposition.c: Likewise.
39545         * m4/README: Likewise.
39546         * m4/relocatable-lib.m4: Likewise.
39547         * tests/test-isnand-nolibm.c: Likewise.
39548         * tests/test-isnand.c: Likewise.
39549         * tests/uninorm/NormalizationTest.txt: Likewise.
39551 2012-01-17  Jim Meyering  <meyering@redhat.com>
39553         maint: add framework to run syntax-check rules against gnulib sources
39554         * cfg.mk: New file, to disable all currently-failing tests.
39555         We'll enable them one by one, as they are made to pass.
39556         * Makefile (sc_maint): New rule.
39558 2012-01-21  Bruno Haible  <bruno@clisp.org>
39560         stdint: Add support for Android.
39561         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
39562         include the system's <stdint.h>.
39563         Reported by Simon Josefsson <simon@josefsson.org>.
39565 2012-01-19  Jim Meyering  <meyering@redhat.com>
39567         bootstrap: add bootstrap_post_import_hook
39568         Bison does still need something like the gnulib_mk_hook whose
39569         invocation I had to remove along with slurp in commit 767ccd40.
39570         Technically, we could get along without it, but doing so would
39571         have required living with a warning and a mandatory post-bootstrap
39572         automake rerun.
39573         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
39574         (bootstrap_post_import_hook): New function.
39575         Invoke it after gnulib-tool --import and before autoreconf.
39577 2012-01-18  Jim Meyering  <meyering@redhat.com>
39579         gitlog-to-changelog: don't use "no_"-prefixed variable name
39580         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
39581         to enable both --cluster and --no-cluster.  Change variable name,
39582         s/\$no_cluster/$cluster/, and reverse usage to match.
39584         gitlog-to-changelog: use "||", not "or" in expressions
39585         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
39586         expressions.
39588 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
39590         gitlog-to-changelog: new option --no-cluster
39591         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
39592         clustering of adjacent commit messages.
39594 2012-01-17  Jim Meyering  <meyering@redhat.com>
39596         maint: spell file systems with two words, not one
39597         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
39598         two words, not one.
39600 2012-01-16  Jim Meyering  <meyering@redhat.com>
39602         bootstrap: add a FIXME comment to ensure we eventually remove the hack
39603         * build-aux/bootstrap (gnulib_tool_options): Add comment.
39605 2012-01-16  Eric Blake  <eblake@redhat.com>
39607         bootstrap: cater to autoconf 2.59
39608         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
39609         is not available.
39611         bootstrap: properly check for libtool
39612         * build-aux/bootstrap (libtoolize): Also run libtool when older
39613         usage is detected.
39615 2012-01-15  Bruno Haible  <bruno@clisp.org>
39617         Improve support for MSVC 9.
39618         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
39619         clashes on MSVC.
39620         * lib/fcntl.in.h: Likewise.
39621         * lib/stdlib.in.h: Likewise.
39622         * lib/sys_stat.in.h: Likewise.
39624 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
39626         gnupload: we hold the master copy of this script now
39627         For motivation and more information, see:
39628         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
39629         * build-aux/gnupload: Make it clear in the heading comments that the
39630         master copy of this file is maintained by gnulib.  Since we are at
39631         it, bump its copyright year and ...
39632         ($scriptversion): ... the date in its version.
39633         ($usage): Patches and bug reports should be sent to the gnulib list,
39634         not the automake one.
39635         * config/srclist.txt: Don't try to sync 'gnupload' from automake
39636         anymore.
39638 2012-01-15  Bruno Haible  <bruno@clisp.org>
39640         Fix module 'random'.
39641         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
39642         initstate, setstate are declared.
39644 2012-01-14  Bruno Haible  <bruno@clisp.org>
39646         Tests for module 'random'.
39647         * modules/random-tests: New file.
39648         * tests/test-random.c: New file, based on tests/test-random_r.c.
39650         New module 'random'.
39651         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
39652         declarations.
39653         * lib/random.c: New file, based on glibc/stdlib/random.c.
39654         * m4/random.m4: New file.
39655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
39656         HAVE_RANDOM.
39657         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
39658         * modules/random: New file.
39659         * config/srclist.txt: Add an entry for random.c.
39660         * doc/posix-functions/random.texi: Mention the 'random' module.
39661         * doc/posix-functions/initstate.texi: Likewise.
39662         * doc/posix-functions/setstate.texi: Likewise.
39663         * doc/posix-functions/srandom.texi: Likewise.
39665 2012-01-12  Bruno Haible  <bruno@clisp.org>
39667         random_r: Use common idioms.
39668         * lib/random_r.c: Include <stdlib.h> first.
39670         random_r: Override incompatible API on AIX, OSF/1.
39671         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
39672         Override the system function if REPLACE_RANDOM_R is 1.
39673         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
39674         and OSF/1, set REPLACE_RANDOM_R.
39675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
39676         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
39677         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
39678         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
39679         * doc/glibc-functions/random_r.texi: Likewise.
39680         * doc/glibc-functions/setstate_r.texi: Likewise.
39682         random_r: Support for MSVC 9.
39683         * lib/random_r.c: Include stdint.h, not inttypes.h.
39685 2012-01-12  Eric Blake  <eblake@redhat.com>
39687         inet_ntop: guard extra work by IF_LINT
39688         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
39689         better code generation when not checking for warnings.
39690         Suggested by Paul Eggert and Jim Meyering.
39692         strptime: fix regression on mingw
39693         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
39694         Fix regression.  Reported by Bruno Haible.
39696 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
39697             Bruno Haible  <bruno@clisp.org>
39699         copy-file: add error-code-returning variant.
39700         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
39701         (qcopy_file_preserving): New declaration.
39702         * lib/copy-file.c (qcopy_file_preserving): Renamed from
39703         copy_file_preserving. Change return type to 'int'. Don't emit an error
39704         message here.
39705         (copy_file_preserving): New function.
39706         * tests/test-copy-file.c: Include <stdlib.h>.
39707         (main): Test qcopy_file_preserving if the environment variable
39708         NO_STDERR_OUTPUT is set.
39709         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
39710         with NO_STDERR_OUTPUT
39711         * tests/test-copy-file-2.sh: Likewise.
39713 2012-01-10  Bruno Haible  <bruno@clisp.org>
39715         copy-file: Use 'quote' module consistently.
39716         * lib/copy-file.c (copy_file_preserving): Use quote().
39718         copy-file: Refactor.
39719         * lib/copy-file.c: Include quote.h.
39720         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
39721         message here.
39722         * modules/copy-file (Depends-on): Add quote.
39724         acl: Export qcopy_acl.
39725         * lib/acl.h (qcopy_acl): New declaration.
39726         * lib/copy-acl.c (qcopy_acl): Make non-static.
39728         acl: Rename a local variable.
39729         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
39731         acl: Align return values of copy_acl and qcopy_acl.
39732         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
39733         maybe < -1.
39735 2012-01-11  Eric Blake  <eblake@redhat.com>
39737         strptime: silence gcc warnings
39738         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
39739         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
39740         Reported by Daniel P. Berrange.
39742         inet_ntop: silence gcc warning
39743         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
39744         Reported by Daniel P. Berrange.
39746 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
39748         getloadavg test: skip the test on GNU/Linux without /proc mounted
39749         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
39750         file.  When /proc is not mounted, it always fails with ENOENT.
39751         * tests/test-getloadavg.c (main): Treat ENOENT return code from
39752         getloadavg(3) the same way as ENOSYS and ENOTSUP.
39754 2012-01-10  Bruno Haible  <bruno@clisp.org>
39756         regex: Avoid link error on MSVC 9.
39757         * modules/regex (Depends-on): Add wctype.
39759 2012-01-10  Bruno Haible  <bruno@clisp.org>
39761         doc: Mention --with-tests option.
39762         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
39763         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
39764         --with-tests.
39765         Reported by Reuben Thomas.
39767 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
39769         users.txt: order package names lexicographically.
39770         * users.txt: Order package names lexicographically.
39772 2012-01-10  Jim Meyering  <meyering@redhat.com>
39774         maint.mk: fix description in comment
39775         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
39777         ignore-value: remove deprecated ignore_ptr function
39778         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
39779         * NEWS: Note this.
39781 2012-01-09  Jim Meyering  <meyering@redhat.com>
39783         test-init.sh: avoid a subshell
39784         * tests/test-init.sh: Remove protective subshell.
39785         Suggested by Bernhard Voelker.  While a subshell is normally
39786         required to protect against older shells (Solaris, FreeBSD) that
39787         warn about a missing program before performing redirection, the
39788         shell-selection tests performed by init.sh probably exclude any
39789         offending shell.
39791 2012-01-08  Bruno Haible  <bruno@clisp.org>
39793         setlocale tests: Avoid test failure on Solaris 11.0.
39794         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
39795         variable.
39797 2012-01-08  Bruno Haible  <bruno@clisp.org>
39799         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
39800         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39801         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39802         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
39803         macro.
39804         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
39805         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39806         * lib/spawn_faction_addopen.c: Add workaround implementation if
39807         HAVE_WORKING_POSIX_SPAWN.
39808         * modules/spawn (Makefile): Substitute
39809         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
39810         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
39811         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
39812         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
39813         (Depends-on): Update conditions.
39814         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39815         the Solaris 11 bug.
39817 2012-01-08  Bruno Haible  <bruno@clisp.org>
39819         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
39820         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39821         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39822         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
39823         macro.
39824         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
39825         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39826         * lib/spawn_faction_adddup2.c: Add workaround implementation if
39827         HAVE_WORKING_POSIX_SPAWN.
39828         * modules/spawn (Makefile): Substitute
39829         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
39830         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
39831         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
39832         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
39833         (Depends-on): Update conditions.
39834         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39835         the Solaris 11 bug.
39837 2012-01-08  Bruno Haible  <bruno@clisp.org>
39839         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
39840         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
39841         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39842         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
39843         HAVE_WORKING_POSIX_SPAWN.
39844         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
39845         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
39846         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39847         * lib/spawn_faction_addclose.c: Add workaround implementation if
39848         HAVE_WORKING_POSIX_SPAWN.
39849         * modules/spawn (Makefile): Substitute
39850         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
39851         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
39852         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
39853         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
39854         (Depends-on): Update conditions.
39855         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39856         the Solaris 11 bug.
39858 2012-01-08  Bruno Haible  <bruno@clisp.org>
39860         doc: Update for Solaris 11.0.
39861         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
39862         * m4/printf.m4: Update comments.
39864 2012-01-08  Bruno Haible  <bruno@clisp.org>
39866         mktime: Avoid compilation error on Solaris 11.
39867         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
39869 2012-01-08  Bruno Haible  <bruno@clisp.org>
39871         doc: Small fix.
39872         * doc/posix-headers/nl_types.texi: Correct platforms list.
39874 2012-01-08  Simon Josefsson  <simon@josefsson.org>
39876         Add lgpl-3.0 module.
39877         * MODULES.html.sh (Support for building documentation): Add
39878         lgpl-3.0.
39879         * modules/lgpl-3.0: New file.
39881 2012-01-08  Jim Meyering  <meyering@redhat.com>
39883         select.c: indent with spaces, not TABs
39884         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
39886 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39888         quotearg: do not use grave accent for left quote
39889         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
39890         locale_quoting_style.
39891         (quotearg_buffer_restyled): Fix example.
39892         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
39894 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39896         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
39897         Most programs do not have translation catalogs for English and much
39898         less separate catalogs for British and American English.  Drop the
39899         suggestion to translators about these two, and provide it
39900         automatically for Unicode locales.  Like most programs, even those
39901         using American English, we use single quotation marks.  This conflicts
39902         with the American typographic convention, but works better when you
39903         cite the entire error message within double quotes.  It also tries not
39904         to clash with established practice and with what non-gnulib programs
39905         will usually do.
39906         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
39907         using an UTF-8 or GB-18030 locale.  The list of other locales with
39908         quotes was provided by Bruno Haible.
39909         (quotearg_buffer_restyled): Adjust instructions to translators.
39910         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
39911         text, since this would be wrong when using Unicode.
39912         * modules/quotearg: Depend on c-strcaseeq.
39914 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
39916         quotearg: fix Wikipedia link
39917         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
39919 2012-01-07  Simon Josefsson  <simon@josefsson.org>
39921         Fix for mingw with MSVC9.
39922         * m4/ld-version-script.m4: Check that compiler rejects version
39923         scripts with syntax errors.  Reported by Bruno Haible
39924         <bruno@clisp.org>.
39926 2012-01-06  Bruno Haible  <bruno@clisp.org>
39928         Talk about "native Windows API", not "Woe32".
39929         * lib/accept4.c: Update comments to mention native Windows.
39930         * lib/execute.c: Likewise.
39931         * lib/fatal-signal.c: Likewise.
39932         * lib/localcharset.c: Likewise.
39933         * lib/nanosleep.c: Likewise.
39934         * lib/nl_langinfo.c: Likewise.
39935         * lib/pclose.c: Likewise.
39936         * lib/pipe-filter-gi.c: Likewise.
39937         * lib/pipe-filter-ii.c: Likewise.
39938         * lib/pipe.c: Likewise.
39939         * lib/pipe2.c: Likewise.
39940         * lib/popen.c: Likewise.
39941         * lib/progreloc.c: Likewise.
39942         * lib/relocatable.c: Likewise.
39943         * lib/sigaction.c: Likewise.
39944         * lib/sigprocmask.c: Likewise.
39945         * lib/spawn-pipe.h: Likewise.
39946         * lib/spawn-pipe.c: Likewise.
39947         * lib/spawni.c: Likewise.
39948         * lib/stat-time.h: Likewise.
39949         * lib/w32spawn.h: Likewise.
39950         * tests/test-isatty.c: Likewise.
39951         * lib/config.charset: More comments.
39952         * doc/gnulib-intro.texi: Mention native Windows.
39953         * doc/posix-functions/_Exit_C99.texi: Likewise.
39954         * doc/posix-headers/fcntl.texi: Likewise.
39956 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
39958         argp: Avoid crash if translator uses % characters in a translation.
39959         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
39960         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
39962 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
39964         doc: C11 and C++11 are now official
39965         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
39966         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
39967         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
39968         * modules/stdalign:
39969         Replace references to draft C1X to C11, and to draft C++0X to C++11.
39971 2012-01-06  Bruno Haible  <bruno@clisp.org>
39973         uc-is-grapheme-break tests: Tweak.
39974         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
39975         message.
39977 2012-01-06  Bruno Haible  <bruno@clisp.org>
39979         test-init.sh: correct the test for diff -u
39980         * tests/test-init.sh: Also redirect stdout to /dev/null.
39982 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39984         Use ', not `, for quoting output.
39985         * build-aux/announce-gen (usage, sizes, print_news_deltas)
39986         (print_changelog_deltas, get_tool_versions, main program):
39987         * build-aux/git-version-gen:
39988         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
39989         * build-aux/move-if-change (help):
39990         * build-aux/useless-if-before-free (usage, main program):
39991         * check-module (parse_module_file, usage)
39992         (find_included_lib_files, check_module):
39993         * lib/argmatch.c (main) [TEST]:
39994         * lib/argp-help.c (_help):
39995         * lib/getopt1.c (main) [TEST]:
39996         * lib/git-merge-changelog.c (usage):
39997         * lib/xstrtol-error.c (xstrtol_error):
39998         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
39999         * m4/argz.m4 (gl_FUNC_ARGZ):
40000         * m4/bison.m4 (gl_BISON):
40001         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
40002         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
40003         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
40004         * m4/fpending.m4 (gl_PREREQ_FPENDING):
40005         * m4/gc-random.m4 (gl_GC_RANDOM):
40006         * m4/intl.m4 (gt_CHECK_DECL):
40007         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
40008         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
40009         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
40010         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
40011         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
40012         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
40013         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
40014         * tests/test-dirname.c (main):
40015         * tests/test-getpass.c (main):
40016         * tests/test-iconvme.c (main):
40017         * tests/test-parse-datetime.c (LOG):
40018         * tests/test-xstrtoimax.sh:
40019         * tests/test-xstrtol.sh:
40020         * tests/test-xstrtoll.sh:
40021         * tests/test-xstrtoumax.sh:
40022         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
40023         * top/GNUmakefile (abort-due-to-no-makefile):
40024         Quote 'like this', not `like this', as per the recent change to
40025         the GNU coding standards.
40027 2012-01-05  Bruno Haible  <bruno@clisp.org>
40029         strtoimax: Don't force a replacement on systems where intmax_t is int.
40030         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
40031         'intmax_t' is not larger than 'int'.
40032         Reported by Pádraig Brady <P@draigBrady.com>.
40034 2012-01-05  Bruno Haible  <bruno@clisp.org>
40036         doc: Mention NetBSD bugs.
40037         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
40038         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
40040 2012-01-05  Bruno Haible  <bruno@clisp.org>
40042         strtoumax tests: Enhance tests.
40043         * tests/test-strtoumax.c (main): Add tests for large values.
40045 2012-01-05  Bruno Haible  <bruno@clisp.org>
40047         strtoimax: Work around AIX 5.1 bug.
40048         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
40049         definition.
40050         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
40051         Set HAVE_STRTOIMAX.
40052         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
40053         REPLACE_STRTOIMAX.
40054         * modules/inttypes-incomplete (Makefile.am): Substitute
40055         REPLACE_STRTOIMAX.
40056         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40057         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
40058         (Depends-on): Update conditions.
40059         * tests/test-strtoimax.c (main): Add tests for large values.
40060         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
40062 2012-01-05  Bruno Haible  <bruno@clisp.org>
40064         inttypes: Modernize.
40065         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
40066         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
40067         (Makefile.am): Update inttypes.h rule.
40069 2012-01-05  Jim Meyering  <meyering@redhat.com>
40071         init.sh: don't waste a subshell just to redirect stderr
40072         * tests/init.sh: In testing for diff -u and diff -c, use a
40073         stderr-redirecting exec inside `...` rather than a subshell.
40075         test-init.sh: avoid failure on HP-UX 11.00
40076         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
40077         resolves to diff -c or cmp.  Reported by Bruno Haible.
40079 2012-01-05  Bruno Haible  <bruno@clisp.org>
40081         Tests for module 'strtoull'.
40082         * modules/strtoull-tests: New file.
40083         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
40085 2012-01-05  Bruno Haible  <bruno@clisp.org>
40087         Tests for module 'strtoll'.
40088         * modules/strtoll-tests: New file.
40089         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
40091 2012-01-05  Bruno Haible  <bruno@clisp.org>
40093         Tests for module 'strtoul'.
40094         * modules/strtoul-tests: New file.
40095         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
40097 2012-01-05  Bruno Haible  <bruno@clisp.org>
40099         Tests for module 'strtol'.
40100         * modules/strtol-tests: New file.
40101         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
40103 2012-01-04  Jim Meyering  <meyering@redhat.com>
40105         test-init.sh: accommodate Solaris 5.10's different diff -u output
40106         * tests/test-init.sh: Also exempt @@ lines from the comparison
40107         of diff output, since Solaris 5.10 and GNU diff formats differ.
40108         Reported by Stefano Lattarini.
40110 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
40112         test-posixtm: don't assume signed integer wraparound
40113         * tests/test-posixtm.c (main): Don't assume wraparound semantics
40114         after signed integer overflow.  Inspired by (though it may not
40115         fix) Bruno Haible's bug report in
40116         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
40118         Spell out "Windows 9x" and "Windows XP".
40119         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
40120         "Windows 9x" and "WinXP" with "Windows XP".
40122 2012-01-04  Jim Meyering  <meyering@redhat.com>
40124         test-vc-list-files-cvs.sh: remove obsolete comment
40125         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
40126         double exit.  Now that's all encapsulated via skip_ and Exit.
40128 2012-01-04  Bruno Haible  <bruno@clisp.org>
40130         Talk about "native Windows API", not "Win32".
40131         * lib/classpath.c: Update comments to mention native Windows.
40132         * lib/csharpexec.c: Likewise.
40133         * lib/dup2.c: Likewise.
40134         * lib/error.c: Likewise.
40135         * lib/fcntl.c: Likewise.
40136         * lib/filename.h: Likewise.
40137         * lib/findprog.c: Likewise.
40138         * lib/get-rusage-as.c: Likewise.
40139         * lib/get-rusage-data.c: Likewise.
40140         * lib/getpagesize.c: Likewise.
40141         * lib/javaexec.c: Likewise.
40142         * lib/msvc-inval.c: Likewise.
40143         * lib/msvc-nothrow.c: Likewise.
40144         * lib/nanosleep.c: Likewise.
40145         * lib/nonblocking.c: Likewise.
40146         * lib/printf-parse.c: Likewise.
40147         * lib/setlocale.c: Likewise.
40148         * lib/sigaction.c: Likewise.
40149         * lib/strerror_r.c: Likewise.
40150         * lib/tmpdir.c: Likewise.
40151         * lib/vasnprintf.c: Likewise.
40152         * lib/w32spawn.h: Likewise.
40153         * lib/waitpid.c: Likewise.
40154         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
40155         * m4/locale-ar.m4: Likewise.
40156         * m4/locale-fr.m4: Likewise.
40157         * m4/locale-ja.m4: Likewise.
40158         * m4/locale-tr.m4: Likewise.
40159         * m4/locale-zh.m4: Likewise.
40160         * m4/printf.m4: Likewise.
40161         * tests/test-cloexec.c: Likewise.
40162         * tests/test-copy-acl.sh: Likewise.
40163         * tests/test-copy-file.sh: Likewise.
40164         * tests/test-file-has-acl.sh: Likewise.
40165         * tests/test-set-mode-acl.sh: Likewise.
40166         * tests/test-dup-safer.c: Likewise.
40167         * tests/test-dup2.c: Likewise.
40168         * tests/test-dup3.c: Likewise.
40169         * tests/test-fcntl.c: Likewise.
40170         * tests/test-nonblocking-pipe.h: Likewise.
40171         * tests/test-nonblocking-socket.h: Likewise.
40172         * tests/test-pipe.c: Likewise.
40173         * tests/test-pipe2.c: Likewise.
40174         * tests/test-spawn-pipe-child.c: Likewise.
40175         * doc/acl-resources.txt: Likewise.
40176         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40177         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
40178         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
40179         * lib/localcharset.c: Update comments to mention native Windows.
40180         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40181         * lib/localename.c: Likewise.
40182         * lib/progreloc.c: Likewise.
40183         * lib/relocatable.c: Likewise.
40184         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
40185         (windows_compute_revents): Renamed from win32_compute_revents.
40186         (windows_compute_revents_socket): Renamed from
40187         win32_compute_revents_socket.
40188         * lib/select.c: Update comments to mention native Windows.
40189         (windows_poll_handle): Renamed from win32_poll_handle.
40190         * m4/threadlib.m4: Update comments to mention native Windows.
40191         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
40192         --enable-threads=windows instead of --enable-threads=win32. Set
40193         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
40194         * lib/glthread/lock.h: Update comments to mention native Windows.
40195         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
40196         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
40197         USE_WIN32_THREADS.
40198         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
40199         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
40200         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
40201         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
40202         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
40203         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
40204         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
40205         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
40206         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
40207         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
40208         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
40209         * tests/test-tls.c: Likewise.
40210         Rationale:
40211         Microsoft renamed the "Win32 API" to "Windows API", as it is available
40212         on both 32-bit and 64-bit Windows systems.
40213         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
40214         line of distinction is between "native Windows" on one side and Unix/
40215         POSIX systems on the other side. More details in
40216         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
40217         Suggested by Paul Eggert.
40219 2012-01-03  Bruno Haible  <bruno@clisp.org>
40221         isatty: Support for MSVC 9.
40222         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
40223         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
40224         (_isatty_nothrow): New function.
40225         (isatty): Use it instead of _isatty.
40226         (IsConsoleHandle): Add comment, from Paolo Bonzini.
40227         * lib/poll.c (IsConsoleHandle): Likewise.
40228         * lib/select.c (IsConsoleHandle): Likewise.
40229         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
40230         (gl_PREREQ_ISATTY): New macro.
40231         * modules/isatty (Depends-on): Add msvc-inval.
40232         (configure.ac): Invoke gl_PREREQ_ISATTY.
40234 2012-01-03  Jim Meyering  <meyering@redhat.com>
40236         maint.mk: remove temporary transition aid from over 1.5 years ago
40237         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
40238         purpose was to aid in the transition (avoiding silent malfunction)
40239         from that old name to the new _sc_search_regexp.  This shim was
40240         added by commit 219c504b.
40242         init.sh: do not try to accommodate compare arguments starting with "-"
40243         * tests/init.sh (compare_dev_null_): Do not try to accommodate
40244         compare arguments that start with "-".  Besides, we do not worry
40245         about this when invoking diff or cmp; why start now with sed?
40246         Using "--" to separate options from argument would trigger sed
40247         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
40248         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
40250 2012-01-02  Bruno Haible  <bruno@clisp.org>
40252         Enhance tests for module 'isatty'.
40253         * modules/isatty-tests (Depends-on): Add pipe-posix.
40254         * tests/test-isatty.c: Include <fcntl.h>.
40255         (DEV_NULL): New macro.
40256         (main): Test the resut of isatty() also on regular files, pipes, and
40257         /dev/null.
40259         New module 'isatty'.
40260         * lib/unistd.in.h (isatty): New declaration.
40261         * lib/isatty.c: New file, based on an idea of
40262         Bastien Roucariès <roucaries.bastien@gmail.com>.
40263         * m4/isatty.m4: New file.
40264         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
40265         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
40266         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
40267         REPLACE_ISATTY.
40268         * modules/isatty: New file.
40269         * doc/posix-functions/isatty.texi: Mention the new module.
40270         Suggested by Paolo Bonzini.
40272 2012-01-02  Bruno Haible  <bruno@clisp.org>
40274         canonicalize: Tweak 2011-12-29 commit.
40275         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
40276         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
40278 2012-01-02  Jim Meyering  <meyering@redhat.com>
40280         gitlog-to-changelog: describe input syntax in --help output
40281         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
40283         gitlog-to-changelog: fix typo in --help: show backslash before email @
40284         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
40285         in sources, but not in actual output.
40287 2011-12-30  Jim Meyering  <meyering@redhat.com>
40289         gitlog-to-changelog: don't malfunction when name contains %-directive
40290         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
40291         in a name string cause trouble.  E.g., with a user name of "%s",
40292         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
40294 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
40296         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
40297         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
40298         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
40299         the "  (tiny change)" notation that is appended to the standard
40300         ChangeLog "date  name  email" header line.
40302 2012-01-01  Jim Meyering  <meyering@redhat.com>
40304         test-framework-sh: init.sh: fix "make dist" failure
40305         When using gnulib-tool's --with-tests option and any module that
40306         depends on test-framework-sh, "make dist" would fail due to the
40307         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
40308         in the gltests directory, and not in the gllib/ directory.
40309         One way to work around that is to move the EXTRA_DIST += init.sh
40310         from the primary module to the -tests one:
40311         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
40312         * modules/test-framework-sh (Makefile.am): ...not here.
40313         Reported by Tom G. Christensen in
40314         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
40316         version-etc: update copyright year reported by --version
40317         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
40319 2011-12-31  Pádraig Brady  <P@draigBrady.com>
40321         canonicalize: only stat() if required
40322         * lib/canonicalize.c (canonicalize_filename_mode):
40323         Avoid calling l?stat() when both CAN_MISSING,
40324         and CAN_NOLINKS are set, as we neither need
40325         to resolve symlinks or test component existence.
40327 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
40329         doc: cover st_ino issues once; add OpenVMS etc.
40330         * doc/posix-functions/stat.texi (stat):
40331         * doc/posix-functions/lstat.texi (lstat):
40332         * doc/posix-functions/fstatat.texi (fstatat):
40333         * doc/posix-functions/fstat.texi (fstat):
40334         Move general 'struct stat' stuff to sys_stat.texi,
40335         leaving behind a pointer.
40336         * doc/posix-headers/sys_stat.texi (sys/stat.h):
40337         Merge duplicate info about 'struct stat' problems into here.
40338         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
40339         and suggest partial workarounds.
40341         same-inode: port to OpenVMS
40342         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
40343         three st_ino values.
40345 2011-12-30  Pádraig Brady  <P@draigBrady.com>
40347         canonicalize: fix references to stat() and lstat()
40348         * lib/canonicalize.c (canonicalize_filename_mode):
40349         Ensure references always resolve to a replacement
40350         function if required (even via a macro).
40352 2011-12-30  Jim Meyering  <meyering@redhat.com>
40354         gitlog-to-changelog: remove a little duplication
40355         * build-aux/gitlog-to-changelog (main): Grep @lines once,
40356         rather than twice.
40358 2011-12-29  Pádraig Brady  <P@draigBrady.com>
40360         canonicalize: add support for not resolving symlinks
40361         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
40362         indicate we don't want to follow symlinks.  Also
40363         provide CAN_MODE_MASK to aid setting these existing
40364         mutually exclusive values.
40365         * lib/canonicalize.c (canonicalize_filename_mode):
40366         Extract the flags from can_mode parameter, which
40367         are currently just used to select between stat()
40368         and lstat().  Also ensure that mutually exclusive
40369         values are flagged immediately as invalid.
40370         * tests/test-canonicalize.c: Verify symlinks are
40371         not followed, and that invalid flag combinations
40372         are diagnosed.
40374 2011-12-25  Jim Meyering  <meyering@redhat.com>
40376         gitlog-to-changelog: do not clump multi-paragraph entries
40377         Identical header lines (date,name,email+coauthors) are suppressed,
40378         thus putting all entries with those same characteristics under
40379         a single header.  However, when a log entry consists of two or
40380         more paragraphs, it may not be clear where it starts and ends.
40381         This change makes it so that such an entry is always separated
40382         from others by a header line, even when that header would
40383         otherwise be suppressed.
40384         * build-aux/gitlog-to-changelog: Implement the above.
40385         Inspired by a related request from Stefano Lattarini in
40386         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
40388 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
40390         announce-gen: fix `cmd' typo in diagnostic
40391         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
40392         diagnostic: a missing '$' meant that the command was not output.
40394 2011-12-23  Jim Meyering  <meyering@redhat.com>
40396         test-framework-sh: distribute init.sh
40397         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
40398         Otherwise, "make -C gnulib-tests check" (at least in grep) would
40399         fail due to the lack of init.sh.
40401         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
40402         * modules/atexit-tests: Rather than listing tests/init.sh,
40403         now that there's a module for it, simply depend on that new module.
40404         * modules/closein-tests: Likewise.
40405         * modules/exclude-tests: Likewise.
40406         * modules/getcwd-tests: Likewise.
40407         * modules/perror-tests: Likewise.
40408         * modules/pread-tests: Likewise.
40409         * modules/pwrite-tests: Likewise.
40410         * modules/vc-list-files-tests: Likewise.
40411         * modules/verify-tests: Likewise.
40412         * modules/xalloc-die-tests: Likewise.
40413         * modules/xstrtoimax-tests: Likewise.
40414         * modules/xstrtol-tests: Likewise.
40415         * modules/xstrtoll-tests: Likewise.
40416         * modules/xstrtoumax-tests: Likewise.
40417         * modules/yesno-tests: Likewise.
40419 2011-12-22  Jim Meyering  <meyering@redhat.com>
40421         test-framework-sh: add minimal tests of init.sh's compare function
40422         * modules/test-framework-sh-tests: New file.
40423         * tests/test-init.sh: New file.
40425         test-framework-sh: new module
40426         * modules/test-framework-sh: New file.
40427         * MODULES.html.sh (Support for maintaining and releasing projects):
40428         List it.
40430         init.sh: do not emit simulated diff output to stderr
40431         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
40433 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
40435         .gitignore: ignore gnulib.dvi and regex.info
40436         * doc/.gitignore:add gnulib.dvi and regex.info
40438 2011-12-22  Jim Meyering  <meyering@redhat.com>
40440         init.sh: correct previous change
40441         * tests/init.sh (compare): My previous change was wrong.
40442         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
40444         init.sh: avoid unwarranted test failure when using "set -e"
40445         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
40446         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
40447         a use like "compare exp out" would get evoke an unconditional failure.
40449 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
40451         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
40452         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
40453         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
40454         autoreconf that did not.
40455         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
40456         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40458 2011-12-17  Jim Meyering  <meyering@redhat.com>
40460         bootstrap: remove some now-unneeded code
40461         This script arose back when gnulib-tool was young.
40462         Since then, it has seen improvements that render much of this
40463         script unnecessary.  In particular, it can now make symlinks
40464         to the files it uses.  Also, I no longer see as much value in
40465         marking files as read-only via comments.
40466         If you relied on the symlink-creation feature of the preceding
40467         version of this script, you can get most of that functionality
40468         by adding the --symlink option to the definition of
40469         gnulib_tool_option_extras in your bootstrap.conf file.
40470         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
40471         Run autopoint and libtoolize *before* gnulib-tool.
40472         After it, run an abbreviated autoreconf, rather than a loop around
40473         all tools.
40474         (slirp, bt_mark_as_generated): Remove functions.
40476 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
40478         ftoastr: fix typo
40479         * lib/ftoastr.h: Fix misspelling in comment.
40481 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
40483         * top/README-release: fix punctuation.
40485 2011-12-17  Jim Meyering  <meyering@redhat.com>
40487         bootstrap: correct the recent buildreq change
40488         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
40489         had no effect.
40490         * build-aux/bootstrap (buildreq): Bracket each search term with
40491         "*...*", so that the shell "case" statement works as intended.
40492         Add comments.
40494 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
40496         build: let bootstrap resort to wget when downloading .po files
40497         * build-aux/bootstrap (download_po_files): Fallback to wget when
40498         downloading the .po files via rsync fails.  This is necessary to
40499         bootstrap from behind a strict firewall.
40501 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40503         stdint: don't assume C++11 when compiling with g++
40504         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
40505         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
40506         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
40507         work also in C++ before C++11, as that improperly inhibits
40508         generating a substitute stdint.h for that case.
40510 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
40512         alloca: protect comment from gnulib-tool
40513         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
40514         that gnulib-tool doesn't think it's a license, and munge it to
40515         say "GCC version 3".
40517 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
40519         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
40520         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
40521         $(abs_top_builddir) instead of $(top_builddir).
40523 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
40525         strftime-tests: also test nanoseconds
40526         * tests/test-strftime.c (T): Add a test of %N.
40528 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
40530         inttypes, stdint: add C++11 support
40531         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
40532         when including inttypes.h and stdint.h.  Support this change to
40533         the standard.
40534         * doc/posix-headers/inttypes.texi (inttypes.h):
40535         * doc/posix-headers/stdint.texi (stdint.h): Document this.
40536         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
40537         Define if not defined already, for the benefit of pre-C++11 hosts.
40538         Define the standard format macros (e.g., PRId8) always.
40539         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
40540         Likewise, if __cpluspus.  Define the standard constant and limit
40541         macros (e.g., INT8_C, INT8_MAX) always.
40542         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
40543         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
40544         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
40545         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
40546         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
40547         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
40548         Likewise.
40550 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
40552         nonblocking tests: Fix test failure on Linux/PPC.
40553         Suggested by Prerna Saxena in
40554         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
40555         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
40556         Set to 1100000.
40558 2011-12-12  Jim Meyering  <meyering@redhat.com>
40560         argmatch: don't hard-code `' when listing valid option arguments
40561         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
40562         use the quote function to add quotes.  Use fputs rather than
40563         fprintf for the format string with no format directive.
40565 2011-12-07  Eric Blake  <eblake@redhat.com>
40567         bootstrap: detect tools required by gnulib-tool
40568         * build-aux/bootstrap (buildreq): Provide minimum implicit
40569         dependencies.
40570         * DEPENDENCIES: Mention patch as a prereq.
40572 2011-12-04  Bruno Haible  <bruno@clisp.org>
40574         sethostname: Port to Windows platforms.
40575         * lib/sethostname.c: Provide an alternate implementation for Windows
40576         platforms.
40577         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
40578         (main): Skip the test if sethostname() fails with EPERM. On Windows
40579         platforms, don't check the result of gethostname().
40581 2011-12-04  Bruno Haible  <bruno@clisp.org>
40582             Jim Meyering  <meyering@redhat.com>
40584         tests: Avoid spurious error message on platforms without mktemp program.
40585         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
40587 2011-12-04  Bruno Haible  <bruno@clisp.org>
40589         sethostname: Fix documentation.
40590         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
40591         "not fixed" section.
40593 2011-12-03  Bruno Haible  <bruno@clisp.org>
40595         gnulib-tool: Verify that the License field is present and non-empty.
40596         * gnulib-tool (func_get_license_raw): New function, extracted from
40597         func_get_license.
40598         (func_get_license): Use it. Warn if the module is not a test module and
40599         has no license.
40600         Suggested by Jim Meyering.
40602 2011-12-03  Bruno Haible  <bruno@clisp.org>
40604         sethostname tests: Fix link error on mingw.
40605         * tests/test-sethostname1.c: New file, extracted from
40606         tests/test-sethostname.c.
40607         * tests/test-sethostname2.c: New file, extracted from
40608         tests/test-sethostname.c.
40609         * tests/test-sethostname.c: Remove file.
40610         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
40611         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
40612         (Depends-on): Add gethostname.
40613         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
40614         Link the latter with $(GETHOSTNAME_LIB).
40616         sethostname tests: Fix compilation error on mingw.
40617         * tests/test-sethostname.c: Don't include <sys/types.h>.
40618         (geteuid): Use a dummy value without uid_t.
40619         * modules/sethostname-tests (Depends-on): Remove sys_types.
40621         sethostname tests: Avoid a gcc warning.
40622         * tests/test-sethostname.c (main): Remove an unused variable.
40624         Tweak last commit.
40625         * modules/sethostname-tests (Files): Sort by decreasing importance.
40626         (configure.ac): Check for geteuid.
40627         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
40628         the test when there's nothing to test. Drop an unnecessary cast.
40629         Improve an error message. Verify that the final sethostname() call
40630         succeeds.
40632 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40634         Add a test suite for the sethostname module.
40635         * modules/sethostname-tests: New file.  A test program
40636         for the sethostname module.
40637         * tests/test-sethostname.c: Likewise.
40639 2011-12-03  Bruno Haible  <bruno@clisp.org>
40641         Tweak last commit.
40642         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
40643         Fix preprocessor directives indentation. Fix typos.
40644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
40645         * modules/unistd (Makefile): Likewise.
40647 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40649         Integrate the sethostname module into unistd.
40650         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
40651         into the unistd.h header.
40652         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
40653         preprocessor directives.
40654         * modules/unistd: Setup the Makefile substitutions of the
40655         SETHOSTNAME preprocessor directives.
40657 2011-12-03  Bruno Haible  <bruno@clisp.org>
40659         Tweak last commit.
40660         * lib/sethostname.c: Don't include <string.h>.
40661         (sethostname): No need to copy the argument string to the stack. Don't
40662         call clearerr. Preserve errno when fprintf failed.
40663         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
40664         Don't invoke AC_REPLACE_FUNCS.
40665         * modules/sethostname (Link): Remove empty section.
40666         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
40667         failure problem.
40669 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40671         New module 'sethostname'.
40672         * lib/sethostname.c (sethostname): New file.  Provide sethostname
40673         for systems that lack it.
40674         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
40675         sethostname declaration and function.
40676         * modules/sethostname: New file.  Define the sethostname module.
40678 2011-12-03  Bruno Haible  <bruno@clisp.org>
40680         Tweak last commit.
40681         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
40683 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
40685         Split the HOST_NAME_MAX detection into a separate m4 macro.
40686         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
40687         macro so it can be used by the pending sethostname module.
40689 2011-12-03  Bruno Haible  <bruno@clisp.org>
40691         Fix module descriptions syntax.
40692         * modules/argv-iter (License): Fix syntax.
40693         * modules/di-set (License): Likewise.
40694         * modules/ino-map (License): Likewise.
40695         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
40697 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
40699         stdalign: port to Clang 3.0
40700         Problem reported by Simon Josefsson in
40701         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
40702         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
40703         which has <stdalign.h> but which does not define alignof.
40704         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
40706 2011-12-01  Eric Blake  <eblake@redhat.com>
40708         mktempd: silence dd usage
40709         * build-aux/mktempd (rand_bytes): Silence dd.
40711 2011-11-30  Simon Josefsson  <simon@josefsson.org>
40713         manywarnings: Don't mention gcc version in docstring.
40714         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
40715         Jim Meyering <meyering@redhat.com>.
40717 2011-11-30  Jim Meyering  <meyering@redhat.com>
40719         hash: mark a few floating point constants with "f" suffix
40720         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
40721         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
40722         floating point constants with "f", since they're destined to be
40723         saved/used as "float"s.
40725 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
40727         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
40728         * tests/test-float.c (test_long_double): Correct and re-enable the
40729         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
40731 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
40733         Avoid subtracting two pointers that don't point into the same block.
40734         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
40735         only pointers into the same memory block are subtracted. We cannot
40736         assume that sizeof (ptrdiff_t) == sizeof (void *).
40738 2011-11-29  Eric Blake  <eblake@redhat.com>
40740         maint.mk: add syntax check for use of compare from init.sh
40741         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
40742         moved here from coreutils.
40744         manywarnings: drop -Wunsuffixed-float-constants
40745         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
40746         '1.0D', which is the only way to silence this warning for 'double'.
40748 2011-11-29  Jim Meyering  <meyering@redhat.com>
40750         hash: mark compute_bucket_size with the pure attribute
40751         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
40753         quotearg, propername: correct pragma guard expression
40754         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
40755         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
40757 2011-11-28  Jim Meyering  <meyering@redhat.com>
40759         propername: do not mark proper_name with the const attribute
40760         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
40761         since it examines data pointed to by its parameter.
40762         * lib/propername.c (proper_name): Instead, add a pragma to suppress
40763         the suggestion from -Wsuggest-attribute=const.
40765         propername: mark one more function as const
40766         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
40768 2011-11-27  Jim Meyering  <meyering@redhat.com>
40770         mark functions with const and pure attributes
40772         Mark functions per suggestions from gcc-4.6 when using these options:
40773         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
40774         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
40775         Follow these guidelines: when possible, apply the attribute to
40776         an extern declaration, not to its definition.  Apply it to the
40777         definition only when the definition is static.
40778         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
40779         * lib/argv-iter.h (argv_iter_n_args): Likewise.
40780         * lib/base64.h (isbase64): Likewise.
40781         * lib/basename-lgpl.c (last_component, base_len): Likewise.
40782         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
40783         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
40784         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
40785         (c_tolower, c_toupper): Likewise.
40786         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
40787         * lib/chdir-long.c (find_non_slash): Likewise.
40788         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
40789         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
40790         * lib/file-type.h (file_type): Likewise.
40791         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
40792         * lib/filevercmp.c (verrevcmp): Likewise.
40793         * lib/freadahead.h (freadahead): Likewise.
40794         * lib/fts.c (fts_maxarglen): Likewise.
40795         * lib/hash-pjw.h (hash_pjw): Likewise.
40796         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
40797         * lib/hash.c (is_prime, next_prime): Likewise.
40798         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
40799         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
40800         (hash_table_ok, hash_get_first, hash_string): Likewise.
40801         (compute_bucket_size): Likewise.
40802         * lib/i-ring.h (i_ring_empty): Likewise.
40803         * lib/isnan.c (isnanl): Likewise.
40804         * lib/math.h (isnanl, rpl_isnanl): Likewise.
40805         * lib/memcasecmp.h (memcasecmp): Likewise.
40806         * lib/memchr2.h (memchr2): Likewise.
40807         * lib/memcmp2.h (memcmp2): Likewise.
40808         * lib/parse-datetime.y (lookup_zone): Likewise.
40809         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
40810         [!WINDOWS_SOCKETS]: Likewise.
40811         * lib/strnlen1.h (strnlen1): Likewise.
40812         * lib/uniwidth.in.h (uc_width): Likewise.
40813         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
40814         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
40815         (quoting_options_from_style): Add a comment.
40816         * lib/propername.h (proper_name): Add a comment.
40818 2011-11-27  Bruno Haible  <bruno@clisp.org>
40820         Remove unused macros from !_LIBC code in glibc-borrowed files.
40821         * lib/fnmatch.c (STRCOLL): Remove macro.
40822         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
40823         * lib/glob.c (__stat, __readdir64): Remove macros.
40824         * lib/tempname.c (__open64, __xstat64): Remove macros.
40825         Suggested by Paul Eggert.
40827 2011-11-27  Bruno Haible  <bruno@clisp.org>
40829         getcwd: Fix link error on MSVC 9.
40830         * modules/getcwd (Depends-on): Add readdir, rewinddir.
40832 2011-11-27  Bruno Haible  <bruno@clisp.org>
40834         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
40835         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
40836         HAVE_OPENDIR is 0.
40837         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
40838         HAVE_CLOSEDIR is 0.
40839         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
40840         is 0.
40841         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
40843 2011-11-27  Bruno Haible  <bruno@clisp.org>
40845         getcwd: Fix bug from 2011-08-17.
40846         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
40847         platforms that need it.
40848         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
40849         code of 4 to be a failure, not a success. This ensures that
40850         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
40852 2011-11-27  Bruno Haible  <bruno@clisp.org>
40854         binary-io tests: Avoid test failure on mingw when libtool is used.
40855         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
40856         Don't verify the size of t-bin-out1.tmp here.
40857         * tests/test-binary-io.sh: Verify it here.
40858         Reported by Simon Josefsson.
40860 2011-11-26  Bruno Haible  <bruno@clisp.org>
40862         Fix conflict between two instantiations of module 'unistd'.
40863         * gnulib-tool (func_emit_autoconf_snippet): Substitute
40864         ${include_guard_prefix} also in the autoconf snippet.
40865         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
40866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
40867         GNULIB_UNISTD_H_GETOPT.
40868         * modules/getopt-posix (configure.ac): Set the
40869         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
40870         * modules/getopt-gnu (configure.ac): Likewise.
40871         * modules/unistd (Makefile.am): Change the substitution value of
40872         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
40873         Reported by Simon Josefsson.
40875 2011-11-25  Bruno Haible  <bruno@clisp.org>
40877         pagealign_alloc: Doc and comments.
40878         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
40879         module.
40880         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
40882 2011-11-25  Jim Meyering  <meyering@redhat.com>
40884         test-update-copyright.sh: avoid false-positive failure
40885         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
40886         around false positive failure on Cygwin/Windows.  The latter was
40887         matching erroneously-created files with names like
40888         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
40890 2011-11-25  Simon Josefsson  <simon@josefsson.org>
40892         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
40893         * m4/valgrind-tests.m4: Check that the parameters that will be
40894         used works, not just a subset of them.  Reported by Bruno Haible
40895         <bruno@clisp.org>.
40897 2011-11-24  Jim Meyering  <meyering@redhat.com>
40899         test-stdalign.c: comment out long double tests
40900         * tests/test-stdalign.c: Don't try to reduce alignment of long double
40901         variables.  That provokes errors like this from gcc-4.7.0 20111124:
40902         error: '_Alignas' specifiers cannot reduce alignment of \
40903         'static_longdouble_alignas'.
40905 2011-11-22  Jim Meyering  <meyering@redhat.com>
40907         init.sh: make "compare /dev/null FILE" output more readable
40908         * tests/init.sh (compare_): Document the preferred order of arguments.
40909         (emit_diff_u_header_): New function.
40910         (compare_dev_null_): Emit a simulated diff, rather than just the
40911         contents of the unexpected file.  Suggestion from Bruno Haible.
40913 2011-11-21  Jim Meyering  <meyering@redhat.com>
40914             Eric Blake  <eblake@redhat.com>
40916         init.sh: work around OSF/1 5.1's mishandling of /dev/null
40917         * tests/init.sh: Make our compare function slightly more portable.
40918         Reported by Bruno Haible in
40919         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
40921 2011-11-21  Simon Josefsson  <simon@josefsson.org>
40923         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
40924         before using it, in code that ends up in config.h.
40926 2011-11-20  Bruno Haible  <bruno@clisp.org>
40928         getcwd: Work around getcwd bug on AIX 5..7.
40929         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
40930         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
40931         Use a different value for gl_cv_func_getcwd_path_max. Move the
40932         definition of HAVE_PARTLY_WORKING_GETCWD from here...
40933         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
40934         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
40935         Define HAVE_MINIMALLY_WORKING_GETCWD.
40936         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
40937         where it is not even minimally working, that is, on AIX.
40938         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
40939         m4/getcwd-path-max.m4.
40940         (main): Update exit code computation.
40941         * doc/posix-functions/getcwd.texi: Mention list of platforms where
40942         getcwd does not handle long file names.
40944 2011-11-20  Bruno Haible  <bruno@clisp.org>
40946         getcwd: Fix bug from 2009-09-10.
40947         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
40948         like "no".
40950 2011-11-20  Simon Josefsson  <simon@josefsson.org>
40952         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
40954 2011-11-20  Bruno Haible  <bruno@clisp.org>
40956         fma tests: Avoid shadowing local variables.
40957         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
40958         expected.
40960 2011-11-20  Bruno Haible  <bruno@clisp.org>
40962         copysignf tests: Fix.
40963         * tests/test-copysignf.c: Fix signature check.
40965 2011-11-20  Bruno Haible  <bruno@clisp.org>
40967         fma: Remove unused code.
40968         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
40969         unused macros.
40971 2011-11-20  Bruno Haible  <bruno@clisp.org>
40973         sethostname: Fix doc about AIX.
40974         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
40975         sethostname; it has it.
40977         sethostname: Mention more portability problems.
40978         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
40979         problem.
40980         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
40982 2011-11-19  Bruno Haible  <bruno@clisp.org>
40984         Depend on module fcntl-h when AT_FDCWD is used.
40985         * modules/utimens (Depends-on): Add fcntl-h.
40986         * modules/areadlinkat (Depends-on): Likewise.
40987         * modules/areadlinkat-with-size (Depends-on): Likewise.
40988         * modules/faccessat (Depends-on): Likewise.
40989         * modules/fchmodat (Depends-on): Likewise.
40990         * modules/fchownat (Depends-on): Likewise.
40991         * modules/getcwd (Depends-on): Likewise.
40992         * modules/mkdirat (Depends-on): Likewise.
40993         * modules/mkfifoat (Depends-on): Likewise.
40994         * modules/readlinkat (Depends-on): Likewise.
40995         * modules/symlinkat (Depends-on): Likewise.
40996         * modules/dup2-tests (Depends-on): Likewise.
40997         * modules/fdutimensat-tests (Depends-on): Likewise.
40998         * modules/futimens-tests (Depends-on): Likewise.
41000 2011-11-19  Bruno Haible  <bruno@clisp.org>
41002         euidaccess: Update a comment.
41003         * lib/euidaccess.c: Update comment about platforms with faccessat.
41005 2011-11-19  Bruno Haible  <bruno@clisp.org>
41007         openat: Fix file list.
41008         * modules/openat (Files): Remove lib/at-func.c.
41010 2011-11-19  Bruno Haible  <bruno@clisp.org>
41012         fstatat: Simplify.
41013         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
41014         gnulib should define rpl_fstatat, there is a
41015         "#define fstatat rpl_fstatat" in <sys/stat.h>.
41017 2011-11-19  Bruno Haible  <bruno@clisp.org>
41019         Ensure 'inline' can be used in tests/test-utimens-common.h.
41020         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
41021         * modules/futimens-tests (configure.ac): Likewise.
41022         * modules/utimens-tests (configure.ac): Likewise.
41023         * modules/utimensat-tests (configure.ac): Likewise.
41025 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41027         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
41028         not hash_insert0.
41029         (hash_insert_if_absent): Doc fix.
41031 2011-11-19  Simon Josefsson  <simon@josefsson.org>
41033         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
41035 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
41037         test-getcwd: disambiguate exit status
41038         * tests/test-getcwd.c (test_long_name): Return 0..7.
41039         (main): Exit with an unambiguous exit status.  The old
41040         code yielded a mysterious mixture of two failure codes.
41042         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
41043         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
41044         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
41045         rpl_fstatat or fstatat.  This should fix the other problem
41046         reported by Kai Habel in
41047         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41048         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
41049         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
41050         and I reproduced it on a Solaris 8 host we still have in production.
41052 2011-11-18  Jim Meyering  <meyering@redhat.com>
41054         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
41055         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
41056         Add a sentence to the comment.
41057         (hash_insert0): New function that simply calls hash_insert_if_absent.
41058         * lib/hash.h (hash_insert_if_absent): Declare it.
41059         (hash_insert0): Add deprecation attribute.
41060         (_GL_ATTRIBUTE_DEPRECATED): Define.
41061         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
41062         not hash_insert0.
41063         * NEWS: Mention it, even though it's not really an incompatible change.
41065 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
41067         openat: avoid compilation failure due to lack of <errno.h> inclusion
41068         * lib/openat.c: Include <errno.h>.
41070 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41072         * modules/getcwd (Depends-on): Add fdopendir.
41073         This fixes one of the two problems reported by Kai Habel in
41074         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
41076         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
41077         stdalign problem reported by Ian Beckwith in
41078         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
41079         * modules/crypto/gc-arcfour (Depends-on):
41080         Depend conditionally on crypto/arcfour.
41081         * modules/crypto/gc-arctwo (Depends-on):
41082         Depend conditionally on crypto/arctwo.
41083         * modules/crypto/gc-des (Depends-on):
41084         Depend conditionally on crypto/des.
41085         * modules/crypto/gc-hmac-md5 (Depends-on):
41086         Depend conditionally on crypto/hmac-md5.
41087         * modules/crypto/gc-hmac-sha1 (Depends-on):
41088         Depend conditionally on crypto/hmac-sha1.
41089         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
41090         * modules/crypto/gc-md4 (Depends-on):
41091         Depend conditionally on crypto/md4.
41092         * modules/crypto/gc-md5 (Depends-on):
41093         Depend conditionally on crypto/md5.
41094         * modules/crypto/gc-rijndael (Depends-on):
41095         Depend conditionally on crypto/rijndael.
41096         * modules/crypto/gc-sha1 (Depends-on):
41097         Depend conditionally on crypto/sha1.
41098         * modules/crypto/gc-arcfour:
41099         * modules/crypto/gc-arctwo:
41100         * modules/crypto/gc-des:
41101         * modules/crypto/gc-hmac-md5:
41102         * modules/crypto/gc-hmac-sha1:
41103         * modules/crypto/gc-md2:
41104         * modules/crypto/gc-md4:
41105         * modules/crypto/gc-md5:
41106         * modules/crypto/gc-rijndael:
41107         * modules/crypto/gc-sha1:
41108         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
41109         now that the conditional dependencies do the work for us.
41111 2011-11-17  Jim Meyering  <meyering@redhat.com>
41113         tests: factor st_ctime-comparison out of two headers
41114         * tests/test-utimens-common.h (ctime_compare): Define.
41115         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
41116         * tests/test-lutimens.h (test_lutimens): Likewise.
41117         * tests/test-utimens.h (test_utimens): Likewise.
41119         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
41120         Invoke the test program via an init.sh-using wrapper.
41121         * tests/test-getcwd.sh: New file.
41122         * modules/getcwd-tests (Files): Add it.
41123         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
41125 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
41127         gitlog-to-changelog: support multi-author commits.
41128         The FSF cares about keeping track of all authors of patches to its
41129         projects, but Git doesn't provide obvious support for multi-author
41130         changesets. Consensus seems to be forming around the use of extra
41131         Signed-off-by inspired lines in the log message formatted as
41132         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
41133         multi-author commits between version control systems.
41134         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
41135         log message and output in standard ChangeLog multi-author format.
41136         Reported by Peter Rosin <peda@lysator.liu.se>
41138 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
41139             Bruno Haible  <bruno@clisp.org>
41141         Fix some modules' file list.
41142         * modules/fstatat (Files): Add m4/lstat.m4.
41143         * modules/openat (Files): Likewise.
41144         * modules/unlinkat (Files): Likewise.
41146 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
41148         maint.mk: fix tight-scope.mk generation in VPATH builds.
41149         * top/maint.mk (tight-scope.mk): Make sure to prefix file
41150         reference with $(srcdir) so that the file is found correctly even
41151         when running `make syntax-check' in a VPATH build.
41153 2011-11-13  Bruno Haible  <bruno@clisp.org>
41154             Jim Meyering  <meyering@redhat.com>
41156         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
41157         * tests/init.sh (compare): Remove "No differences encountered" or
41158         synonymous output from the 'diff' program.
41160 2011-11-13  Bruno Haible  <bruno@clisp.org>
41162         Makefile: Tweak indentation.
41163         * Makefile: Use tab as first character in every line that contains rule
41164         commands.
41166 2011-11-13  Bruno Haible  <bruno@clisp.org>
41168         Syntax check for copyright statements.
41169         * check-copyright: New file.
41170         * Makefile (sc_check_copyright): New rule.
41172 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41174         * build-aux/git-version-gen: Add --prefix to configure the tag
41175         match string.
41177 2011-11-13  Simon Josefsson  <simon@josefsson.org>
41179         * build-aux/git-version-gen: Add --help and --version.
41181 2011-11-12  Jim Meyering  <meyering@redhat.com>
41183         revamp the other test-exclude?.sh scripts to use init.sh, too
41184         * tests/test-exclude1.sh: Use init.sh.
41185         * tests/test-exclude2.sh: Likewise.
41186         * tests/test-exclude3.sh: Likewise.
41187         * tests/test-exclude4.sh: Likewise.
41188         * tests/test-exclude5.sh: Likewise.
41189         * tests/test-exclude6.sh: Likewise.
41190         * tests/test-exclude7.sh: Likewise.
41191         * tests/test-exclude8.sh: Likewise.
41192         * modules/exclude-tests (Files): List init.sh.
41194         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
41195         These shell scripts ignored failure of the binary test-exclude,
41196         so making the latter return 77 didn't cause them to be skipped.
41197         * tests/test-exclude5.sh: Exit with test-exclude's error status
41198         when that program fails.  Revamp to use init.sh.
41199         * tests/test-exclude2.sh: Likewise.
41201         test-exclude: fix a typo
41202         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
41204 2011-11-11  Bruno Haible  <bruno@clisp.org>
41206         obstack: Fix compilation error on MSVC 9.
41207         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
41209 2011-11-11  Jim Meyering  <meyering@redhat.com>
41211         test-exclude: skip tests rather than failing on deficient systems
41212         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
41213         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
41214         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
41215         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
41217 2011-11-10  Bruno Haible  <bruno@clisp.org>
41219         ptsname_r test: Avoid gcc warning on glibc systems.
41220         * tests/test-ptsname_r.c (null_ptr): New function.
41221         (test_errors): Use it.
41223 2011-11-10  Bruno Haible  <bruno@clisp.org>
41225         ptsname_r: Avoid compilation error on OSF/1 5.1.
41226         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
41227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
41228         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
41229         function is not declared or incompatibly declared.
41230         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
41231         * modules/ptsname_r (Depends-on, configure.ac): Update.
41232         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
41234 2011-11-10  Bruno Haible  <bruno@clisp.org>
41236         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
41237         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
41238         When cross-compiling, guess yes on all platforms except AIX.
41239         Reported by Ludovic Courtès <ludo@gnu.org>.
41241 2011-11-09  Bruno Haible  <bruno@clisp.org>
41243         ptsname_r tests: Fix bugs.
41244         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
41245         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
41247 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41249         fstatat: work with cross-compilation
41250         Problem reported by Ludovic Courtès in
41251         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
41252         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
41253         "cross-compiling" and assume the bug is present.  Replace
41254         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
41255         an inverted sense, to be more conservative about our assumptions.
41256         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
41258 2011-11-09  Bruno Haible  <bruno@clisp.org>
41260         Improve MODULES.html output.
41261         * modules/mkfifoat (Description): Use the word "function".
41262         * modules/readlinkat (Description): Likewise.
41263         * modules/symlinkat (Description): Likewise.
41265 2011-11-09  Eric Blake  <eblake@redhat.com>
41267         ptsname_r-tests: new test module
41268         * modules/ptsname_r-tests: New module.
41269         * tests/test-ptsname_r.c: New file.
41271         ptsname_r: new module
41272         * modules/ptsname_r: New module.
41273         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
41274         * lib/ptsname.c (__ptsname_r): Split...
41275         * lib/ptsname_r.c: ...into new file.
41276         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
41277         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
41278         * modules/stdlib (Makefile.am): Substitute witnesses.
41279         * lib/stdlib.in.h (ptsname_r): Declare it.
41280         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
41281         * MODULES.html.sh (Misc): Likewise.
41282         * modules/ptsname (Depends-on): Alter dependency.
41283         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
41285 2011-11-09  Jim Meyering  <meyering@redhat.com>
41287         announce-gen: be more concise when there's only one URL+tarball
41288         * build-aux/announce-gen (get_tool_versions): When you distribute
41289         only one type of tarball, combine the first two "Here are..."
41290         sections and make the key-checking grammar independent of
41291         how many tarballs there are.
41293 2011-11-09  Eric Blake  <eblake@redhat.com>
41295         openpty: provide a stub on mingw
41296         * lib/pty.in.h (includes): Provide forward declarations.
41297         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
41299         raise: fix mingw handling of SIGPIPE
41300         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
41302 2011-11-08  Bruno Haible  <bruno@clisp.org>
41304         More conditional dependencies.
41305         * modules/faccessat (Depends-on): Add conditions.
41306         * modules/fchmodat (Depends-on): Likewise.
41307         * modules/fchownat (Depends-on): Likewise.
41308         * modules/fstatat (Depends-on): Likewise.
41309         * modules/mkfifoat (Depends-on): Likewise.
41310         * modules/readlinkat (Depends-on): Likewise.
41311         * modules/symlinkat (Depends-on): Likewise.
41312         * modules/unlinkat (Depends-on): Likewise.
41313         * modules/utimensat (Depends-on): Likewise.
41314         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
41315         * modules/linkat (Depends-on): Refine the conditions.
41316         * modules/renameat (Depends-on): Likewise.
41318 2011-11-08  Bruno Haible  <bruno@clisp.org>
41320         faccessat: Move AC_LIBOBJ invocation to module description.
41321         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
41322         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
41323         invocation from here...
41324         * modules/faccessat (configure.ac): ... to here. Invoke
41325         gl_PREREQ_FACCESSAT.
41327 2011-11-08  Bruno Haible  <bruno@clisp.org>
41329         faccessat: Simplify autoconf macro.
41330         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
41331         gl_FUNC_EUIDACCESS.
41333 2011-11-08  Bruno Haible  <bruno@clisp.org>
41335         renameat: Fix dependencies.
41336         * modules/renameat (Depends-on): Add stdbool.
41338 2011-11-08  Bruno Haible  <bruno@clisp.org>
41340         mkfifoat: Fix module description.
41341         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
41342         not gl_UNISTD_MODULE_INDICATOR.
41344 2011-11-08  Bruno Haible  <bruno@clisp.org>
41346         fstatat: Remove unused dependency.
41347         * modules/fstatat (Depends-on): Remove fstat.
41349 2011-11-08  Simon Josefsson  <simon@josefsson.org>
41351         GNUmakefile: behave when Makefile is missing.
41352         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
41354 2011-11-08  Bruno Haible  <bruno@clisp.org>
41356         openat: Conditionalize dependencies.
41357         * lib/openat.c: Reduce the scope of some #includes.
41358         * modules/openat (Depends-on): Add conditions.
41360 2011-11-07  Jim Meyering  <meyering@redhat.com>
41362         maint.mk: extract GPG key ID without using a temporary file
41363         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
41364         without using a temporary file.  Based on a suggestion from Werner Koch
41365         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
41367 2011-11-07  Eric Blake  <eblake@redhat.com>
41369         grantpt: fix typo
41370         * lib/stdlib.in.h (grantpt): Check correct function.
41372         maint.mk: silence new syntax check
41373         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
41375 2011-11-06  Bruno Haible  <bruno@clisp.org>
41377         Doc about floating-point and math API.
41378         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
41379         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
41381 2011-11-06  Bruno Haible  <bruno@clisp.org>
41383         stdalign tests: Skip the test when compiled by Sun C.
41384         * tests/test-stdalign.c (main): Skip the test on Sun C.
41386 2011-11-06  Bruno Haible  <bruno@clisp.org>
41388         ansi-c++-opt: Complete the 2011-06-05 change.
41389         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
41390         does not support namespaces, set the variable to "no", not to ":".
41392 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41394         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
41396 2011-11-06  Bruno Haible  <bruno@clisp.org>
41398         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
41399         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
41400         (minus_zerol) [HP-UX]: New macro.
41401         (unary_minus) [HP-UX]: New function.
41402         (copysignl) [HP-UX]: Use unary_minus function.
41404 2011-11-06  Bruno Haible  <bruno@clisp.org>
41406         ldexp, ldexpf, ldexpl: Enhance tests.
41407         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
41408         and tests/test-ldexpl.c.
41409         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
41410         LDEXP, MIN_EXP, MAX_EXP): New macros.
41411         Include test-ldexp.h.
41412         (main): Just call test_function.
41413         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
41414         infinity.h, nan.h.
41415         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41416         MAX_EXP): New macros.
41417         Include test-ldexp.h.
41418         (x, y): Remove variables.
41419         (main): Just call test_function.
41420         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
41421         infinity.h, nan.h.
41422         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
41423         MAX_EXP): New macros.
41424         Include test-ldexp.h.
41425         (x, y): Remove variables.
41426         (main): Just call test_function.
41427         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
41428         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
41429         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41430         (Depends-on): Add isnand-nolibm, signbit, float.
41431         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
41432         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
41433         (Depends-on): Add isnanf-nolibm, signbit, float.
41435 2011-11-06  Bruno Haible  <bruno@clisp.org>
41437         math tests: Cosmetics.
41438         * tests/test-math-c++.cc: Reorder declarations.
41440 2011-11-05  Bruno Haible  <bruno@clisp.org>
41442         fma*: Simplify test.
41443         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
41444         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
41446         Tests for module 'fmal'.
41447         * modules/fmal-tests: New file.
41448         * tests/test-fmal1.c: New file.
41449         * tests/test-fmal2.c: New file.
41451         New module 'fmal'.
41452         * lib/math.in.h (fmal): New declaration.
41453         * lib/fmal.c: New file.
41454         * m4/fmal.m4: New file.
41455         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
41456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
41457         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
41458         REPLACE_FMAL.
41459         * modules/fmal: New file.
41460         * doc/posix-functions/fmal.texi: Mention the new module and the various
41461         bugs.
41463         Tests for module 'fmaf'.
41464         * modules/fmaf-tests: New file.
41465         * tests/test-fmaf1.c: New file.
41466         * tests/test-fmaf2.c: New file.
41468         New module 'fmaf'.
41469         * lib/math.in.h (fmaf): New declaration.
41470         * lib/fmaf.c: New file.
41471         * m4/fmaf.m4: New file.
41472         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
41473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
41474         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
41475         REPLACE_FMAF.
41476         * modules/fmaf: New file.
41477         * doc/posix-functions/fmaf.texi: Mention the new module and the various
41478         bugs.
41480         Tests for module 'fma'.
41481         * modules/fma-tests: New file.
41482         * tests/test-fma1.c: New file.
41483         * tests/test-fma1.h: New file.
41484         * tests/test-fma2.c: New file.
41485         * tests/test-fma2.h: New file.
41487         New module 'fma'.
41488         * lib/math.in.h (fma): New declaration.
41489         * lib/fma.c: New file.
41490         * m4/fma.m4: New file.
41491         * m4/fegetround.m4: New file.
41492         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
41493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
41494         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
41495         REPLACE_FMA.
41496         * modules/fma: New file.
41497         * doc/posix-functions/fma.texi: Mention the new module and the various
41498         bugs.
41500         Extend gl_MATHFUNC.
41501         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
41502         Support 'void' as argument type.
41503         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
41505 2011-11-05  Jim Meyering  <meyering@redhat.com>
41507         maint.mk: also prohibit inclusion of dirent.h without use
41508         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
41510 2011-11-05  Bruno Haible  <bruno@clisp.org>
41512         ldexpl tests: Avoid test failure on MSVC 9.
41513         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
41514         value. Needed in order to enforce the conversion from a value greater
41515         than LDBL_MAX to Infinity.
41517 2011-11-05  Bruno Haible  <bruno@clisp.org>
41519         New modules 'at-internal', 'openat-h', split off from module 'openat'.
41520         * modules/at-internal: New file, extracted from modules/openat.
41521         * modules/openat-h: New file.
41522         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
41523         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
41524         * modules/openat (Description): Add reference to POSIX function.
41525         (Files): Remove lib/openat.h, lib/openat-proc.c.
41526         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
41527         intprops, unistd.
41528         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
41529         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
41530         gl_FCNTL_MODULE_INDICATOR.
41531         (Include): Remove unistd.h, openat.h.
41532         * modules/areadlinkat (Files): Add lib/at-func.c.
41533         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41534         openat-die, openat-h, save-cwd.
41535         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
41536         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41537         openat-die, openat-h, save-cwd, unistd.
41538         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
41539         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41540         openat-h, save-cwd. Remove fcntl-h, openat.
41541         * modules/fchmodat (Files): Remove lib/openat.h.
41542         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41543         openat, stdbool, unistd.
41544         * modules/fchownat (Files): Remove lib/openat.h.
41545         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41546         openat, stdbool, sys_stat.
41547         * modules/fdopendir (Files): Remove lib/openat-priv.h,
41548         lib/openat-proc.c.
41549         (Depends-on): Add at-internal.
41550         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
41551         * modules/fstatat (Files): Remove lib/openat.h.
41552         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41553         stdbool, unistd.
41554         * modules/fts (Depends-on): Add openat-h.
41555         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
41556         openat.
41557         * modules/mkdirat (Files): Remove lib/openat.h.
41558         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
41559         openat, stdbool, sys_stat.
41560         * modules/mkfifoat (Files): Add lib/at-func.c.
41561         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41562         openat-h, save-cwd. Remove fcntl-h, openat.
41563         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
41564         * modules/readlinkat (Files): Add lib/at-func.c.
41565         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41566         openat-h, save-cwd. Remove fcntl-h, openat.
41567         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
41568         openat.
41569         * modules/selinux-at (Files): Add lib/at-func.c.
41570         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
41571         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
41572         * modules/symlinkat (Files): Add lib/at-func.c.
41573         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
41574         openat-h, save-cwd. Remove fcntl-h, openat.
41575         * modules/unlinkat (Files): Remove lib/openat.h.
41576         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
41577         stdbool.
41578         * modules/utimensat (Files): Add lib/at-func.c.
41579         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
41580         openat-die, openat-h, save-cwd.
41581         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
41582         * modules/fdutimensat-tests (Depends-on): Add openat.
41583         * modules/fstatat-tests (Depends-on): Add openat-h.
41584         * modules/readlinkat-tests (Depends-on): Add openat.
41585         * modules/symlinkat-tests (Depends-on): Add openat.
41587 2011-11-05  Bruno Haible  <bruno@clisp.org>
41589         openat: Include <stdbool.h>.
41590         * lib/openat.c: Include <stdbool.h>.
41592 2011-11-04  Bruno Haible  <bruno@clisp.org>
41594         fchownat, renameat, unlinkat: Fix dependencies.
41595         * modules/fchownat (Depends-on): Add fstatat.
41596         * modules/renameat (Depends-on): Likewise.
41597         * modules/unlinkat (Depends-on): Likewise.
41599 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
41601         openat: remove direct dependency on dirent
41602         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
41603         and hasn't been needed ever since fdopendir was split into its own
41604         module on 2009-08-31.
41605         * modules/openat (Depends-on): Remove dirent.
41607 2011-11-04  Bruno Haible  <bruno@clisp.org>
41609         renameat: Optimize code size.
41610         * modules/renameat (configure.ac): Don't compile at-func2.c if
41611         REPLACE_RENAMEAT is 1.
41613 2011-11-04  Bruno Haible  <bruno@clisp.org>
41615         openat tests: Fix file list.
41616         * modules/openat-tests (Files): Add tests/test-open.h.
41618 2011-11-04  Bruno Haible  <bruno@clisp.org>
41620         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
41621         * modules/fchmodat (Depends-on): Add openat-die.
41622         * modules/fchownat (Depends-on): Likewise.
41623         * modules/linkat (Depends-on): Likewise.
41624         * modules/renameat (Depends-on): Likewise.
41625         * modules/openat (Depends-on): Add dirent.
41627 2011-11-04  Jim Meyering  <meyering@redhat.com>
41629         at-func*.c: fix comments
41630         * lib/at-func2.c: Correct/improve first-line comment.
41631         * lib/at-func.c: Correct grammar in first-line comment.
41633 2011-11-04  Bruno Haible  <bruno@clisp.org>
41635         New module 'mkdirat', split off from module 'openat'.
41636         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
41637         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
41638         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
41639         * modules/mkdirat: New file, extracted from modules/openat.
41640         * modules/openat (Files): Remove lib/mkdirat.c.
41641         (Depends-on): Remove mkdir.
41642         (configure.ac): Remove AC_LIBOBJ of mkdirat.
41643         (Include): Remove <sys/stat.h>.
41644         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
41645         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
41646         tests/test-mkdir.h.
41647         (Depends-on): Remove ignore-value.
41648         (Makefile.am): Remove rules for test-mkdirat.
41649         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
41650         of module 'openat'.
41651         * NEWS: Mention the change.
41653 2011-11-04  Bruno Haible  <bruno@clisp.org>
41655         closedir: Avoid warning on mingw.
41656         * lib/closedir.c: Include <unistd.h>.
41658 2011-11-04  Bruno Haible  <bruno@clisp.org>
41660         New module 'fstatat', split off from module 'openat'.
41661         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
41662         defined.
41663         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
41664         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
41665         gl_FUNC_FSTATAT.
41666         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
41667         * modules/fstatat: New file, extracted from modules/openat.
41668         * modules/openat (Files): Remove lib/fstatat.c.
41669         (Depends-on): Remove lstat.
41670         (configure.ac): Remove AC_LIBOBJ of fstatat.
41671         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
41672         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
41673         tests/test-lstat.h, tests/test-stat.h.
41674         (Depends-on): Remove getcwd-lgpl.
41675         (Makefile.am): Remove rules for test-fstatat.
41676         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
41677         of module 'openat'.
41678         * NEWS: Mention the change.
41679         * modules/getcwd (Depends-on): Add fstatat.
41680         * modules/linkat (Depends-on): Likewise.
41681         * modules/mkfifoat-tests (Depends-on): Likewise.
41682         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
41684 2011-11-03  Bruno Haible  <bruno@clisp.org>
41686         New module 'unlinkat', split off from module 'openat'.
41687         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
41688         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
41689         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
41690         * modules/unlinkat: New file, extracted from modules/openat. Correct
41691         the dependency conditions.
41692         * modules/openat (Files): Remove lib/unlinkat.c.
41693         (Depends-on): Remove rmdir, unlink.
41694         (configure.ac): Remove AC_LIBOBJ of unlinkat.
41695         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
41696         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
41697         tests/test-rmdir.h, tests/test-unlink.h.
41698         (Depends-on): Remove unlinkdir.
41699         (Makefile.am): Remove rules for test-unlinkat.
41700         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
41701         of module 'openat'.
41702         * NEWS: Mention the change.
41703         * modules/linkat-tests (Depends-on): Add unlinkat.
41704         * modules/mkfifoat-tests (Depends-on): Likewise.
41705         * modules/readlinkat-tests (Depends-on): Likewise.
41707 2011-11-02  Bruno Haible  <bruno@clisp.org>
41709         New module 'fchmodat', split off from module 'openat'.
41710         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
41711         defined.
41712         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
41713         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
41714         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
41715         * modules/fchmodat: New file, extracted from modules/openat.
41716         * modules/openat (Files): Remove lib/fchmodat.c.
41717         (configure.ac): Remove AC_LIBOBJ of fchmodat.
41718         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
41719         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
41720         (Makefile.am): Remove rules for test-fchmodat.
41721         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
41722         of module 'openat'.
41723         * NEWS: Mention the change.
41725 2011-11-02  Jim Meyering  <meyering@redhat.com>
41727         putenv: indent #definition of "environ" to placate cppi
41728         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
41730         gitlog-to-changelog: provide a ChangeLog-repair mechanism
41731         Git logs are often treated as immutable, because editing them
41732         changes the SHA1 checksums of all descendants.  Thus, errors in
41733         git logs tend to stay there forever.  However, when we generate
41734         a ChangeLog file -- typically for distribution -- from that git log,
41735         we can actually make corrections in the generated file.  The key
41736         lies in recording in machine-readable/applicable form the desired
41737         corrections.  See --help for description and an example.
41738         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
41739         (usage): Describe it; alphabetize option descriptions.
41740         (main): Honor the new option, carefully.
41742 2011-11-01  Jim Meyering  <meyering@redhat.com>
41744         gitlog-to-changelog: avoid an infloop
41745         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
41746         that ends up being empty.
41748 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41750         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
41751         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
41752         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
41753         contains (possibly-quoted) backslashes.  This should avoid
41754         all-too-common shell bugs if COMPLICATED contains backslashes in
41755         the "wrong" places.  Reported by David Evans in
41756         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
41757         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
41758         because we want ASCII ranges.  Is there some reason we don't use
41759         the C locale everywhere in this script?
41760         (func_module, top level): Avoid unwanted pathname expansion when
41761         $repo_url_prefix or $repo_url_suffix_repl contain shell
41762         metacharacters like '?' and '*'.
41764 2011-11-01  Bruno Haible  <bruno@clisp.org>
41766         fchownat: Improve description.
41767         * modules/fchownat (Description): Add link to function.
41769 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
41771         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
41772         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
41773         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
41774         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
41776 2011-11-01  Bruno Haible  <bruno@clisp.org>
41778         alignof: Avoid collision with stdalign module.
41779         * lib/alignof.h (alignof): Remove macro.
41780         * NEWS: Mention the change.
41781         Reported by Paul Eggert.
41783 2011-11-01  Bruno Haible  <bruno@clisp.org>
41785         New module 'fchownat', split off from module 'openat'.
41786         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
41787         defined.
41788         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
41789         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
41790         invoke gl_FUNC_FCHOWNAT.
41791         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
41792         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
41793         * modules/fchownat: New file, extracted from modules/openat.
41794         * modules/openat (Files): Remove lib/fchownat.c.
41795         (Depends-on): Remove lchown.
41796         (configure.ac): Remove AC_LIBOBJ of fchownat.
41797         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
41798         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
41799         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
41800         (Depends-on): Remove mgetgroups, usleep, stat-time.
41801         (configure.ac): Remove test for getegid.
41802         (Makefile.am): Remove rules for test-fchownat.
41803         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
41804         of module 'openat'.
41805         * NEWS: Mention the change.
41807 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
41809         stdalign: port better to MSVC and to Sun C 5.11
41810         This fixes some of the problems reported by Bruno Haible in
41811         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
41812         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
41813         shortcomings of MSVC and of Sun C 5.11.
41814         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
41815         around __declspec arg.
41816         * modules/stdalign-tests (Files): Add tests/macros.h.
41817         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
41818         Include macros.h, for ASSERT.
41819         (DECLARE_ALIGNED): Remove.
41820         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
41821         to catch bug), and to 1 if not (simplifies the rest of the code).
41822         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
41823         (CHECK_AUTO): Remove.
41824         (CHECK_ALIGNED): Check only the alignment of the static vars,
41825         since auto var alignment isn't supported by Sun C 5.11.
41826         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
41827         ASSERT failures are easier to diagnose.
41829 2011-10-31  Bruno Haible  <bruno@clisp.org>
41831         doc about some IRIX 5.3 problems.
41832         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
41833         on IRIX 5.3.
41834         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
41835         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
41836         5.3.
41837         * doc/posix-functions/grantpt.texi: Likewise.
41838         * doc/posix-functions/unlockpt.texi: Likewise.
41839         * doc/posix-functions/lgamma.texi: Likewise.
41840         * doc/posix-functions/nextafter.texi: Likewise.
41841         * doc/posix-functions/remainder.texi: Likewise.
41842         * doc/posix-functions/select.texi: Mention misplaced declaration on
41843         IRIX 5.3.
41844         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41846 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
41848         gitlog-to-changelog: fix git-log invocation.
41849         git-log mishandles date strings before 1970-01-01 UTC, and there is
41850         no use to specify --since=1970-01-01 by default anyway.
41851         * build-aux/gitlog-to-changelog: By default, when no --since option
41852         was given, do not specify explicit --since option to git-log.
41854 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
41856         gitlog-to-changelog: new option --append-dot.
41857         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
41858         first non-blank line of each commit message terminated with a dot.
41860 2011-10-30  Bruno Haible  <bruno@clisp.org>
41862         ffsl, ffsll: Avoid compilation error due to 'restrict'.
41863         * lib/ffsl.h: Include <config.h>.
41864         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
41866 2011-10-30  Jim Meyering  <meyering@redhat.com>
41868         GNUmakefile: reenable "make syntax-check" for most projects
41869         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
41870         build-aux variable", "syntax-check" would do nothing but succeed with
41871         the "No version control files detected..." diagnostic (unless you
41872         happened to override _build-aux via cfg.mk).
41873         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
41874         to precede inclusion of maint.mk.  Otherwise, these variables would
41875         be used undefined in any project that does not override the default.
41877 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
41879         gitlog-to-changelog: treat a message with only blank lines as empty.
41880         * build-aux/gitlog-to-changelog: Move the code that removes leading and
41881         trailing blank lines before the code that issues a warning about an
41882         empty commit message.
41884 2011-10-30  Jim Meyering  <meyering@redhat.com>
41886         test-parse-datetime.c: avoid new DST-related false positive test failure
41887         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
41888         based on the time/date we'll convert, not the current time.
41889         Otherwise, the moment we cross a DST boundary like today's in
41890         Europe, (CEST to CET), that offset ends up being one hour off.
41892 2011-10-27  Bruno Haible  <bruno@clisp.org>
41894         fstat: Tweak documentation.
41895         * modules/fstat (Description): More precise description.
41897 2011-10-27  Bruno Haible  <bruno@clisp.org>
41899         Update documentation regarding 'largefile' module.
41900         * doc/posix-functions/fstat.texi: Tweak wording.
41901         * doc/posix-functions/opendir.texi: Mention that the module fixes the
41902         problems with huge directories and/or small ino_t types.
41903         * doc/posix-functions/readdir.texi: Likewise.
41904         * doc/posix-functions/rewinddir.texi: Likewise.
41906 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
41908         maint.mk: don't maintain a second build-aux variable.
41909         * maint.mk (build_aux): Removed.  The maintainer-makefile module
41910         depends on GNUmakefile, which already maintains a cfg.mk
41911         overridable $(_build-aux) for projects with a non-standard
41912         build-aux directory location, although without the $(srcdir)
41913         prefix.  Use that variable consistently instead of introducing a
41914         second one.  Adjust all call sites.
41916 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
41918         Add stdalign module and use it in other modules.
41919         This is based on a previous proposal by Bruno Haible
41920         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
41922         stdalign: new module
41923         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
41924         * modules/stdalign: New files.
41925         * MODULES.html.sh (c1x_core_properties): Add stdalign.
41926         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
41928         stdalign-tests: new module
41929         * modules/stdalign-tests, tests/test-stdalign.c: New files.
41931         argp: use stdalign
41932         * lib/argp-parse.c: Include <stdalign.h>.
41933         (alignof): Remove.
41934         * modules/argp (Depends-on): Add stdalign.
41936         crypto libraries: use stdalign
41937         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
41938         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
41939         Do not include <stdlib.h> twice, in md4.c.
41940         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
41941         because we are accessing a pointer's bit-pattern, not a size.
41942         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
41943         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
41944         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
41945         * modules/crypto/sha512: Likewise.
41947         sys_socket: use stdalign, not alignof
41948         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
41949         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
41951 2011-10-27  Bruno Haible  <bruno@clisp.org>
41953         raise test: Avoid a test failure on Linux/MIPS.
41954         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
41955         because 99 is a valid signal on Linux/MIPS.
41957 2011-10-27  Bruno Haible  <bruno@clisp.org>
41959         nonblocking tests: Fix test failure on Linux/MIPS.
41960         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
41961         Set to 270000.
41963 2011-10-27  Bruno Haible  <bruno@clisp.org>
41965         utimensat: Work around problem on Linux/hppa.
41966         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
41967         values.
41968         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
41970 2011-10-25  Jim Meyering  <meyering@redhat.com>
41972         maint.mk: fix a bug in sc_prohibit_stddef_without_use
41973         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
41974         after symbols like NULL, size_t, etc.
41975         Reported by Alfred M. Szmidt.
41977         maint.mk: exempt ENODATA from a syntax-check rule
41978         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
41979         from the sc_prohibit_always-defined_macros syntax-check rule.
41980         Add a comment.  See this for more details:
41981         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
41983 2011-10-23  Jim Meyering  <meyering@redhat.com>
41985         fts: close parent dir FD before returning from post-traversal fts_read
41986         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
41987         unlink A, even though an FD open on A remained.  This is suboptimal
41988         (holding a file descriptor open longer than needed), but otherwise not
41989         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
41990         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
41991         that represents a real problem: it causes the removal of A to fail
41992         with e.g., "rm: cannot remove `A': Device or resource busy"
41994         fts visits each directory twice and keeps a cache (fts_fd_ring) of
41995         directory file descriptors.  After completing the final, FTS_DP,
41996         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
41997         cache, but then proceeded to add a new FD to it via the subsequent
41998         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
41999         final file descriptor would be closed only via fts_close's call to
42000         fd_ring_clear.  Now, it is usually closed earlier, via the final
42001         FTS_DP-returning fts_read call.
42002         * lib/fts.c (restore_initial_cwd): New function, converted from
42003         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
42004         Update callers.
42005         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
42006         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
42008 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
42009             Bruno Haible  <bruno@clisp.org>
42010             Jim Meyering  <jim@meyering.net>
42012         readme-release: improve safety of release prep instructions.
42013         * README-release: Don't git pull all branches when only master
42014         is needed for the release process.
42015         Run make maintainer-clean before changing trees and merging.
42016         Don't try to run ./configure right after git pull in case files
42017         that influence the bootstrap process have changed, move the
42018         ./configure step to after running ./bootstrap.
42019         Don't bootstrap "one last time"... it's the first time!
42021 2011-10-22  Bruno Haible  <bruno@clisp.org>
42023         errno, strerror-override: Support for MSVC 10.
42024         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
42025         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
42026         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
42027         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
42028         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
42029         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
42030         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
42031         Assign values compatible with MSVC 10.
42032         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
42033         New macros.
42034         (GNULIB_defined_EWINSOCK): New macro.
42035         * lib/strerror-override.c (strerror_override): Update accordingly.
42036         * lib/strerror-override.h: Likewise.
42037         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
42038         longer equal to the corresponding errno value.
42039         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42041 2011-10-22  Bruno Haible  <bruno@clisp.org>
42043         perror: Recognize when test program crashes.
42044         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
42045         strerror, set gl_cv_func_perror_works to no.
42046         Reported by Daniel Richard G. <skunk@iskunk.org>.
42048         perror: Fix indentation.
42049         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
42051 2011-10-22  Bruno Haible  <bruno@clisp.org>
42053         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
42054         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
42055         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
42056         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
42057         functions, not as a macro.
42058         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
42059         macros.
42060         (isfinite, isinf, isnan, signbit): Check overloaded functions and
42061         absence of macro.
42062         Suggested by Eric Blake.
42063         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42065 2011-10-21  Bruno Haible  <bruno@clisp.org>
42067         relocatable-prog-wrapper: Don't leave object files behind.
42068         * build-aux/install-reloc: Re-synchronize list of .o files to be
42069         removed with list of compilation units.
42071 2011-10-20  Bruno Haible  <bruno@clisp.org>
42073         openpty, posix_openpt: Remove code duplication.
42074         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
42075         * lib/openpty.c: Include <stdlib.h>.
42076         (openpty): Use posix_openpt on all platforms except IRIX.
42077         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
42079 2011-10-20  Bruno Haible  <bruno@clisp.org>
42081         unlockpt: Detect invalid argument.
42082         * lib/unlockpt.c: Include <fcntl.h>.
42083         (unlockpt): Check whether fd is valid, using fcntl().
42084         * modules/unlockpt (Depends-on): Add fcntl-h.
42086 2011-10-20  Bruno Haible  <bruno@clisp.org>
42088         openpty: Avoid compilation error on AIX 6.1.
42089         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
42091 2011-10-20  Bruno Haible  <bruno@clisp.org>
42093         posix_openpt: Support for OpenBSD.
42094         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
42095         (posix_openpt) [OpenBSD]: New code.
42096         * lib/grantpt.c: Include <fcntl.h>.
42097         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
42098         * modules/grantpt (Depends-on): Add fcntl-h.
42100 2011-10-20  Bruno Haible  <bruno@clisp.org>
42102         posix_openpt test: Coding style.
42103         * tests/test-posix_openpt.c: Use GNU coding style.
42105 2011-10-20  Bruno Haible  <bruno@clisp.org>
42107         grantpt: Support --avoid=pt_chown.
42108         * modules/grantpt (Files): Add lib/pty-private.h.
42110 2011-10-20  Bruno Haible  <bruno@clisp.org>
42112         posix_openpt: Fix autoconf macro.
42113         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
42114         unneeded check for _getpty.
42116 2011-10-20  Bruno Haible  <bruno@clisp.org>
42118         openpty: Update comments.
42119         * lib/openpty.c: Add comments about Minix.
42121 2011-10-19  Eric Blake  <eblake@redhat.com>
42123         openpty: relax license
42124         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
42126         pt_chown: use configmake to simplify build
42127         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
42129         ptsname and others: relax license
42130         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
42131         * modules/unlockpt (License): Likewise.
42132         * modules/pt_chown (License): Likewise.
42133         * modules/ptsname (License): Likewise.
42134         * modules/ttyname_r (License): Likewise.
42136 2011-10-19  Jim Meyering  <meyering@redhat.com>
42138         posix_openpt: remove spurious #endif
42139         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
42141 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
42143         maint.mk: Respect $(build_aux) in web-manual rule.
42144         * top/maint.mk (web-manual): Find gen-announce script in user's
42145         $(build_aux) directory instead of hard-coding 'build-aux'.
42147 2011-10-19  Bruno Haible  <bruno@clisp.org>
42149         posix_openpt: Fix compilation error.
42150         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
42151         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
42152         Mention the openpty module as an alternative.
42154 2011-10-19  Bruno Haible  <bruno@clisp.org>
42156         Support for old NeXTstep 3.3 frexp().
42157         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
42158         execution time of the test to 5 seconds.
42159         Reported by Daniel Richard G. <skunk@iskunk.org>.
42161 2011-10-19  Bruno Haible  <bruno@clisp.org>
42163         Support for old NeXTstep 3.3 sed.
42164         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
42165         part, use /.../, not \|...|. Escape periods in the header file name.
42166         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
42167         Reported by Daniel Richard G. <skunk@iskunk.org>.
42169 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42171         Support for old NeXTstep 3.3 gcc.
42172         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
42173         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
42174         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
42175         * lib/spawn.in.h (_Restrict_arr_): Likewise.
42176         * lib/regex.h (_Restrict_arr_): Likewise.
42177         * lib/regex_internal.h (re_token_t): Likewise.
42178         * lib/regexec.c (check_node_accept_bytes): Likewise.
42179         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
42181 2011-10-18  Eric Blake  <eblake@redhat.com>
42183         posix_openpt: new module
42184         * modules/posix_openpt: New module.
42185         * m4/posix_openpt.m4: New file.
42186         * lib/posix_openpt.c: Likewise.
42187         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42188         (gl_STDLIB_H_DEFAULTS): Set defaults.
42189         * modules/stdlib (Makefile.am): Substitute macros.
42190         * lib/stdlib.in.h (posix_openpt): Declare.
42191         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
42192         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
42193         * modules/posix_openpt-tests: New test module.
42194         * tests/test-posix_openpt.c: New test.
42196 2011-10-15  Bruno Haible  <bruno@clisp.org>
42198         xstrtoll: Fix compilation failure.
42199         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
42200         from lib/strtol.c.
42201         * doc/posix-headers/limits.texi: Mention missing numerical limits on
42202         some platforms.
42203         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42205 2011-10-15  Bruno Haible  <bruno@clisp.org>
42207         vasnprintf: Optimize bit search operation.
42208         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
42209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
42210         gl_DOUBLE_EXPONENT_LOCATION.
42211         * modules/vasnprintf (Files): Add m4/exponentd.m4.
42212         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42213         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42214         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42215         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42216         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42217         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42218         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42219         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
42221 2011-10-15  Bruno Haible  <bruno@clisp.org>
42223         vasnprintf: Fix comments.
42224         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
42226 2011-10-14  Bruno Haible  <bruno@clisp.org>
42228         Tests for module 'integer_length_ll'.
42229         * modules/integer_length_ll-tests: New file.
42230         * tests/test-integer_length_ll.c: New file.
42232         New module 'integer_length_ll'.
42233         * lib/integer_length_ll.c: New file.
42234         * modules/integer_length_ll: New file.
42236 2011-10-14  Bruno Haible  <bruno@clisp.org>
42238         Tests for module 'integer_length_l'.
42239         * modules/integer_length_l-tests: New file.
42240         * tests/test-integer_length_l.c: New file.
42242         New module 'integer_length_l'.
42243         * lib/integer_length_l.c: New file.
42244         * modules/integer_length_l: New file.
42246 2011-10-14  Bruno Haible  <bruno@clisp.org>
42248         Tests for module 'integer_length'.
42249         * modules/integer_length-tests: New file.
42250         * tests/test-integer_length.c: New file.
42252         New module 'integer_length'.
42253         * lib/integer_length.h: New file.
42254         * lib/integer_length.c: New file.
42255         * modules/integer_length: New file.
42257 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42259         popen: Fix dependency conditions.
42260         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
42262 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
42264         perror: Fix autoconf test.
42265         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
42266         <stdlib.h> and <string.h>.
42268 2011-10-14  Bruno Haible  <bruno@clisp.org>
42270         ffsl: Optimize on 64-bit platforms.
42271         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
42272         unrolling.
42274 2011-10-13  Bruno Haible  <bruno@clisp.org>
42276         ffsl: Optimize on 32-bit platforms.
42277         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
42278         use ffs() without a loop.
42280         ffsl, ffsll: Optimize for GCC.
42281         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
42282         * lib/ffsl.c (GCC_BUILTIN): New macro.
42283         * lib/ffsll.c (GCC_BUILTIN): Likewise.
42285 2011-10-13  Bruno Haible  <bruno@clisp.org>
42287         ffs, bcopy, memset: Support symbol renaming via config.h.
42288         * lib/ffs.c: Include <config.h>.
42289         * lib/bcopy.c: Likewise.
42290         * lib/memset.c: Likewise.
42292 2011-10-10  Bruno Haible  <bruno@clisp.org>
42294         atanl: Simplify for platforms where 'long double' == 'double'.
42295         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42296         alternative implementation.
42297         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42298         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42299         * modules/atanl (Depends-on): Add atan. Update conditions.
42301 2011-10-10  Bruno Haible  <bruno@clisp.org>
42303         acosl: Simplify for platforms where 'long double' == 'double'.
42304         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42305         alternative implementation.
42306         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42307         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42308         * modules/acosl (Depends-on): Add acos. Update conditions.
42310 2011-10-10  Bruno Haible  <bruno@clisp.org>
42312         asinl: Simplify for platforms where 'long double' == 'double'.
42313         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42314         alternative implementation.
42315         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42316         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42317         * modules/asinl (Depends-on): Add asin. Update conditions.
42319 2011-10-10  Bruno Haible  <bruno@clisp.org>
42321         tanl: Simplify for platforms where 'long double' == 'double'.
42322         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42323         implementation.
42324         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42325         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42326         * modules/tanl (Depends-on): Add tan. Update conditions.
42327         (configure.ac): Don't compile trigl.c if
42328         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42330 2011-10-10  Bruno Haible  <bruno@clisp.org>
42332         cosl: Simplify for platforms where 'long double' == 'double'.
42333         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42334         implementation.
42335         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42336         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42337         * modules/cosl (Depends-on): Add cos. Update conditions.
42338         (configure.ac): Don't compile sincosl.c and trigl.c if
42339         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42341 2011-10-10  Bruno Haible  <bruno@clisp.org>
42343         sinl: Simplify for platforms where 'long double' == 'double'.
42344         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42345         implementation.
42346         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42347         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42348         * modules/sinl (Depends-on): Add sin. Update conditions.
42349         (configure.ac): Don't compile sincosl.c and trigl.c if
42350         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42352 2011-10-10  Bruno Haible  <bruno@clisp.org>
42354         logl: Simplify for platforms where 'long double' == 'double'.
42355         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42356         implementation.
42357         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42358         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42359         * modules/logl (Depends-on): Add log. Update conditions.
42361 2011-10-10  Bruno Haible  <bruno@clisp.org>
42363         expl: Simplify for platforms where 'long double' == 'double'.
42364         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
42365         implementation.
42366         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42367         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42368         * modules/expl (Depends-on): Add exp. Update conditions.
42370 2011-10-10  Bruno Haible  <bruno@clisp.org>
42372         sqrtl: Simplify for platforms where 'long double' == 'double'.
42373         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42374         alternative implementation.
42375         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42376         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42377         * modules/sqrtl (Depends-on): Update conditions.
42379 2011-10-10  Bruno Haible  <bruno@clisp.org>
42381         ldexpl: Simplify for platforms where 'long double' == 'double'.
42382         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42383         alternative implementation.
42384         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42385         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42386         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
42388 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
42390         ffsll: set correct witness
42391         * modules/ffsll (configure.ac): Fix typo.
42393 2011-10-10  Bruno Haible  <bruno@clisp.org>
42395         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
42396         * lib/printf-frexpl.c: Include <config.h>.
42397         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42398         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
42399         second time.
42400         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
42401         gl_LONG_DOUBLE_VS_DOUBLE.
42402         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
42403         conditions.
42405 2011-10-10  Bruno Haible  <bruno@clisp.org>
42407         frexpl: Simplify for platforms where 'long double' == 'double'.
42408         * lib/frexpl.c: Include <config.h>.
42409         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42410         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42411         time.
42412         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42413         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42414         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
42415         * modules/frexpl (Depends-on): Add frexp. Update conditions.
42416         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
42417         conditions.
42419 2011-10-10  Jim Meyering  <meyering@redhat.com>
42421         test-renameat: don't leave behind a temporary file
42422         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
42423           ERROR: files left in build directory after distclean:
42424           ./gltests/test-renameat.too
42425           make[1]: *** [distcleancheck] Error 1
42426         Reported by Tom G. Christensen.
42428 2011-10-09  Bruno Haible  <bruno@clisp.org>
42430         rint: Determine RINT_LIBM correctly on AIX 7.
42431         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
42432         directly, not only through a function pointer. Also accept an optional
42433         4th argument with extra code.
42434         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
42435         rintf() call by gcc when optimizing.
42437         mathfunc.m4: Refactor.
42438         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
42439         m4 variable.
42441 2011-10-09  Bruno Haible  <bruno@clisp.org>
42443         rintl: Simplify for platforms where 'long double' == 'double'.
42444         * lib/rintl.c: Include <config.h>.
42445         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42446         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42447         time.
42448         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42449         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42450         * modules/rintl (Depends-on): Add rint. Update conditions.
42452 2011-10-09  Bruno Haible  <bruno@clisp.org>
42454         roundl: Simplify for platforms where 'long double' == 'double'.
42455         * lib/roundl.c: Include <config.h>.
42456         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42457         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42458         time.
42459         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42460         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42461         * modules/roundl (Depends-on): Add round. Update conditions.
42463 2011-10-09  Bruno Haible  <bruno@clisp.org>
42465         truncl: Simplify for platforms where 'long double' == 'double'.
42466         * lib/truncl.c: Include <config.h>.
42467         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42468         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42469         time.
42470         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42471         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42472         * modules/truncl (Depends-on): Add trunc. Update conditions.
42474 2011-10-09  Bruno Haible  <bruno@clisp.org>
42476         ceill: Simplify for platforms where 'long double' == 'double'.
42477         * lib/ceill.c: Include <config.h>.
42478         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42479         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42480         time.
42481         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42482         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42483         * modules/ceill (Depends-on): Add ceil. Update conditions.
42485 2011-10-09  Bruno Haible  <bruno@clisp.org>
42487         floorl: Simplify for platforms where 'long double' == 'double'.
42488         * lib/floorl.c: Include <config.h>.
42489         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
42490         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
42491         time.
42492         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42493         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42494         * modules/floorl (Depends-on): Add floor. Update conditions.
42496 2011-10-09  Bruno Haible  <bruno@clisp.org>
42498         rint: Fix ordering constraints.
42499         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
42500         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
42501         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
42503 2011-10-09  Bruno Haible  <bruno@clisp.org>
42505         copysignl: Simplify for platforms where 'long double' == 'double'.
42506         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
42507         alternative.
42508         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42509         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
42510         * modules/copysignl (Depends-on): Add copysign. Update conditions.
42512 2011-10-09  Bruno Haible  <bruno@clisp.org>
42514         Tests for module 'rintl'.
42515         * modules/rintl-tests: New file.
42516         * tests/test-rintl.c: New file.
42518         New module 'rintl'.
42519         * lib/math.in.h (rintl): New declaration.
42520         * lib/rintl.c: New file.
42521         * m4/rintl.m4: New file.
42522         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
42523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
42524         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
42525         * modules/rintl: New file.
42526         * tests/test-math-c++.cc: Check the declaration of rintl.
42527         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42528         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
42529         * doc/posix-functions/rintl.texi: Mention the new module.
42531 2011-10-09  Bruno Haible  <bruno@clisp.org>
42533         Tests for module 'rintf'.
42534         * modules/rintf-tests: New file.
42535         * tests/test-rintf.c: New file.
42537         New module 'rintf'.
42538         * lib/math.in.h (rintf): New declaration.
42539         * lib/rintf.c: New file.
42540         * m4/rintf.m4: New file.
42541         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
42542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
42543         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
42544         * modules/rintf: New file.
42545         * tests/test-math-c++.cc: Check the declaration of rintf.
42546         * doc/posix-functions/rintf.texi: Mention the new module.
42548 2011-10-09  Bruno Haible  <bruno@clisp.org>
42550         rint: Support for MSVC.
42551         * lib/math.in.h (rint): New declaration.
42552         * lib/rint.c: New file.
42553         * m4/rint.m4: New file.
42554         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
42555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
42556         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
42557         * modules/rint (Description): Fix.
42558         (Files): Add lib/rint.c, m4/rint.m4.
42559         (Depends-on): Add math.
42560         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
42561         gl_MATH_MODULE_INDICATOR.
42562         * tests/test-math-c++.cc: Check the declaration of rint.
42563         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42564         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
42565         * doc/posix-functions/rint.texi: Mention the replacement provided by
42566         the module.
42568         rint tests: More tests.
42569         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
42570         minus-zero.h, infinity.h, nan.h.
42571         (main): Skip the test if the current rounding mode is not standard. Add
42572         tests for negative numbers, minus zero, infinity, NaN.
42573         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
42574         tests/nan.h.
42575         (Depends-on): Add isnand-nolibm.
42577 2011-10-09  Bruno Haible  <bruno@clisp.org>
42579         Tests for module 'copysignl'.
42580         * modules/copysignl-tests: New file.
42581         * tests/test-copysignl.c: New file.
42583         New module 'copysignl'.
42584         * lib/math.in.h (copysignl): New declaration.
42585         * lib/copysignl.c: New file.
42586         * m4/copysignl.m4: New file.
42587         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
42588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
42589         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
42590         HAVE_COPYSIGNL.
42591         * modules/copysignl: New file.
42592         * tests/test-math-c++.cc: Check the declaration of copysignl.
42593         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
42594         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
42595         * doc/posix-functions/copysignl.texi: Mention the new module.
42597 2011-10-09  Bruno Haible  <bruno@clisp.org>
42599         Tests for module 'copysignf'.
42600         * modules/copysignf-tests: New file.
42601         * tests/test-copysignf.c: New file.
42603         New module 'copysignf'.
42604         * lib/math.in.h (copysignf): New declaration.
42605         * lib/copysignf.c: New file.
42606         * m4/copysignf.m4: New file.
42607         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
42608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
42609         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
42610         HAVE_COPYSIGNF.
42611         * modules/copysignf: New file.
42612         * tests/test-math-c++.cc: Check the declaration of copysignf.
42613         * doc/posix-functions/copysignf.texi: Mention the new module.
42615 2011-10-09  Bruno Haible  <bruno@clisp.org>
42617         Ensure that HAVE_* variables are set to 1 before they are set to 0.
42618         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
42619         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
42620         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
42621         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
42622         gl_SIGNAL_H_DEFAULTS.
42624 2011-10-09  Bruno Haible  <bruno@clisp.org>
42626         poll: Make macro safer.
42627         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
42628         ac_cv_header_poll_h is not set.
42630 2011-10-09  Bruno Haible  <bruno@clisp.org>
42632         copysign: Provide replacement.
42633         * lib/math.in.h (copysign): New declaration.
42634         * lib/copysign.c: New file.
42635         * m4/copysign.m4: New file.
42636         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
42637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
42638         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
42639         HAVE_COPYSIGN.
42640         * modules/copysign (Description): Clarify.
42641         (Files): Add lib/copysign.c, m4/copysign.m4.
42642         (Depends-on): Add math, signbit.
42643         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
42644         gl_MATH_MODULE_INDICATOR.
42645         * tests/test-math-c++.cc: Check the declaration of copysign.
42646         * doc/posix-functions/copysign.texi: Mention the effects of the module
42647         on Minix and MSVC.
42649 2011-10-09  Bruno Haible  <bruno@clisp.org>
42651         isinf: Ensure macro on AIX 5.1.
42652         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
42653         macro.
42654         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
42656 2011-10-09  Bruno Haible  <bruno@clisp.org>
42658         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
42659         * modules/snprintf-posix-tests (configure.ac): Require
42660         gl_LONG_DOUBLE_VS_DOUBLE.
42661         * modules/sprintf-posix-tests (configure.ac): Likewise.
42662         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
42663         * modules/vasprintf-posix-tests (configure.ac): Likewise.
42664         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
42665         * modules/vsprintf-posix-tests (configure.ac): Likewise.
42666         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
42667         tests on platforms where 'long double' is the same as 'double'.
42668         * tests/test-sprintf-posix.h (test_function): Likewise.
42669         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42670         * tests/test-vasprintf-posix.c (test_function): Likewise.
42672         *printf: Fix for platforms where 'long double' == 'double'.
42673         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
42674         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
42675         * modules/dprintf-posix (Files): Add m4/math_h.m4.
42676         * modules/fprintf-posix (Files): Likewise.
42677         * modules/obstack-printf-posix (Files): Likewise.
42678         * modules/snprintf-posix (Files): Likewise.
42679         * modules/sprintf-posix (Files): Likewise.
42680         * modules/vasnprintf (Files): Likewise.
42681         * modules/vasnprintf-posix (Files): Likewise.
42682         * modules/vasprintf-posix (Files): Likewise.
42683         * modules/vdprintf-posix (Files): Likewise.
42684         * modules/vfprintf-posix (Files): Likewise.
42685         * modules/vsnprintf-posix (Files): Likewise.
42686         * modules/vsprintf-posix (Files): Likewise.
42687         * modules/unistdio/u8-vasnprintf (Files): Likewise.
42688         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
42689         * modules/unistdio/u16-vasnprintf (Files): Likewise.
42690         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
42691         * modules/unistdio/u32-vasnprintf (Files): Likewise.
42692         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
42693         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
42695         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
42696         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
42697         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
42698         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
42699         'long double'.
42700         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
42702         isinf: Fix for platforms where 'long double' == 'double'.
42703         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42704         Don't blindly assume 80-bit 'long double'.
42706         isfinite: Fix for platforms where 'long double' == 'double'.
42707         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
42708         Don't blindly assume 80-bit 'long double'.
42710         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
42711         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
42712         * modules/isfinite-tests (configure.ac): Require
42713         gl_LONG_DOUBLE_VS_DOUBLE.
42714         * modules/isinf-tests (configure.ac): Likewise.
42715         * modules/isnan-tests (configure.ac): Likewise.
42716         * modules/isnanl-tests (configure.ac): Likewise.
42717         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
42718         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
42719         tests on platforms where 'long double' is the same as 'double'.
42720         * tests/test-isinf.c (test_isinfl): Likewise.
42721         * tests/test-isnan.c (test_long_double): Likewise.
42722         * tests/test-isnanl.h (main): Likewise.
42724 2011-10-08  Bruno Haible  <bruno@clisp.org>
42726         Tests for module 'tanhf'.
42727         * modules/tanhf-tests: New file.
42728         * tests/test-tanhf.c: New file.
42730         New module 'tanhf'.
42731         * lib/math.in.h (tanhf): New declaration.
42732         * lib/tanhf.c: New file.
42733         * m4/tanhf.m4: New file.
42734         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
42735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
42736         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
42737         * modules/tanhf: New file.
42738         * tests/test-math-c++.cc: Check the declaration of tanhf.
42739         * doc/posix-functions/tanhf.texi: Mention the new module.
42741         tanh: Use a .m4 file.
42742         * m4/tanh.m4: New file.
42743         * modules/tanh (Files): Add it.
42744         (configure.ac): Just invoke gl_FUNC_TANH.
42746 2011-10-08  Bruno Haible  <bruno@clisp.org>
42748         Tests for module 'coshf'.
42749         * modules/coshf-tests: New file.
42750         * tests/test-coshf.c: New file.
42752         New module 'coshf'.
42753         * lib/math.in.h (coshf): New declaration.
42754         * lib/coshf.c: New file.
42755         * m4/coshf.m4: New file.
42756         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
42757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
42758         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
42759         * modules/coshf: New file.
42760         * tests/test-math-c++.cc: Check the declaration of coshf.
42761         * doc/posix-functions/coshf.texi: Mention the new module.
42763         cosh: Use a .m4 file.
42764         * m4/cosh.m4: New file.
42765         * modules/cosh (Files): Add it.
42766         (configure.ac): Just invoke gl_FUNC_COSH.
42768 2011-10-08  Bruno Haible  <bruno@clisp.org>
42770         Tests for module 'sinhf'.
42771         * modules/sinhf-tests: New file.
42772         * tests/test-sinhf.c: New file.
42774         New module 'sinhf'.
42775         * lib/math.in.h (sinhf): New declaration.
42776         * lib/sinhf.c: New file.
42777         * m4/sinhf.m4: New file.
42778         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
42779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
42780         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
42781         * modules/sinhf: New file.
42782         * tests/test-math-c++.cc: Check the declaration of sinhf.
42783         * doc/posix-functions/sinhf.texi: Mention the new module.
42785         sinh: Use a .m4 file.
42786         * m4/sinh.m4: New file.
42787         * modules/sinh (Files): Add it.
42788         (configure.ac): Just invoke gl_FUNC_SINH.
42790 2011-10-08  Bruno Haible  <bruno@clisp.org>
42792         Tests for module 'atan2f'.
42793         * modules/atan2f-tests: New file.
42794         * tests/test-atan2f.c: New file.
42796         New module 'atan2f'.
42797         * lib/math.in.h (atan2f): New declaration.
42798         * lib/atan2f.c: New file.
42799         * m4/atan2f.m4: New file.
42800         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
42801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
42802         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
42803         * modules/atan2f: New file.
42804         * tests/test-math-c++.cc: Check the declaration of atan2f.
42805         * doc/posix-functions/atan2f.texi: Mention the new module.
42807         atan2: Use a .m4 file.
42808         * m4/atan2.m4: New file.
42809         * modules/atan2 (Files): Add it.
42810         (configure.ac): Just invoke gl_FUNC_ATAN2.
42812 2011-10-08  Bruno Haible  <bruno@clisp.org>
42814         Tests for module 'atanf'.
42815         * modules/atanf-tests: New file.
42816         * tests/test-atanf.c: New file.
42818         New module 'atanf'.
42819         * lib/math.in.h (atanf): New declaration.
42820         * lib/atanf.c: New file.
42821         * m4/atanf.m4: New file.
42822         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
42823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
42824         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
42825         * modules/atanf: New file.
42826         * tests/test-math-c++.cc: Check the declaration of atanf.
42827         * doc/posix-functions/atanf.texi: Mention the new module.
42829         atan: Use a .m4 file.
42830         * m4/atan.m4: New file.
42831         * modules/atan (Files): Add it.
42832         (configure.ac): Just invoke gl_FUNC_ATAN.
42834 2011-10-08  Bruno Haible  <bruno@clisp.org>
42836         Tests for module 'acosf'.
42837         * modules/acosf-tests: New file.
42838         * tests/test-acosf.c: New file.
42840         New module 'acosf'.
42841         * lib/math.in.h (acosf): New declaration.
42842         * lib/acosf.c: New file.
42843         * m4/acosf.m4: New file.
42844         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
42845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
42846         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
42847         * modules/acosf: New file.
42848         * tests/test-math-c++.cc: Check the declaration of acosf.
42849         * doc/posix-functions/acosf.texi: Mention the new module.
42851         acos: Use a .m4 file.
42852         * m4/acos.m4: New file.
42853         * modules/acos (Files): Add it.
42854         (configure.ac): Just invoke gl_FUNC_ACOS.
42856 2011-10-08  Bruno Haible  <bruno@clisp.org>
42858         Tests for module 'asinf'.
42859         * modules/asinf-tests: New file.
42860         * tests/test-asinf.c: New file.
42862         New module 'asinf'.
42863         * lib/math.in.h (asinf): New declaration.
42864         * lib/asinf.c: New file.
42865         * m4/asinf.m4: New file.
42866         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
42867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
42868         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
42869         * modules/asinf: New file.
42870         * tests/test-math-c++.cc: Check the declaration of asinf.
42871         * doc/posix-functions/asinf.texi: Mention the new module.
42873         asin: Use a .m4 file.
42874         * m4/asin.m4: New file.
42875         * modules/asin (Files): Add it.
42876         (configure.ac): Just invoke gl_FUNC_ASIN.
42878 2011-10-08  Bruno Haible  <bruno@clisp.org>
42880         Tests for module 'tanf'.
42881         * modules/tanf-tests: New file.
42882         * tests/test-tanf.c: New file.
42884         New module 'tanf'.
42885         * lib/math.in.h (tanf): New declaration.
42886         * lib/tanf.c: New file.
42887         * m4/tanf.m4: New file.
42888         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
42889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
42890         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
42891         * modules/tanf: New file.
42892         * tests/test-math-c++.cc: Check the declaration of tanf.
42893         * doc/posix-functions/tanf.texi: Mention the new module.
42895         tan: Use a .m4 file.
42896         * m4/tan.m4: New file.
42897         * modules/tan (Files): Add it.
42898         (configure.ac): Just invoke gl_FUNC_TAN.
42900 2011-10-08  Bruno Haible  <bruno@clisp.org>
42902         Tests for module 'cosf'.
42903         * modules/cosf-tests: New file.
42904         * tests/test-cosf.c: New file.
42906         New module 'cosf'.
42907         * lib/math.in.h (cosf): New declaration.
42908         * lib/cosf.c: New file.
42909         * m4/cosf.m4: New file.
42910         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
42911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
42912         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
42913         * modules/cosf: New file.
42914         * tests/test-math-c++.cc: Check the declaration of cosf.
42915         * doc/posix-functions/cosf.texi: Mention the new module.
42917         cos: Use a .m4 file.
42918         * m4/cos.m4: New file.
42919         * modules/cos (Files): Add it.
42920         (configure.ac): Just invoke gl_FUNC_COS.
42922 2011-10-08  Bruno Haible  <bruno@clisp.org>
42924         Tests for module 'sinf'.
42925         * modules/sinf-tests: New file.
42926         * tests/test-sinf.c: New file.
42928         New module 'sinf'.
42929         * lib/math.in.h (sinf): New declaration.
42930         * lib/sinf.c: New file.
42931         * m4/sinf.m4: New file.
42932         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
42933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
42934         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
42935         * modules/sinf: New file.
42936         * tests/test-math-c++.cc: Check the declaration of sinf.
42937         * doc/posix-functions/sinf.texi: Mention the new module.
42939         sin: Use a .m4 file.
42940         * m4/sin.m4: New file.
42941         * modules/sin (Files): Add it.
42942         (configure.ac): Just invoke gl_FUNC_SIN.
42944 2011-10-08  Bruno Haible  <bruno@clisp.org>
42946         Tests for module 'powf'.
42947         * modules/powf-tests: New file.
42948         * tests/test-powf.c: New file.
42950         New module 'powf'.
42951         * lib/math.in.h (powf): New declaration.
42952         * lib/powf.c: New file.
42953         * m4/powf.m4: New file.
42954         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
42955         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
42956         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
42957         * modules/powf: New file.
42958         * tests/test-math-c++.cc: Check the declaration of powf.
42959         * doc/posix-functions/powf.texi: Mention the new module.
42961         pow: Use a .m4 file.
42962         * m4/pow.m4: New file.
42963         * modules/pow (Files): Add it.
42964         (configure.ac): Just invoke gl_FUNC_POW.
42966 2011-10-08  Bruno Haible  <bruno@clisp.org>
42968         Tests for module 'log10f'.
42969         * modules/log10f-tests: New file.
42970         * tests/test-log10f.c: New file.
42972         New module 'log10f'.
42973         * lib/math.in.h (log10f): New declaration.
42974         * lib/log10f.c: New file.
42975         * m4/log10f.m4: New file.
42976         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
42977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
42978         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
42979         * modules/log10f: New file.
42980         * tests/test-math-c++.cc: Check the declaration of log10f.
42981         * doc/posix-functions/log10f.texi: Mention the new module.
42983         log10: Use a .m4 file.
42984         * m4/log10.m4: New file.
42985         * modules/log10 (Files): Add it.
42986         (configure.ac): Just invoke gl_FUNC_LOG10.
42988 2011-10-08  Bruno Haible  <bruno@clisp.org>
42990         Tests for module 'logf'.
42991         * modules/logf-tests: New file.
42992         * tests/test-logf.c: New file.
42994         New module 'logf'.
42995         * lib/math.in.h (logf): New declaration.
42996         * lib/logf.c: New file.
42997         * m4/logf.m4: New file.
42998         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
42999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
43000         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
43001         * modules/logf: New file.
43002         * tests/test-math-c++.cc: Check the declaration of logf.
43003         * doc/posix-functions/logf.texi: Mention the new module.
43005         log: Use a .m4 file.
43006         * m4/log.m4: New file.
43007         * modules/log (Files): Add it.
43008         (configure.ac): Just invoke gl_FUNC_LOG.
43010 2011-10-08  Bruno Haible  <bruno@clisp.org>
43012         Tests for module 'expf'.
43013         * modules/expf-tests: New file.
43014         * tests/test-expf.c: New file.
43016         New module 'expf'.
43017         * lib/math.in.h (expf): New declaration.
43018         * lib/expf.c: New file.
43019         * m4/expf.m4: New file.
43020         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
43021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
43022         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
43023         * modules/expf: New file.
43024         * tests/test-math-c++.cc: Check the declaration of expf.
43025         * doc/posix-functions/expf.texi: Mention the new module.
43027         exp: Use a .m4 file.
43028         * m4/exp.m4: New file.
43029         * modules/exp (Files): Add it.
43030         (configure.ac): Just invoke gl_FUNC_EXP.
43032 2011-10-08  Bruno Haible  <bruno@clisp.org>
43034         Tests for module 'sqrtf'.
43035         * modules/sqrtf-tests: New file.
43036         * tests/test-sqrtf.c: New file.
43038         New module 'sqrtf'.
43039         * lib/math.in.h (sqrtf): New declaration.
43040         * lib/sqrtf.c: New file.
43041         * m4/sqrtf.m4: New file.
43042         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
43043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
43044         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
43045         * modules/sqrtf: New file.
43046         * tests/test-math-c++.cc: Check the declaration of sqrtf.
43047         * doc/posix-functions/sqrtf.texi: Mention the new module.
43049 2011-10-08  Bruno Haible  <bruno@clisp.org>
43051         Tests: Avoid link failures w.r.t. libintl.
43052         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
43053         $(LIBINTL).
43054         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
43055         $(LIBINTL).
43056         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
43057         against $(LIBINTL).
43058         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
43059         $(LIBINTL).
43060         * modules/openat-tests (Makefile.am): Link test-fchmodat against
43061         $(LIBINTL).
43062         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
43064 2011-10-08  Bruno Haible  <bruno@clisp.org>
43066         pow tests: Defeat compiler optimizations.
43067         * tests/test-pow.c (main): Assign arguments to x and y before use.
43069 2011-10-08  Bruno Haible  <bruno@clisp.org>
43071         gnulib-tool: Improve last commit.
43072         * gnulib-tool (func_modules_transitive_closure): Simplify code.
43073         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
43074         ignore dependencies that are not among the modules list.
43076 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
43078         gnulib-tool: don't follow dependencies to avoided modules
43079         This fixes a bug that is related to the previous one.
43080         * gnulib-tool (func_modules_transitive_closure)
43081         (func_emit_autoconf_snippets):
43082         Check whether a dependency is acceptable before using it.
43083         (--extract-dependencies): Report an error if --avoid is also used,
43084         since this combination of options is not yet supported.
43086         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
43087         Problem reported by Peter Dyballa in
43088         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
43089         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
43090         when echoing "$condition".
43092 2011-10-07  Bruno Haible  <bruno@clisp.org>
43094         Fix documentation about math functions on MacOS X.
43095         * doc/posix-functions/exp2.texi: Don't say the function is missing on
43096         MacOS X 10.5.
43097         * doc/posix-functions/fdim.texi: Likewise.
43098         * doc/posix-functions/feclearexcept.texi: Likewise.
43099         * doc/posix-functions/fegetenv.texi: Likewise.
43100         * doc/posix-functions/fegetround.texi: Likewise.
43101         * doc/posix-functions/feholdexcept.texi: Likewise.
43102         * doc/posix-functions/feraiseexcept.texi: Likewise.
43103         * doc/posix-functions/fesetenv.texi: Likewise.
43104         * doc/posix-functions/fesetround.texi: Likewise.
43105         * doc/posix-functions/fetestexcept.texi: Likewise.
43106         * doc/posix-functions/feupdateenv.texi: Likewise.
43107         * doc/posix-functions/fmax.texi: Likewise.
43108         * doc/posix-functions/fmin.texi: Likewise.
43109         * doc/posix-functions/log2.texi: Likewise.
43110         * doc/posix-functions/modff.texi: Likewise.
43111         * doc/posix-functions/nan.texi: Likewise.
43112         * doc/posix-functions/nanf.texi: Likewise.
43113         * doc/posix-functions/nextafterf.texi: Likewise.
43114         * doc/posix-functions/remquo.texi: Likewise.
43116 2011-10-07  Bruno Haible  <bruno@clisp.org>
43118         modff: Drop assumption about library that defines modff.
43119         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
43120         AC_CHECK_FUNCS.
43121         * modules/modff (Files): Add m4/mathfunc.m4.
43123 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
43125         raise tests: Avoid a GCC warning.
43126         * tests/test-raise.c (handler): Use _Noreturn.
43128 2011-10-07  Bruno Haible  <bruno@clisp.org>
43130         Tests for module 'ldexpf'.
43131         * modules/ldexpf-tests: New file.
43132         * tests/test-ldexpf.c: New file.
43134         New module 'ldexpf'.
43135         * lib/math.in.h (ldexpf): New declaration.
43136         * lib/ldexpf.c: New file.
43137         * m4/ldexpf.m4: New file.
43138         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
43139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
43140         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
43141         * modules/ldexpf: New file.
43142         * tests/test-math-c++.cc: Check the declaration of ldexpf.
43143         * doc/posix-functions/ldexpf.texi: Mention the new module.
43145 2011-10-06  Bruno Haible  <bruno@clisp.org>
43147         frexpf: Work around problems on IRIX and mingw.
43148         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
43149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
43150         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
43151         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
43152         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
43153         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
43154         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
43156 2011-10-06  Bruno Haible  <bruno@clisp.org>
43158         fabsf: Drop assumption about library that defines fabsf.
43159         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
43160         AC_CHECK_FUNCS.
43161         * modules/fabsf (Files): Add m4/mathfunc.m4.
43163 2011-10-06  Bruno Haible  <bruno@clisp.org>
43165         frexpf: Drop assumption about library that defines frexpf.
43166         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
43167         'int *', 'float *', 'long double *', 'float', 'long double'.
43168         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
43169         AC_CHECK_FUNCS.
43170         * modules/frexpf (Files): Add m4/mathfunc.m4.
43172         Tests for module 'frexpf'.
43173         * modules/frexpf-tests: New file.
43174         * tests/test-frexpf.c: New file.
43176         New module 'frexpf'.
43177         * lib/math.in.h (frexpf): New declaration.
43178         * lib/frexpf.c: New file.
43179         * m4/frexpf.m4: New file.
43180         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
43181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
43182         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
43183         * modules/frexpf: New file.
43184         * tests/test-math-c++.cc: Check the declaration of frexpf.
43185         * doc/posix-functions/frexpf.texi: Mention the new module.
43187 2011-10-06  Bruno Haible  <bruno@clisp.org>
43189         math: Sort function declarations of math.in.h.
43190         * lib/math.in.h (frexp, logb): Move declarations.
43192 2011-10-05  Bruno Haible  <bruno@clisp.org>
43194         Tests for module 'modff'.
43195         * modules/modff-tests: New file.
43196         * tests/test-modff.c: New file.
43198         New module 'modff'.
43199         * lib/math.in.h (modff): New declaration.
43200         * lib/modff.c: New file.
43201         * m4/modff.m4: New file.
43202         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
43203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
43204         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
43205         * modules/modff: New file.
43206         * tests/test-math-c++.cc: Check the declaration of modff.
43207         * doc/posix-functions/modff.texi: Mention the new module.
43209         modf tests: Make test sharper.
43210         * tests/test-modf.c (main): Strengthen upper bound.
43212         modf: Use a .m4 file.
43213         * m4/modf.m4: New file.
43214         * modules/modf (Files): Add it.
43215         (configure.ac): Just invoke gl_FUNC_MODF.
43217 2011-10-05  Bruno Haible  <bruno@clisp.org>
43219         Tests for module 'fmodf'.
43220         * modules/fmodf-tests: New file.
43221         * tests/test-fmodf.c: New file.
43223         New module 'fmodf'.
43224         * lib/math.in.h (fmodf): New declaration.
43225         * lib/fmodf.c: New file.
43226         * m4/fmodf.m4: New file.
43227         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
43228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
43229         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
43230         * modules/fmodf: New file.
43231         * tests/test-math-c++.cc: Check the declaration of fmodf.
43232         * doc/posix-functions/fmodf.texi: Mention the new module.
43234         fmod: Use a .m4 file.
43235         * m4/fmod.m4: New file.
43236         * modules/fmod (Files): Add it.
43237         (configure.ac): Just invoke gl_FUNC_FMOD.
43239 2011-10-05  Bruno Haible  <bruno@clisp.org>
43241         Tests for module 'fabsf'.
43242         * modules/fabsf-tests: New file.
43243         * tests/test-fabsf.c: New file.
43245         New module 'fabsf'.
43246         * lib/math.in.h (fabsf): New declaration.
43247         * lib/fabsf.c: New file.
43248         * m4/fabsf.m4: New file.
43249         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
43250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
43251         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
43252         * modules/fabsf: New file.
43253         * tests/test-math-c++.cc: Check the declaration of fabsf.
43254         * doc/posix-functions/fabsf.texi: Mention the new module.
43256         fabs: Use a .m4 file.
43257         * m4/fabs.m4: New file.
43258         * modules/fabs (Files): Add it.
43259         (configure.ac): Just invoke gl_FUNC_FABS.
43261 2011-10-05  Jim Meyering  <meyering@redhat.com>
43263         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
43264         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
43265         ls -lL regression introduced in coreutils-8.12, it does so at the
43266         cost of an additional stat call in the common case.  Besides, now
43267         that the kernel change that prompted commit 95f7c57f has been reverted
43268         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
43269         we have no use for commit 95f7c57f, "file-has-acl: use
43270         acl_extended_file_nofollow if available".
43272 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
43274         file-has-acl: revert unintended change in behavior of ls -L
43275         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
43276         derived from...
43277         (file_has_acl): ...code here.  Call it.
43278         This problem was introduced with 2011-07-22 commit 95f7c57f,
43279         "file-has-acl: use acl_extended_file_nofollow if available".
43280         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
43282 2011-10-03  Bruno Haible  <bruno@clisp.org>
43284         poll: Avoid link errors on MSVC.
43285         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
43286         * modules/poll (Depends-on): Add sockets.
43287         (Link): New section.
43288         * NEWS: Mention the change.
43289         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
43290         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
43291         $(LIB_POLL) instead of $(LIBSOCKET).
43293 2011-10-03  Bruno Haible  <bruno@clisp.org>
43295         sys_select tests: Fix link error on MSVC 9.
43296         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
43297         with $(LIB_SELECT) instead of $(LIBSOCKET).
43299 2011-10-03  Bruno Haible  <bruno@clisp.org>
43301         sys_select: Fix compilation error on mingw.
43302         * lib/sys_select.in.h: On native Windows, include <io.h>.
43304 2011-10-03  Bruno Haible  <bruno@clisp.org>
43306         wmemset: Support for MSVC.
43307         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
43308         whether wmemset() exists.
43310 2011-10-03  Bruno Haible  <bruno@clisp.org>
43312         wmemmove: Support for MSVC.
43313         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
43314         whether wmemmove() exists.
43316 2011-10-03  Bruno Haible  <bruno@clisp.org>
43318         wmemcpy: Support for MSVC.
43319         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
43320         whether wmemcpy() exists.
43322 2011-10-03  Bruno Haible  <bruno@clisp.org>
43324         wmemcmp: Support for MSVC.
43325         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
43326         whether wmemcmp() exists.
43328 2011-10-03  Bruno Haible  <bruno@clisp.org>
43330         wmemchr: Support for MSVC.
43331         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
43332         whether wmemchr() exists.
43334 2011-10-03  Bruno Haible  <bruno@clisp.org>
43336         glthread/*, strsignal: Support for MSVC.
43337         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
43338         including <winsock.h> on MSVC 9.
43339         * lib/glthread/lock.h: Likewise.
43340         * lib/glthread/thread.h: Likewise.
43341         * lib/glthread/tls.h: Likewise.
43342         * lib/glthread/yield.h: Likewise.
43343         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
43344         if HAVE_UNISTD_H is false.
43345         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
43347 2011-10-03  Bruno Haible  <bruno@clisp.org>
43349         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
43350         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
43351         Set to 100000.
43353 2011-10-03  Bruno Haible  <bruno@clisp.org>
43355         acl: Fix specification.
43356         * lib/file-has-acl.c (file_has_acl): Fix specification.
43358 2011-10-03  Bruno Haible  <bruno@clisp.org>
43360         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
43361         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
43362         (compute_curr_prefix, shared_library_fullname,
43363         find_shared_library_fullname, get_shared_library_fullname, relocate):
43364         Use it together with PIC && INSTALLDIR.
43365         Reported by <jojelino@gmail.com>
43366         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
43368 2011-10-01  Jim Meyering  <meyering@redhat.com>
43370         maint.mk: adjust a release-related rule not to require use of gzip
43371         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
43372         Instead, check each file in $(DIST_ARCHIVES).  This is better for
43373         projects that build only .tar.xz files.  Also fix an erroneous test.
43375         test-linkat: don't leave behind a temporary file
43376         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
43377         Otherwise, coreutils' "make distcheck" would fail with this:
43378           Only in /c/cu/tests/torture/coreutils/test/\
43379             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
43380           make[2]: *** [my-distcheck] Error 1
43382         float, math: add omitted file
43383         * lib/itold.c: Add file, required for yesterday's float change.
43385 2011-10-01  Bruno Haible  <bruno@clisp.org>
43387         isinf: Fix for OpenBSD/x86.
43388         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
43389         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
43390         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
43392 2011-10-01  Bruno Haible  <bruno@clisp.org>
43394         isfinite: Fix syntax error in configure test.
43395         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
43397         isfinite: Fix typo.
43398         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
43399         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
43401 2011-10-01  Bruno Haible  <bruno@clisp.org>
43403         nonblocking tests: Fix test failure on Linux/IA-64.
43404         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
43405         Set to 270000.
43407 2011-10-01  Bruno Haible  <bruno@clisp.org>
43409         mkfifoat tests: Fix a test failure on mingw.
43410         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
43411         with error ENOSYS.
43413 2011-09-30  Bruno Haible  <bruno@clisp.org>
43415         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
43416         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
43417         'long double'. Set REPLACE_ITOLD.
43418         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
43419         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
43420         * lib/itold.c: New file.
43421         * modules/float (Files): Add lib/itold.c.
43422         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
43423         (Makefile.am): Substitute REPLACE_ITOLD.
43424         * modules/math (Depends-on): Add float.
43425         (Makefile.am): Substitute REPLACE_ITOLD.
43426         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
43427         * doc/posix-headers/math.texi: Likewise.
43428         * doc/posix-functions/logl.texi: Likewise.
43430 2011-09-30  Bruno Haible  <bruno@clisp.org>
43432         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
43433         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
43434         Set to 140000.
43436 2011-09-30  Bruno Haible  <bruno@clisp.org>
43438         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
43439         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
43440         invocation, say "right after AC_PROG_CC_STDC", not "right after
43441         AC_PROG_CC".
43442         Reported by Gary V. Vaughan <gary@gnu.org>.
43444 2011-09-30  Bruno Haible  <bruno@clisp.org>
43446         Centralize C99 requirement.
43447         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
43448         * modules/stdarg (configure.ac-early): Invoke it instead of
43449         AC_PROG_CC_STDC.
43450         Reported by Gary V. Vaughan and Paul Eggert.
43452 2011-09-29  Bruno Haible  <bruno@clisp.org>
43454         float: Fix LDBL_MAX value on Linux/PowerPC.
43455         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
43456         on Linux/PowerPC.
43457         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
43458         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
43459         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
43460         platform.
43461         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
43463 2011-09-29  Bruno Haible  <bruno@clisp.org>
43465         doc: Improve doc about gl_EARLY.
43466         * doc/gnulib-tool.texi (Initial import): Mention where to place an
43467         AC_PROG_CC_STDC invocation.
43468         Reported by Gary V. Vaughan <gary@gnu.org>.
43470 2011-09-28  Bruno Haible  <bruno@clisp.org>
43472         fgetc, fputc, fread, fwrite tests: Fix link error.
43473         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
43474         on non-MSVC platforms.
43475         * tests/test-fputc.c (main): Likewise.
43476         * tests/test-fread.c (main): Likewise.
43477         * tests/test-fwrite.c (main): Likewise.
43478         Reported by Jim Meyering.
43480 2011-09-27  Bruno Haible  <bruno@clisp.org>
43482         fputc, fwrite tests: Avoid test failure on MSVC.
43483         * tests/test-fgetc.c: Include msvc-inval.h.
43484         (main): Invoke gl_msvc_inval_ensure_handler.
43485         * tests/test-fputc.c: Include msvc-inval.h.
43486         (main): Invoke gl_msvc_inval_ensure_handler.
43487         * tests/test-fread.c: Include msvc-inval.h.
43488         (main): Invoke gl_msvc_inval_ensure_handler.
43489         * tests/test-fwrite.c: Include msvc-inval.h.
43490         (main): Invoke gl_msvc_inval_ensure_handler.
43491         * modules/fgetc-tests (Depends-on): Add msvc-inval.
43492         * modules/fputc-tests (Depends-on): Likewise.
43493         * modules/fread-tests (Depends-on): Likewise.
43494         * modules/fwrite-tests (Depends-on): Likewise.
43496 2011-09-27  Bruno Haible  <bruno@clisp.org>
43498         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
43499         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
43500         (raise): Remove older, duplicated declaration.
43501         (_gl_raise_SIGPIPE): New declaration.
43502         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
43503         (rpl_raise): Remove function.
43504         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
43505         a gnulib-defined SIGPIPE here.
43506         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
43507         'sigprocmask' has detected missing signal-blocking and the module
43508         'sigpipe' is enabled.
43509         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43511 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
43513         base64-tests: avoid memory leak
43514         * tests/test-base64.c (main): Plug memory leak.
43516         base32: new module
43517         * modules/base32: New module.
43518         * lib/base32.c: New file.
43519         * lib/base32.h: Likewise.
43520         * m4/base32.m4: Likewise.
43521         * modules/base32-tests: New test.
43522         * tests/test-base32.c: Likewise.
43523         * MODULES.html.sh (Misc): Mention it.
43525 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43527         gnulib: use more-standard license notice wording
43528         * gnulib-tool (func_emit_copyright_notice): When emitting a
43529         license notice into a file, use the standard wording as suggested
43530         by the current information for GNU maintainers, except say "file"
43531         rather than "program".  The new wording gives a license version
43532         number, which addresses an issue raised by Glenn Morris in
43533         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
43534         * m4/onceonly.m4: Use that same wording here, too.
43536         dup2: minor simplification
43537         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
43538         as lib/dup2.c no longer uses 'inline'.
43540 2011-09-25  Bruno Haible  <bruno@clisp.org>
43542         strings: Fix compilation error on MSVC.
43543         * lib/strings.in.h: Include <stddef.h> for size_t.
43545 2011-09-25  Bruno Haible  <bruno@clisp.org>
43547         fflush et al.: Document limitation on MSVC.
43548         * doc/posix-functions/fflush.texi: Document possible crash in handling
43549         mode other than DEFAULT_HANDLING.
43550         * doc/posix-functions/fgetc.texi: Likewise.
43551         * doc/posix-functions/fputc.texi: Likewise.
43552         * doc/posix-functions/fread.texi: Likewise.
43553         * doc/posix-functions/fwrite.texi: Likewise.
43555 2011-09-25  Bruno Haible  <bruno@clisp.org>
43557         msvc-inval: Allow three invalid parameter handling modes.
43558         * lib/msvc-inval.h: Don't include <stdlib.h> here.
43559         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
43560         macros.
43561         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
43562         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
43563         SANE_LIBRARY_HANDLING as a no-op.
43564         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
43565         <stdlib.h>.
43566         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
43568 2011-09-25  Bruno Haible  <bruno@clisp.org>
43570         msvc-inval: Make handler multithread-safe.
43571         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
43572         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
43573         declarations.
43574         (gl_msvc_inval_current): New declaration.
43575         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43576         Operate on the structure returned by gl_msvc_inval_current().
43577         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
43578         Remove varaiables.
43579         (tls_index, tls_initialized): New variables.
43580         (not_per_thread): New variable.
43581         (gl_msvc_inval_current): New function.
43582         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
43583         returned by gl_msvc_inval_current().
43585 2011-09-25  Bruno Haible  <bruno@clisp.org>
43587         msvc-inval: Install handler globally.
43588         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
43589         !_MSC_VER.
43590         (gl_msvc_invalid_parameter_handler): Remove declaration.
43591         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
43592         declarations.
43593         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
43594         Install the handler globally, don't uninstall it.
43595         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
43596         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
43597         currently valid, call RaiseException instead.
43598         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
43599         for !_MSC_VER.
43601 2011-09-25  Bruno Haible  <bruno@clisp.org>
43603         strerror_r-posix: Fix for MSVC 9.
43604         * lib/strerror_r.c (local_snprintf): New function.
43605         (snprintf): Define to local_snprintf, not to _snprintf.
43607 2011-09-25  Bruno Haible  <bruno@clisp.org>
43609         ftruncate: Support for MSVC 9.
43610         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
43611         (chsize_nothrow): New function.
43612         (chsize): Redefine as a macro.
43613         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
43614         * modules/ftruncate (Depends-on): Add msvc-inval.
43616 2011-09-25  Bruno Haible  <bruno@clisp.org>
43618         New module 'fstat'.
43619         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
43620         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
43621         * lib/fchdir.c (rpl_fstat): Remove function.
43622         * m4/fstat.m4: New file.
43623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
43624         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
43625         declared.
43626         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
43627         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
43628         * modules/fstat: New file.
43629         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
43630         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
43631         is set.
43632         * doc/posix-functions/fstat.texi: Mention the new module and the
43633         problem on MSVC.
43634         * NEWS: Mention the change.
43635         * modules/acl (Depends-on): Add fstat.
43636         * modules/chdir-safer (Depends-on): Likewise.
43637         * modules/chown (Depends-on): Likewise.
43638         * modules/copy-file (Depends-on): Likewise.
43639         * modules/fchdir (Depends-on): Likewise.
43640         * modules/fdopendir (Depends-on): Likewise.
43641         * modules/fopen (Depends-on): Likewise.
43642         * modules/fts (Depends-on): Likewise.
43643         * modules/getcwd (Depends-on): Likewise.
43644         * modules/isapipe (Depends-on): Likewise.
43645         * modules/linkat (Depends-on): Likewise.
43646         * modules/lseek (Depends-on): Likewise.
43647         * modules/mkdir-p (Depends-on): Likewise.
43648         * modules/open (Depends-on): Likewise.
43649         * modules/openat (Depends-on): Likewise.
43650         * modules/read-file (Depends-on): Likewise.
43651         * modules/renameat (Depends-on): Likewise.
43652         * modules/utimens (Depends-on): Likewise.
43654 2011-09-25  Bruno Haible  <bruno@clisp.org>
43656         linkat: Fix compilation on MSVC 9.
43657         * lib/linkat.c: Don't include <stdint.h>.
43659 2011-09-25  Bruno Haible  <bruno@clisp.org>
43661         fclose: Support for MSVC 9.
43662         * lib/fclose.c: Include msvc-inval.h.
43663         (fclose_nothrow): New function.
43664         (rpl_fclose): Use it.
43665         * modules/fclose (Depends-on): Add msvc-inval.
43666         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
43668 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
43670         dup2: minor simplifications
43671         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
43672         that it's a performance win.
43673         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
43674         ! defined __CYGWIN__)" to "ifdef F_GETFL".
43676 2011-09-24  Jim Meyering  <meyering@redhat.com>
43678         test-futimens: avoid a warning from gcc -Wshadow
43679         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
43680         to avoid a shadowing warning.
43682 2011-09-24  Bruno Haible  <bruno@clisp.org>
43684         fdopen: Support for MSVC 9.
43685         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
43686         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
43687         * lib/fdopen.c: Include msvc-inval.h.
43688         (fdopen_nothrow): New function.
43689         (rpl_fdopen): Use it.
43690         * modules/fdopen (Depends-on): Add msvc-inval.
43691         * modules/fclose-tests (Depends-on): Add fdopen.
43692         * modules/fflush-tests (Depends-on): Likewise.
43693         * modules/fgetc-tests (Depends-on): Likewise.
43694         * modules/fputc-tests (Depends-on): Likewise.
43695         * modules/fread-tests (Depends-on): Likewise.
43696         * modules/freopen-tests (Depends-on): Likewise.
43697         * modules/fseeko-tests (Depends-on): Likewise.
43698         * modules/ftello-tests (Depends-on): Likewise.
43699         * modules/fwrite-tests  (Depends-on): Likewise.
43700         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
43702 2011-09-24  Bruno Haible  <bruno@clisp.org>
43704         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
43705         * modules/fgetc-tests (Depends-on): Add unistd.
43706         * modules/fputc-tests (Depends-on): Likewise.
43707         * modules/fread-tests (Depends-on): Likewise.
43708         * modules/fwrite-tests (Depends-on): Likewise.
43710 2011-09-24  Bruno Haible  <bruno@clisp.org>
43712         dup: Simplify autoconf test.
43713         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
43714         on gl_MSVC_INVAL's result.
43716 2011-09-24  Bruno Haible  <bruno@clisp.org>
43718         Tests for function fwrite().
43719         * modules/fwrite-tests: New file.
43720         * tests/test-fwrite.c: New file.
43721         * modules/stdio-tests (Depends-on): Add fwrite-tests.
43723         Tests for function fread().
43724         * modules/fread-tests: New file.
43725         * tests/test-fread.c: New file.
43726         * modules/stdio-tests (Depends-on): Add fread-tests.
43728         Activate fputc tests.
43729         * modules/stdio-tests (Depends-on): Add fputc-tests.
43731         Enhance fgetc, fputc tests.
43732         * tests/test-fgetc.c (main): Also test the stream's error indicator.
43733         * tests/test-fputc.c (main): Likewise.
43735 2011-09-24  Bruno Haible  <bruno@clisp.org>
43737         write: Support for MSVC 9.
43738         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43739         is not 1.
43740         * lib/write.c (write_nothrow): New function.
43741         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
43742         not 1. Use write_nothrow.
43743         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
43744         invalid parameter handler.
43745         (gl_PREREQ_WRITE): New macro.
43746         * modules/write (Depends-on): Add msvc-inval.
43747         (configure.ac): Invoke gl_PREREQ_WRITE.
43748         * doc/posix-functions/write.texi: Mention the problem on MSVC.
43750 2011-09-24  Bruno Haible  <bruno@clisp.org>
43752         read: Fix last commit.
43753         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
43755 2011-09-24  Bruno Haible  <bruno@clisp.org>
43757         dup2: Fix last commit.
43758         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
43759         (rpl_dup2): Disable fcntl workaround on native Windows.
43761         sigprocmask: Make code safer.
43762         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
43763         section that changes macro definitions for this compilation unit.
43765 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
43767         dup2: clarify by coalescing Windows-specific material
43768         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
43769         "msvc-nothrow.h"' to the Windows-specific section, so that the
43770         Emacs source need not contain these include files.
43771         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
43772         Windows-specific fixes into this function rather than just the
43773         nothrow fix, as this shortens and clarifies the code.  Always
43774         define as a function, as that's a bit cleaner than having it be
43775         sometimes a function and sometimes a macro.
43776         (rpl_dup2): Move the Windows-specific stuff out of here and into
43777         ms_windows_dup2.  Don't protect the Haiku-related fix with
43778         "#if !defined __linux__", as the same code also works around
43779         a Linux kernel bug, and it doesn't add any system calls on any
43780         platform.  Add comment about FreeBSD 6.1.
43782         sigprocmask: move #include directive
43783         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
43784         Windows-specific section, so that the Emacs source need not
43785         contain msvc-inval.h.
43787 2011-09-23  Bruno Haible  <bruno@clisp.org>
43789         read: Support for MSVC 9.
43790         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
43791         is not 1.
43792         * lib/read.c (read_nothrow): New function.
43793         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
43794         read_nothrow.
43795         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
43796         invalid parameter handler.
43797         (gl_PREREQ_READ): New macro.
43798         * modules/read (Depends-on): Add msvc-inval.
43799         (configure.ac): Invoke gl_PREREQ_READ.
43800         * doc/posix-functions/read.texi: Mention the problem on MSVC.
43802 2011-09-23  Bruno Haible  <bruno@clisp.org>
43804         close: Support for MSVC 9.
43805         * lib/close.c: Include <errno.h>, msvc-inval.h.
43806         (close_nothrow): New function.
43807         (rpl_close): Use it.
43808         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
43809         invalid parameter handler.
43810         * modules/close (Depends-on): Add msvc-inval.
43811         * modules/dup2-tests (Depends-on): Add close.
43812         * modules/dup3-tests (Depends-on): Likewise.
43813         * modules/fcntl-tests (Depends-on): Likewise.
43814         * modules/spawn-pipe-tests (Depends-on): Likewise.
43815         * modules/unistd-safer-tests (Depends-on): Likewise.
43816         * doc/posix-functions/close.texi: Mention the problem on MSVC.
43818 2011-09-23  Bruno Haible  <bruno@clisp.org>
43820         New module 'dup'.
43821         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
43822         Allow replacement.
43823         * lib/dup.c: New file.
43824         * lib/fchdir.c (rpl_dup): Remove function.
43825         * m4/dup.m4: New file.
43826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
43827         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
43828         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
43829         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
43830         * modules/dup: New file.
43831         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
43832         'dup' module is in use.
43833         * modules/fdopendir (Depends-on): Add dup.
43834         * modules/fdutimensat-tests (Depends-on): Likewise.
43835         * modules/fts (Depends-on): Likewise.
43836         * modules/futimens-tests (Depends-on): Likewise.
43837         * modules/posix_spawnp-tests (Depends-on): Likewise.
43838         * modules/unistd-safer-tests (Depends-on): Likewise.
43839         * modules/utimens-tests (Depends-on): Likewise.
43840         * doc/posix-functions/dup.texi: Mention the new module and the problem
43841         on MSVC.
43843 2011-09-23  Bruno Haible  <bruno@clisp.org>
43845         getdtablesize: Support for MSVC 9.
43846         * lib/getdtablesize.c: Include msvc-inval.h.
43847         (_setmaxstdio_nothrow): New function.
43848         (_setmaxstdio): Redefine it.
43849         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
43850         * modules/getdtablesize (Depends-on): Add msvc-inval.
43851         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
43853 2011-09-23  Bruno Haible  <bruno@clisp.org>
43855         signal-h: Rename from signal.
43856         * modules/signal-h: Renamed from modules/signal.
43857         * modules/pthread_sigmask (Depends-on): Update.
43858         * modules/raise (Depends-on): Likewise.
43859         * modules/sigaction (Depends-on): Likewise.
43860         * modules/sigpipe (Depends-on): Likewise.
43861         * modules/sigprocmask (Depends-on): Likewise.
43862         * modules/sys_select (Depends-on): Likewise.
43863         * modules/signal-h-tests: Renamed from modules/signal-tests.
43864         (Files, Depends-on, Makefile.am): Update.
43865         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
43866         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
43867         (Files, Makefile.am): Update.
43868         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
43869         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
43870         * modules/signal: New placeholder file.
43871         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
43872         * doc/posix-headers/signal.texi: Update.
43873         * NEWS: Mention the change.
43875 2011-09-23  Bruno Haible  <bruno@clisp.org>
43877         sigprocmask: Avoid crashes through signal() on MSVC 9.
43878         * lib/sigprocmask.c: Include msvc-inval.h.
43879         (signal_nothrow): New function.
43880         (signal): Redefine it.
43881         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
43882         * modules/sigprocmask (Depends-on): Add msvc-inval.
43883         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
43885 2011-09-23  Bruno Haible  <bruno@clisp.org>
43887         Tests for module 'raise'.
43888         * modules/raise-tests: New file.
43889         * tests/test-raise.c: New file.
43891         raise: Support for MSVC.
43892         * lib/signal.in.h (raise): New declaration.
43893         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
43894         for native Windows platforms.
43895         * m4/raise.m4: New file.
43896         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
43897         HAVE_RAISE, REPLACE_RAISE.
43898         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
43899         REPLACE_RAISE.
43900         * modules/raise (Status, Notice): Remove fields.
43901         (Files): Add m4/raise.m4.
43902         (Depends-on): Add signal, msvc-inval.
43903         (configure.ac): Use the common idioms.
43904         (Maintainer): Add me.
43905         * tests/test-signal-c++.cc: Check the signature of raise.
43906         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
43908 2011-09-23  Bruno Haible  <bruno@clisp.org>
43910         pipe2: Fix compilation on pre-C99 compilers.
43911         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
43913 2011-09-23  Bruno Haible  <bruno@clisp.org>
43915         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
43916         * lib/msvc-nothrow.h: New file.
43917         * lib/msvc-nothrow.c: New file.
43918         * m4/msvc-nothrow.m4: New file.
43919         * modules/msvc-nothrow: New file.
43920         * lib/dup2.c: Include msvc-nothrow.h.
43921         (rpl_dup2): No need to protect _get_osfhandle call here.
43922         * lib/accept4.c: Include msvc-nothrow.h.
43923         * lib/error.c: Likewise.
43924         * lib/fcntl.c: Likewise.
43925         * lib/lseek.c: Likewise.
43926         * lib/nonblocking.c: Likewise.
43927         * lib/poll.c: Likewise.
43928         * lib/read.c: Likewise.
43929         * lib/select.c: Likewise.
43930         * lib/sockets.h: Likewise.
43931         * lib/sockets.c: Likewise.
43932         * lib/stdio-read.c: Likewise.
43933         * lib/stdio-write.c: Likewise.
43934         * lib/write.c: Likewise.
43935         * lib/w32sock.h: Likewise.
43936         * lib/w32spawn.h: Likewise.
43937         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
43938         * lib/fsync.c: Likewise.
43939         * lib/isapipe.c: Likewise.
43940         * modules/dup2 (Depends-on): Add msvc-nothrow.
43941         * modules/accept4 (Depends-on): Likewise.
43942         * modules/error (Depends-on): Likewise.
43943         * modules/fcntl (Depends-on): Likewise.
43944         * modules/lseek (Depends-on): Likewise.
43945         * modules/nonblocking (Depends-on): Likewise.
43946         * modules/poll (Depends-on): Likewise.
43947         * modules/read (Depends-on): Likewise.
43948         * modules/select (Depends-on): Likewise.
43949         * modules/sockets (Depends-on): Likewise.
43950         * modules/sigpipe (Depends-on): Likewise.
43951         * modules/write (Depends-on): Likewise.
43952         * modules/accept (Depends-on): Likewise.
43953         * modules/bind (Depends-on): Likewise.
43954         * modules/connect (Depends-on): Likewise.
43955         * modules/gethostname (Depends-on): Likewise.
43956         * modules/getpeername (Depends-on): Likewise.
43957         * modules/getsockname (Depends-on): Likewise.
43958         * modules/getsockopt (Depends-on): Likewise.
43959         * modules/ioctl (Depends-on): Likewise.
43960         * modules/listen (Depends-on): Likewise.
43961         * modules/recv (Depends-on): Likewise.
43962         * modules/recvfrom (Depends-on): Likewise.
43963         * modules/send (Depends-on): Likewise.
43964         * modules/sendto (Depends-on): Likewise.
43965         * modules/setsockopt (Depends-on): Likewise.
43966         * modules/shutdown (Depends-on): Likewise.
43967         * modules/socket (Depends-on): Likewise.
43968         * modules/execute (Depends-on): Likewise.
43969         * modules/spawn-pipe (Depends-on): Likewise.
43970         * modules/flock (Depends-on): Likewise.
43971         * modules/fsync (Depends-on): Likewise.
43972         * modules/isapipe (Depends-on): Likewise.
43973         * tests/test-cloexec.c: Include msvc-nothrow.h.
43974         * tests/test-dup-safer.c: Likewise.
43975         * tests/test-dup2.c: Likewise.
43976         * tests/test-dup3.c: Likewise.
43977         * tests/test-fcntl.c: Likewise.
43978         * tests/test-pipe.c: Likewise.
43979         * tests/test-pipe2.c: Likewise.
43980         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
43981         * modules/unistd-safer-tests (Depends-on): Likewise.
43982         * modules/dup2-tests (Depends-on): Likewise.
43983         * modules/dup3-tests (Depends-on): Likewise.
43984         * modules/fcntl-tests (Depends-on): Likewise.
43985         * modules/pipe-posix-tests (Depends-on): Likewise.
43986         * modules/pipe2-tests (Depends-on): Likewise.
43988 2011-09-23  Bruno Haible  <bruno@clisp.org>
43990         dup2: Make code more maintainable.
43991         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
43992         (rpl_dup2): Use it.
43993         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
43994         * modules/dup2 (configure.ac): Invoke it.
43995         Reported by Paul Eggert.
43997 2011-09-23  Bruno Haible  <bruno@clisp.org>
43999         msvc-inval: Fix compilation error.
44000         * lib/msvc-inval.h: Include <excpt.h>.
44002 2011-09-23  Bruno Haible  <bruno@clisp.org>
44004         mkdir: Tweak for MSVC 9.
44005         * lib/sys_stat.in.h: Update comments.
44006         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
44008         Tests for module 'chdir'.
44009         * modules/chdir-tests: New file.
44010         * tests/test-chdir.c: New file.
44012         New module 'chdir'.
44013         * modules/chdir: New file.
44014         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
44015         (chdir): New declaration.
44016         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
44017         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
44018         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
44019         * tests/test-unistd-c++.cc: Check signature of chdir.
44020         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
44021         * modules/chdir-long (Depends-on): Add chdir.
44022         * modules/fchdir (Depends-on): Likewise.
44023         * modules/rename (Depends-on): Likewise.
44024         * modules/savewd (Depends-on): Likewise.
44026         rmdir: Support for mingw, MSVC 9.
44027         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
44028         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
44030         getcwd: Tweak for MSVC 9.
44031         * lib/unistd.in.h: Update comments.
44032         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
44034 2011-09-22  Bruno Haible  <bruno@clisp.org>
44036         strerror_r-posix: Avoid a link error on MSVC.
44037         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
44038         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
44040 2011-09-22  Bruno Haible  <bruno@clisp.org>
44042         select: Avoid link errors on MSVC.
44043         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
44044         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
44045         * modules/pselect (Link): Likewise.
44046         * NEWS: Mention the change.
44047         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
44048         test-select-stdin against $(LIB_SELECT).
44049         * modules/pselect-tests (Makefile.am): Link test-pselect against
44050         $(LIB_SELECT).
44052 2011-09-22  Bruno Haible  <bruno@clisp.org>
44054         select: Avoid compilation error on MSVC.
44055         * lib/select.c: Don't include <stdbool.h>.
44057 2011-09-21  Bruno Haible  <bruno@clisp.org>
44059         Consolidate all uses of PATH_MAX in *.m4 files.
44060         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
44061         macros.
44062         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
44063         and gl_PATHMAX_SNIPPET.
44064         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44065         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44066         * modules/chdir-long (Files): Add m4/pathmax.m4.
44067         * modules/getcwd (Files): Likewise.
44069 2011-09-21  Bruno Haible  <bruno@clisp.org>
44071         ftruncate: Un-deprecate, concentrate on Win32 support.
44072         * modules/ftruncate (Status, Notice): Remove sections.
44073         (Depends-on): Add largefile.
44074         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
44075         non-mingw platforms.
44076         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
44077         include <io.h>.
44078         * modules/perror-tests (Depends-on): Add ftruncate.
44079         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
44080         'ftruncate' module.
44082 2011-09-21  Bruno Haible  <bruno@clisp.org>
44084         Add dependencies to new dirent related modules.
44085         * modules/opendir (Depends-on): Add closedir.
44086         * modules/getcwd (Depends-on): Add opendir, closedir.
44087         * modules/dirent-safer-tests (Depends-on): Likewise.
44088         * modules/fdopendir-tests (Depends-on): Likewise.
44089         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
44090         * modules/renameat-tests (Depends-on): Likewise.
44092 2011-09-21  Bruno Haible  <bruno@clisp.org>
44094         opendir: Avoid compilation error on mingw.
44095         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
44096         * modules/opendir (Depends-on): Add unistd.
44098 2011-09-21  Bruno Haible  <bruno@clisp.org>
44100         ftruncate tests: Avoid a test failure on mingw.
44101         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
44103 2011-09-21  Bruno Haible  <bruno@clisp.org>
44105         select tests: Avoid test failures on OSF/1 5.1 and mingw.
44106         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
44107         native Windows.
44109 2011-09-21  Bruno Haible  <bruno@clisp.org>
44111         New module 'fdopen'.
44112         * lib/stdio.in.h (fdopen): New declaration.
44113         * lib/fdopen.c: New file.
44114         * m4/fdopen.m4: New file.
44115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
44116         REPLACE_FDOPEN.
44117         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
44118         REPLACE_FDOPEN.
44119         * modules/fdopen: New file.
44120         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
44121         * tests/test-stdio-c++.cc: Check signature of fdopen.
44122         * doc/posix-functions/fdopen.texi: Mention the new module.
44124 2011-09-21  Bruno Haible  <bruno@clisp.org>
44126         unlockpt tests: Avoid test failure on NetBSD 5.1.
44127         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
44128         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
44130 2011-09-21  Bruno Haible  <bruno@clisp.org>
44132         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
44133         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
44134         * tests/test-getlogin_r.c (main): Likewise.
44136 2011-09-20  Bruno Haible  <bruno@clisp.org>
44138         time tests: Don't require pid_t.
44139         * doc/posix-headers/time.texi: Revert last change.
44140         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
44141         * tests/test-time.c: Comment out the check for pid_t.
44143 2011-09-20  Bruno Haible  <bruno@clisp.org>
44145         fsync tests: Avoid a test failure on mingw.
44146         * tests/test-fsync.c (main): Allow a failure with EIO.
44148 2011-09-20  Bruno Haible  <bruno@clisp.org>
44150         euidaccess: Update comments.
44151         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
44153 2011-09-20  Bruno Haible  <bruno@clisp.org>
44155         Ensure EBADF returns for socket functions on mingw.
44156         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
44157         descriptor is invalid.
44158         * lib/bind.c (rpl_bind): Likewise.
44159         * lib/connect.c (rpl_connect): Likewise.
44160         * lib/getpeername.c (rpl_getpeername): Likewise.
44161         * lib/getsockname.c (rpl_getsockname): Likewise.
44162         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44163         * lib/listen.c (rpl_listen): Likewise.
44164         * lib/recv.c (rpl_recv): Likewise.
44165         * lib/recvfrom.c (rpl_recvfrom): Likewise.
44166         * lib/send.c (rpl_send): Likewise.
44167         * lib/sendto.c (rpl_sendto): Likewise.
44168         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44169         * lib/shutdown.c (rpl_shutdown): Likewise.
44171 2011-09-20  Bruno Haible  <bruno@clisp.org>
44173         select tests: EBADF tests.
44174         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
44175         test_bad_fd): New functions.
44176         (test_function): Invoke also test_bad_fd.
44178 2011-09-20  Bruno Haible  <bruno@clisp.org>
44180         Tests for module 'posix_spawn_file_actions_addopen.
44181         * modules/posix_spawn_file_actions_addopen-tests: New file.
44182         * tests/test-posix_spawn_file_actions_addopen.c: New file.
44184         Tests for module 'posix_spawn_file_actions_adddup2'.
44185         * modules/posix_spawn_file_actions_adddup2-tests: New file.
44186         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
44188         Tests for module 'posix_spawn_file_actions_addclose'.
44189         * modules/posix_spawn_file_actions_addclose-tests: New file.
44190         * tests/test-posix_spawn_file_actions_addclose.c: New file.
44192 2011-09-20  Bruno Haible  <bruno@clisp.org>
44194         Tests for module 'unlockpt'.
44195         * modules/unlockpt-tests: New file.
44196         * tests/test-unlockpt.c: New file.
44197         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
44199         Tests for module 'grantpt'.
44200         * modules/grantpt-tests: New file.
44201         * tests/test-grantpt.c: New file.
44202         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
44204 2011-09-20  Bruno Haible  <bruno@clisp.org>
44206         freopen tests: EBADF tests.
44207         * tests/test-freopen.c: Include errno.h, unistd.h.
44208         (main): Add tests for EBADF, commented out for the moment.
44210         fclose tests: EBADF tests.
44211         * tests/test-fclose.c (main): Add tests for EBADF.
44213         fflush tests: EBADF tests.
44214         * tests/test-fflush.c: Include errno.h, macros.h.
44215         (main): Add tests for EBADF.
44217         ftello tests: EBADF tests.
44218         * tests/test-ftello4.sh: New file.
44219         * tests/test-ftello4.c: New file.
44220         * modules/ftello-tests (Files): Add them.
44221         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
44223         fseeko tests: EBADF tests.
44224         * tests/test-fseeko4.sh: New file.
44225         * tests/test-fseeko4.c: New file.
44226         * modules/fseeko-tests (Files): Add them.
44227         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
44229         Tests for function fputc().
44230         * modules/fputc-tests: New file.
44231         * tests/test-fputc.c: New file.
44232         * modules/stdio-tests (Depends-on): Add fputc-tests.
44234         Tests for function fgetc().
44235         * modules/fgetc-tests: New file.
44236         * tests/test-fgetc.c: New file.
44237         * modules/stdio-tests (Depends-on): Add fgetc-tests.
44239         Tests for function fdopen().
44240         * modules/fdopen-tests: New file.
44241         * tests/test-fdopen.c: New file.
44242         * modules/stdio-tests (Depends-on): Add fdopen-tests.
44244         Tests for module 'vdprintf'.
44245         * modules/vdprintf-tests: New file.
44246         * tests/test-vdprintf.c: New file.
44248         Tests for module 'dprintf'.
44249         * modules/dprintf-tests: New file.
44250         * tests/test-dprintf.c: New file.
44252 2011-09-20  Bruno Haible  <bruno@clisp.org>
44254         Tests for module 'ioctl'.
44255         * modules/ioctl-tests: New file.
44256         * tests/test-ioctl.c: New file.
44258 2011-09-20  Bruno Haible  <bruno@clisp.org>
44260         fcntl tests: EBADF tests.
44261         * tests/test-fcntl.c (main): Add more tests for EBADF.
44263 2011-09-20  Bruno Haible  <bruno@clisp.org>
44265         utimensat tests: EBADF tests.
44266         * tests/test-utimensat.c (main): Add tests for EBADF.
44268         renameat tests: EBADF tests.
44269         * tests/test-renameat.c (main): Add tests for EBADF.
44271         mkfifoat tests: EBADF tests.
44272         * tests/test-mkfifoat.c (main): Add tests for EBADF.
44274         readlinkat tests: EBADF tests.
44275         * tests/test-readlinkat.c (main): Add tests for EBADF.
44277         symlinkat tests: EBADF tests.
44278         * tests/test-symlinkat.c (main): Add tests for EBADF.
44280         linkat tests: EBADF tests.
44281         * tests/test-linkat.c (main): Add tests for EBADF.
44283         Tests for module 'faccessat'.
44284         * modules/faccessat-tests: New file.
44285         * tests/test-faccessat.c: New file.
44287         fdopendir tests: EBADF tests.
44288         * tests/test-fdopendir.c (main): Add more tests for EBADF.
44290         openat tests: EBADF tests.
44291         * tests/test-fchownat.c (main): Add tests for EBADF.
44292         * tests/test-fstatat.c (main): Likewise.
44293         * tests/test-mkdirat.c (main): Likewise.
44294         * tests/test-openat.c (main): Likewise.
44295         * tests/test-unlinkat.c (main): Likewise.
44296         * tests/test-fchmodat.c: New file.
44297         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
44298         (Makefile.am): Also run 'test-fchmodat'.
44300 2011-09-20  Bruno Haible  <bruno@clisp.org>
44302         utimens, futimens, fdutimensat tests: EBADF tests.
44303         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
44305         Tests for function fstat().
44306         * modules/fstat-tests: New file.
44307         * tests/test-fstat.c: New file.
44308         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
44310 2011-09-20  Bruno Haible  <bruno@clisp.org>
44312         test-ttyname_r tests: EBADF tests.
44313         * tests/test-ttyname_r.c (main): Add tests for EBADF.
44315         Tests for module 'isatty'.
44316         * modules/isatty-tests: New file.
44317         * tests/test-isatty.c: New file.
44319         Tests for module 'write'.
44320         * modules/write-tests: New file.
44321         * tests/test-write.c: New file.
44323         Tests for module 'read'.
44324         * modules/read-tests: New file.
44325         * tests/test-read.c: New file.
44327         pwrite tests: EBADF tests.
44328         * tests/test-pwrite.c (main): Add tests for EBADF.
44330         pread tests: EBADF tests.
44331         * tests/test-pread.c (main): Add tests for EBADF.
44333         lseek tests: EBADF tests.
44334         * tests/test-lseek.c (main): Add more tests for EBADF.
44336         Tests for module 'ftruncate'.
44337         * modules/ftruncate-tests: New file.
44338         * tests/test-ftruncate.sh: New file.
44339         * tests/test-ftruncate.c: New file.
44341         fsync tests: EBADF tests.
44342         * tests/test-fsync.c (main): Add more tests for EBADF.
44344         fdatasync tests: EBADF tests.
44345         * tests/test-fdatasync.c (main): Add more tests for EBADF.
44347         Tests for module 'fchown'.
44348         * modules/fchown-tests: New file.
44349         * tests/test-fchown.c: New file.
44351         Tests for module 'fchmod'.
44352         * modules/fchmod-tests: New file.
44353         * tests/test-fchmod.c: New file.
44355         fchdir tests: EBADF tests.
44356         * tests/test-fchdir.c (main): Add more tests for EBADF.
44358         dup2 tests: EBADF tests.
44359         * tests/test-dup2.c (main): Add more tests for EBADF.
44361         Tests for module 'dup'.
44362         * modules/dup-tests: New file.
44363         * tests/test-dup.c: New file.
44365         Tests for module 'close'.
44366         * modules/close-tests: New file.
44367         * tests/test-close.c: New file.
44369 2011-09-20  Bruno Haible  <bruno@clisp.org>
44371         Tests for module 'shutdown'.
44372         * modules/shutdown-tests: New file.
44373         * tests/test-shutdown.c: New file.
44375         Tests for module 'setsockopt'.
44376         * modules/setsockopt-tests: New file.
44377         * tests/test-setsockopt.c: New file.
44379         Tests for module 'sendto'.
44380         * modules/sendto-tests: New file.
44381         * tests/test-sendto.c: New file.
44383         Tests for module 'send'.
44384         * modules/send-tests: New file.
44385         * tests/test-send.c: New file.
44387         Tests for module 'recvfrom'.
44388         * modules/recvfrom-tests: New file.
44389         * tests/test-recvfrom.c: New file.
44391         Tests for module 'recv'.
44392         * modules/recv-tests: New file.
44393         * tests/test-recv.c: New file.
44395         Tests for module 'listen'.
44396         * modules/listen-tests: New file.
44397         * tests/test-listen.c: New file.
44399         Tests for module 'getsockopt'.
44400         * modules/getsockopt-tests: New file.
44401         * tests/test-getsockopt.c: New file.
44403         Tests for module 'getsockname'.
44404         * modules/getsockname-tests: New file.
44405         * tests/test-getsockname.c: New file.
44407         Tests for module 'getpeername'.
44408         * modules/getpeername-tests: New file.
44409         * tests/test-getpeername.c: New file.
44411         Tests for module 'connect'.
44412         * modules/connect-tests: New file.
44413         * tests/test-connect.c: New file.
44415         Tests for module 'bind'.
44416         * modules/bind-tests: New file.
44417         * tests/test-bind.c: New file.
44419         accept4 tests: Fix for native Windows.
44420         * tests/test-accept4.c: Include sockets.h.
44421         (main): Invoke gl_sockets_startup.
44422         * modules/accept4-tests (Depends-on): Add sockets.
44424         accept tests: Fix for native Windows.
44425         * tests/test-accept.c: Include sockets.h.
44426         (main): Invoke gl_sockets_startup.
44427         * modules/accept-tests (Depends-on): Add sockets.
44429 2011-09-19  Bruno Haible  <bruno@clisp.org>
44431         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
44432         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
44433         do...while(0).
44434         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
44435         Suggested by Paul Eggert.
44437 2011-09-19  Bruno Haible  <bruno@clisp.org>
44439         sched: Ensure pid_t is defined.
44440         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
44441         not define pid_t.
44442         * lib/sched.in.h: Include <sys/types.h>.
44443         * doc/posix-headers/sched.texi: Mention the pid_t problem.
44444         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44446 2011-09-19  Bruno Haible  <bruno@clisp.org>
44448         msvc-inval: Ensure the entire expansion is a single statement.
44449         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
44450         of braces.
44452 2011-09-19  Jim Meyering  <meyering@redhat.com>
44454         tests: use printf, not echo in init.sh's warn_ function
44455         * tests/init.sh (warn_): Use printf, not echo.  The latter would
44456         misbehave when given strings containing a backslash or starting
44457         with e.g., -n.  James Youngman suggested setting IFS.
44459 2011-09-19  Eric Blake  <eblake@redhat.com>
44461         futimens: enhance test
44462         * tests/test-futimens.h (test_futimens): Also check for EBADF on
44463         closed non-negative fd.
44465         date: accept 'hence' as opposite of 'ago'
44466         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
44467         * tests/test-parse-datetime.c (main): Enhance test.
44468         Suggested by Jesse Wilson.
44470 2011-09-19  Jim Meyering  <meyering@redhat.com>
44472         getcwd: don't fail in a deep directory on a system without openat
44473         Before this change, getcwd would fail when called from a directory
44474         of depth PATH_MAX / 3 or greater.  That was due to the fact that
44475         the non-openat implementation used "..", "../..", "../../..", etc.
44476         to access ancestor directories.  With too many, that string would
44477         be longer than PATH_MAX.
44478         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
44479         using gnulib's openat replacement.
44480         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
44481         we're using the replacement function.
44483 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
44485         maint.mk: avoid warnings from perl about missing files
44486         * top/maint.mk (def_sym_regex): Ignore files listed in
44487         $(gl_other_headers_) that do not exist, say because a project
44488         does not use a corresponding module.
44490 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44492         stat: use pathmax.h only if needed
44493         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
44494         This is better for Emacs, which does not have a mingw port and
44495         therefore can avoid the pathmax module.
44497         utimens: remove dependency on dup2
44498         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
44499         to work around the Linux kernel bug.
44500         * modules/utimens (Depends-on): Remove dup2.
44502 2011-09-18  Bruno Haible  <bruno@clisp.org>
44504         inet_ntop, inet_pton: Look for it also in libresolv.
44505         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
44506         libnsl, search for it in libresolv.
44507         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44508         Needed on Solaris 7.
44510 2011-09-18  Bruno Haible  <bruno@clisp.org>
44512         accept, accept4 tests: Avoid link error on Solaris.
44513         * modules/accept-tests (Makefile.am): Link test-accept against
44514         $(LIBSOCKET).
44515         * modules/accept4-tests (Makefile.am): Link test-accept4 against
44516         $(LIBSOCKET).
44518         accept4: Avoid link error on Solaris.
44519         * modules/accept4 (Link): New section.
44521         socket functions: Avoid link errors on Solaris.
44522         * modules/accept (Depends-on): Add socketlib.
44523         (Link): New section.
44524         * modules/bind (Depends-on): Add socketlib.
44525         (Link): New section.
44526         * modules/connect (Depends-on): Add socketlib.
44527         (Link): New section.
44528         * modules/getpeername (Depends-on): Add socketlib.
44529         (Link): New section.
44530         * modules/getsockname (Depends-on): Add socketlib.
44531         (Link): New section.
44532         * modules/getsockopt (Depends-on): Add socketlib.
44533         (Link): New section.
44534         * modules/listen (Depends-on): Add socketlib.
44535         (Link): New section.
44536         * modules/recv (Depends-on): Add socketlib.
44537         (Link): New section.
44538         * modules/recvfrom (Depends-on): Add socketlib.
44539         (Link): New section.
44540         * modules/send (Depends-on): Add socketlib.
44541         (Link): New section.
44542         * modules/sendto (Depends-on): Add socketlib.
44543         (Link): New section.
44544         * modules/setsockopt (Depends-on): Add socketlib.
44545         (Link): New section.
44546         * modules/shutdown (Depends-on): Add socketlib.
44547         (Link): New section.
44548         * modules/socket (Depends-on): Add socketlib.
44549         (Link): New section.
44551 2011-09-18  Bruno Haible  <bruno@clisp.org>
44553         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
44554         * tests/test-ptsname.c (main): Terminate the test if it takes longer
44555         than 5 seconds.
44556         * modules/ptsname-tests (configure.ac): Test for alarm.
44558 2011-09-18  Bruno Haible  <bruno@clisp.org>
44560         posix_spawn_file_actions_add*: Fix module dependencies.
44561         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
44562         posix_spawn_file_actions_init.
44563         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
44564         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
44566 2011-09-18  Bruno Haible  <bruno@clisp.org>
44568         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
44569         * tests/test-rename.h (test_rename): Allow error code EEXIST.
44570         * tests/test-renameat.c (main): Likewise.
44572 2011-09-18  Bruno Haible  <bruno@clisp.org>
44574         Tests for module 'accept4'.
44575         * modules/accept4-tests: New file.
44576         * tests/test-accept4.c: New file.
44578 2011-09-18  Bruno Haible  <bruno@clisp.org>
44580         Tests for module 'accept'.
44581         * modules/accept-tests: New file.
44582         * tests/test-accept.c: New file.
44584 2011-09-18  Bruno Haible  <bruno@clisp.org>
44586         dup2: Support for MSVC.
44587         * lib/dup2.c: Include msvc-inval.h.
44588         (rpl_dup2): Handle invalid parameter notifications during dup2 and
44589         _get_osfhandle calls.
44590         * modules/dup2 (Depends-on): Add msvc-inval.
44591         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
44593         New module 'msvc-inval'.
44594         * lib/msvc-inval.h: New file.
44595         * lib/msvc-inval.c: New file.
44596         * m4/msvc-inval.m4: New file.
44597         * modules/msvc-inval: New file.
44599 2011-09-17  Bruno Haible  <bruno@clisp.org>
44601         Tests for module 'pclose'.
44602         * modules/pclose-tests: New file.
44604         New module 'pclose'.
44605         * lib/stdio.in.h (pclose): New declaration.
44606         * lib/pclose.c: New file.
44607         * m4/pclose.m4: New file.
44608         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
44609         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
44610         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
44611         * modules/pclose: New file.
44612         * modules/popen-tests (Depends-on): Add pclose.
44613         * modules/popen-safer-tests (Depends-on): Likewise.
44614         * doc/posix-functions/pclose.texi: Mention the new module.
44616 2011-09-17  Bruno Haible  <bruno@clisp.org>
44618         popen: Support for MSVC.
44619         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
44620         * lib/popen.c (popen): Provide alternate definition for native Windows.
44621         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
44622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
44623         * modules/popen (Depends-on, configure.ac): Update condition.
44624         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
44625         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
44626         fixed.
44628 2011-09-17  Bruno Haible  <bruno@clisp.org>
44630         isnanl, isnand, isnanf: Work around MSVC bug.
44631         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
44633 2011-09-17  Bruno Haible  <bruno@clisp.org>
44635         sys_socket tests: Fix recent mistake.
44636         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
44638 2011-09-17  Bruno Haible  <bruno@clisp.org>
44640         putenv: Support for MSVC.
44641         * modules/putenv (Depends-on): Add environ.
44642         * lib/putenv.c (environ): Disable declaration.
44643         * lib/unistd.in.h: Update comment.
44645 2011-09-17  Bruno Haible  <bruno@clisp.org>
44647         math: Avoid macro redefinition warnings on MSVC.
44648         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
44649         Undefine before redefining.
44651 2011-09-17  Bruno Haible  <bruno@clisp.org>
44653         doc: Mention functions which are declared as macros.
44654         * doc/posix-functions/*[fl].texi: Mention that some functions are
44655         defined as macros with arguments only.
44657 2011-09-17  Bruno Haible  <bruno@clisp.org>
44659         Add dependencies to new dirent related modules.
44660         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
44661         * modules/fts (Depends-on): Likewise.
44662         * modules/glob (Depends-on): Likewise.
44663         * modules/savedir (Depends-on): Likewise.
44664         * modules/scandir (Depends-on): Likewise.
44665         * modules/dirent-safer (Depends-on): Add opendir, closedir.
44666         * modules/fdopendir (Depends-on): Add opendir.
44668 2011-09-17  Bruno Haible  <bruno@clisp.org>
44670         inet_pton: Support for MSVC on Windows Vista or newer.
44671         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
44672         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
44673         HAVE_DECL_INET_PTON is defined.
44674         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44675         On platforms with <winsock2.h>, test whether inet_pton is declared in
44676         <ws2tcpip.h>. If so, arrange to replace it.
44677         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44678         REPLACE_INET_PTON.
44679         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
44680         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
44681         (Depends-on, configure.ac): Update condition.
44682         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
44684 2011-09-17  Bruno Haible  <bruno@clisp.org>
44686         inet_ntop: Support for MSVC on Windows Vista or newer.
44687         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
44688         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
44689         HAVE_DECL_INET_NTOP is defined.
44690         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
44691         On platforms with <winsock2.h>, test whether inet_ntop is declared in
44692         <ws2tcpip.h>. If so, arrange to replace it.
44693         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
44694         REPLACE_INET_NTOP.
44695         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
44696         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
44697         (Depends-on, configure.ac): Update condition.
44698         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
44700 2011-09-16  Eric Blake  <eblake@redhat.com>
44702         test-fsync: yet another enhancement
44703         * tests/test-fsync.c (main): Also test behavior on read-only text
44704         file.
44706 2011-09-16  Bruno Haible  <bruno@clisp.org>
44708         Enhance fsync, fdatasync tests.
44709         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
44710         * tests/test-fdatasync.c (main): Likewise.
44712 2011-09-16  Bruno Haible  <bruno@clisp.org>
44714         Support for MSVC compiler: Ensure mode_t gets defined.
44715         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
44716         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
44718         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
44719         * tests/test-fcntl-h.c: Check that mode_t is defined.
44720         * tests/test-sys_stat.c: Likewise.
44721         * tests/test-sys_types.c: Likewise.
44722         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
44723         * doc/posix-headers/sys_stat.texi: Likewise.
44724         * doc/posix-headers/sys_types.texi: Likewise.
44726 2011-09-16  Bruno Haible  <bruno@clisp.org>
44728         sys_stat: Support for MSVC.
44729         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
44730         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
44731         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
44732         MSVC.
44734 2011-09-16  Bruno Haible  <bruno@clisp.org>
44736         Support for MSVC compiler: Ensure off_t gets defined.
44737         * lib/unistd.in.h: Include <sys/types.h>.
44738         * tests/test-fcntl-h.c: Check that off_t is defined.
44739         * tests/test-sys_stat.c: Likewise.
44740         * tests/test-sys_types.c: Likewise.
44742 2011-09-16  Eric Blake  <eblake@redhat.com>
44744         fdatasync: port to Solaris
44745         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
44746         * modules/fdatasync (Link): Document it.
44747         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
44749         fdatasync: port to MacOS X 10.7
44750         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
44751         declared.
44752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
44753         * modules/unistd (Makefile.am): Substitute it.
44754         * lib/unistd.in.h (fdatasync): Declare on MacOS.
44755         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
44757         fdatasync: minor improvements
44758         * modules/fdatasync (Depends-on): Add condition for fsync.
44759         * lib/fdatasync.c (fdatasync): Add comment.
44760         * tests/test-unistd-c++.cc: Test fdatasync.
44762         unistd: update refs to newer POSIX
44763         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
44764         Suggested by Bruno Haible.
44766         fdatasync: new module
44767         * modules/fsync (Description): Document difference to fdatasync.
44768         * modules/fdatasync: New module.
44769         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
44770         * lib/fdatasync.c (fdatasync): Likewise.
44771         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
44772         defaults.
44773         * modules/unistd (Makefile.am): Set witnesses.
44774         * lib/unistd.in.h (fdatasync): Declare.
44775         * MODULES.html.sh: Document it.
44776         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
44777         * modules/fdatasync-tests: New test.
44778         * tests/test-fdatasync.c: Likewise.
44780 2011-09-16  Eric Blake  <eblake@redhat.com>
44782         test-fsync: enhance tests
44783         * modules/fsync-tests (Depends-on): Add errno, for mingw.
44784         * tests/test-fsync.c (main): Enhance test.
44786 2011-09-15  Bruno Haible  <bruno@clisp.org>
44788         Support for MSVC compiler: Ensure ssize_t gets defined.
44789         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
44790         * doc/posix-headers/stdio.texi: Likewise.
44791         * modules/stdio (Depends-on): Add ssize_t.
44792         * modules/sys_socket (Depends-on): Likewise.
44793         * modules/sys_types (Depends-on): Likewise.
44794         * modules/sys_uio (Depends-on): Likewise.
44795         * modules/unistd (Depends-on): Likewise.
44796         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
44797         * tests/test-sys_types.c: Check that ssize_t is defined.
44799 2011-09-14  Bruno Haible  <bruno@clisp.org>
44801         Avoid using #, the m4 comment starter character, near brackets.
44802         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
44803         delimiter character in sed expressions.
44804         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
44805         Suggested by Eric Blake.
44807         Properly quote AC_CHECK_DECLS' 4th argument.
44808         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
44809         argument.
44810         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44811         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
44812         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44813         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
44814         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44815         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
44816         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
44817         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
44818         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
44819         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44820         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
44821         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
44822         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44823         * m4/isinf.m4 (gl_ISINF): Likewise.
44824         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
44825         * m4/readutmp.m4 (gl_READUTMP): Likewise.
44826         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44827         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44828         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44829         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
44830         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
44831         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44832         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
44833         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
44834         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
44835         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
44836         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
44837         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44839         Reported by Eric Blake.
44841         Properly quote AC_CHECK_DECL's 4th argument.
44842         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
44843         argument.
44844         * m4/argp.m4 (gl_ARGP): Likewise.
44845         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
44846         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
44847         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
44848         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
44849         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
44850         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
44851         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
44852         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
44853         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
44854         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
44855         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
44856         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
44857         Reported by Eric Blake.
44859 2011-09-14  Eric Blake  <eblake@redhat.com>
44861         opendir: avoid compile warning
44862         * lib/opendir.c (includes): Always include errno.h.
44863         Reported by Tatsuro MATSUOKA.
44865 2011-09-14  Jim Meyering  <meyering@redhat.com>
44867         maint.mk: sc_tight_scope: propagate failure from sub-make
44868         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
44869         Reported by Martin von Gagern.
44871 2011-09-13  Bruno Haible  <bruno@clisp.org>
44873         tempname: Support for MSVC.
44874         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
44875         MSVC.
44876         * modules/tempname (Depends-on): Add fcntl-h.
44878 2011-09-13  Bruno Haible  <bruno@clisp.org>
44880         sys_time: Support for MSVC.
44881         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
44882         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
44883         include <winsock2.h>.
44884         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
44885         function declarations that collide with POSIX.
44886         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
44887         (Makefile.am): Substitute HAVE_WINSOCK2_H.
44889 2011-09-13  Bruno Haible  <bruno@clisp.org>
44891         stat: Support for MSVC.
44892         * lib/stat.c: Include pathmax.h.
44893         * modules/stat (Depends-on): Add pathmax.
44895         pathmax: Support for native Windows.
44896         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
44898 2011-09-12  Bruno Haible  <bruno@clisp.org>
44900         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
44901         * lib/dirent.in.h (struct dirent): New type.
44902         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
44903         DT_WHT): New macros.
44904         (DIR): New type.
44905         (opendir, closedir): Declare only if the module 'opendir' is enabled.
44906         (readdir, rewinddir): New declarations.
44907         * lib/dirent-private.h: New file.
44908         * lib/opendir.c: New file.
44909         * lib/readdir.c: New file.
44910         * lib/rewinddir.c: New file.
44911         * lib/closedir.c: New file.
44912         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
44913         * m4/opendir.m4: New file.
44914         * m4/readdir.m4: New file.
44915         * m4/rewinddir.m4: New file.
44916         * m4/closedir.m4: New file.
44917         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
44918         REPLACE_CLOSEDIR here.
44919         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
44920         readdir, rewinddir are declared.
44921         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
44922         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
44923         HAVE_REWINDDIR, HAVE_CLOSEDIR.
44924         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
44925         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
44926         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
44927         * modules/opendir: New file.
44928         * modules/readdir: New file.
44929         * modules/rewinddir: New file.
44930         * modules/closedir: New file.
44931         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
44932         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
44933         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
44934         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
44935         * NEWS: Mention the 'fchdir' change.
44937 2011-09-11  Bruno Haible  <bruno@clisp.org>
44939         asm-underscore.m4: Support for MSVC.
44940         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
44941         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
44943 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
44945         Doc about crypt functions.
44946         * doc/posix-functions/crypt.texi: Expand range of glibc versions
44947         needing for _GNU_SOURCE to get crypt.
44948         * doc/posix-functions/encrypt.texi: Likewise.
44949         * doc/posix-functions/setkey.texi: Likewise.
44951 2011-09-11  Bruno Haible  <bruno@clisp.org>
44953         doc: Update regarding MSVC 9.
44954         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
44955         tested".
44956         * doc/posix-functions/*.texi: Update with info about MSVC 9.
44957         * doc/posix-headers/*.texi: Likewise.
44958         * doc/pastposix-functions/*.texi: Likewise.
44959         * doc/glibc-functions/*.texi: Likewise.
44960         * doc/glibc-headers/*.texi: Likewise.
44962 2011-09-11  Bruno Haible  <bruno@clisp.org>
44964         unistd et al.: Don't assume <unistd.h> exists.
44965         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
44966         does not exist.
44967         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
44968         exist. But include <stdlib.h>.
44969         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
44970         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
44971         symlink() does not exist.
44972         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
44973         include <io.h> instead.
44974         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
44975         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
44976         include <direct.h> instead.
44977         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
44978         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44979         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
44980         <io.h> instead.
44981         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
44982         correctly if the system does not have hard links.
44983         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
44984         <direct.h> instead.
44985         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
44986         it when looking for function declarations.
44987         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
44988         <direct.h> and <io.h> instead.
44989         * doc/posix-headers/unistd.texi: More details about MSVC problem.
44991 2011-09-11  Bruno Haible  <bruno@clisp.org>
44993         strcase: Support for MSVC.
44994         * modules/strcase (Status, Notice): Remove obsoletion mark.
44995         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
44996         * doc/posix-functions/strncasecmp.texi: Likewise.
44998         strings: Don't assume <strings.h> exists.
44999         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
45000         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
45001         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
45002         * doc/posix-headers/strings.texi: Mention the MSVC problem.
45004 2011-09-11  Bruno Haible  <bruno@clisp.org>
45006         dirent: Don't assume <dirent.h> exists.
45007         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
45008         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
45009         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
45010         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
45012 2011-09-11  Bruno Haible  <bruno@clisp.org>
45014         Fix wint_t on MSVC.
45015         * lib/wchar.in.h (wint_t): On MSVC, override it.
45016         * lib/wctype.in.h (wint_t): Likewise.
45017         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
45018         MSVC.
45019         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
45020         * doc/posix-headers/wctype.texi: Likewise.
45022 2011-09-11  Bruno Haible  <bruno@clisp.org>
45024         sys_types: Fix typo.
45025         * lib/sys_types.in.h: Fix typo in comment.
45026         Reported by Paul Eggert.
45028         Support for MSVC compiler: Ensure size_t gets defined.
45029         * modules/strings (Depends-on): Add 'sys_types'.
45030         * modules/sys_uio (Depends-on): Likewise.
45031         * lib/sys_uio.in.h: Update comment.
45033         C++ tests for module 'sys_types'.
45034         * modules/sys_types-c++-tests: New file.
45035         * tests/test-sys_types-c++.cc: New file.
45037         Tests for module 'sys_types'.
45038         * modules/sys_types-tests: New file.
45039         * tests/test-sys_types.c: New file.
45041         New module 'sys_types'.
45042         * lib/sys_types.in.h: New file.
45043         * m4/sys_types_h.m4: New file.
45044         * modules/sys_types: New file.
45045         * doc/posix-headers/sys_types.texi: Mention the new module and the
45046         size_t problem on MSVC 9.
45048 2011-09-11  Bruno Haible  <bruno@clisp.org>
45050         Support for MSVC compiler: Avoid division by a literal 0.
45051         * lib/math.in.h (NAN): Define through a function call also on MSVC.
45052         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
45053         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
45054         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
45055         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
45056         * tests/infinity.h: New file.
45057         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
45058         on MSVC.
45059         * tests/test-ceilf1.c: Include infinity.h.
45060         (main): Use Infinityf.
45061         * tests/test-ceil1.c: Include infinity.h.
45062         (main): Use Infinityd.
45063         * tests/test-ceill.c: Include infinity.h.
45064         (main): Use Infinityl.
45065         * tests/test-dprintf-posix.c: Include infinity.h.
45066         (test_function): Use Infinityd.
45067         * tests/test-floorf1.c: Include infinity.h.
45068         (main): Use Infinityf.
45069         * tests/test-floor1.c: Include infinity.h.
45070         (main): Use Infinityd.
45071         * tests/test-floorl.c: Include infinity.h.
45072         (main): Use Infinityl.
45073         * tests/test-fprintf-posix.c: Include infinity.h.
45074         (test_function): Use Infinityd.
45075         * tests/test-frexp.c: Include infinity.h.
45076         (main): Use Infinityd.
45077         * tests/test-frexpl.c: Include infinity.h.
45078         (main): Use Infinityl.
45079         * tests/test-isfinite.c: Include infinity.h.
45080         (test_isfinitef): Use Infinityf.
45081         (test_isfinited): Use Infinityd.
45082         (test_isfinitel): Use Infinityl.
45083         * tests/test-isinf.c: Include infinity.h.
45084         (test_isinff): Use Infinityf.
45085         (test_isinfd): Use Infinityd.
45086         (test_isinfl): Use Infinityl.
45087         * tests/test-isnan.c: Include infinity.h.
45088         (test_float): Use Infinityf.
45089         (test_double): Use Infinityd.
45090         (test_long_double): Use Infinityl.
45091         * tests/test-isnanf.h: Include infinity.h.
45092         (main): Use Infinityf.
45093         * tests/test-isnand.h: Include infinity.h.
45094         (main): Use Infinityd.
45095         * tests/test-isnanl.h: Include infinity.h.
45096         (main): Use Infinityl.
45097         * tests/test-ldexpl.c: Include infinity.h.
45098         (main): Use Infinityl.
45099         * tests/test-printf-posix.h: Include infinity.h.
45100         (test_function): Use Infinityd.
45101         * tests/test-roundf1.c: Include infinity.h.
45102         (main): Use Infinityf.
45103         * tests/test-round1.c: Include infinity.h.
45104         (main): Use Infinityd.
45105         * tests/test-roundl.c: Include infinity.h.
45106         (main): Use Infinityl.
45107         * tests/test-signbit.c: Include infinity.h.
45108         (test_signbitf): Use Infinityf.
45109         (test_signbitd): Use Infinityd.
45110         (test_signbitl): Use Infinityl.
45111         * tests/test-snprintf-posix.h: Include infinity.h.
45112         (test_function): Use Infinityd, Infinityl.
45113         * tests/test-sprintf-posix.h: Include infinity.h.
45114         (test_function): Use Infinityd, Infinityl.
45115         * tests/test-truncf1.c: Include infinity.h.
45116         (main): Use Infinityf.
45117         * tests/test-trunc1.c: Include infinity.h.
45118         (main): Use Infinityd.
45119         * tests/test-truncl.c: Include infinity.h.
45120         (main): Use Infinityl.
45121         * tests/test-vasnprintf-posix.c: Include infinity.h.
45122         (test_function): Use Infinityd, Infinityl.
45123         * tests/test-vasprintf-posix.c: Include infinity.h.
45124         (test_function): Use Infinityd, Infinityl.
45125         * modules/ceilf-tests (Files): Add tests/infinity.h.
45126         * modules/ceil-tests (Files): Likewise.
45127         * modules/ceill-tests (Files): Likewise.
45128         * modules/dprintf-posix-tests (Files): Likewise.
45129         * modules/floorf-tests (Files): Likewise.
45130         * modules/floor-tests (Files): Likewise.
45131         * modules/floorl-tests (Files): Likewise.
45132         * modules/fprintf-posix-tests (Files): Likewise.
45133         * modules/frexp-tests (Files): Likewise.
45134         * modules/frexp-nolibm-tests (Files): Likewise.
45135         * modules/frexpl-tests (Files): Likewise.
45136         * modules/frexpl-nolibm-tests (Files): Likewise.
45137         * modules/isfinite-tests (Files): Likewise.
45138         * modules/isinf-tests (Files): Likewise.
45139         * modules/isnan-tests (Files): Likewise.
45140         * modules/isnanf-tests (Files): Likewise.
45141         * modules/isnanf-nolibm-tests (Files): Likewise.
45142         * modules/isnand-tests (Files): Likewise.
45143         * modules/isnand-nolibm-tests (Files): Likewise.
45144         * modules/isnanl-tests (Files): Likewise.
45145         * modules/isnanl-nolibm-tests (Files): Likewise.
45146         * modules/ldexpl-tests (Files): Likewise.
45147         * modules/printf-posix-tests (Files): Likewise.
45148         * modules/roundf-tests (Files): Likewise.
45149         * modules/round-tests (Files): Likewise.
45150         * modules/roundl-tests (Files): Likewise.
45151         * modules/signbit-tests (Files): Likewise.
45152         * modules/snprintf-posix-tests (Files): Likewise.
45153         * modules/sprintf-posix-tests (Files): Likewise.
45154         * modules/truncf-tests (Files): Likewise.
45155         * modules/trunc-tests (Files): Likewise.
45156         * modules/truncl-tests (Files): Likewise.
45157         * modules/vasnprintf-posix-tests (Files): Likewise.
45158         * modules/vasprintf-posix-tests (Files): Likewise.
45159         * modules/vdprintf-posix-tests (Files): Likewise.
45160         * modules/vfprintf-posix-tests (Files): Likewise.
45161         * modules/vprintf-posix-tests (Files): Likewise.
45162         * modules/vsnprintf-posix-tests (Files): Likewise.
45163         * modules/vsprintf-posix-tests (Files): Likewise.
45164         * modules/xprintf-posix-tests (Files): Likewise.
45166 2011-09-11  Bruno Haible  <bruno@clisp.org>
45168         Ensure pid_t gets defined.
45169         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
45170         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
45171         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
45172         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45173         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
45174         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
45175         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
45176         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45177         * tests/test-fcntl-h.c: Check that pid_t is defined.
45178         * tests/test-sched.c: Likewise.
45179         * tests/test-termios.c: Likewise.
45180         * tests/test-time.c: Likewise.
45181         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
45182         * doc/posix-headers/signal.texi: Likewise.
45183         * doc/posix-headers/sys_types.texi: Likewise.
45184         * doc/posix-headers/time.texi: Likewise.
45186 2011-09-11  Bruno Haible  <bruno@clisp.org>
45188         acl: Fix compilation on Solaris 10 (older version).
45189         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
45190         of ACE_EVERYONE.
45191         * lib/set-mode-acl.c (qset_acl): Likewise.
45192         Reported by Christian Jullien <eligis@orange.fr>.
45194 2011-09-10  Bruno Haible  <bruno@clisp.org>
45196         iconv, unsetenv: Add support for MSVC compiler.
45197         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
45198         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
45200 2011-09-10  Bruno Haible  <bruno@clisp.org>
45202         *printf: Add support for MSVC compiler.
45203         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
45204         handles the exception caused by the %n directive. When cross-compiling,
45205         guess no on native Windows.
45206         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45207         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
45208         emulate it through vsnprintf.
45209         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
45210         * doc/posix-functions/dprintf.texi: Update documentation regarding
45211         MSVC 9.
45212         * doc/posix-functions/fprintf.texi: Likewise.
45213         * doc/posix-functions/printf.texi: Likewise.
45214         * doc/posix-functions/snprintf.texi: Likewise.
45215         * doc/posix-functions/sprintf.texi: Likewise.
45216         * doc/posix-functions/swprintf.texi: Likewise.
45217         * doc/posix-functions/vdprintf.texi: Likewise.
45218         * doc/posix-functions/vfprintf.texi: Likewise.
45219         * doc/posix-functions/vprintf.texi: Likewise.
45220         * doc/posix-functions/vsnprintf.texi: Likewise.
45221         * doc/posix-functions/vsprintf.texi: Likewise.
45222         * doc/glibc-functions/asprintf.texi: Likewise.
45223         * doc/glibc-functions/obstack_printf.texi: Likewise.
45224         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45225         * doc/glibc-functions/vasprintf.texi: Likewise.
45227 2011-09-10  Bruno Haible  <bruno@clisp.org>
45229         nocrash: Add support for native Windows.
45230         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
45232 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
45233             Bruno Haible  <bruno@clisp.org>
45235         absolute-header, include-next: Add support for MSVC compiler.
45236         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
45237         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
45238         directory separator in #line directives.
45239         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
45240         recognize also backslash as directory separator in #line directives.
45242 2011-09-08  Jim Meyering  <meyering@redhat.com>
45244         maint.mk: mark the post-release commit log with "maint: " prefix
45245         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
45246         one-line commit-log summary.
45248 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
45249             Bruno Haible  <bruno@clisp.org>
45251         Doc about crypt functions.
45252         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
45253         systems.
45254         * doc/posix-functions/encrypt.texi: Likewise.
45255         * doc/posix-functions/setkey.texi: Likewise.
45257 2011-09-08  Simon Josefsson  <simon@josefsson.org>
45259         * lib/gc.h: Fix copyright header.
45261 2011-09-07  Bruno Haible  <bruno@clisp.org>
45263         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
45264         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
45265         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
45267 2011-09-07  Bruno Haible  <bruno@clisp.org>
45269         openat: Work around compilation error with OSF/1 5.1 DTK cc.
45270         * lib/fopen.c: Use different syntax for include of <stdio.h>.
45271         * lib/freopen.c: Likewise.
45272         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
45273         * lib/lstat.c: Likewise.
45274         * lib/stat.c: Likewise.
45275         * lib/open.c: Use different syntax for include of <fcntl.h>.
45276         * lib/openat.c: Include fcntl.h again, explicitly.
45278 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
45280         parse-datetime: document the newly accepted format
45281         * doc/parse-datetime.texi (Combined date and time of day items):
45282         New section.
45284 2011-09-06  Bruno Haible  <bruno@clisp.org>
45286         acl: Fix a test failure on newer Solaris 10 with ZFS.
45287         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
45288         ENOSYS as no ACL.
45289         Reported by Jim Meyering.
45291 2011-09-06  Bruno Haible  <bruno@clisp.org>
45293         acl: Update for AIX >= 5.3 with NFS.
45294         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
45295         ENOSYS as no ACL.
45297         acl: Fix a test failure on AIX >= 5.3 with NFS.
45298         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
45299         as no ACL.
45301 2011-09-06  Bruno Haible  <bruno@clisp.org>
45303         acl: Fix a test failure on IRIX 6.5 with NFS.
45304         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
45305         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
45306         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
45307         * lib/copy-acl.c (qcopy_acl): Likewise.
45309 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
45311         openat: port to AIX 7.1 with large files
45312         AIX 7.1 does a "#define openat open64at" if large files are in use,
45313         so we can't simply #undef openat.  Use the orig_openat trick (similar
45314         to orig_open in lib/open.c) to work around the problem.  Problem
45315         reported by Kevin Brott for GNU tar, in the thread containing
45316         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
45317         * lib/openat.c (__need_system_fcntl_h): Define first.
45318         Include <fcntl.h> and <sys/types.h> before undefining.
45319         (orig_openat) [HAVE_OPENAT]: New inline function.
45320         (openat) [HAVE_OPENAT]: Do not undef.
45321         (rpl_openat): Use orig_openat, not openat.
45323 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
45324             Bruno Haible  <bruno@clisp.org>
45326         acl: Avoid errors on NonStop Kernel.
45327         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
45328         ENOTSUP errors.
45330 2011-09-05  Bruno Haible  <bruno@clisp.org>
45332         acl: Clean up Solaris code.
45333         * lib/acl-internal.h: Remove no-op #if.
45334         * lib/file-has-acl.c: Likewise.
45335         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
45336         * lib/copy-acl.c (qcopy_acl): Likewise.
45338 2011-09-05  Bruno Haible  <bruno@clisp.org>
45340         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
45341         binaries built on the original Solaris 10.
45342         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
45343         trivial.
45345 2011-09-05  Bruno Haible  <bruno@clisp.org>
45347         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45348         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
45349         10.
45350         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
45351         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
45352         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
45353         instead of acl_get, facl_get, acl_set, facl_set.
45355 2011-09-05  Bruno Haible  <bruno@clisp.org>
45357         copy-file: Try unit tests on more file systems.
45358         * tests/test-copy-file-1.sh: New file.
45359         * tests/test-copy-file-2.sh: New file.
45360         * modules/copy-file-tests (Files): Add them.
45361         (Makefile.am): Add them to TESTS.
45363         acl: Try unit tests on more file systems.
45364         * tests/test-file-has-acl-1.sh: New file.
45365         * tests/test-file-has-acl-2.sh: New file.
45366         * tests/test-set-mode-acl-1.sh: New file.
45367         * tests/test-set-mode-acl-2.sh: New file.
45368         * tests/test-copy-acl-1.sh: New file.
45369         * tests/test-copy-acl-2.sh: New file.
45370         * modules/acl-tests (Files): Add them.
45371         (Makefile.am): Add them to TESTS.
45373 2011-09-04  Bruno Haible  <bruno@clisp.org>
45375         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
45376         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
45377         10.
45378         (OLD_ALLOW, OLD_DENY): New macros.
45379         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
45380         ACE_ACCESS_ALLOWED_ACE_TYPE.
45381         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
45382         ACE_ACCESS_DENIED_ACE_TYPE.
45383         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
45384         (NEW_ACE_EXECUTE): Fix value.
45385         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
45386         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
45387         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
45388         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
45389         NEW_ACE_SYNCHRONIZE): New macros.
45390         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
45391         instead of acl_fromtext, acl_set, facl_set.
45392         Fixes a coreutils/tests/cp/perm failure.
45394 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
45396         openat: test for fstatat (..., 0) bug
45397         Further testing with tar suggests that fstatat (..., 0)
45398         does not work in general, on AIX 7.1; see
45399         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
45400         So, give up entirely on AIX 7.1's fstatat, and fall back on our
45401         replacement fstatat (which is what older AIX releases were using
45402         anyway).
45403         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
45404         use is now changed to orig_fstatat.  This was probably the right
45405         thing to do anyway.
45406         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
45407         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
45408         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
45409         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
45410         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
45411         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
45412         if the bug is found.
45414         openat: test for fstatat (AT_FDCWD, ..., 0) bug
45415         This tests for another fstatat bug on AIX 7.1:
45416         fstatat (AT_FDCWD, ..., 0) does not work.  See
45417         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
45418         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
45419         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
45420         (rpl_fstatat): Adjust so that it works around either (or both)
45421         bugs if present.
45422         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
45424 2011-09-03  Karl Berry  <karl@gnu.org>
45426         * doc/regex.texi (Character Class Operators): Avoid literal ":"
45427         in index entries.
45429 2011-09-02  Bruno Haible  <bruno@clisp.org>
45431         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
45432         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
45433         values of AR, ARFLAGS, RANLIB.
45434         Reported by John W. Eaton <jwe@gnu.org> for Octave.
45436 2011-09-02  Bruno Haible  <bruno@clisp.org>
45438         Find 'ar' program that fits with --host argument.
45439         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
45441 2011-09-02  Bruno Haible  <bruno@clisp.org>
45443         tests: init.sh: Support any non-GNU diff.
45444         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
45445         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
45446         Solaris 8.
45448 2011-09-02  Bruno Haible  <bruno@clisp.org>
45450         tests: init.sh: work also with any non-GNU diff that supports -u
45451         * tests/init.sh: Relax check for diff -u support.
45452         Rather than checking for GNU diff via --version, simply check
45453         for support for -u itself.  Useful at least on OpenBSD 4.9,
45454         AIX 7.1, IRIX 6.5, and Solaris 10.
45456 2011-09-01  Bruno Haible  <bruno@clisp.org>
45458         strtoimax, strtoumax: Document problem on HP-UX 11.
45459         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
45460         * doc/posix-functions/strtoumax.texi: Likewise.
45462 2011-09-01  Bruno Haible  <bruno@clisp.org>
45464         strtoumax: Avoid link error on OSF/1 with DTK cc.
45465         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
45466         defined as a function.
45467         * modules/strtoumax (Depends-on, configure.ac): Test only whether
45468         strtoumax is defined, not whether it is declared.
45470 2011-09-01  Bruno Haible  <bruno@clisp.org>
45472         strtoimax: Avoid link error on OSF/1 with DTK cc.
45473         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
45474         defined as a function.
45475         * modules/strtoimax (Depends-on, configure.ac): Test only whether
45476         strtoimax is defined, not whether it is declared.
45478 2011-09-01  Bruno Haible  <bruno@clisp.org>
45480         imaxdiv: Avoid link error on OSF/1 with DTK cc.
45481         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
45482         as a function.
45483         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
45484         whether it is declared.
45486 2011-09-01  Bruno Haible  <bruno@clisp.org>
45488         imaxabs: Avoid link error on OSF/1 with DTK cc.
45489         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
45490         as a function.
45491         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
45492         whether it is declared.
45494 2011-09-01  Bruno Haible  <bruno@clisp.org>
45496         Tests for module 'strtoumax'.
45497         * modules/strtoumax-tests: New file.
45498         * tests/test-strtoumax.c: New file.
45500         Tests for module 'strtoimax'.
45501         * modules/strtoimax-tests: New file.
45502         * tests/test-strtoimax.c: New file.
45504         Tests for module 'imaxdiv'.
45505         * modules/imaxdiv-tests: New file.
45506         * tests/test-imaxdiv.c: New file.
45508         Tests for module 'imaxabs'.
45509         * modules/imaxabs-tests: New file.
45510         * tests/test-imaxabs.c: New file.
45512 2011-09-01  Bruno Haible  <bruno@clisp.org>
45514         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
45515         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
45516         pthread_create.
45518 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45520         openat: work around AIX 7.1 fstatat issue
45521         This should fix the problem that was not properly fixed
45522         in the previous change, dated 2011-08-30.
45523         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
45524         __need_system_stat_h defined.
45525         (orig_fstatat) [HAVE_FSTATAT]: New function.
45526         (rpl_fstatat): Go back to the old way of doing things,
45527         except call orig_fstatat instead of fstatat.
45528         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
45529         Remove unnecessary check whether fstatat fills in st_size etc.
45531 2011-09-01  Bruno Haible  <bruno@clisp.org>
45533         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
45534         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
45535         just include the system's header.
45537 2011-08-31  Jim Meyering  <meyering@redhat.com>
45539         tests: avoid spurious assertion failure in test-float.c on ppc64
45540         * tests/test-float.c (test_long_double): Comment out an assertion,
45541         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
45542         with gcc-4.4.4.
45544         maint: indent with spaces, not TABs
45545         I need to get in the habit of running gnulib's "make check".
45546         Both of these would have been caught.
45547         * m4/largefile.m4: Indent with spaces, not TABs.
45548         * lib/parse-datetime.y (iso_8601_time): Likewise.
45549         Spotted by Pádraig Brady.
45551         test-parse-datetime.c: accommodate a relatively strict gcc warning
45552         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
45553         to avoid a warning from gcc's -Werror=missing-declarations.
45554         Insert a few spaces-before-funcall-parenthesis.
45556 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
45558         parse-datetime: accept ISO 8601 date and time rep with "T" separator
45559         The parser now accepts ISO 8601 date-time strings with "T" as the
45560         separator.  It has long parsed dates like "2004-02-29 16:21:42"
45561         with a space between the date and time strings.  Now it also parses
45562         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
45563         variants like "2004-02-29T16:21:42.333-07:00"
45564         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
45565         of day representation using the 'T' separator character.
45566         * doc/parse-datetime.texi (General date syntax): replace use of
45567         deprecated --iso-8601 option with --rfc-3339 in example of date
45568         command output formats that can be parsed.
45569         * tests/test-parse-datetime.c (tm_diff): New function, taken from
45570         lib/parse-datetime.y.
45571         (gmt_offset): New function.
45572         (main): Add additional test cases to validate ISO8601 extended
45573         date and time of day parsing.
45575 2011-08-31  Bruno Haible  <bruno@clisp.org>
45577         freopen: Documentation.
45578         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
45579         name.
45580         Reported by Claudio Bley <claudio.bley@gmail.com>.
45582 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
45584         freopen: Don't crash if the filename argument is NULL.
45585         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
45586         NULL.
45588 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
45590         openat: work around AIX 7.1 fstatat bug
45591         Problem reported by Kevin Brott for GNU tar, in the thread containing
45592         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
45593         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
45594         FSTATAT_ST_SIZE_ETC_BROKEN.
45595         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
45596         rpl_fstatat.
45597         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
45598         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
45599         AC_CHECK_FUNCS_ONCE for fstatat.
45600         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
45601         fchmodat, mkdirat, openat and unlinkat.
45603 2011-08-30  Bruno Haible  <bruno@clisp.org>
45605         Avoid endless recursions if config.h includes some header files.
45606         * lib/fopen.c (__need_FILE): Define already before including config.h.
45607         * lib/freopen.c (__need_FILE): Likewise.
45608         * lib/open.c (__need_system_fcntl_h): Likewise.
45609         * lib/stat.c (__need_system_sys_stat_h): Likewise.
45610         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
45611         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45613 2011-08-25  Karl Berry  <karl@gnu.org>
45615         * config/srclist.txt (ylwrap): new try.
45616         * build-aux/ylwrap: new file.
45618 2011-08-23  Bruno Haible  <bruno@clisp.org>
45620         tmpdir: Use a good default directory on native Windows.
45621         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
45622         (P_tmpdir): Default to _P_tmpdir on native Windows.
45623         (path_search): On native Windows, try the value returned by GetTempPath
45624         before trying P_tmpdir.
45625         * modules/tmpdir (Depends-on): Add pathmax.
45626         Suggested by John Darrington <john@darrington.wattle.id.au>.
45628 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
45630         doc: fix typo in README-release
45631         * top/README-release: Capitalize first word of a sentence.
45633 2011-08-19  Jim Meyering  <meyering@redhat.com>
45635         fts: do not exhaust memory when processing million-entry directories
45636         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
45637         directory would require about 256*N bytes of memory.  Thus, it was
45638         easy to construct a directory too large to be processed by any of
45639         those tools.  With this change, fts' maximum memory utilization is
45640         now limited to around 30MB.
45641         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
45642         (fts_read): When we've processed the final entry (i.e., when
45643         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
45644         using the parent entry to read any remaining entries.  Dispatch
45645         depending on what fts_build returns:
45646         - NULL+stop, aka failure: stop
45647         - NULL otherwise: move up in the dir hierarchy
45648         - non-NULL: handle this new entry
45649         (fts_build): Declare and use new local, continue_readdir.
45650         Prepare to be called from fts_read, when the entries
45651         from a partially-read directory have just been exhausted.
45652         In that case, we'll skip the opendir and instead use the parent's
45653         fts_dirp and derive dir_fd from that.
45654         Finally, in the readdir loop, if we read max_entries entries,
45655         exit the loop ensuring *not* to call closedir.  This is required
45656         so that fts_dirp can be reused on a subsequent call.
45657         Prompted by Ben England's report of memory exhaustion in find
45658         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
45660         maint: fts: move decl of `dp' down into while loop; split a long line
45661         * lib/fts.c (fts_build): No semantic change.
45663         fts: add/use new struct member, fts_dirp
45664         We are about to use this to manage any directory with
45665         too many entries to read all of them into memory at once.
45666         To do that, we'll need to save the DIR* pointer in each
45667         affected FTSENT struct.
45668         * lib/fts_.h: Include <dirent.h>.
45669         (struct FTSENT) [fts_dirp]: New member.
45670         * lib/fts.c (closedir_and_clear): Define.
45671         Use it in place of closedir so that we are sure to
45672         clear the new fts_dirp member when done with it.
45673         (fts_alloc): Initialize the new member.
45674         (fts_lfree): Free, if needed.
45676         maint: fts: give __opendir2 a new parameter and rename
45677         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
45678         than surreptitiously using sole caller's "dir_fd".
45679         (fts_opendir): Rename from __opendir2.
45681         maint: fts.c: remove __opendir2's now-unused parameter, oflag
45682         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
45684         maint: fts.c: correct off-by-one indentation
45685         * lib/fts.c (fts_build): Correct indentation, change style
45686         of a couple of block comments, and bracing style.
45688         maint: fts.c: move __opendir2 #define "up" out of function body
45689         * lib/fts.c (__opendir2): Move "up".  No semantic change.
45691         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
45692         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
45693         out for a long time and besides was useful only on BSD systems.
45695 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45697         regex: port to Stratus OpenVOS
45698         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
45699         define to empty, rather than attempting nonportable optimizations.
45700         Problem reported by Paul Green in:
45701         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
45702         and fix suggested by Eric Blake in:
45703         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
45705 2011-08-17  Eric Blake  <eblake@redhat.com>
45707         getcwd: fix test failures on mingw
45708         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
45709         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
45710         test if long directory cannot be created, and allow mingw errno.
45712         getcwd-lgpl: fix m4 to match relaxed test for BSD
45713         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
45714         (gl_FUNC_GETCWD_SIGNATURE): New macro.
45715         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
45716         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
45717         signature problem.
45719         getcwd: fix compilation on mingw64
45720         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
45721         getcwd.
45722         Reported by Marc-André Lureau.
45724         pipe2: silence compiler warning
45725         * lib/pipe2.c (pipe2): Hide label if it is not used.
45727 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
45729         relocatable-prog: fix link error
45730         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
45731         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
45732         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
45733         into modules/relocatable-lib without noticing that
45734         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
45735         also needs to build relocatable.c.
45737 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45739         getaddrinfo: fix sh typo in gai_strerrorA decl checking
45740         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
45741         shell code: it contained a 'break' that was not in a loop.
45742         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
45743         via a shell-language loop; this may have been true in old Autoconf
45744         versions, but it's not true in Autoconf 2.68.  I found this bug
45745         when testing coreutils git on Solaris 8, whose shell complains
45746         about the syntax error.
45748 2011-08-12  Simon Josefsson  <simon@josefsson.org>
45750         * lib/base64.c: Fix comment to reference RFC 4648.
45751         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
45752         <gvtulder@gmail.com>.
45754 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45756         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
45758         po/Makefile.in.in: fix make -q problem
45759         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
45760         rule, since there's no file named 'check-macro-version' and its
45761         use as a file breaks make -q.
45762         (all): Don't depend on check-macro-version.
45763         (CHECK_MACRO_VERSION): New macro.
45764         (stamp-po): Use it.
45766         configmake: fix make -q problem
45767         * modules/configmake (configmake.h): Update configmake.h's time stamp
45768         even if the file does not change.  Otherwise, 'make -q' fails.
45769         Problem reported by Simon Josefsson in
45770         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
45772 2011-08-11  Jim Meyering  <meyering@redhat.com>
45774         git-version-gen: correct the advice in a comment
45775         * build-aux/git-version-gen: Correct comment.
45776         Don't recommend to list .tarball-version in .gitignore.
45778 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45780         base64: fix off-by-one buffer size bug
45781         Problem and (trivial) fix reported by Gijs van Tulder in
45782         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
45783         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
45784         * tests/test-base64.c (main): Catch the bug.
45786 2011-08-10  Eric Blake  <eblake@redhat.com>
45788         closein: correct comments
45789         * lib/closein.c (close_stdin): Improve comments.
45791 2011-08-09  Bruno Haible  <bruno@clisp.org>
45793         More tests for 'fseeko'.
45794         * tests/test-fseeko3.c: New file, from Eric Blake.
45795         * tests/test-fseeko3.sh: New file.
45796         * modules/fseeko-tests (Files): Add them.
45797         (TESTS): Add test-fseeko3.sh.
45798         (check_PROGRAMS): Add test-fseeko3.
45800 2011-08-09  Eric Blake  <eblake@redhat.com>
45802         fseeko: remove unneeded hack
45803         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
45805         fseeko: fix bug on glibc
45806         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
45807         Reported by John W. Eaton.
45809 2011-08-08  Bruno Haible  <bruno@clisp.org>
45811         unictype/base: Fix interoperability with preinstalled libunistring.
45812         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
45813         Reported by Simon Josefsson.
45815 2011-08-08  Bruno Haible  <bruno@clisp.org>
45817         iswblank: Detect declaration correctly.
45818         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
45819         AC_CHECK_DECLS invocation.
45821 2011-08-08  Bruno Haible  <bruno@clisp.org>
45823         tcgetsid: Detect declaration correctly.
45824         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
45825         AC_CHECK_DECLS invocation.
45826         Reported by Simon Josefsson.
45828 2011-08-08  Eric Blake  <eblake@redhat.com>
45830         largefile: fix typo that regressed large file support
45831         * modules/largefile (configure.ac-early): Fix section name.
45833 2011-08-06  Karl Berry  <karl@gnu.org>
45835         * MODULES.html.sh (func_all_files): _Noreturn is no longer
45836         a separate module.
45838 2011-08-05  Simon Josefsson  <simon@josefsson.org>
45840         openat: Fix warnings and commens when building unlinkat.c on Hurd.
45841         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
45842         get prototype for free.
45844 2011-08-04  Bruno Haible  <bruno@clisp.org>
45846         Tests for module 'pathmax'.
45847         * modules/pathmax-tests: New file.
45848         * tests/test-pathmax.c: New file.
45850         canonicalize-lgpl: Support larger filenames on the Hurd.
45851         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
45852         Reported by Paul Eggert.
45854         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
45855         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
45856         * lib/chdir-long.h: Include pathmax.h.
45857         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
45858         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
45859         (PATH_MAX): Remove code that is done by pathmax.h.
45860         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
45861         * lib/tmpfile.c: Add a comment.
45862         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
45863         * modules/chdir-long (Depends-on): Add pathmax.
45864         * modules/getcwd (Depends-on): Add pathmax.
45865         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
45866         is not defined.
45867         * doc/posix-headers/limits.texi: Mention the pathmax module.
45868         * NEWS: Mention the change.
45870 2011-08-02  Bruno Haible  <bruno@clisp.org>
45872         pthread_sigmask: Actually use results of gl_THREADLIB.
45873         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
45874         gl_THREADLIB, not gl_[]THREADLIB.
45875         Reported by Eric Blake.
45877 2011-08-02  Jim Meyering  <meyering@redhat.com>
45879         maint.mk: relax the default _gl_TS_function_match regexp
45880         * top/maint.mk (_gl_TS_function_match): Don't require at least one
45881         space between function name and "(" in an "extern" declaration.
45882         That would fail to match a decl with no space there: extern void foo();
45884 2011-07-31  Iain Nicol  <iain@thenicols.net>
45886         git-version-gen: document that EXTRA_DIST must include .version
45887         * build-aux/git-version-gen: In the how-to-use comment, document
45888         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
45889         will fail when run from an unpacked distribution tarball.
45891 2011-08-01  Bruno Haible  <bruno@clisp.org>
45893         wctype-h: Fix last change.
45894         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
45895         REPLACE_TOWLOWER to 0.
45896         Reported by Sam Steingold <sds@gnu.org>.
45898 2011-07-31  Bruno Haible  <bruno@clisp.org>
45900         frexpl: Update autoconf test.
45901         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
45902         according to changes of 2011-06-20.
45904 2011-07-31  Bruno Haible  <bruno@clisp.org>
45906         sys_utsname: Add support for Minix.
45907         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
45908         <sys/utsname.h>.
45909         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
45910         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
45912 2011-07-31  Bruno Haible  <bruno@clisp.org>
45914         strings: Add support for Minix.
45915         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
45916         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
45917         * doc/posix-headers/strings.texi: Document the Minix problem.
45919 2011-07-31  Bruno Haible  <bruno@clisp.org>
45921         wctype-h: Add support for Minix.
45922         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
45923         REPLACE_TOWLOWER.
45924         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
45925         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
45926         REPLACE_ISWCNTRL.
45928 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
45930         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
45931         This is a performance improvement for 64-bit hosts: it causes the
45932         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
45934 2011-07-31  Bruno Haible  <bruno@clisp.org>
45936         stdioext: Add support for Minix.
45937         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
45938         * lib/fpurge.c (fpurge): Likewise.
45939         * lib/freadahead.c (freadahead): Likewise.
45940         * lib/freadable.c (freadable): Likewise.
45941         * lib/freading.c (freading): Likewise.
45942         * lib/freadptr.c (freadptr): Likewise.
45943         * lib/freadseek.c (freadptrinc): Likewise.
45944         * lib/fseeko.c (rpl_fseeko): Likewise.
45945         * lib/fseterr.c (fseterr): Likewise.
45946         * lib/fwritable.c (fwritable): Likewise.
45947         * lib/fwriting.c (fwriting): Likewise.
45948         * lib/fflush.c (clear_ungetc_buffer): Update comment.
45949         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
45951 2011-07-31  Bruno Haible  <bruno@clisp.org>
45953         errno: Port to Minix.
45954         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
45955         ECONNABORTED are defined.
45956         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
45957         GNULIB_defined_ECONNABORTED): New macros.
45958         * lib/strerror-override.h (strerror_override): Test also
45959         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
45960         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
45961         ECONNABORTED.
45962         * doc/posix-headers/errno.texi: Mention the Minix problem.
45964 2011-07-31  Bruno Haible  <bruno@clisp.org>
45966         Work around declaration collisions on Minix.
45967         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
45968         defined, set REPLACE_MBSINIT.
45969         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
45970         defined, set REPLACE_MBRTOWC.
45971         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
45972         set REPLACE_MBRLEN.
45973         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
45974         defined, set REPLACE_MBSRTOWCS.
45975         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
45976         defined, set REPLACE_WCRTOMB.
45977         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
45978         defined, set REPLACE_WCSRTOMBS.
45980 2011-07-31  Bruno Haible  <bruno@clisp.org>
45982         Add support for Minix with ACK compiler.
45983         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
45984         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
45985         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
45987 2011-07-31  Bruno Haible  <bruno@clisp.org>
45989         Documentation about Minix.
45990         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
45991         * doc/glibc-headers/*.texi: Likewise.
45992         * doc/posix-functions/*.texi: Likewise.
45993         * doc/glibc-functions/*.texi: Likewise.
45995 2011-07-31  Bruno Haible  <bruno@clisp.org>
45997         snippet/warn-on-use: Fix indentation.
45998         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
46000 2011-07-25  Jim Meyering  <meyering@redhat.com>
46002         tests: test-update-copyright.sh: remove unnecessary "rm" commands
46003         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
46004         commands.
46006 2011-07-27  Jim Meyering  <meyering@redhat.com>
46008         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
46009         * top/maint.mk (gl_extract_significant_defines_): Now that
46010         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
46011         gnulib/lib/signal.in.h, and now that we recommend to
46012         define-if-undefined those two symbols in application code,
46013         we must filter them out of the "significant" list.
46014         This avoids a "make syntax-check" failure in coreutils.
46016 2011-07-26  Eric Blake  <eblake@redhat.com>
46018         warnings: add comments about previous patch
46019         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
46020         * m4/include_next.m4: Likewise.
46021         * m4/warn-on-use.m4: Likewise.
46022         * m4/warnings.m4: Likewise, and simplify use.
46023         Suggested by Stefano Lattarini.
46025         include-next, warnings: support older autoconf
46026         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
46027         AS_VAR_PUSHDEF in a way that works with older autoconf.
46028         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
46029         Reported by Daniel P. Berrange.
46031 2011-07-25  Bruno Haible  <bruno@clisp.org>
46033         fseek, ftell: Fix doc.
46034         * doc/posix-functions/fseek.texi: Reword statement about
46035         AC_SYS_LARGEFILE.
46036         * doc/posix-functions/ftell.texi: Likewise.
46038 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46039             Bruno Haible  <bruno@clisp.org>
46041         Add dependencies to the 'largefile' module.
46042         * modules/fopen (Depends-on): Add 'largefile'.
46043         * modules/freopen (Depends-on): Likewise.
46044         * modules/fseeko (Depends-on): Likewise.
46045         * modules/ftello (Depends-on): Likewise.
46046         * modules/glob (Depends-on): Likewise.
46047         * modules/lseek (Depends-on): Likewise.
46048         * modules/lstat (Depends-on): Likewise.
46049         * modules/mkostemp (Depends-on): Likewise.
46050         * modules/mkostemps (Depends-on): Likewise.
46051         * modules/mkstemp (Depends-on): Likewise.
46052         * modules/mkstemps (Depends-on): Likewise.
46053         * modules/open (Depends-on): Likewise.
46054         * modules/openat (Depends-on): Likewise.
46055         * modules/pread (Depends-on): Likewise.
46056         * modules/pwrite (Depends-on): Likewise.
46057         * modules/scandir (Depends-on): Likewise.
46058         * modules/stat (Depends-on): Likewise.
46059         * modules/tmpfile (Depends-on): Likewise.
46060         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
46061         since the containing module now depends on the largefile module.
46062         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
46063         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
46064         off_t is fixed by gnulib.
46065         * doc/posix-functions/freopen.texi: Likewise.
46066         * doc/posix-functions/fseeko.texi: Likewise.
46067         * doc/posix-functions/fstatat.texi: Likewise.
46068         * doc/posix-functions/ftello.texi: Likewise.
46069         * doc/posix-functions/glob.texi: Likewise.
46070         * doc/posix-functions/lseek.texi: Likewise.
46071         * doc/posix-functions/lstat.texi: Likewise.
46072         * doc/posix-functions/mkstemp.texi: Likewise.
46073         * doc/posix-functions/open.texi: Likewise.
46074         * doc/posix-functions/openat.texi: Likewise.
46075         * doc/posix-functions/pread.texi: Likewise.
46076         * doc/posix-functions/pwrite.texi: Likewise.
46077         * doc/posix-functions/scandir.texi: Likewise.
46078         * doc/posix-functions/stat.texi: Likewise.
46079         * doc/posix-functions/tmpfile.texi: Likewise.
46080         * doc/glibc-functions/mkostemp.texi: Likewise.
46081         * doc/glibc-functions/mkostemps.texi: Likewise.
46082         * doc/glibc-functions/mkstemps.texi: Likewise.
46084 2011-07-25  Bruno Haible  <bruno@clisp.org>
46086         fcntl: Move AC_LIBOBJ invocation to module description.
46087         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
46088         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
46090         fcntl: Remove call-in from fchdir.m4.
46091         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
46092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
46094         dup3: Remove potential call-in from fchdir.m4.
46095         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
46096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
46098         dup2: Move AC_LIBOBJ invocation to module description.
46099         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
46100         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
46101         Don't invoke AC_LIBOBJ.
46102         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
46104         dup2: Remove call-in from fchdir.m4.
46105         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
46106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
46108         fclose: Move AC_LIBOBJ invocation to module description.
46109         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
46110         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
46111         to 1.
46112         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
46114         fclose: Remove call-in from close.m4.
46115         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
46116         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
46118         close: Move AC_LIBOBJ invocation to module description.
46119         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
46120         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
46121         1.
46122         * modules/close (configure.ac): Invoke AC_LIBOBJ.
46124         close: Remove call-in from fchdir.m4.
46125         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
46126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
46128         open: Move AC_LIBOBJ invocation to module description.
46129         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
46130         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
46131         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
46133         open: Remove call-in from fchdir.m4.
46134         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
46135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
46137         fchdir: Start to remove gl_REPLACE_* idiom.
46138         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
46139         (gl_FUNC_FCHDIR): Invoke it.
46141 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
46143         * lib/ftell.c (ftell): Comment out cast.
46145         close: use gl_REPLACE_FCLOSE only if defined
46146         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
46147         is defined.  The close module doesn't depend on the fclose module
46148         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
46149         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
46150         I reproduced the problem with "./gnulib-tool --test close sys_socket".
46152 2011-07-24  Jim Meyering  <meyering@redhat.com>
46154         test-select.h: avoid warning when using gcc's -Wmissing-declarations
46155         * tests/test-select.h (test_function): Declare as "static".
46157 2011-07-24  Bruno Haible  <bruno@clisp.org>
46159         doc: Mention the effects of AC_SYS_LARGEFILE.
46160         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
46161         on this function.
46162         * doc/posix-functions/aio_error.texi: Likewise.
46163         * doc/posix-functions/aio_fsync.texi: Likewise.
46164         * doc/posix-functions/aio_read.texi: Likewise.
46165         * doc/posix-functions/aio_return.texi: Likewise.
46166         * doc/posix-functions/aio_suspend.texi: Likewise.
46167         * doc/posix-functions/aio_write.texi: Likewise.
46168         * doc/posix-functions/fgetpos.texi: Likewise.
46169         * doc/posix-functions/fopen.texi: Likewise.
46170         * doc/posix-functions/freopen.texi: Likewise.
46171         * doc/posix-functions/fsetpos.texi: Likewise.
46172         * doc/posix-functions/fstatvfs.texi: Likewise.
46173         * doc/posix-functions/ftruncate.texi: Likewise.
46174         * doc/posix-functions/ftw.texi: Likewise.
46175         * doc/posix-functions/getrlimit.texi: Likewise.
46176         * doc/posix-functions/glob.texi: Likewise.
46177         * doc/posix-functions/lio_listio.texi: Likewise.
46178         * doc/posix-functions/lockf.texi: Likewise.
46179         * doc/posix-functions/mkstemp.texi: Likewise.
46180         * doc/posix-functions/mmap.texi: Likewise.
46181         * doc/posix-functions/nftw.texi: Likewise.
46182         * doc/posix-functions/openat.texi: Likewise.
46183         * doc/posix-functions/opendir.texi: Likewise.
46184         * doc/posix-functions/posix_fadvise.texi: Likewise.
46185         * doc/posix-functions/posix_fallocate.texi: Likewise.
46186         * doc/posix-functions/pread.texi: Likewise.
46187         * doc/posix-functions/pwrite.texi: Likewise.
46188         * doc/posix-functions/readdir.texi: Likewise.
46189         * doc/posix-functions/readdir_r.texi: Likewise.
46190         * doc/posix-functions/rewinddir.texi: Likewise.
46191         * doc/posix-functions/scandir.texi: Likewise.
46192         * doc/posix-functions/seekdir.texi: Likewise.
46193         * doc/posix-functions/setrlimit.texi: Likewise.
46194         * doc/posix-functions/statvfs.texi: Likewise.
46195         * doc/posix-functions/telldir.texi: Likewise.
46196         * doc/posix-functions/tmpfile.texi: Likewise.
46197         * doc/posix-functions/truncate.texi: Likewise.
46198         * doc/glibc-functions/fallocate.texi: Likewise.
46199         * doc/glibc-functions/fstatfs.texi: Likewise.
46200         * doc/glibc-functions/fts_children.texi: Likewise.
46201         * doc/glibc-functions/fts_read.texi: Likewise.
46202         * doc/glibc-functions/getdirentries.texi: Likewise.
46203         * doc/glibc-functions/mkostemp.texi: Likewise.
46204         * doc/glibc-functions/mkostemps.texi: Likewise.
46205         * doc/glibc-functions/mkstemps.texi: Likewise.
46206         * doc/glibc-functions/preadv.texi: Likewise.
46207         * doc/glibc-functions/pwritev.texi: Likewise.
46208         * doc/glibc-functions/sendfile.texi: Likewise.
46209         * doc/glibc-functions/statfs.texi: Likewise.
46211 2011-07-24  Bruno Haible  <bruno@clisp.org>
46213         doc: Fix typo.
46214         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
46216 2011-07-24  Bruno Haible  <bruno@clisp.org>
46218         doc: Mention fsusage.
46219         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
46221 2011-07-24  Bruno Haible  <bruno@clisp.org>
46223         doc: Mention new glibc headers and functions.
46224         * doc/glibc-headers/gshadow.texi: New file.
46225         * doc/glibc-functions/endsgent.texi: New file.
46226         * doc/glibc-functions/fgetsgent.texi: New file.
46227         * doc/glibc-functions/fgetsgent_r.texi: New file.
46228         * doc/glibc-functions/getsgent.texi: New file.
46229         * doc/glibc-functions/getsgent_r.texi: New file.
46230         * doc/glibc-functions/getsgnam.texi: New file.
46231         * doc/glibc-functions/getsgnam_r.texi: New file.
46232         * doc/glibc-functions/putsgent.texi: New file.
46233         * doc/glibc-functions/setsgent.texi: New file.
46234         * doc/glibc-functions/sgetsgent.texi: New file.
46235         * doc/glibc-functions/sgetsgent_r.texi: New file.
46236         * doc/glibc-functions/malloc_info.texi: New file.
46237         * doc/glibc-functions/preadv.texi: New file.
46238         * doc/glibc-functions/pwritev.texi: New file.
46239         * doc/glibc-functions/register_printf_modifier.texi: New file.
46240         * doc/glibc-functions/register_printf_specifier.texi: New file.
46241         * doc/glibc-functions/register_printf_type.texi: New file.
46242         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
46243         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
46244         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
46245         * doc/glibc-functions/pthread_getname_np.texi: New file.
46246         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
46247         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
46248         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
46249         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
46250         * doc/glibc-functions/pthread_setname_np.texi: New file.
46251         * doc/glibc-functions/pthread_sigqueue.texi: New file.
46252         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
46253         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
46254         * doc/glibc-functions/qsort_r.texi: New file.
46255         * doc/glibc-functions/quick_exit.texi: New file.
46256         * doc/glibc-functions/syncfs.texi: New file.
46257         * doc/gnulib.texi: Include them.
46258         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
46259         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
46260         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
46261         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
46262         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
46263         * doc/glibc-functions/execvpe.texi: Likewise.
46265 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46267         ftell: don't include <unistd.h>
46268         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
46269         guaranteed to define off_t, and the ftell module depends on the
46270         stdio module.
46272         ftell: do not assume wraparound signed arithmetic
46273         * lib/ftell.c: Include <limits.h>.
46274         (ftell): Don't assume wraparound signed arithmetic.
46276 2011-07-24  Bruno Haible  <bruno@clisp.org>
46278         close: No longer depend on module 'fclose'.
46279         * modules/close (Depends-on): Remove fclose.
46280         * NEWS: Mention the change.
46281         Suggested by Sam Steingold <sds@gnu.org>.
46283 2011-07-24  Bruno Haible  <bruno@clisp.org>
46285         fsusage: Enable large volume support on AIX >= 5.2.
46286         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
46287         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
46288         instead of STAT_STATVFS.
46289         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
46291         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
46292         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
46293         f_blocks field only on MacOS X.
46295         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
46296         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
46297         * modules/fsusage (Depends-on): Add largefile.
46299 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46301         * README: Modernize discussion of signed integers.
46302         Assuming overflow wraparound is no longer safe.
46303         Mention ones' complement and signed magnitude.
46305 2011-07-22  Bruno Haible  <bruno@clisp.org>
46307         select tests, pselect tests: Refactor.
46308         * tests/test-select.h: New file, extracted from tests/test-select.c.
46309         (select_fn): New type.
46310         (test, do_select, do_select_nowait, do_select_wait, test_tty,
46311         test_connect_first, test_accept_first, test_pair, test_socket_pair,
46312         test_pipe): Add my_select argument.
46313         (test_function): Renamed from main. Add my_select argument.
46314         * tests/test-select.c: Move most code to tests/test-select.h. Include
46315         test-select.h.
46316         * modules/select-tests (Files): Add tests/test-select.h.
46317         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
46318         (my_select, main): New functions.
46319         * modules/pselect-tests (Files): Add tests/test-select.h,
46320         tests/macros.h, tests/signature.h.
46321         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
46322         (configure.ac): Check for <sys/wait.h>.
46324 2011-07-22  Bruno Haible  <bruno@clisp.org>
46326         sys_select tests: Check the signature of FD_*.
46327         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
46328         signature tests from here...
46329         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
46330         here.
46331         * modules/sys_select-tests (Files): Add tests/signature.h.
46333 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46335         largefile: new module, replacing large-inode
46336         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
46337         * MODULES.html.sh: Add largefile, remove large-inode.
46338         * modules/largefile, m4/largefile.m4: New files.
46339         * modules/large-inode, m4/large-inode.m4: Remove.
46341         fsusage: port to MacOS X 10.7 with 4 TiB file systems
46342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
46343         implementations that use only 32 bits to count blocks.
46344         On typical hosts with 1024-byte blocks, this fails with file
46345         systems as small as 4 TiB.  Problem reported by Herb Wartens
46346         <http://debbugs.gnu.org/9140> and this should also fix a similar
46347         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
46349         large-inode: New module
46350         * MODULES.html.sh: Add it.
46351         * modules/large-inode, m4/large-inode.m4: New files.
46353         extensions: Enable extensions on MacOS X 10.5 and later.
46354         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
46356 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
46358         file-has-acl: use acl_extended_file_nofollow if available
46359         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
46360         (acl_extended_file): New macro.
46361         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
46362         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
46364 2011-07-21  Bruno Haible  <bruno@clisp.org>
46366         Declare system functions in a way that works with C++.
46367         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
46368         declare fdopendir as extern "C".
46369         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
46370         declare frexpl as extern "C".
46371         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
46372         declare gai_strerror as extern "C".
46373         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
46374         programs, declare gai_strerror as extern "C".
46375         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
46376         declare getlogin_r as extern "C".
46377         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
46378         as extern "C".
46379         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
46380         declare ldexpl as extern "C".
46381         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
46382         as extern "C".
46383         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
46384         program, declare getmntinfo as extern "C".
46385         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
46386         stpncpy as extern "C".
46387         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
46388         program, declare __xpg_strerror_r as extern "C".
46389         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
46390         strndup as extern "C".
46391         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
46392         declare memset and bzero as extern "C".
46393         Reported by Sam Steingold <sds@gnu.org>.
46395 2011-07-12  Jim Meyering  <meyering@redhat.com>
46397         maint.mk: prohibit inclusion of "verify.h" without use
46398         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
46400 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46402         timer-time: A new module to check for timer_settime()
46403         * m4/timer_time.m4: Check for the posix function.
46404         * modules/timer-time: Add the new module.
46405         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
46406         Mention it.
46408 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
46409             Bruno Haible  <bruno@clisp.org>
46411         pthread_sigmask: assume POSIX threads if --avoid=threadlib
46412         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
46413         not defined, assume POSIX threads and look for pthread_sigmask in
46414         $LIBS, without changing $CPPFLAGS.
46416 2011-07-19  Bruno Haible  <bruno@clisp.org>
46418         strstr: Update cross-compilation guess.
46419         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
46420         CPUs, guess no, in view of glibc
46421         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
46422         Suggested by Eric Blake. Reported by Reuben Thomas.
46424 2011-07-19  Pádraig Brady  <P@draigBrady.com>
46426         getopt-gnu: suppress core dumps from detection code
46427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
46428         to suppress core dumps that may well occur on glibc systems.
46429         * modules/getopt-gnu: Depend on nocrash.
46431 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46433         pthread_sigmask: ensure usleep is declared
46434         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
46435         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
46437 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
46439         doc: Document NonStop portability issues.
46440         * doc/posix-functions/sigaction.texi (sigaction):
46441         * doc/posix-headers/signal.texi (signal.h):
46442         Document NonStop.  See Joachim Schmitz in
46443         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
46445 2011-07-15  Bruno Haible  <bruno@clisp.org>
46447         ffsl, ffsll: Avoid unportable behaviour.
46448         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
46450 2011-07-15  Bruno Haible  <bruno@clisp.org>
46452         ffs: More tests.
46453         * tests/test-ffs.c (NBITS): New macro.
46454         (main): Add more tests.
46455         * tests/test-ffsl.c (NBITS): New macro.
46456         (main): Add more tests.
46457         * tests/test-ffsll.c (NBITS): New macro.
46458         (main): Add more tests.
46460 2011-07-15  Eric Blake  <eblake@redhat.com>
46462         ffsl, ffsll: new modules
46463         * modules/ffsl: New file.
46464         * modules/ffsll: Likewise.
46465         * m4/ffsl.m4: Likewise.
46466         * m4/ffsll.m4: Likewise.
46467         * lib/ffsl.c: Likewise.
46468         * lib/ffsl.h: Likewise.
46469         * lib/ffsll.c: Likewise.
46470         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
46471         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
46472         * modules/string (Makefile.am): Substitute witnesses.
46473         * lib/strings.in.h (ffsl, ffsll): Declare.
46474         * modules/ffsl-tests: New test file.
46475         * modules/ffsll-tests: Likewise.
46476         * tests/test-ffsl.c: Likewise.
46477         * tests/test-ffsll.c: Likewise.
46478         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46479         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
46480         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
46482         ffs: fix m4 prerequisite
46483         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
46485         ffs: avoid undefined behavior
46486         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
46487         * tests/test-ffs.c (naive, main): Avoid signed shifts.
46488         Reported by Bruno Haible.
46490 2011-07-12  Bruno Haible  <bruno@clisp.org>
46492         pthread_sigmask: Rely on module 'threadlib'.
46493         * modules/pthread_sigmask (Depends-on): Add threadlib.
46494         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
46495         is defined.
46497 2011-07-12  Bruno Haible  <bruno@clisp.org>
46499         regex: Depend on module 'strcase'.
46500         * modules/regex (Depends-on): Add strcase, for strcasecmp().
46502 2011-07-12  Jim Meyering  <meyering@redhat.com>
46504         warn-on-use: fix typo in file name
46505         * modules/snippet/warn-on-use (Files): Correct file name:
46506         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
46508 2011-07-12  Bruno Haible  <bruno@clisp.org>
46510         strings: Document module.
46511         * doc/posix-headers/strings.texi: Mention module 'strings'.
46513 2011-07-12  Bruno Haible  <bruno@clisp.org>
46515         Rename module '_Noreturn' to 'snippet/_Noreturn'.
46516         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
46517         (Files, Makefile.am): Update.
46518         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
46519         * modules/stdlib (Depends-on): Update.
46521 2011-07-12  Bruno Haible  <bruno@clisp.org>
46523         * NEWS: Mention the changes.
46525         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
46526         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
46527         (Files, Makefile.am): Update.
46528         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
46529         * modules/arpa_inet (Depends-on): Update.
46530         * modules/ctype (Depends-on): Update.
46531         * modules/dirent (Depends-on): Update.
46532         * modules/fcntl-h (Depends-on): Update.
46533         * modules/glob (Depends-on): Update.
46534         * modules/iconv-h (Depends-on): Update.
46535         * modules/inttypes-incomplete (Depends-on): Update.
46536         * modules/langinfo (Depends-on): Update.
46537         * modules/locale (Depends-on): Update.
46538         * modules/math (Depends-on): Update.
46539         * modules/netdb (Depends-on): Update.
46540         * modules/poll-h (Depends-on): Update.
46541         * modules/pty (Depends-on): Update.
46542         * modules/search (Depends-on): Update.
46543         * modules/signal (Depends-on): Update.
46544         * modules/spawn (Depends-on): Update.
46545         * modules/stdio (Depends-on): Update.
46546         * modules/stdlib (Depends-on): Update.
46547         * modules/string (Depends-on): Update.
46548         * modules/strings (Depends-on): Update.
46549         * modules/sys_file (Depends-on): Update.
46550         * modules/sys_ioctl (Depends-on): Update.
46551         * modules/sys_select (Depends-on): Update.
46552         * modules/sys_socket (Depends-on): Update.
46553         * modules/sys_stat (Depends-on): Update.
46554         * modules/sys_time (Depends-on): Update.
46555         * modules/sys_times (Depends-on): Update.
46556         * modules/sys_utsname (Depends-on): Update.
46557         * modules/sys_wait (Depends-on): Update.
46558         * modules/termios (Depends-on): Update.
46559         * modules/time (Depends-on): Update.
46560         * modules/unistd (Depends-on): Update.
46561         * modules/wchar (Depends-on): Update.
46562         * modules/wctype-h (Depends-on): Update.
46563         * MODULES.html.sh (Support for building libraries and executables):
46564         Update.
46566         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
46567         * modules/snippet/unused-parameter: Renamed from
46568         modules/unused-parameter.
46569         (Files, Makefile.am): Update.
46570         * build-aux/snippet/unused-parameter.h: Renamed from
46571         build-aux/unused-parameter.h.
46572         * modules/selinux-h (Depends-on): Update.
46573         * modules/unistr/base (Depends-on): Update.
46574         * MODULES.html.sh (Core language properties): Update.
46576         Rename module 'link-warning' to 'snippet/link-warning'.
46577         * modules/snippet/link-warning: Renamed from modules/link-warning.
46578         (Files, Makefile.am): Update.
46579         * build-aux/snippet/link-warning.h: Renamed from
46580         build-aux/link-warning.h.
46581         * MODULES.html.sh (Support for building libraries and executables):
46582         Update.
46584         Rename module 'c++defs' to 'snippet/c++defs'.
46585         * modules/snippet/c++defs: Renamed from modules/c++defs.
46586         (Files, Makefile.am): Update.
46587         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
46588         * modules/arpa_inet (Depends-on): Update.
46589         * modules/ctype (Depends-on): Update.
46590         * modules/dirent (Depends-on): Update.
46591         * modules/fcntl-h (Depends-on): Update.
46592         * modules/glob (Depends-on): Update.
46593         * modules/iconv-h (Depends-on): Update.
46594         * modules/langinfo (Depends-on): Update.
46595         * modules/locale (Depends-on): Update.
46596         * modules/math (Depends-on): Update.
46597         * modules/netdb (Depends-on): Update.
46598         * modules/poll-h (Depends-on): Update.
46599         * modules/pty (Depends-on): Update.
46600         * modules/search (Depends-on): Update.
46601         * modules/signal (Depends-on): Update.
46602         * modules/spawn (Depends-on): Update.
46603         * modules/stdio (Depends-on): Update.
46604         * modules/stdlib (Depends-on): Update.
46605         * modules/string (Depends-on): Update.
46606         * modules/strings (Depends-on): Update.
46607         * modules/sys_ioctl (Depends-on): Update.
46608         * modules/sys_select (Depends-on): Update.
46609         * modules/sys_socket (Depends-on): Update.
46610         * modules/sys_stat (Depends-on): Update.
46611         * modules/sys_time (Depends-on): Update.
46612         * modules/sys_wait (Depends-on): Update.
46613         * modules/termios (Depends-on): Update.
46614         * modules/time (Depends-on): Update.
46615         * modules/unistd (Depends-on): Update.
46616         * modules/wchar (Depends-on): Update.
46617         * modules/wctype-h (Depends-on): Update.
46619         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
46620         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
46621         (Files, Makefile.am): Update.
46622         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
46623         * modules/argv-iter (Depends-on): Update.
46624         * modules/arpa_inet (Depends-on): Update.
46625         * modules/dirent (Depends-on): Update.
46626         * modules/fcntl-h (Depends-on): Update.
46627         * modules/fnmatch (Depends-on): Update.
46628         * modules/getopt-posix (Depends-on): Update.
46629         * modules/glob (Depends-on): Update.
46630         * modules/iconv-h (Depends-on): Update.
46631         * modules/inttypes-incomplete (Depends-on): Update.
46632         * modules/locale (Depends-on): Update.
46633         * modules/math (Depends-on): Update.
46634         * modules/netdb (Depends-on): Update.
46635         * modules/search (Depends-on): Update.
46636         * modules/signal (Depends-on): Update.
46637         * modules/spawn (Depends-on): Update.
46638         * modules/stdio (Depends-on): Update.
46639         * modules/stdlib (Depends-on): Update.
46640         * modules/string (Depends-on): Update.
46641         * modules/strings (Depends-on): Update.
46642         * modules/sys_socket (Depends-on): Update.
46643         * modules/sys_stat (Depends-on): Update.
46644         * modules/sys_time (Depends-on): Update.
46645         * modules/sys_times (Depends-on): Update.
46646         * modules/sys_utsname (Depends-on): Update.
46647         * modules/time (Depends-on): Update.
46648         * modules/unistd (Depends-on): Update.
46649         * modules/wchar (Depends-on): Update.
46650         * MODULES.html.sh (Support for building libraries and executables):
46651         Update.
46653 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46655         Improvements on _Noreturn and related modules.
46657         modules/_Exit-tests: test _Noreturn too
46658         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
46659         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
46660         (main): Use them.
46662         stdnoreturn, stdnoreturn-tests: remove modules
46663         They're not needed here and a bit premature for use elsewhere.  See
46664         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
46665         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
46666         * tests/test-stdnoreturn.c: Remove files.
46667         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
46668         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
46669         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
46670         and using noreturn.
46671         * modules/openat, modules/sigpipe-die, modules/xalloc:
46672         * modules/xmemdup0, modules/xstrtol:
46673         Remove dependency on stdnoreturn.
46675         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
46676         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
46677         Reparenthesize to avoid GCC warning.
46678         Support Microsoft's syntax.
46679         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
46681         _Noreturn-tests: remove module
46682         * modules/_Noreturn-tests: Remove.
46683         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
46684         * tests/test-_Noreturn.c: Remove.
46685         * tests/test-stdnoreturn.c: Merge from the old
46686         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
46688 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
46690         _Noreturn, stdnoreturn, and related modules.
46692         * top/maint.mk: Adjust to new noreturn support.
46693         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
46694         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
46696         xalloc: use stdnoreturn.h
46697         * lib/xalloc.h: Include <stdnoreturn.h>.
46698         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46699         * modules/xalloc (Depends-on): Add stdnoreturn.
46701         xstrtol: use stdnoreturn.h
46702         * lib/xstrtol.h: Include <stdnoreturn.h>.
46703         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46704         * modules/xstrtol (Depends-on): Add stdnoreturn.
46706         xmemdup0: use stdnoreturn.h
46707         * lib/xmemdup0.h: Include <stdnoreturn.h>.
46708         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46709         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
46711         sigpipe-die: use stdnoreturn.h
46712         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
46713         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46714         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
46716         openat: use stdnoreturn.h
46717         * lib/openat.h: Include <stdnoreturn.h>.
46718         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
46719         * modules/openat (Depends-on): Add stdnoreturn.
46721         * lib/openat-die.c (openat_save_fail): Modernize comment.
46723         * lib/xalloc-die.c (xalloc_die): Modernize comment.
46725         * lib/glthread/thread.h: Modernize comment.
46727         obstack: use _Noreturn
46728         * lib/obstack.c (__attribute__): Remove macro.
46729         (print_and_abort): Use _Noreturn.
46731         c-stack: use _Noreturn
46732         * lib/c-stack.c (die, overflow_handler, segv_handler):
46733         Use _Noreturn rather than __attribute__((noreturn)).
46735         argmatch-tests, exclude_tests: use _Noreturn
46736         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
46737         Remove.
46738         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
46740         stdlib: use _Noreturn
46741         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
46742         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
46743         * modules/stdlib (Depends-on): Add _Noreturn.
46744         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
46746         stdnoreturn-tests: new module
46747         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
46749         stdnoreturn: new module
46750         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
46751         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
46753         _Noreturn-tests: new module
46754         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
46756         _Noreturn: new module
46757         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
46758         New section, mentioning it.
46759         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
46761         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
46763 2011-07-11  Eric Blake  <eblake@redhat.com>
46765         ffs: new module
46766         * modules/ffs: New file.
46767         * m4/ffs.m4: Likewise.
46768         * lib/ffs.c: Likewise.
46769         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
46770         * modules/strings (Makefile.am): Substitute witness.
46771         (Depends-on): Add c++defs.
46772         * lib/strings.in.h (ffs): Declare.
46773         * modules/ffs-tests: New test file.
46774         * tests/test-ffs.c: Test new module.
46775         * MODULES.html.sh (Integer arithmetic functions): Mention it.
46776         * doc/posix-functions/ffs.texi (ffs): Likewise.
46778         regex: avoid compiler warning
46779         * lib/regex.c (includes): Include <strings.h>, for use of
46780         strcasecmp in regcomp.c.
46781         Reported by Joachim Schmitz.
46783 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46785         stdint: respect system's intmax_t if INTMAX_MAX
46786         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
46787         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
46788         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
46789         long but int64_t is long long, and where we will clash with the
46790         system intmax_t if we override it.  See
46791         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
46792         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
46793         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
46794         similarly for UINTMAX_C.
46796 2011-07-08  Bruno Haible  <bruno@clisp.org>
46798         pthread_sigmask tests: Avoid a compiler warning.
46799         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
46800         non-zero.
46802         sigprocmask tests: A better way to avoid a compiler warning.
46803         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
46804         (main): Complain if system() returns non-zero.
46805         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
46807 2011-07-08  Bruno Haible  <bruno@clisp.org>
46809         pthread_sigmask: Work around IRIX bug.
46810         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
46811         bug.
46812         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
46813         there may be unblocked pending signals.
46814         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
46816 2011-07-08  Bruno Haible  <bruno@clisp.org>
46818         pthread_sigmask: Work around Cygwin bug.
46819         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
46820         bug.
46821         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
46822         the system's pthread_sigmask function.
46823         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
46825 2011-07-08  Bruno Haible  <bruno@clisp.org>
46827         pthread_sigmask: Work around bug in single-threaded implementation.
46828         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
46829         FreeBSD, HP-UX, Solaris bug.
46830         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
46831         * lib/pthread_sigmask.c: Include <stddef.h>.
46832         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
46833         the system's pthread_sigmask function.
46834         * modules/pthread_sigmask (configure.ac): Invoke
46835         gl_PREREQ_PTHREAD_SIGMASK.
46836         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
46837         HP-UX, Solaris.
46839 2011-07-08  Eric Blake  <eblake@redhat.com>
46841         test-sigprocmask: avoid compiler warning
46842         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
46843         * tests/test-sigprocmask.c (main): Use it to silence warning.
46844         Reported by Jim Meyering.
46846         test-snprintf: avoid compiler warning
46847         * tests/test-snprintf.c (main): Avoid shadowed declaration.
46848         * tests/test-vsnprintf.c (main): Likewise.
46849         Reported by Jim Meyering.
46851 2011-07-08  Bruno Haible  <bruno@clisp.org>
46853         Tests for module 'pthread_sigmask'.
46854         * modules/pthread_sigmask-tests: New file.
46855         * tests/test-pthread_sigmask1.c: New file, based on
46856         tests/test-sigprocmask.c.
46857         * tests/test-pthread_sigmask2.c: New file.
46859 2011-07-08  Jim Meyering  <meyering@redhat.com>
46861         test-getopt.h: avoid warning about an unused variable
46862         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
46864 2011-07-07  Jim Meyering  <meyering@redhat.com>
46866         maint: reduce list of files exempt from sc_prohibit_leading_TABs
46867         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
46868         now that it no longer contains leading TABs.
46869         Remove unused "url=FIXME" statement.
46871 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46873         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
46874         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46875         When gl_THREADLIB is not in use, assume that the POSIX sematics
46876         are desired.  This is better for Emacs, which uses POSIX semantics
46877         on GNUish and/or POSIXish platforms, and does not use threads at
46878         all otherwise.
46880         pthread_sigmask: fix typo when testing for libraries
46881         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
46882         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
46884 2011-07-08  Eric Blake  <eblake@redhat.com>
46886         fts: introduce FTS_NOATIME
46887         * lib/fts_.h (FTS_NOATIME): New bit flag.
46888         (FTS_OPTIONMASK): Adjust.
46889         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
46890         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
46892 2011-07-08  Bruno Haible  <bruno@clisp.org>
46894         Tests for module 'thread'.
46895         * modules/thread-tests: New file.
46896         * tests/test-thread_self.c: New file.
46897         * tests/test-thread_create.cc: New file.
46899 2011-07-08  Bruno Haible  <bruno@clisp.org>
46901         thread: Avoid gcc warnings when using gl_thread_self().
46902         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
46903         'void *'.
46904         (gl_thread_self_pointer): Update.
46906 2011-07-07  Bruno Haible  <bruno@clisp.org>
46908         signal-c++-tests: Check declaration of pthread_sigmask.
46909         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
46910         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
46911         $(LIB_PTHREAD_SIGMASK).
46913 2011-07-07  Bruno Haible  <bruno@clisp.org>
46915         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
46916         * lib/signal.in.h (pthread_sigmask): Override if
46917         REPLACE_PTHREAD_SIGMASK is 1.
46918         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46919         REPLACE_PTHREAD_SIGMASK.
46920         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
46921         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
46922         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
46923         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
46924         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
46926 2011-07-07  Bruno Haible  <bruno@clisp.org>
46928         pthread_sigmask: Ensure declaration in <signal.h>.
46929         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
46930         include <pthread.h>.
46931         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
46932         problem.
46934 2011-07-07  Bruno Haible  <bruno@clisp.org>
46936         pthread_sigmask: Document the module.
46937         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
46939 2011-07-07  Bruno Haible  <bruno@clisp.org>
46941         pthread_sigmask: Follow gnulib conventions.
46942         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
46943         gl_PTHREAD_SIGMASK.
46944         * modules/pthread_sigmask (configure.ac): Update.
46946 2011-07-07  Bruno Haible  <bruno@clisp.org>
46948         pthread_sigmask: Make declaration C++ safe.
46949         * lib/signal.in.h: In two special conditions, just do an #include_next.
46950         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
46951         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
46952         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46953         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
46954         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
46955         not REPLACE_PTHREAD_MASK.
46956         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
46957         not REPLACE_PTHREAD_MASK.
46958         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
46960 2011-07-07  Bruno Haible  <bruno@clisp.org>
46962         pthread_sigmask: Fix return value.
46963         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
46964         * lib/pthread_sigmask.c: New file.
46965         * modules/pthread_sigmask (Files): Add it.
46966         (configure.ac): Invoke AC_LIBOBJ.
46968 2011-07-07  Eric Blake  <eblake@redhat.com>
46970         getopt: more portable argv creation
46971         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
46972         const, use char arrays rather than strings.
46973         Suggested by Paul Eggert.
46975 2011-07-07  Bruno Haible  <bruno@clisp.org>
46977         Tests for module 'sigprocmask'.
46978         * modules/sigprocmask-tests: New file.
46979         * tests/test-sigprocmask.c: New file.
46981 2011-07-07  Bruno Haible  <bruno@clisp.org>
46983         float tests: Tweak.
46984         * tests/test-float.c (main): Tweak skip message.
46986 2011-07-07  Eric Blake  <eblake@redhat.com>
46988         getopt: avoid compiler warning during configure
46989         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
46990         assigning string literals to non-const pointer.
46992         getopt-gnu: avoid crash in glibc getopt
46993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
46994         * tests/test-getopt.h (test_getopt): Enhance test.
46995         * tests/test-getopt_long.h (test_getopt_long): Likewise.
46996         * doc/posix-functions/getopt.texi (getopt): Document it.
46997         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
46998         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
46999         Likewise.
47001 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
47003         getopt: handle W; without long options in getopt [BZ #12922]
47004         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
47005         but no long options are defined, just return 'W'.
47007 2011-07-07  Bruno Haible  <bruno@clisp.org>
47009         Avoid literal tabs.
47010         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
47011         variable containing a tab instead of a literal tab.
47012         Reported by Jim Meyering.
47014 2011-07-07  Bruno Haible  <bruno@clisp.org>
47016         Comments.
47017         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
47019 2011-07-06  Bruno Haible  <bruno@clisp.org>
47021         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
47022         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
47023         <winsock2.h>.
47024         (rpl_fd_isset, FD_ISSET): New definitions, copied from
47025         lib/sys_socket.in.h.
47026         (close, gethostname): Hide declarations from <winsock2.h>.
47027         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47028         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
47029         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
47030         (select): Don't override if gnulib's <sys/select.h> was already
47031         included.
47032         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
47033         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
47034         setsockopt, shutdown, select): Tweak indentation.
47036 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47038         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
47039         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
47040         in an application that does not use the sys_select module.
47042 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
47044         poll: do not return 0 on timeout=-1
47045         * lib/poll.c: Loop with yield if no events occurred.
47047 2011-07-06  Eric Blake  <eblake@redhat.com>
47049         pthread_sigmask: always replace when not using pthread
47050         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
47051         replacement when using some threading other than pthread.  Fix
47052         logic bug.
47054 2011-07-06  Bruno Haible  <bruno@clisp.org>
47056         Comments.
47057         * m4/printf.m4: Update comments about mingw.
47059 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47061         sys_select: define sigset_t more portably
47062         * lib/sys_select.in.h: Always include <sys/types.h>, since
47063         we now need sigset_t and mingw defines it there.
47064         Include <signal.h> before split inclusion guard, to avoid
47065         mishaps on Solaris, whose <signal.h> eventually includes us.
47066         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
47067         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
47068         which come from ...
47069         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
47070         gl_CHECK_TYPE_SIGSET_T.
47071         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
47072         does the real work.
47073         * modules/sys_select (Depends-on): Add 'signal'.
47075         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
47076         Suggested by Bruno Haible.
47078         pselect: Use pthread_sigmask, not sigprocmask.
47079         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
47080         multithreaded apps better than sigprocmask does.
47081         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
47082         sigprocmask directly.
47084 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47086         * lib/pselect.c (pselect): Use plain name, without "rpl_".
47087         Don't #undef,  since we don't need any underlying pselect.
47088         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
47089         (Depends-on): Add select.
47090         (Link): Add $(LIBSOCKET).
47091         These changes suggested by Bruno Haible.
47093         pselect: document better
47094         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47095         * doc/posix-functions/pselect.texi (pselect): Document new module.
47097         pthread_sigmask: new module
47098         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
47099         * doc/posix-functions/pthread_sigmask.texi: Document new module.
47100         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
47101         This is done only as a macro; I don't know how well that'll
47102         work for C++.  Move <sys/types.h> include before the include_next,
47103         to avoid mishap on Solaris.
47104         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
47105         * modules/signal (Makefile.am): Substitute the check's results.
47106         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
47108         test-pselect: new module
47109         * modules/pselect-tests, tests/test-pselect.c: New files.
47110         * tests/test-select.c, tests/test-sys_select-c++.cc:
47111         If TEST_PSELECT is defined, test pselect instead of testing select.
47113         * tests/test-sys_select.c (sigset_t): Test for it, too.
47114         Suggested by Bruno Haible.
47116 2011-07-05  Eric Blake  <eblake@redhat.com>
47118         snprintf: guarantee %1$d, for libintl
47119         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
47120         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
47121         * doc/posix-functions/snprintf.texi (snprintf): Update.
47122         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47123         * tests/test-snprintf.c (main): Enhance test.
47124         * tests/test-vsnprintf.c (main): Likewise.
47126 2011-07-05  Jim Meyering  <meyering@redhat.com>
47128         maint: exempt stdio-read.c and stdio-write.c from the cppi check
47129         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
47130         per Bruno's request, to accommodate this idiom (no space after "#")
47131         even when the function is inside an #if block:
47132         char *
47133         gets (char *s)
47134         #undef gets
47135         {
47136           ...
47137         }
47139 2011-07-04  Jim Meyering  <meyering@redhat.com>
47141         maint: indent with spaces, not TABs, and add a rule to check this
47142         * tests/test-userspec.c: Indent with spaces, not TABs.
47143         * tests/test-argp.c: Likewise.
47144         * tests/test-c-stack2.sh: Likewise.
47145         * tests/test-parse-duration.sh: Likewise
47146         * m4/strtod.m4: Likewise.
47147         * m4/alloca.m4: Likewise.
47148         * m4/pselect.m4: Likewise.
47149         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
47151 2011-07-03  Jim Meyering  <meyering@redhat.com>
47153         maint.mk: correct omissions in prohibit_argmatch_without_use check
47154         This rule would mistakenly report that argmatch.h is included without
47155         use even when both the argmatch and invalid_arg macro were used.
47156         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
47157         of argmatch and invalid_arg.
47159 2011-07-03  Bruno Haible  <bruno@clisp.org>
47161         Comments about EINTR.
47162         * lib/safe-read.h: Explain the purpose of this module.
47163         * lib/safe-write.h: Likewise.
47164         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
47165         module.
47166         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
47167         module.
47168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47170 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
47172         xnanosleep: Rewrite to use new dtotimespec module.
47173         It has the conversion code that used to be in xnanosleep.
47174         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
47175         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
47176         (TIME_T_MAX): Remove.
47177         (xnanosleep): Rewrite in terms of dtotimespec.
47178         * modules/xnanosleep (Depends-on): Add dtotimespec.
47179         Remove intprops, stdbool.
47181         timespec-add, timespec-sub: new modules
47182         * lib/timespec.h (timespec_add, timespec_sub): New decls.
47183         * lib/timespec-add.c, lib/timespec-sub.c:
47184         * modules/timespec-add, modules/timespec-sub: New files.
47186         dtotimespec: new module
47187         * lib/timespec.h (dtotimespec): New decl.
47188         * lib/dtotimespec.c, modules/dtotimespec: New files.
47190         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
47192         pselect: new module
47193         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
47194         (pselect): New decls.
47195         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
47196         since the standard pselect decl uses 'restrict'.
47197         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
47198         HAVE_PSELECT, REPLACE_PSELECT.
47199         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
47200         HAVE_PSELECT, REPLACE_PSELECT.
47201         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
47203         sys_select: don't depend on sys_socket
47204         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
47205         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
47206         This fix works on GNU and GNU-like platforms, but has not been tested
47207         on native Windows.
47208         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
47209         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
47210         gl_HEADER_SYS_SOCKET.
47211         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
47212         gl_PREREQ_SYS_H_WINSOCK2.
47214 2011-06-29  Eric Blake  <eblake@redhat.com>
47216         pipe2: fix C89 compile problem
47217         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
47218         Reported by Bruno Haible.
47220         pipe, pipe2: don't corrupt fd on error
47221         * lib/pipe.c (pipe): Leave fd unchanged on error.
47222         * lib/pipe2.c (pipe2): Likewise.
47223         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
47224         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
47226 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
47228         mmap-anon: do not use regular expressions inadvertently
47229         * m4/mmap-anon.m4: Remove trailing period from strings sought
47230         in the output.
47232 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
47234         nanosleep: fix integer overflow problem
47235         * lib/nanosleep.c (my_usleep): Don't assume signed integer
47236         arithmetic wraps around on overflow.
47238         nanosleep: simplify carrying
47239         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
47240         first call to the underyling nanosleep, not for the last one.
47241         This doesn't fix any bugs, but it simplifies the computation of
47242         the remaining delay.  Found while auditing integer overflow issues.
47244         dup2: remove test for existence of fcntl
47245         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
47246         "#if HAVE_FCNTL", in the configure-time test program.
47247         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
47248         and therefore speeds up "configure" a bit.  Found while
47249         adding the dup2 module to Emacs.
47251 2011-06-24  Eric Blake  <eblake@redhat.com>
47253         maint.mk: enhance useless header checks
47254         * top/maint.mk (_sc_header_without_use): Check both include
47255         styles.
47256         (sc_prohibit_assert_without_use)
47257         (sc_prohibit_close_stream_without_use)
47258         (sc_prohibit_getopt_without_use)
47259         (sc_prohibit_quotearg_without_use)
47260         (sc_prohibit_quote_without_use)
47261         (sc_prohibit_long_options_without_use)
47262         (sc_prohibit_inttostr_without_use)
47263         (sc_prohibit_ignore_value_without_use)
47264         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
47265         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
47266         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
47267         (sc_prohibit_hash_pjw_without_use)
47268         (sc_prohibit_safe_read_without_use)
47269         (sc_prohibit_argmatch_without_use)
47270         (sc_prohibit_canonicalize_without_use)
47271         (sc_prohibit_root_dev_ino_without_use)
47272         (sc_prohibit_openat_without_use)
47273         (sc_prohibit_c_ctype_without_use)
47274         (sc_prohibit_signal_without_use)
47275         (sc_prohibit_stdio--_without_use)
47276         (sc_prohibit_stdio-safer_without_use)
47277         (sc_prohibit_strings_without_use)
47278         (sc_prohibit_intprops_without_use)
47279         (sc_prohibit_stddef_without_use)
47280         (sc_prohibit_xfreopen_without_use): Update clients.
47282 2011-06-24  Jim Meyering  <meyering@redhat.com>
47284         syntax-check: keep one maint.mk rule in sync with its header
47285         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
47286         of the bug Eric has just fixed, with today's commit 25e4c2ec.
47287         I prefer to avoid temporary files here, so use <(...), but that
47288         is not supported by /bin/sh, so...
47289         (SHELL): Define to /bin/bash.
47291 2011-06-24  Eric Blake  <eblake@redhat.com>
47293         maint.mk: update sc_prohibit_intprops_without_use
47294         * top/maint.mk (_intprops_names): Match recent changes.
47296 2011-06-24  Bruno Haible  <bruno@clisp.org>
47298         strerror-override: No-op tweak.
47299         * lib/strerror-override.h (strerror_override): Reorder conditions,
47300         for consistency with lib/strerror-override.c.
47302 2011-06-23  Eric Blake  <eblake@redhat.com>
47304         maint.mk: test further PATH_MAX issues
47305         * top/maint.mk (sc_prohibit_path_max_array): Rename...
47306         (sc_prohibit_path_max_allocation): ...and also test alloca.
47307         Suggested by Jim Meyering.
47309 2011-06-22  Eric Blake  <eblake@redhat.com>
47311         maint.mk: add syntax-check to avoid char[PATH_MAX]
47312         * top/maint.mk (sc_prohibit_path_max_array): New rule.
47314         stat: be robust to PATH_MAX definition
47315         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
47316         * modules/stat (Depends-on): Add verify.
47318         link: work around IRIX bug
47319         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
47320         * lib/link.c (rpl_link): Work around it.
47321         * tests/test-link.h (test_link): Enhance test.
47322         * doc/posix-functions/link.texi (link): Document the bug.
47324         getopt: silence clang warning
47325         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
47326         dereference.
47327         Reported by Gustavo Martin Domato.
47329 2011-06-22  Jim Meyering  <meyering@redhat.com>
47331         bootstrap: do not insert a blank line into each .gitignore file
47332         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
47334 2011-06-21  Eric Blake  <eblake@redhat.com>
47336         perror: test for output mismatch
47337         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
47338         perror on IRIX.
47340         strerror_r: fix OpenBSD behavior on out-of-range
47341         * lib/strerror_r.c (strerror_r): Always use maximal string.
47342         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
47344         strerror_r: fix OpenBSD behavior on 0
47345         * lib/strerror-override.c (strerror_override): Also override 0
47346         when needed.
47347         * lib/strerror-override.h (strerror_override): Likewise.
47348         * lib/strerror.c (strerror): Simplify, now that 0 override is done
47349         earlier.
47350         * lib/strerror_r.c (strerror_r): Likewise.
47351         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
47352         behavior...
47353         (gl_FUNC_STRERROR_0): ...into new macro.
47354         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
47355         is overridden.
47356         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
47357         * modules/strerror-override (Files): Add strerror.m4.
47358         (configure.ac): Also provide override for 0 when needed.
47359         * doc/posix-functions/strerror.texi (strerror): Document this.
47360         * doc/posix-functions/perror.texi (perror): Likewise.
47362         perror: adjust array size
47363         * modules/perror (Depends-on): Add strerror-override.
47364         * lib/perror.c (perror): Use it to avoid magic number.
47366         strerror-override: reduce size
47367         * lib/strerror-override.c (strerror_override): Use fewer lines.
47369 2011-06-20  Bruno Haible  <bruno@clisp.org>
47371         pathmax: Ensure correct value for PATH_MAX on HP-UX.
47372         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
47374 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47376         alloca: port to compilers that can optimize like GCC 4.6.0
47377         * lib/alloca.c (find_stack_direction): New signature, taken from
47378         Autoconf git.  This works with GCC 4.6.0.  This code should never
47379         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
47380         be used with other compilers that optimize as well as GCC 4.6.0 does.
47381         (alloca): Adjust to new signature.
47382         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
47383         New macro, which patches Autoconf in a similar way.
47385         c-stack: stop worrying about stack direction
47386         * lib/c-stack.c (find_stack_direction): Remove.
47387         (segv_handler): Don't worry about stack direction growth, as it's
47388         too much of a pain to configure this correctly, given how compilers
47389         are optimizing-away our stack-growth detection code.  Instead, assume
47390         that any access to just before or just after the stack is OK.
47391         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47392         Don't require AC_FUNC_ALLOCA; no longer needed.
47394 2011-06-20  Eric Blake  <eblake@redhat.com>
47396         test-stat: don't allocate PATH_MAX bytes
47397         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
47398         PATH_MAX-sized buffer.
47399         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
47400         * modules/stat-tests (Depends-on): Likewise.
47401         * tests/test-fstatat.c (includes): Drop pathmax.h.
47402         * tests/test-stat.c (includes): Likewise.
47403         Reported by Bruno Haible.
47405 2011-06-20  Bruno Haible  <bruno@clisp.org>
47407         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
47408         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
47409         * lib/float.c: New file.
47410         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
47411         REPLACE_FLOAT_LDBL.
47412         * modules/float (Files): Add lib/float.c.
47413         (configure.ac): Invoke AC_LIBOBJ.
47414         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
47416 2011-06-20  Bruno Haible  <bruno@clisp.org>
47418         Tests for module 'float'.
47419         * modules/float-tests: New file.
47420         * tests/test-float.c: New file.
47422 2011-06-19  Bruno Haible  <bruno@clisp.org>
47424         isinf: Coding style.
47425         * lib/isinf.c: Use GNU coding style.
47427 2011-06-19  Bruno Haible  <bruno@clisp.org>
47429         linkat test: Avoid test failure on AIX 7.1.
47430         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
47431         * tests/test-link.h (test_link): Likewise.
47433 2011-06-19  Bruno Haible  <bruno@clisp.org>
47435         pread test: Avoid test failure on OpenBSD 4.9.
47436         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
47438 2011-06-19  Bruno Haible  <bruno@clisp.org>
47440         sprintf-posix: Fix test failure on AIX 7.1.
47441         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
47442         * doc/posix-functions/dprintf.texi: Mention limited precision problem
47443         on AIX.
47444         * doc/posix-functions/fprintf.texi: Likewise.
47445         * doc/posix-functions/printf.texi: Likewise.
47446         * doc/posix-functions/snprintf.texi: Likewise.
47447         * doc/posix-functions/sprintf.texi: Likewise.
47448         * doc/posix-functions/vdprintf.texi: Likewise.
47449         * doc/posix-functions/vfprintf.texi: Likewise.
47450         * doc/posix-functions/vprintf.texi: Likewise.
47451         * doc/posix-functions/vsnprintf.texi: Likewise.
47452         * doc/posix-functions/vsprintf.texi: Likewise.
47454 2011-06-19  Bruno Haible  <bruno@clisp.org>
47456         roundl-ieee: Fix test failure on AIX 7.1.
47457         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
47458         * doc/posix-functions/roundl.texi: Mention problem with negative
47459         arguments.
47461 2011-06-19  Bruno Haible  <bruno@clisp.org>
47463         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47464         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
47465         * doc/posix-functions/round.texi: Mention problem with negative
47466         arguments.
47467         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
47469 2011-06-19  Bruno Haible  <bruno@clisp.org>
47471         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
47472         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
47473         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
47474         * doc/posix-functions/roundf.texi: Mention problem with negative
47475         arguments.
47476         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
47478 2011-06-19  Bruno Haible  <bruno@clisp.org>
47480         ceilf-ieee: Work around bug on MacOS X 10.5.
47481         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
47483         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
47484         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
47485         IEEE compliant, avoid compiler optimizations.
47486         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
47487         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47488         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
47489         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47490         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47491         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47492         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47493         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47494         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47495         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47497 2011-06-19  Bruno Haible  <bruno@clisp.org>
47499         ceilf-ieee: Work around bug on AIX 7.1.
47500         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
47501         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
47503 2011-06-19  Bruno Haible  <bruno@clisp.org>
47505         ceil-ieee: Work around bug on AIX 7.1.
47506         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
47507         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
47509 2011-06-18  Bruno Haible  <bruno@clisp.org>
47511         fsync test: Avoid test failure on MacOS X and AIX.
47512         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
47513         EINVAL.
47515 2011-06-18  Bruno Haible  <bruno@clisp.org>
47517         openat, fdopendir tests: Fix link errors.
47518         * modules/openat-tests (Depends-on): Add progname.
47519         * modules/fdopendir-tests (Depends-on): Likewise.
47520         * tests/test-fchownat.c: Include progname.h.
47521         (main): Call set_program_name.
47522         * tests/test-fstatat.c: Include progname.h.
47523         (main): Call set_program_name.
47524         * tests/test-mkdirat.c: Include progname.h.
47525         (main): Call set_program_name.
47526         * tests/test-openat.c: Include progname.h.
47527         (main): Call set_program_name.
47528         * tests/test-unlinkat.c: Include progname.h.
47529         (main): Call set_program_name.
47530         * tests/test-fdopendir.c: Include progname.h.
47531         (main): Call set_program_name.
47533 2011-06-18  Bruno Haible  <bruno@clisp.org>
47535         Doc update.
47536         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
47537         HP-UX.
47538         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
47540 2011-06-18  Bruno Haible  <bruno@clisp.org>
47542         getcwd tests: Avoid compilation error on HP-UX 11.31.
47543         * modules/getcwd-tests (Depends-on): Add pathmax.
47544         * tests/test-getcwd.c: Include pathmax.h.
47546 2011-06-18  Bruno Haible  <bruno@clisp.org>
47548         isfinite, isinf: Fix link error on AIX 6 and 7.
47549         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
47550         needed, also test the macro with a 'float' argument.
47551         * m4/isinf.m4 (gl_ISINF): Likewise.
47553 2011-06-18  Bruno Haible  <bruno@clisp.org>
47555         getloadavg: Don't clobber LIBS. Regression from previous commit.
47556         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
47557         AC_CHECK_LIB from here...
47558         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
47559         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
47560         gl_func_getloadavg_done.
47561         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47563 2011-06-18  Bruno Haible  <bruno@clisp.org>
47565         clean-temp: Improve documentation.
47566         * lib/clean-temp.h: Explain better how to use this module.
47567         Reported by John Darrington <john@darrington.wattle.id.au>.
47569 2011-06-17  Bruno Haible  <bruno@clisp.org>
47571         pread, pwrite: Avoid cc warning on AIX.
47572         * lib/unistd.in.h (pread): Undefine before defining as a macro.
47573         (pwrite): Likewise.
47575 2011-06-17  Bruno Haible  <bruno@clisp.org>
47577         spawn-pipe tests: Fix link error.
47578         * tests/test-spawn-pipe-child.c: Undefine fprintf.
47579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47581 2011-06-17  Bruno Haible  <bruno@clisp.org>
47583         Tests: Remove unnecessary dependency.
47584         * modules/canonicalize-tests (Depends-on): Remove progname.
47585         * modules/chown-tests (Depends-on): Likewise.
47586         * modules/dirname-tests (Depends-on): Likewise.
47587         * modules/fdopendir-tests (Depends-on): Likewise.
47588         * modules/fdutimensat-tests (Depends-on): Likewise.
47589         * modules/hash-tests (Depends-on): Likewise.
47590         * modules/lchown-tests (Depends-on): Likewise.
47591         * modules/linkat-tests (Depends-on): Likewise.
47592         * modules/renameat-tests (Depends-on): Likewise.
47593         * modules/spawn-pipe-tests (Depends-on): Likewise.
47594         * modules/utimensat-tests (Depends-on): Likewise.
47596 2011-06-17  Bruno Haible  <bruno@clisp.org>
47598         spawn-pipe tests: Fix link error.
47599         * tests/test-spawn-pipe-child.c: Undefine fflush.
47601 2011-06-17  Bruno Haible  <bruno@clisp.org>
47603         Fix tests link errors.
47604         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
47605         * modules/chown-tests (Makefile.am): Don't link test-chown with
47606         LIBINTL.
47607         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
47608         LIBINTL.
47609         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
47610         LIBINTL.
47611         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
47612         LIBINTL.
47614 2011-06-16  Bruno Haible  <bruno@clisp.org>
47616         crypto/gc-sha1: Fix recent regression.
47617         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
47618         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
47620         crypto/gc-md5: Fix recent regression.
47621         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
47623         crypto/gc-md4: Fix recent regression.
47624         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
47625         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
47627         crypto/gc-arctwo: Fix recent regression.
47628         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
47629         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
47631         crypto/gc-rijndael: Fix recent regression.
47632         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
47633         (configure.ac): Invoke AC_LIBOBJ here.
47634         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
47635         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47637         crypto/gc-hmac-sha1: Fix recent regression.
47638         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
47639         (configure.ac): Invoke AC_LIBOBJ here.
47640         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
47641         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47643         crypto/gc-hmac-md5: Fix recent regression.
47644         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
47645         (configure.ac): Invoke AC_LIBOBJ here.
47646         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
47647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47649         crypto/gc-des: Fix recent regression.
47650         * modules/crypto/gc-des (Files): Remove m4/des.m4.
47651         (configure.ac): Invoke AC_LIBOBJ here.
47652         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
47653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47655         crypto/gc-arcfour: Fix recent regression.
47656         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
47657         (configure.ac): Invoke AC_LIBOBJ here.
47658         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
47659         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47661 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
47663         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
47664         After the 2011-05-21 change, this macro requires
47665         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
47666         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47668 2011-06-16  Bruno Haible  <bruno@clisp.org>
47670         fprintftime: Move AC_LIBOBJ invocations to module description.
47671         * m4/fprintftime.m4: Remove file.
47672         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
47673         (configure.ac): Remove gl_FPRINTFTIME call.
47674         (Makefile.am): Augment lib_SOURCES.
47675         Reported by Jim Meyering.
47677 2011-06-16  Bruno Haible  <bruno@clisp.org>
47679         tmpfile-safer: Finish 2011-05-23 commit.
47680         * m4/stdio-safer.m4: Really remove file.
47681         Reported by Jim Meyering.
47683 2011-06-16  Bruno Haible  <bruno@clisp.org>
47685         syntax-check: Fix typo.
47686         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
47687         printf-posix.m4.
47688         Reported by Jim Meyering.
47690 2011-06-13  Jim Meyering  <meyering@redhat.com>
47692         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
47693         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
47695 2011-05-23  Bruno Haible  <bruno@clisp.org>
47697         yesno: Move AC_LIBOBJ invocations to module description.
47698         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
47699         * modules/yesno (Makefile.am): Augment lib_SOURCES.
47701 2011-05-23  Bruno Haible  <bruno@clisp.org>
47703         xstrtol: Move AC_LIBOBJ invocations to module description.
47704         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
47705         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
47707 2011-05-23  Bruno Haible  <bruno@clisp.org>
47709         xstrtold: Move AC_LIBOBJ invocations to module description.
47710         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
47711         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
47713 2011-05-23  Bruno Haible  <bruno@clisp.org>
47715         xstrtod: Move AC_LIBOBJ invocations to module description.
47716         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
47717         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
47719 2011-05-23  Bruno Haible  <bruno@clisp.org>
47721         xnanosleep: Move AC_LIBOBJ invocations to module description.
47722         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
47723         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
47725 2011-05-23  Bruno Haible  <bruno@clisp.org>
47727         xgetcwd: Move AC_LIBOBJ invocations to module description.
47728         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
47729         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
47731 2011-05-23  Bruno Haible  <bruno@clisp.org>
47733         xalloc: Move AC_LIBOBJ invocations to module description.
47734         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
47735         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
47737 2011-05-23  Bruno Haible  <bruno@clisp.org>
47739         write-any-file: Move AC_LIBOBJ invocations to module description.
47740         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
47741         invocation.
47742         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
47744 2011-05-23  Bruno Haible  <bruno@clisp.org>
47746         utimens: Move AC_LIBOBJ invocations to module description.
47747         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
47748         * modules/utimens (Makefile.am): Augment lib_SOURCES.
47750 2011-05-23  Bruno Haible  <bruno@clisp.org>
47752         utimecmp: Move AC_LIBOBJ invocations to module description.
47753         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
47754         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
47756 2011-05-23  Bruno Haible  <bruno@clisp.org>
47758         userspec: Move AC_LIBOBJ invocations to module description.
47759         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
47760         * modules/userspec (Makefile.am): Augment lib_SOURCES.
47762 2011-05-23  Bruno Haible  <bruno@clisp.org>
47764         unlinkdir: Move AC_LIBOBJ invocations to module description.
47765         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
47766         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
47768 2011-05-23  Bruno Haible  <bruno@clisp.org>
47770         unistd-safer: Move AC_LIBOBJ invocations to module description.
47771         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
47772         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
47774 2011-05-23  Bruno Haible  <bruno@clisp.org>
47776         tempname: Move AC_LIBOBJ invocations to module description.
47777         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
47778         * modules/tempname (Makefile.am): Augment lib_SOURCES.
47780 2011-05-23  Bruno Haible  <bruno@clisp.org>
47782         strftime: Move AC_LIBOBJ invocations to module description.
47783         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
47784         * modules/strftime (Makefile.am): Augment lib_SOURCES.
47786 2011-05-23  Bruno Haible  <bruno@clisp.org>
47788         stdlib-safer: Move AC_LIBOBJ invocations to module description.
47789         * m4/stdlib-safer.m4: Remove file.
47790         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
47791         (configure.ac): Remove gl_STDLIB_SAFER call.
47792         (Makefile.am): Augment lib_SOURCES.
47794 2011-05-23  Bruno Haible  <bruno@clisp.org>
47796         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
47797         * m4/stdio-safer.m4: Remove file.
47798         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
47799         (configure.ac): Remove gl_TMPFILE_SAFER call.
47800         (Makefile.am): Augment lib_SOURCES.
47802 2011-05-23  Bruno Haible  <bruno@clisp.org>
47804         popen-safer: Move AC_LIBOBJ invocations to module description.
47805         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
47806         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
47807         (configure.ac): Remove gl_POPEN_SAFER call.
47808         (Makefile.am): Augment lib_SOURCES.
47810 2011-05-23  Bruno Haible  <bruno@clisp.org>
47812         freopen-safer: Move AC_LIBOBJ invocations to module description.
47813         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
47814         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
47815         (configure.ac): Remove gl_FREOPEN_SAFER call.
47816         (Makefile.am): Augment lib_SOURCES.
47818 2011-05-23  Bruno Haible  <bruno@clisp.org>
47820         fopen-safer: Move AC_LIBOBJ invocations to module description.
47821         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
47822         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
47823         (configure.ac): Remove gl_FOPEN_SAFER call.
47824         (Makefile.am): Augment lib_SOURCES.
47826 2011-05-23  Bruno Haible  <bruno@clisp.org>
47828         crypto/sha512: Move AC_LIBOBJ invocations to module description.
47829         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
47830         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
47832 2011-05-23  Bruno Haible  <bruno@clisp.org>
47834         crypto/sha256: Move AC_LIBOBJ invocations to module description.
47835         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
47836         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
47838 2011-05-23  Bruno Haible  <bruno@clisp.org>
47840         crypto/sha1: Move AC_LIBOBJ invocations to module description.
47841         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
47842         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
47844 2011-05-23  Bruno Haible  <bruno@clisp.org>
47846         settime: Move AC_LIBOBJ invocations to module description.
47847         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
47848         * modules/settime (Makefile.am): Augment lib_SOURCES.
47850 2011-05-23  Bruno Haible  <bruno@clisp.org>
47852         savedir: Move AC_LIBOBJ invocations to module description.
47853         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
47854         * modules/savedir (Makefile.am): Augment lib_SOURCES.
47856 2011-05-23  Bruno Haible  <bruno@clisp.org>
47858         save-cwd: Move AC_LIBOBJ invocations to module description.
47859         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
47860         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
47862 2011-05-23  Bruno Haible  <bruno@clisp.org>
47864         same: Move AC_LIBOBJ invocations to module description.
47865         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
47866         * modules/same (Makefile.am): Augment lib_SOURCES.
47868 2011-05-23  Bruno Haible  <bruno@clisp.org>
47870         safe-write: Move AC_LIBOBJ invocations to module description.
47871         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
47872         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
47873         instead of gl_SAFE_WRITE.
47874         (Makefile.am): Augment lib_SOURCES.
47876 2011-05-23  Bruno Haible  <bruno@clisp.org>
47878         safe-read: Move AC_LIBOBJ invocations to module description.
47879         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
47880         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
47881         of gl_SAFE_READ.
47882         (Makefile.am): Augment lib_SOURCES.
47884 2011-05-23  Bruno Haible  <bruno@clisp.org>
47886         safe-alloc: Move AC_LIBOBJ invocations to module description.
47887         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
47888         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
47890 2011-05-23  Bruno Haible  <bruno@clisp.org>
47892         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
47893         * m4/rijndael.m4: Remove file.
47894         * modules/crypto/rijndael (Files): Remove it.
47895         (configure.ac): Remove gl_RIJNDAEL call.
47896         (Makefile.am): Augment lib_SOURCES.
47898 2011-05-23  Bruno Haible  <bruno@clisp.org>
47900         readtokens: Move AC_LIBOBJ invocations to module description.
47901         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
47902         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
47904 2011-05-23  Bruno Haible  <bruno@clisp.org>
47906         read-file: Move AC_LIBOBJ invocations to module description.
47907         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
47908         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
47909         of gl_FUNC_READ_FILE.
47910         (Makefile.am): Augment lib_SOURCES.
47912 2011-05-23  Bruno Haible  <bruno@clisp.org>
47914         quotearg: Move AC_LIBOBJ invocations to module description.
47915         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
47916         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
47918 2011-05-23  Bruno Haible  <bruno@clisp.org>
47920         quote: Move AC_LIBOBJ invocations to module description.
47921         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
47922         * modules/quote (Makefile.am): Augment lib_SOURCES.
47924 2011-05-23  Bruno Haible  <bruno@clisp.org>
47926         posixver: Move AC_LIBOBJ invocations to module description.
47927         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
47928         * modules/posixver (Makefile.am): Augment lib_SOURCES.
47930 2011-05-23  Bruno Haible  <bruno@clisp.org>
47932         posixtm: Move AC_LIBOBJ invocations to module description.
47933         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
47934         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
47936 2011-05-23  Bruno Haible  <bruno@clisp.org>
47938         physmem: Move AC_LIBOBJ invocations to module description.
47939         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
47940         * modules/physmem (Makefile.am): Augment lib_SOURCES.
47942 2011-05-23  Bruno Haible  <bruno@clisp.org>
47944         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
47945         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
47946         invocation.
47947         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
47949 2011-05-23  Bruno Haible  <bruno@clisp.org>
47951         mpsort: Move AC_LIBOBJ invocations to module description.
47952         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
47953         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
47955 2011-05-23  Bruno Haible  <bruno@clisp.org>
47957         modechange: Move AC_LIBOBJ invocations to module description.
47958         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
47959         * modules/modechange (Makefile.am): Augment lib_SOURCES.
47961 2011-05-23  Bruno Haible  <bruno@clisp.org>
47963         mkdir-p: Move AC_LIBOBJ invocations to module description.
47964         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
47965         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
47967 2011-05-23  Bruno Haible  <bruno@clisp.org>
47969         mkancesdirs: Move AC_LIBOBJ invocations to module description.
47970         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
47971         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
47973 2011-05-23  Bruno Haible  <bruno@clisp.org>
47975         mgetgroups: Move AC_LIBOBJ invocations to module description.
47976         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
47977         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
47979 2011-05-23  Bruno Haible  <bruno@clisp.org>
47981         memxor: Move AC_LIBOBJ invocations to module description.
47982         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
47983         * modules/memxor (Makefile.am): Augment lib_SOURCES.
47985 2011-05-23  Bruno Haible  <bruno@clisp.org>
47987         memcoll: Move AC_LIBOBJ invocations to module description.
47988         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
47989         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
47991 2011-05-23  Bruno Haible  <bruno@clisp.org>
47993         memcasecmp: Move AC_LIBOBJ invocations to module description.
47994         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
47995         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
47997 2011-05-23  Bruno Haible  <bruno@clisp.org>
47999         crypto/md5: Move AC_LIBOBJ invocations to module description.
48000         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
48001         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
48003 2011-05-23  Bruno Haible  <bruno@clisp.org>
48005         crypto/md4: Move AC_LIBOBJ invocations to module description.
48006         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
48007         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
48009 2011-05-23  Bruno Haible  <bruno@clisp.org>
48011         crypto/md2: Move AC_LIBOBJ invocations to module description.
48012         * m4/md2.m4: Remove file.
48013         * modules/crypto/md2 (Files): Remove it.
48014         (configure.ac): Remove gl_MD2 call.
48015         (Makefile.am): Augment lib_SOURCES.
48017 2011-05-23  Bruno Haible  <bruno@clisp.org>
48019         long-options: Move AC_LIBOBJ invocations to module description.
48020         * m4/long-options.m4: Remove file.
48021         * modules/long-options (Files): Remove it.
48022         (configure.ac): Remove gl_LONG_OPTIONS call.
48023         (Makefile.am): Augment lib_SOURCES.
48025 2011-05-23  Bruno Haible  <bruno@clisp.org>
48027         i-ring: Move AC_LIBOBJ invocations to module description.
48028         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
48029         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
48031 2011-05-23  Bruno Haible  <bruno@clisp.org>
48033         idcache: Move AC_LIBOBJ invocations to module description.
48034         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
48035         * modules/idcache (Makefile.am): Augment lib_SOURCES.
48037 2011-05-23  Bruno Haible  <bruno@clisp.org>
48039         human: Move AC_LIBOBJ invocations to module description.
48040         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
48041         * modules/human (Makefile.am): Augment lib_SOURCES.
48043 2011-05-23  Bruno Haible  <bruno@clisp.org>
48045         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
48046         * m4/hmac-sha1.m4: Remove file.
48047         * modules/crypto/hmac-sha1 (Files): Remove it.
48048         (configure.ac): Remove gl_HMAC_SHA1 call.
48049         (Makefile.am): Augment lib_SOURCES.
48051 2011-05-23  Bruno Haible  <bruno@clisp.org>
48053         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
48054         * m4/hmac-md5.m4: Remove file.
48055         * modules/crypto/hmac-md5 (Files): Remove it.
48056         (configure.ac): Remove gl_HMAC_MD5 call.
48057         (Makefile.am): Augment lib_SOURCES.
48059 2011-05-23  Bruno Haible  <bruno@clisp.org>
48061         hash: Move AC_LIBOBJ invocations to module description.
48062         * m4/hash.m4: Remove file.
48063         * modules/hash (Files): Remove it.
48064         (configure.ac): Remove gl_HASH call.
48065         (Makefile.am): Augment lib_SOURCES.
48067 2011-05-23  Bruno Haible  <bruno@clisp.org>
48069         hard-locale: Move AC_LIBOBJ invocations to module description.
48070         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
48071         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
48073 2011-05-23  Bruno Haible  <bruno@clisp.org>
48075         getugroups: Move AC_LIBOBJ invocations to module description.
48076         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
48077         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
48079 2011-05-23  Bruno Haible  <bruno@clisp.org>
48081         gettime: Move AC_LIBOBJ invocations to module description.
48082         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
48083         * modules/gettime (Makefile.am): Augment lib_SOURCES.
48085 2011-05-23  Bruno Haible  <bruno@clisp.org>
48087         getndelim2: Move AC_LIBOBJ invocations to module description.
48088         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
48089         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
48091 2011-05-23  Bruno Haible  <bruno@clisp.org>
48093         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
48094         * m4/gc-pbkdf2-sha1.m4: Remove file.
48095         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
48096         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
48097         (Makefile.am): Augment lib_SOURCES.
48099 2011-05-23  Bruno Haible  <bruno@clisp.org>
48101         fts: Move AC_LIBOBJ invocations to module description.
48102         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
48103         * modules/fts (configure.ac): ... to here.
48105 2011-05-23  Bruno Haible  <bruno@clisp.org>
48107         file-type: Move AC_LIBOBJ invocations to module description.
48108         * m4/file-type.m4: Remove file.
48109         * modules/file-type (Files): Remove it.
48110         (configure.ac): Remove gl_FILE_TYPE call.
48111         (Makefile.am): Augment lib_SOURCES.
48113 2011-05-23  Bruno Haible  <bruno@clisp.org>
48115         filenamecat*: Respect rules for use of AC_LIBOBJ.
48116         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
48117         Remove AC_LIBOBJ invocation.
48118         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
48119         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
48121 2011-05-23  Bruno Haible  <bruno@clisp.org>
48123         filemode: Move AC_LIBOBJ invocations to module description.
48124         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
48125         * modules/filemode (Makefile.am): Augment lib_SOURCES.
48127 2011-05-23  Bruno Haible  <bruno@clisp.org>
48129         openat-safer: Move AC_LIBOBJ invocations to module description.
48130         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
48131         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
48133 2011-05-23  Bruno Haible  <bruno@clisp.org>
48135         fcntl-safer: Move AC_LIBOBJ invocations to module description.
48136         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
48137         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
48139 2011-05-23  Bruno Haible  <bruno@clisp.org>
48141         exclude: Move AC_LIBOBJ invocations to module description.
48142         * m4/exclude.m4: Remove file.
48143         * modules/exclude (Files): Remove it.
48144         (configure.ac): Remove gl_EXCLUDE call.
48145         (Makefile.am): Augment lib_SOURCES.
48147 2011-05-23  Bruno Haible  <bruno@clisp.org>
48149         dirname*: Respect rules for use of AC_LIBOBJ.
48150         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
48151         invocations.
48152         * modules/dirname (Makefile.am): Augment lib_SOURCES.
48153         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
48155 2011-05-23  Bruno Haible  <bruno@clisp.org>
48157         dirent-safer: Move AC_LIBOBJ invocations to module description.
48158         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
48159         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
48161 2011-05-23  Bruno Haible  <bruno@clisp.org>
48163         crypto/des: Move AC_LIBOBJ invocations to module description.
48164         * m4/des.m4: Remove file.
48165         * modules/crypto/des (Files): Remove it.
48166         (configure.ac): Remove gl_DES call.
48167         (Makefile.am): Augment lib_SOURCES.
48169 2011-05-23  Bruno Haible  <bruno@clisp.org>
48171         cycle-check: Move AC_LIBOBJ invocations to module description.
48172         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
48173         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
48175 2011-05-23  Bruno Haible  <bruno@clisp.org>
48177         c-strtold: Move AC_LIBOBJ invocations to module description.
48178         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
48179         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
48181 2011-05-23  Bruno Haible  <bruno@clisp.org>
48183         c-strtod: Move AC_LIBOBJ invocations to module description.
48184         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
48185         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
48187 2011-05-23  Bruno Haible  <bruno@clisp.org>
48189         crc: Move AC_LIBOBJ invocations to module description.
48190         * m4/crc.m4: Remove file.
48191         * modules/crc (Files): Remove it.
48192         (configure.ac): Remove gl_CRC call.
48193         (Makefile.am): Augment lib_SOURCES.
48195 2011-05-23  Bruno Haible  <bruno@clisp.org>
48197         close-stream: Move AC_LIBOBJ invocations to module description.
48198         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
48199         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
48201 2011-05-23  Bruno Haible  <bruno@clisp.org>
48203         closeout: Move AC_LIBOBJ invocations to module description.
48204         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
48205         * modules/closeout (Makefile.am): Augment lib_SOURCES.
48207 2011-05-23  Bruno Haible  <bruno@clisp.org>
48209         closein: Move AC_LIBOBJ invocations to module description.
48210         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
48211         * modules/closein (Makefile.am): Augment lib_SOURCES.
48213 2011-05-23  Bruno Haible  <bruno@clisp.org>
48215         cloexec: Move AC_LIBOBJ invocations to module description.
48216         * m4/cloexec.m4: Remove file.
48217         * modules/cloexec (Files): Remove it.
48218         (configure.ac): Remove gl_CLOEXEC call.
48219         (Makefile.am): Augment lib_SOURCES.
48221 2011-05-23  Bruno Haible  <bruno@clisp.org>
48223         check-version: Move AC_LIBOBJ invocations to module description.
48224         * m4/check-version.m4: Remove file.
48225         * modules/check-version (Files): Remove it.
48226         (configure.ac): Remove gl_CHECK_VERSION call.
48227         (Makefile.am): Augment lib_SOURCES.
48229 2011-05-23  Bruno Haible  <bruno@clisp.org>
48231         chdir-safer: Move AC_LIBOBJ invocations to module description.
48232         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
48233         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
48235 2011-05-23  Bruno Haible  <bruno@clisp.org>
48237         canonicalize: Move AC_LIBOBJ invocations to module description.
48238         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
48239         AC_LIBOBJ invocation.
48240         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
48242 2011-05-23  Bruno Haible  <bruno@clisp.org>
48244         canon-host: Move AC_LIBOBJ invocations to module description.
48245         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
48246         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
48247         instead of gl_CANON_HOST.
48248         (Makefile.am): Augment lib_SOURCES.
48250 2011-05-23  Bruno Haible  <bruno@clisp.org>
48252         backupfile: Move AC_LIBOBJ invocations to module description.
48253         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
48254         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
48256 2011-05-23  Bruno Haible  <bruno@clisp.org>
48258         argmatch: Move AC_LIBOBJ invocations to module description.
48259         * m4/argmatch.m4: Remove file.
48260         * modules/argmatch (Files): Remove it.
48261         (configure.ac): Remove gl_ARGMATCH call.
48262         (Makefile.am): Augment lib_SOURCES.
48264 2011-05-23  Bruno Haible  <bruno@clisp.org>
48266         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
48267         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
48268         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
48270 2011-05-23  Bruno Haible  <bruno@clisp.org>
48272         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
48273         * m4/arcfour.m4: Remove file.
48274         * modules/crypto/arcfour (Files): Remove it.
48275         (configure.ac): Remove gl_ARCFOUR call.
48276         (Makefile.am): Augment lib_SOURCES.
48278 2011-05-22  Bruno Haible  <bruno@clisp.org>
48280         write: Move AC_LIBOBJ invocations to module description.
48281         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
48282         * modules/write (configure.ac): ... to here.
48284 2011-05-22  Bruno Haible  <bruno@clisp.org>
48286         wmemset: Move AC_LIBOBJ invocations to module description.
48287         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
48288         here...
48289         * modules/wmemset (configure.ac): ... to here.
48291 2011-05-22  Bruno Haible  <bruno@clisp.org>
48293         wmemmove: Move AC_LIBOBJ invocations to module description.
48294         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
48295         here...
48296         * modules/wmemmove (configure.ac): ... to here.
48298 2011-05-22  Bruno Haible  <bruno@clisp.org>
48300         wmemcpy: Move AC_LIBOBJ invocations to module description.
48301         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
48302         here...
48303         * modules/wmemcpy (configure.ac): ... to here.
48305 2011-05-22  Bruno Haible  <bruno@clisp.org>
48307         wmemcmp: Move AC_LIBOBJ invocations to module description.
48308         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
48309         here...
48310         * modules/wmemcmp (configure.ac): ... to here.
48312 2011-05-22  Bruno Haible  <bruno@clisp.org>
48314         wmemchr: Move AC_LIBOBJ invocations to module description.
48315         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
48316         here...
48317         * modules/wmemchr (configure.ac): ... to here.
48319 2011-05-22  Bruno Haible  <bruno@clisp.org>
48321         wcswidth: Move AC_LIBOBJ invocations to module description.
48322         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
48323         here...
48324         * modules/wcswidth (configure.ac): ... to here.
48326 2011-05-22  Bruno Haible  <bruno@clisp.org>
48328         wcwidth: Respect rules for use of AC_LIBOBJ.
48329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
48330         invocation from here...
48331         * modules/wcwidth (configure.ac): ... to here.
48332         (Depends-on): Update conditions.
48334 2011-05-22  Bruno Haible  <bruno@clisp.org>
48336         wctype: Move AC_LIBOBJ invocations to module description.
48337         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
48338         invocation from here...
48339         * modules/wctype (configure.ac): ... to here.
48340         (Depends-on): Update conditions.
48342 2011-05-22  Bruno Haible  <bruno@clisp.org>
48344         wctrans: Move AC_LIBOBJ invocations to module description.
48345         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
48346         invocation from here...
48347         * modules/wctrans (configure.ac): ... to here.
48349 2011-05-22  Bruno Haible  <bruno@clisp.org>
48351         wctomb: Move AC_LIBOBJ invocations to module description.
48352         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
48353         invocations from here...
48354         * modules/wctomb (configure.ac): ... to here.
48356 2011-05-22  Bruno Haible  <bruno@clisp.org>
48358         wctob: Move AC_LIBOBJ invocations to module description.
48359         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
48360         gl_PREREQ_WCTOB invocations from here...
48361         * modules/wctob (configure.ac): ... to here.
48362         (Depends-on): Update conditions.
48364 2011-05-22  Bruno Haible  <bruno@clisp.org>
48366         wcsxfrm: Move AC_LIBOBJ invocations to module description.
48367         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
48368         here...
48369         * modules/wcsxfrm (configure.ac): ... to here.
48371 2011-05-22  Bruno Haible  <bruno@clisp.org>
48373         wcstok: Move AC_LIBOBJ invocations to module description.
48374         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
48375         * modules/wcstok (configure.ac): ... to here.
48377 2011-05-22  Bruno Haible  <bruno@clisp.org>
48379         wcsstr: Move AC_LIBOBJ invocations to module description.
48380         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
48381         * modules/wcsstr (configure.ac): ... to here.
48383 2011-05-22  Bruno Haible  <bruno@clisp.org>
48385         wcsspn: Move AC_LIBOBJ invocations to module description.
48386         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
48387         * modules/wcsspn (configure.ac): ... to here.
48389 2011-05-22  Bruno Haible  <bruno@clisp.org>
48391         wcsrtombs: Move AC_LIBOBJ invocations to module description.
48392         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
48393         gl_PREREQ_WCSRTOMBS invocations from here...
48394         * modules/wcsrtombs (configure.ac): ... to here.
48396 2011-05-22  Bruno Haible  <bruno@clisp.org>
48398         wcsrchr: Move AC_LIBOBJ invocations to module description.
48399         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
48400         here...
48401         * modules/wcsrchr (configure.ac): ... to here.
48403 2011-05-22  Bruno Haible  <bruno@clisp.org>
48405         wcspbrk: Move AC_LIBOBJ invocations to module description.
48406         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
48407         here...
48408         * modules/wcspbrk (configure.ac): ... to here.
48410 2011-05-22  Bruno Haible  <bruno@clisp.org>
48412         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
48413         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
48414         gl_PREREQ_WCSNRTOMBS invocations from here...
48415         * modules/wcsnrtombs (configure.ac): ... to here.
48417 2011-05-22  Bruno Haible  <bruno@clisp.org>
48419         wcsnlen: Move AC_LIBOBJ invocations to module description.
48420         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
48421         here...
48422         * modules/wcsnlen (configure.ac): ... to here.
48424 2011-05-22  Bruno Haible  <bruno@clisp.org>
48426         wcsncpy: Move AC_LIBOBJ invocations to module description.
48427         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
48428         here...
48429         * modules/wcsncpy (configure.ac): ... to here.
48431 2011-05-22  Bruno Haible  <bruno@clisp.org>
48433         wcsncmp: Move AC_LIBOBJ invocations to module description.
48434         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
48435         here...
48436         * modules/wcsncmp (configure.ac): ... to here.
48438 2011-05-22  Bruno Haible  <bruno@clisp.org>
48440         wcsncat: Move AC_LIBOBJ invocations to module description.
48441         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
48442         here...
48443         * modules/wcsncat (configure.ac): ... to here.
48445 2011-05-22  Bruno Haible  <bruno@clisp.org>
48447         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
48448         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
48449         from here...
48450         * modules/wcsncasecmp (configure.ac): ... to here.
48452 2011-05-22  Bruno Haible  <bruno@clisp.org>
48454         wcslen: Move AC_LIBOBJ invocations to module description.
48455         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
48456         * modules/wcslen (configure.ac): ... to here.
48458 2011-05-22  Bruno Haible  <bruno@clisp.org>
48460         wcsdup: Move AC_LIBOBJ invocations to module description.
48461         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
48462         * modules/wcsdup (configure.ac): ... to here.
48464 2011-05-22  Bruno Haible  <bruno@clisp.org>
48466         wcscspn: Move AC_LIBOBJ invocations to module description.
48467         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
48468         here...
48469         * modules/wcscspn (configure.ac): ... to here.
48471 2011-05-22  Bruno Haible  <bruno@clisp.org>
48473         wcscpy: Move AC_LIBOBJ invocations to module description.
48474         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
48475         * modules/wcscpy (configure.ac): ... to here.
48477 2011-05-22  Bruno Haible  <bruno@clisp.org>
48479         wcscoll: Move AC_LIBOBJ invocations to module description.
48480         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
48481         here...
48482         * modules/wcscoll (configure.ac): ... to here.
48484 2011-05-22  Bruno Haible  <bruno@clisp.org>
48486         wcscmp: Move AC_LIBOBJ invocations to module description.
48487         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
48488         * modules/wcscmp (configure.ac): ... to here.
48490 2011-05-22  Bruno Haible  <bruno@clisp.org>
48492         wcschr: Move AC_LIBOBJ invocations to module description.
48493         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
48494         * modules/wcschr (configure.ac): ... to here.
48496 2011-05-22  Bruno Haible  <bruno@clisp.org>
48498         wcscat: Move AC_LIBOBJ invocations to module description.
48499         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
48500         * modules/wcscat (configure.ac): ... to here.
48502 2011-05-22  Bruno Haible  <bruno@clisp.org>
48504         wcscasecmp: Move AC_LIBOBJ invocations to module description.
48505         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
48506         here...
48507         * modules/wcscasecmp (configure.ac): ... to here.
48509 2011-05-22  Bruno Haible  <bruno@clisp.org>
48511         wcrtomb: Move AC_LIBOBJ invocations to module description.
48512         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
48513         invocations from here...
48514         * modules/wcrtomb (configure.ac): ... to here.
48516 2011-05-22  Bruno Haible  <bruno@clisp.org>
48518         wcpncpy: Move AC_LIBOBJ invocations to module description.
48519         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
48520         here...
48521         * modules/wcpncpy (configure.ac): ... to here.
48523 2011-05-22  Bruno Haible  <bruno@clisp.org>
48525         wcpcpy: Move AC_LIBOBJ invocations to module description.
48526         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
48527         * modules/wcpcpy (configure.ac): ... to here.
48529 2011-05-22  Bruno Haible  <bruno@clisp.org>
48531         waitpid: Move AC_LIBOBJ invocations to module description.
48532         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
48533         invocation from here...
48534         * modules/waitpid (configure.ac): ... to here.
48536 2011-05-22  Bruno Haible  <bruno@clisp.org>
48538         utimensat: Move AC_LIBOBJ invocations to module description.
48539         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
48540         here...
48541         * modules/utimensat (configure.ac): ... to here.
48543 2011-05-22  Bruno Haible  <bruno@clisp.org>
48545         usleep: Move AC_LIBOBJ invocations to module description.
48546         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
48547         here...
48548         * modules/usleep (configure.ac): ... to here.
48550 2011-05-22  Bruno Haible  <bruno@clisp.org>
48552         unlockpt: Move AC_LIBOBJ invocations to module description.
48553         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
48554         gl_PREREQ_UNLOCKPT invocations from here...
48555         * modules/unlockpt (configure.ac): ... to here.
48557 2011-05-22  Bruno Haible  <bruno@clisp.org>
48559         unlink: Respect rules for use of AC_LIBOBJ.
48560         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
48561         * modules/unlink (configure.ac): ... to here.
48563 2011-05-22  Bruno Haible  <bruno@clisp.org>
48565         uname: Move AC_LIBOBJ invocations to module description.
48566         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
48567         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
48568         here...
48569         * modules/uname (configure.ac): ... to here.
48571 2011-05-22  Bruno Haible  <bruno@clisp.org>
48573         ttyname_r: Move AC_LIBOBJ invocations to module description.
48574         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
48575         gl_PREREQ_TTYNAME_R invocations from here...
48576         * modules/ttyname_r (configure.ac): ... to here.
48578 2011-05-22  Bruno Haible  <bruno@clisp.org>
48580         tsearch: Move AC_LIBOBJ invocations to module description.
48581         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
48582         invocations from here...
48583         * modules/tsearch (configure.ac): ... to here.
48585 2011-05-22  Bruno Haible  <bruno@clisp.org>
48587         towctrans: Move AC_LIBOBJ invocations to module description.
48588         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
48589         AC_LIBOBJ invocation from here...
48590         * modules/towctrans (configure.ac): ... to here.
48592 2011-05-22  Bruno Haible  <bruno@clisp.org>
48594         tmpfile: Move AC_LIBOBJ invocations to module description.
48595         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
48596         invocations from here...
48597         * modules/tmpfile (configure.ac): ... to here.
48599 2011-05-22  Bruno Haible  <bruno@clisp.org>
48601         times: Move AC_LIBOBJ invocations to module description.
48602         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
48603         * modules/times (configure.ac): ... to here.
48605 2011-05-22  Bruno Haible  <bruno@clisp.org>
48607         time_r: Move AC_LIBOBJ invocations to module description.
48608         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
48609         invocations from here...
48610         * modules/time_r (configure.ac): ... to here.
48612 2011-05-22  Bruno Haible  <bruno@clisp.org>
48614         timegm: Move AC_LIBOBJ invocations to module description.
48615         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
48616         invocations from here...
48617         * modules/timegm (configure.ac): ... to here.
48619 2011-05-22  Bruno Haible  <bruno@clisp.org>
48621         tcgetsid: Move AC_LIBOBJ invocations to module description.
48622         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
48623         and gl_PREREQ_TCGETSID invocations from here...
48624         * modules/tcgetsid (configure.ac): ... to here.
48625         (Depends-on): Update conditions.
48627 2011-05-22  Bruno Haible  <bruno@clisp.org>
48629         symlinkat: Move AC_LIBOBJ invocations to module description.
48630         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
48631         here...
48632         * modules/symlinkat (configure.ac): ... to here.
48634 2011-05-22  Bruno Haible  <bruno@clisp.org>
48636         symlink: Move AC_LIBOBJ invocations to module description.
48637         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
48638         here...
48639         * modules/symlink (configure.ac): ... to here.
48641 2011-05-22  Bruno Haible  <bruno@clisp.org>
48643         strverscmp: Move AC_LIBOBJ invocations to module description.
48644         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
48645         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
48646         from here...
48647         * modules/strverscmp (configure.ac): ... to here.
48649 2011-05-22  Bruno Haible  <bruno@clisp.org>
48651         strtok_r: Move AC_LIBOBJ invocations to module description.
48652         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
48653         and gl_PREREQ_STRTOK_R invocations from here...
48654         * modules/strtok_r (configure.ac): ... to here.
48655         (Depends-on): Update conditions.
48657 2011-05-22  Bruno Haible  <bruno@clisp.org>
48659         strtoumax: Move AC_LIBOBJ invocations to module description.
48660         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
48661         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
48662         from here...
48663         * modules/strtoumax (configure.ac): ... to here.
48665 2011-05-22  Bruno Haible  <bruno@clisp.org>
48667         strtoimax: Move AC_LIBOBJ invocations to module description.
48668         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
48669         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
48670         from here...
48671         * modules/strtoimax (configure.ac): ... to here.
48673 2011-05-22  Bruno Haible  <bruno@clisp.org>
48675         strtoull: Move AC_LIBOBJ invocations to module description.
48676         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
48677         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
48678         from here...
48679         * modules/strtoull (configure.ac): ... to here.
48681 2011-05-22  Bruno Haible  <bruno@clisp.org>
48683         strtoll: Move AC_LIBOBJ invocations to module description.
48684         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
48685         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
48686         here...
48687         * modules/strtoll (configure.ac): ... to here.
48689 2011-05-22  Bruno Haible  <bruno@clisp.org>
48691         strtoul: Move AC_LIBOBJ invocations to module description.
48692         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
48693         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48694         * modules/strtoul (configure.ac): ... to here.
48696 2011-05-22  Bruno Haible  <bruno@clisp.org>
48698         strtol: Move AC_LIBOBJ invocations to module description.
48699         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
48700         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
48701         * modules/strtol (configure.ac): ... to here.
48703 2011-05-22  Bruno Haible  <bruno@clisp.org>
48705         strtod: Move AC_LIBOBJ invocations to module description.
48706         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
48707         invocations from here...
48708         * modules/strtod (configure.ac): ... to here.
48710 2011-05-22  Bruno Haible  <bruno@clisp.org>
48712         strstr*: Move AC_LIBOBJ invocations to module description.
48713         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
48714         invocations from here...
48715         * modules/strstr-simple (configure.ac): ... to here.
48716         * modules/strstr (configure.ac): ... and here.
48718 2011-05-22  Bruno Haible  <bruno@clisp.org>
48720         strsignal: Move AC_LIBOBJ invocations to module description.
48721         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
48722         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
48723         * modules/strsignal (configure.ac): ... to here.
48724         (Depends-on): Update conditions.
48726 2011-05-22  Bruno Haible  <bruno@clisp.org>
48728         strsep: Move AC_LIBOBJ invocations to module description.
48729         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
48730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
48731         here...
48732         * modules/strsep (configure.ac): ... to here.
48734 2011-05-22  Bruno Haible  <bruno@clisp.org>
48736         strptime: Move AC_LIBOBJ invocations to module description.
48737         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
48738         gl_PREREQ_STRPTIME invocations from here...
48739         * modules/strptime (configure.ac): ... to here.
48741 2011-05-22  Bruno Haible  <bruno@clisp.org>
48743         strpbrk: Move AC_LIBOBJ invocations to module description.
48744         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
48745         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
48746         here...
48747         * modules/strpbrk (configure.ac): ... to here.
48749 2011-05-22  Bruno Haible  <bruno@clisp.org>
48751         strnlen: Move AC_LIBOBJ invocations to module description.
48752         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
48753         invocations from here...
48754         * modules/strnlen (configure.ac): ... to here.
48756 2011-05-22  Bruno Haible  <bruno@clisp.org>
48758         strndup: Move AC_LIBOBJ invocations to module description.
48759         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
48760         invocations from here...
48761         * modules/strndup (configure.ac): ... to here.
48762         (Depends-on): Update conditions.
48764 2011-05-22  Bruno Haible  <bruno@clisp.org>
48766         strncat: Move AC_LIBOBJ invocations to module description.
48767         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
48768         invocations from here...
48769         * modules/strncat (configure.ac): ... to here.
48771 2011-05-22  Bruno Haible  <bruno@clisp.org>
48773         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
48774         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
48775         invocations from here...
48776         * modules/strdup (configure.ac): ... to here.
48777         * modules/strdup-posix (configure.ac): ... and here.
48779 2011-05-22  Bruno Haible  <bruno@clisp.org>
48781         strcspn: Move AC_LIBOBJ invocations to module description.
48782         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
48783         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
48784         here...
48785         * modules/strcspn (configure.ac): ... to here.
48787 2011-05-22  Bruno Haible  <bruno@clisp.org>
48789         strchrnul: Move AC_LIBOBJ invocations to module description.
48790         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
48791         gl_PREREQ_STRCHRNUL invocations from here...
48792         * modules/strchrnul (configure.ac): ... to here.
48794 2011-05-22  Bruno Haible  <bruno@clisp.org>
48796         strcasestr*: Move AC_LIBOBJ invocations to module description.
48797         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
48798         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
48799         * modules/strcasestr-simple (configure.ac): ... to here.
48800         * modules/strcasestr (configure.ac): ... and here.
48802 2011-05-22  Bruno Haible  <bruno@clisp.org>
48804         strcase: Move AC_LIBOBJ invocations to module description.
48805         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
48806         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
48807         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
48808         gl_PREREQ_STRNCASECMP invocations from here...
48809         * modules/strcase (configure.ac): ... to here.
48811 2011-05-22  Bruno Haible  <bruno@clisp.org>
48813         stpncpy: Move AC_LIBOBJ invocations to module description.
48814         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
48815         here...
48816         * modules/stpncpy (configure.ac): ... to here.
48818 2011-05-22  Bruno Haible  <bruno@clisp.org>
48820         stpcpy: Move AC_LIBOBJ invocations to module description.
48821         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
48822         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
48823         here...
48824         * modules/stpcpy (configure.ac): ... to here.
48826 2011-05-21  Bruno Haible  <bruno@clisp.org>
48828         stat: Move AC_LIBOBJ invocations to module description.
48829         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
48830         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
48831         here...
48832         * modules/stat (configure.ac): ... to here.
48834 2011-05-21  Bruno Haible  <bruno@clisp.org>
48836         sleep: Move AC_LIBOBJ invocations to module description.
48837         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
48838         * modules/sleep (configure.ac): ... to here.
48840 2011-05-21  Bruno Haible  <bruno@clisp.org>
48842         signbit: Move AC_LIBOBJ invocations to module description.
48843         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
48844         * modules/signbit (configure.ac): ... to here.
48846 2011-05-21  Bruno Haible  <bruno@clisp.org>
48848         sigprocmask: Move AC_LIBOBJ invocations to module description.
48849         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
48850         gl_PREREQ_SIGPROMASK invocations from here...
48851         * modules/sigprocmask (configure.ac): ... to here.
48853 2011-05-21  Bruno Haible  <bruno@clisp.org>
48855         sigaction: Move AC_LIBOBJ invocations to module description.
48856         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
48857         gl_PREREQ_SIGACTION invocations from here...
48858         * modules/sigaction (configure.ac): ... to here.
48860 2011-05-21  Bruno Haible  <bruno@clisp.org>
48862         sig2str: Move AC_LIBOBJ invocations to module description.
48863         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
48864         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
48865         here...
48866         * modules/sig2str (configure.ac): ... to here.
48868 2011-05-21  Bruno Haible  <bruno@clisp.org>
48870         setlocale: Move AC_LIBOBJ invocations to module description.
48871         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
48872         gl_PREREQ_SETLOCALE invocations from here...
48873         * modules/setlocale (configure.ac): ... to here.
48875 2011-05-21  Bruno Haible  <bruno@clisp.org>
48877         unsetenv: Move AC_LIBOBJ invocations to module description.
48878         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
48879         and gl_PREREQ_UNSETENV invocations from here...
48880         * modules/unsetenv (configure.ac): ... to here.
48881         (Depends-on): Update.
48883 2011-05-21  Bruno Haible  <bruno@clisp.org>
48885         setenv: Move AC_LIBOBJ invocations to module description.
48886         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
48887         here...
48888         * modules/setenv (configure.ac): ... to here.
48890 2011-05-21  Bruno Haible  <bruno@clisp.org>
48892         selinux-h: Move AC_LIBOBJ invocations to module description.
48893         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
48894         AC_LIBOBJ invocation from here...
48895         * modules/selinux-h (configure.ac): ... to here.
48897 2011-05-21  Bruno Haible  <bruno@clisp.org>
48899         select: Respect rules for use of AC_LIBOBJ.
48900         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
48901         here...
48902         * modules/select (configure.ac): ... to here.
48904 2011-05-21  Bruno Haible  <bruno@clisp.org>
48906         scandir: Move AC_LIBOBJ invocations to module description.
48907         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
48908         invocations from here...
48909         * modules/scandir (configure.ac): ... to here.
48911 2011-05-21  Bruno Haible  <bruno@clisp.org>
48913         rpmatch: Move AC_LIBOBJ invocations to module description.
48914         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
48915         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
48916         here...
48917         * modules/rpmatch (configure.ac): ... to here.
48919 2011-05-21  Bruno Haible  <bruno@clisp.org>
48921         rmdir: Respect rules for use of AC_LIBOBJ.
48922         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
48923         * modules/rmdir (configure.ac): ... to here.
48925 2011-05-21  Bruno Haible  <bruno@clisp.org>
48927         renameat: Move AC_LIBOBJ invocations to module description.
48928         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
48929         here...
48930         * modules/renameat (configure.ac): ... to here.
48932 2011-05-21  Bruno Haible  <bruno@clisp.org>
48934         rename: Respect rules for use of AC_LIBOBJ.
48935         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
48936         here...
48937         * modules/rename (configure.ac): ... to here.
48939 2011-05-21  Bruno Haible  <bruno@clisp.org>
48941         remove: Move AC_LIBOBJ invocations to module description.
48942         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
48943         here...
48944         * modules/remove (configure.ac): ... to here.
48946 2011-05-21  Bruno Haible  <bruno@clisp.org>
48948         relocatable-lib: Move AC_LIBOBJ invocations to module description.
48949         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
48950         macro.
48951         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
48952         * modules/relocatable-lib (configure.ac): ... to here.
48953         * modules/relocatable-prog-wrapper (configure.ac): Invoke
48954         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
48956 2011-05-21  Bruno Haible  <bruno@clisp.org>
48958         relocatable-prog: Move AC_LIBOBJ invocations to module description.
48959         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
48960         here...
48961         * modules/relocatable-prog (configure.ac): ... to here.
48963 2011-05-21  Bruno Haible  <bruno@clisp.org>
48965         regex: Move AC_LIBOBJ invocations to module description.
48966         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
48967         invocations from here...
48968         * modules/regex (configure.ac): ... to here.
48970 2011-05-21  Bruno Haible  <bruno@clisp.org>
48972         realloc-*: Move AC_LIBOBJ invocations to module description.
48973         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
48974         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
48975         AC_LIBOBJ invocations from here...
48976         * modules/realloc-gnu (configure.ac): ... to here.
48977         * modules/realloc-posix (configure.ac): ... and here.
48979 2011-05-21  Bruno Haible  <bruno@clisp.org>
48981         readutmp: Move AC_LIBOBJ invocations to module description.
48982         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
48983         * modules/readutmp (configure.ac): ... to here.
48985 2011-05-21  Bruno Haible  <bruno@clisp.org>
48987         readlinkat: Move AC_LIBOBJ invocations to module description.
48988         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
48989         here...
48990         * modules/readlinkat (configure.ac): ... to here.
48992 2011-05-21  Bruno Haible  <bruno@clisp.org>
48994         readlink: Move AC_LIBOBJ invocations to module description.
48995         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
48996         gl_PREREQ_READLINK invocations from here...
48997         * modules/readlink (configure.ac): ... to here.
48999 2011-05-21  Bruno Haible  <bruno@clisp.org>
49001         readline: Move AC_LIBOBJ invocations to module description.
49002         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
49003         gl_PREREQ_READLINE invocations from here...
49004         * modules/readline (configure.ac): ... to here.
49006 2011-05-21  Bruno Haible  <bruno@clisp.org>
49008         read: Move AC_LIBOBJ invocations to module description.
49009         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
49010         * modules/read (configure.ac): ... to here.
49012 2011-05-21  Bruno Haible  <bruno@clisp.org>
49014         rawmemchr: Move AC_LIBOBJ invocations to module description.
49015         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
49016         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
49017         from here...
49018         * modules/rawmemchr (configure.ac): ... to here.
49020 2011-05-21  Bruno Haible  <bruno@clisp.org>
49022         random_r: Move AC_LIBOBJ invocations to module description.
49023         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
49024         gl_PREREQ_RANDOM_R invocations from here...
49025         * modules/random_r (configure.ac): ... to here.
49027 2011-05-21  Bruno Haible  <bruno@clisp.org>
49029         pwrite: Move AC_LIBOBJ invocations to module description.
49030         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
49031         * modules/pwrite (configure.ac): ... to here.
49033 2011-05-21  Bruno Haible  <bruno@clisp.org>
49035         putenv: Move AC_LIBOBJ invocations to module description.
49036         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
49037         * modules/putenv (configure.ac): ... to here.
49039 2011-05-21  Bruno Haible  <bruno@clisp.org>
49041         login_tty: Move AC_LIBOBJ invocations to module description.
49042         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
49043         * modules/login_tty (configure.ac): ... to here.
49045 2011-05-21  Bruno Haible  <bruno@clisp.org>
49047         openpty: Move AC_LIBOBJ invocations to module description.
49048         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
49049         * modules/openpty (configure.ac): ... to here.
49051 2011-05-21  Bruno Haible  <bruno@clisp.org>
49053         forkpty: Move AC_LIBOBJ invocations to module description.
49054         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
49055         * modules/forkpty (configure.ac): ... to here.
49057 2011-05-21  Bruno Haible  <bruno@clisp.org>
49059         ptsname: Move AC_LIBOBJ invocations to module description.
49060         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
49061         invocations from here...
49062         * modules/ptsname (configure.ac): ... to here.
49064 2011-05-21  Bruno Haible  <bruno@clisp.org>
49066         pread: Move AC_LIBOBJ invocations to module description.
49067         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
49068         * modules/pread (configure.ac): ... to here.
49070 2011-05-21  Bruno Haible  <bruno@clisp.org>
49072         posix_spawn*: Move AC_LIBOBJ invocations to module description.
49073         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
49074         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
49075         * modules/posix_spawn (configure.ac): ... to here.
49076         * modules/posix_spawnp (configure.ac): ... and here.
49078 2011-05-21  Bruno Haible  <bruno@clisp.org>
49080         popen: Move AC_LIBOBJ invocations to module description.
49081         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
49082         invocations from here...
49083         * modules/popen (configure.ac): ... to here.
49085 2011-05-21  Bruno Haible  <bruno@clisp.org>
49087         poll: Move AC_LIBOBJ invocations to module description.
49088         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
49089         invocations from here...
49090         * modules/poll (configure.ac): ... to here.
49092 2011-05-21  Bruno Haible  <bruno@clisp.org>
49094         pipe-posix: Move AC_LIBOBJ invocations to module description.
49095         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
49096         * modules/pipe-posix (configure.ac): ... to here.
49098 2011-05-21  Bruno Haible  <bruno@clisp.org>
49100         openat: Respect rules for use of AC_LIBOBJ.
49101         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
49102         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49103         * modules/openat (configure.ac): ... to here.
49105 2011-05-21  Bruno Haible  <bruno@clisp.org>
49107         obstack-printf*: Move AC_LIBOBJ invocations to module description.
49108         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
49109         invocation from here...
49110         * modules/obstack-printf (configure.ac): ... to here.
49111         * modules/obstack-printf-posix (configure.ac): ... and here.
49113 2011-05-21  Bruno Haible  <bruno@clisp.org>
49115         nl_langinfo: Move AC_LIBOBJ invocations to module description.
49116         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
49117         from here...
49118         * modules/nl_langinfo (configure.ac): ... to here.
49120 2011-05-21  Bruno Haible  <bruno@clisp.org>
49122         nanosleep: Move AC_LIBOBJ invocations to module description.
49123         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
49124         gl_PREREQ_NANOSLEEP invocations from here...
49125         * modules/nanosleep (configure.ac): ... to here.
49127 2011-05-21  Bruno Haible  <bruno@clisp.org>
49129         mountlist: Move AC_LIBOBJ invocations to module description.
49130         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
49131         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
49132         * modules/mountlist (configure.ac): ... to here.
49134 2011-05-21  Bruno Haible  <bruno@clisp.org>
49136         mktime: Respect rules for use of AC_LIBOBJ.
49137         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
49138         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
49139         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
49140         (gl_FUNC_MKTIME_INTERNAL): ... and here...
49141         * modules/mktime (configure.ac): ... to here.
49142         * modules/mktime-internal (configure.ac): ... and here.
49143         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
49145 2011-05-21  Bruno Haible  <bruno@clisp.org>
49147         mkstemps: Move AC_LIBOBJ invocations to module description.
49148         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
49149         here...
49150         * modules/mkstemps (configure.ac): ... to here.
49152 2011-05-21  Bruno Haible  <bruno@clisp.org>
49154         mkstemp: Move AC_LIBOBJ invocations to module description.
49155         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
49156         gl_PREREQ_MKSTEMP invocations from here...
49157         * modules/mkstemp (configure.ac): ... to here.
49159 2011-05-21  Bruno Haible  <bruno@clisp.org>
49161         mkostemps: Move AC_LIBOBJ invocations to module description.
49162         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
49163         here...
49164         * modules/mkostemps (configure.ac): ... to here.
49166 2011-05-21  Bruno Haible  <bruno@clisp.org>
49168         mkostemp: Move AC_LIBOBJ invocations to module description.
49169         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
49170         gl_PREREQ_MKOSTEMP invocations from here...
49171         * modules/mkostemp (configure.ac): ... to here.
49173 2011-05-21  Bruno Haible  <bruno@clisp.org>
49175         mknod: Move AC_LIBOBJ invocations to module description.
49176         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
49177         * modules/mknod (configure.ac): ... to here.
49179 2011-05-21  Bruno Haible  <bruno@clisp.org>
49181         mkfifoat: Move AC_LIBOBJ invocations to module description.
49182         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
49183         here...
49184         * modules/mkfifoat (configure.ac): ... to here.
49186 2011-05-21  Bruno Haible  <bruno@clisp.org>
49188         mkfifo: Respect rules for use of AC_LIBOBJ.
49189         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
49190         here...
49191         * modules/mkfifo (configure.ac): ... to here.
49193 2011-05-21  Bruno Haible  <bruno@clisp.org>
49195         mkdtemp: Move AC_LIBOBJ invocations to module description.
49196         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
49197         invocations from here...
49198         * modules/mkdtemp (configure.ac): ... to here.
49200 2011-05-21  Bruno Haible  <bruno@clisp.org>
49202         mkdir: Move AC_LIBOBJ invocations to module description.
49203         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
49204         * modules/mkdir (configure.ac): ... to here.
49206 2011-05-21  Bruno Haible  <bruno@clisp.org>
49208         memset: Move AC_LIBOBJ invocations to module description.
49209         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
49210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
49211         here...
49212         * modules/memset (configure.ac): ... to here.
49214 2011-05-21  Bruno Haible  <bruno@clisp.org>
49216         memrchr: Move AC_LIBOBJ invocations to module description.
49217         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
49218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
49219         here...
49220         * modules/memrchr (configure.ac): ... to here.
49222 2011-05-21  Bruno Haible  <bruno@clisp.org>
49224         mempcpy: Move AC_LIBOBJ invocations to module description.
49225         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
49226         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
49227         here...
49228         * modules/mempcpy (configure.ac): ... to here.
49230 2011-05-21  Bruno Haible  <bruno@clisp.org>
49232         memmove: Move AC_LIBOBJ invocations to module description.
49233         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
49234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
49235         here...
49236         * modules/memmove (configure.ac): ... to here.
49238 2011-05-21  Bruno Haible  <bruno@clisp.org>
49240         memmem*: Move AC_LIBOBJ invocations to module description.
49241         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
49242         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
49243         here...
49244         (gl_FUNC_MEMMEM): ... and here...
49245         * modules/memmem-simple (configure.ac): ... to here.
49246         * modules/memmem (configure.ac): ... and here.
49248 2011-05-21  Bruno Haible  <bruno@clisp.org>
49250         memcpy: Move AC_LIBOBJ invocations to module description.
49251         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
49252         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
49253         here...
49254         * modules/memcpy (configure.ac): ... to here.
49256 2011-05-21  Bruno Haible  <bruno@clisp.org>
49258         memcmp: Simplify autoconf macro.
49259         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
49260         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
49261         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
49263 2011-05-21  Bruno Haible  <bruno@clisp.org>
49265         memcmp: Move AC_LIBOBJ invocations to module description.
49266         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
49267         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
49268         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
49269         * modules/memcmp (configure.ac): ... to here.
49270         (Depends-on): Update conditions.
49272 2011-05-21  Bruno Haible  <bruno@clisp.org>
49274         memchr: Respect rules for use of AC_LIBOBJ.
49275         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
49276         invocations from here...
49277         * modules/memchr (configure.ac): ... to here.
49279 2011-05-21  Bruno Haible  <bruno@clisp.org>
49281         mbtowc: Move AC_LIBOBJ invocations to module description.
49282         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
49283         invocations from here...
49284         * modules/mbtowc (configure.ac): ... to here.
49286 2011-05-21  Bruno Haible  <bruno@clisp.org>
49288         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
49289         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
49290         gl_PREREQ_MBSRTOWCS invocations from here...
49291         * modules/mbsrtowcs (configure.ac): ... to here.
49293 2011-05-21  Bruno Haible  <bruno@clisp.org>
49295         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
49296         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
49297         gl_PREREQ_MBSNRTOWCS invocations from here...
49298         * modules/mbsnrtowcs (configure.ac): ... to here.
49300 2011-05-21  Bruno Haible  <bruno@clisp.org>
49302         mbsinit: Move AC_LIBOBJ invocations to module description.
49303         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
49304         invocations from here...
49305         * modules/mbsinit (configure.ac): ... to here.
49307 2011-05-21  Bruno Haible  <bruno@clisp.org>
49309         mbrlen: Move AC_LIBOBJ invocations to module description.
49310         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
49311         invocations from here...
49312         * modules/mbrlen (configure.ac): ... to here.
49314 2011-05-21  Bruno Haible  <bruno@clisp.org>
49316         mbrtowc: Respect rules for use of AC_LIBOBJ.
49317         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
49318         invocations from here...
49319         * modules/mbrtowc (configure.ac): ... to here.
49321 2011-05-21  Bruno Haible  <bruno@clisp.org>
49323         malloc-*: Move AC_LIBOBJ invocations to module description.
49324         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
49325         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
49326         AC_LIBOBJ invocations from here...
49327         * modules/malloc-gnu (configure.ac): ... to here.
49328         * modules/malloc-posix (configure.ac): ... and here.
49330 2011-05-21  Bruno Haible  <bruno@clisp.org>
49332         lstat, openat: Respect rules for use of AC_LIBOBJ.
49333         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
49334         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
49335         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
49336         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
49337         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
49338         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
49339         here.
49340         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
49342 2011-05-21  Bruno Haible  <bruno@clisp.org>
49344         lseek: Move AC_LIBOBJ invocations to module description.
49345         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
49346         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
49347         * modules/lseek (configure.ac): ... to here.
49349 2011-05-21  Bruno Haible  <bruno@clisp.org>
49351         linkat: Move AC_LIBOBJ invocations to module description.
49352         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
49353         here...
49354         * modules/linkat (configure.ac): ... to here.
49356 2011-05-21  Bruno Haible  <bruno@clisp.org>
49358         link: Respect rules for use of AC_LIBOBJ.
49359         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
49360         * modules/link (configure.ac): ... to here.
49362 2011-05-21  Bruno Haible  <bruno@clisp.org>
49364         lchown: Move AC_LIBOBJ invocations to module description.
49365         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
49366         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
49367         * modules/lchown (configure.ac): ... to here.
49369 2011-05-21  Bruno Haible  <bruno@clisp.org>
49371         iswctype: Move AC_LIBOBJ invocations to module description.
49372         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
49373         here...
49374         * modules/iswctype (configure.ac): ... to here.
49376 2011-05-21  Bruno Haible  <bruno@clisp.org>
49378         iswblank: Move AC_LIBOBJ invocations to module description.
49379         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
49380         here...
49381         * modules/iswblank (configure.ac): ... to here.
49383 2011-05-21  Bruno Haible  <bruno@clisp.org>
49385         atanl: Move AC_LIBOBJ invocations to module description.
49386         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
49387         * modules/atanl (configure.ac): ... to here.
49389 2011-05-21  Bruno Haible  <bruno@clisp.org>
49391         acosl: Move AC_LIBOBJ invocations to module description.
49392         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
49393         * modules/acosl (configure.ac): ... to here.
49395 2011-05-21  Bruno Haible  <bruno@clisp.org>
49397         asinl: Respect rules for use of AC_LIBOBJ.
49398         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
49399         * modules/asinl (configure.ac): ... to here.
49401 2011-05-21  Bruno Haible  <bruno@clisp.org>
49403         tanl: Move AC_LIBOBJ invocations to module description.
49404         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
49405         * modules/tanl (configure.ac): ... to here.
49407 2011-05-21  Bruno Haible  <bruno@clisp.org>
49409         cosl: Move AC_LIBOBJ invocations to module description.
49410         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
49411         * modules/cosl (configure.ac): ... to here.
49413 2011-05-21  Bruno Haible  <bruno@clisp.org>
49415         sinl: Move AC_LIBOBJ invocations to module description.
49416         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
49417         * modules/sinl (configure.ac): ... to here.
49419 2011-05-21  Bruno Haible  <bruno@clisp.org>
49421         logl: Move AC_LIBOBJ invocations to module description.
49422         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
49423         * modules/logl (configure.ac): ... to here.
49425 2011-05-21  Bruno Haible  <bruno@clisp.org>
49427         expl: Move AC_LIBOBJ invocations to module description.
49428         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
49429         * modules/expl (configure.ac): ... to here.
49431 2011-05-21  Bruno Haible  <bruno@clisp.org>
49433         roundl: Move AC_LIBOBJ invocations to module description.
49434         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
49435         * modules/roundl (configure.ac): ... to here.
49437 2011-05-21  Bruno Haible  <bruno@clisp.org>
49439         round: Move AC_LIBOBJ invocations to module description.
49440         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
49441         * modules/round (configure.ac): ... to here.
49443 2011-05-21  Bruno Haible  <bruno@clisp.org>
49445         roundf: Move AC_LIBOBJ invocations to module description.
49446         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
49447         * modules/roundf (configure.ac): ... to here.
49449 2011-05-21  Bruno Haible  <bruno@clisp.org>
49451         truncl: Move AC_LIBOBJ invocations to module description.
49452         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
49453         * modules/truncl (configure.ac): ... to here.
49455 2011-05-21  Bruno Haible  <bruno@clisp.org>
49457         trunc: Move AC_LIBOBJ invocations to module description.
49458         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
49459         * modules/trunc (configure.ac): ... to here.
49461 2011-05-21  Bruno Haible  <bruno@clisp.org>
49463         truncf: Move AC_LIBOBJ invocations to module description.
49464         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
49465         * modules/truncf (configure.ac): ... to here.
49467 2011-05-21  Bruno Haible  <bruno@clisp.org>
49469         ceill: Move AC_LIBOBJ invocations to module description.
49470         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
49471         * modules/ceill (configure.ac): ... to here.
49473 2011-05-21  Bruno Haible  <bruno@clisp.org>
49475         ceil: Move AC_LIBOBJ invocations to module description.
49476         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
49477         * modules/ceil (configure.ac): ... to here.
49479 2011-05-21  Bruno Haible  <bruno@clisp.org>
49481         ceilf: Move AC_LIBOBJ invocations to module description.
49482         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
49483         * modules/ceilf (configure.ac): ... to here.
49485 2011-05-21  Bruno Haible  <bruno@clisp.org>
49487         floorl: Respect rules for use of AC_LIBOBJ.
49488         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
49489         * modules/floorl (configure.ac): ... to here.
49491 2011-05-21  Bruno Haible  <bruno@clisp.org>
49493         floor: Respect rules for use of AC_LIBOBJ.
49494         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
49495         * modules/floor (configure.ac): ... to here.
49497 2011-05-21  Bruno Haible  <bruno@clisp.org>
49499         floorf: Move AC_LIBOBJ invocations to module description.
49500         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
49501         * modules/floorf (configure.ac): ... to here.
49503 2011-05-20  Bruno Haible  <bruno@clisp.org>
49505         sqrtl: Respect rules for use of AC_LIBOBJ.
49506         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
49507         * modules/sqrtl (configure.ac): ... to here.
49509 2011-05-20  Bruno Haible  <bruno@clisp.org>
49511         ldexpl: Respect rules for use of AC_LIBOBJ.
49512         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
49513         * modules/ldexpl (configure.ac): ... to here.
49515 2011-05-20  Bruno Haible  <bruno@clisp.org>
49517         frexpl*: Respect rules for use of AC_LIBOBJ.
49518         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
49519         invocation from here...
49520         * modules/frexpl (configure.ac): ... to here.
49521         * modules/frexpl-nolibm (configure.ac): ... and here.
49523 2011-05-20  Bruno Haible  <bruno@clisp.org>
49525         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
49526         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
49527         invocation from here...
49528         * modules/frexp (configure.ac): ... to here.
49529         * modules/frexp-nolibm (configure.ac): ... and here.
49531 2011-05-20  Bruno Haible  <bruno@clisp.org>
49533         isnan: Respect rules for use of AC_LIBOBJ.
49534         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
49535         invocations here.
49536         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
49537         REPLACE_ISNAN.
49538         * modules/isnand (configure.ac): Likewise.
49539         * modules/isnanl (configure.ac): Likewise.
49541 2011-05-20  Bruno Haible  <bruno@clisp.org>
49543         isnanl*: Respect rules for use of AC_LIBOBJ.
49544         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
49545         invocation from here...
49546         * modules/isnanl (configure.ac): ... to here.
49547         * modules/isnanl-nolibm (configure.ac): ... and here.
49549 2011-05-20  Bruno Haible  <bruno@clisp.org>
49551         isnand*: Move AC_LIBOBJ invocations to module description.
49552         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
49553         invocation from here...
49554         * modules/isnand (configure.ac): ... to here.
49555         * modules/isnand-nolibm (configure.ac): ... and here.
49557 2011-05-20  Bruno Haible  <bruno@clisp.org>
49559         isnanf*: Move AC_LIBOBJ invocations to module description.
49560         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
49561         invocation from here...
49562         * modules/isnanf (configure.ac): ... to here.
49563         * modules/isnanf-nolibm (configure.ac): ... and here.
49565 2011-05-20  Bruno Haible  <bruno@clisp.org>
49567         isnan*: Separate the AC_LIBOBJ invocations.
49568         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
49569         AC_LIBOBJ invocation.
49570         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
49571         here.
49572         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
49573         AC_LIBOBJ invocation.
49574         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
49575         here.
49576         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
49577         AC_LIBOBJ invocation.
49578         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
49579         here.
49580         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
49582 2011-05-08  Bruno Haible  <bruno@clisp.org>
49584         isinf: Move AC_LIBOBJ invocations to module description.
49585         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
49586         * modules/isinf (configure.ac): ... to here.
49588 2011-05-08  Bruno Haible  <bruno@clisp.org>
49590         isfinite: Move AC_LIBOBJ invocations to module description.
49591         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
49592         * modules/isfinite (configure.ac): ... to here.
49594 2011-05-08  Bruno Haible  <bruno@clisp.org>
49596         isblank: Move AC_LIBOBJ invocations to module description.
49597         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
49598         here...
49599         * modules/isblank (configure.ac): ... to here.
49601 2011-05-08  Bruno Haible  <bruno@clisp.org>
49603         isapipe: Move AC_LIBOBJ invocations to module description.
49604         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
49605         gl_PREREQ_ISAPIPE invocations from here...
49606         * modules/isapipe (configure.ac): ... to here.
49607         (Depends-on): Update condition.
49609 2011-05-08  Bruno Haible  <bruno@clisp.org>
49611         ioctl: Move AC_LIBOBJ invocations to module description.
49612         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
49613         invocations from here...
49614         * modules/ioctl (configure.ac): ... to here.
49615         (Depends-on): Update condition.
49617 2011-05-08  Bruno Haible  <bruno@clisp.org>
49619         imaxdiv: Move AC_LIBOBJ invocations to module description.
49620         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
49621         invocations from here...
49622         * modules/imaxdiv (configure.ac): ... to here.
49624 2011-05-08  Bruno Haible  <bruno@clisp.org>
49626         imaxabs: Move AC_LIBOBJ invocations to module description.
49627         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
49628         invocations from here...
49629         * modules/imaxabs (configure.ac): ... to here.
49631 2011-05-08  Bruno Haible  <bruno@clisp.org>
49633         getaddrinfo: Move AC_LIBOBJ invocations to module description.
49634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
49635         AC_LIBOBJ invocations from here...
49636         * modules/getaddrinfo (configure.ac): ... to here.
49637         (Depends-on): Add conditions.
49639 2011-05-08  Bruno Haible  <bruno@clisp.org>
49641         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49642         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
49643         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49644         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
49645         (gl_PREREQ_INET_PTON): ... from here.
49646         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
49647         gl_PREREQ_INET_PTON here.
49648         (Depends-on): Update condition.
49650 2011-05-08  Bruno Haible  <bruno@clisp.org>
49652         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
49653         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
49654         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
49655         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
49656         (gl_PREREQ_INET_NTOP): ... from here.
49657         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
49658         gl_PREREQ_INET_NTOP here.
49659         (Depends-on): Update condition.
49661 2011-05-08  Bruno Haible  <bruno@clisp.org>
49663         iconv_open: Move AC_LIBOBJ invocations to module description.
49664         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
49665         AC_LIBOBJ invocations from here...
49666         * modules/iconv_open (configure.ac): ... to here.
49668 2011-05-08  Bruno Haible  <bruno@clisp.org>
49670         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
49671         If module 'iconv_open' is among the main modules and module
49672         'iconv_open-utf' is among the tests dependencies, then
49673         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
49674         return the special iconv_t values. Therefore iconv() and iconv_close()
49675         must support these special iconv_t values, already in lib, not only in
49676         tests.
49677         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
49678         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
49679         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
49680         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
49681         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
49682         (Depends-on): Add the dependencies of iconv_open-utf.
49683         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
49684         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
49685         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
49687 2011-05-08  Bruno Haible  <bruno@clisp.org>
49689         group-member: Move AC_LIBOBJ invocations to module description.
49690         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
49691         gl_PREREQ_GROUP_MEMBER invocations from here...
49692         * modules/group-member (configure.ac): ... to here.
49694 2011-05-08  Bruno Haible  <bruno@clisp.org>
49696         grantpt: Move AC_LIBOBJ invocations to module description.
49697         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
49698         invocations from here...
49699         * modules/grantpt (configure.ac): ... to here.
49701 2011-05-08  Bruno Haible  <bruno@clisp.org>
49703         glob: Move AC_LIBOBJ invocations to module description.
49704         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
49705         from here...
49706         * modules/glob (configure.ac): ... to here.
49708 2011-05-08  Bruno Haible  <bruno@clisp.org>
49710         getusershell: Move AC_LIBOBJ invocations to module description.
49711         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
49712         Move AC_LIBOBJ invocation from here...
49713         * modules/getusershell (configure.ac): ... to here.
49714         (Depends-on): Update condition.
49716 2011-05-08  Bruno Haible  <bruno@clisp.org>
49718         gettimeofday: Move AC_LIBOBJ invocations to module description.
49719         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
49720         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
49721         gl_PREREQ_GETTIMEOFDAY invocations from here...
49722         * modules/gettimeofday (configure.ac): ... to here.
49724 2011-05-08  Bruno Haible  <bruno@clisp.org>
49726         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
49727         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
49728         just gl_FUNC_TZSET.
49729         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
49730         (gl_FUNC_TZSET_CLOBBER): Remove actions.
49731         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
49732         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
49734 2011-05-08  Bruno Haible  <bruno@clisp.org>
49736         getsubopt: Move AC_LIBOBJ invocations to module description.
49737         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
49738         gl_PREREQ_GETSUBOPT invocations from here...
49739         * modules/getsubopt (configure.ac): ... to here.
49741 2011-05-08  Bruno Haible  <bruno@clisp.org>
49743         getpass-gnu: Move AC_LIBOBJ invocations to module description.
49744         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
49745         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
49746         * modules/getpass-gnu (configure.ac): ... to here.
49748 2011-05-08  Bruno Haible  <bruno@clisp.org>
49750         getpass: Move AC_LIBOBJ invocations to module description.
49751         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
49752         gl_PREREQ_GETPASS invocations from here...
49753         * modules/getpass (configure.ac): ... to here.
49755 2011-05-08  Bruno Haible  <bruno@clisp.org>
49757         getpagesize: Move AC_LIBOBJ invocations to module description.
49758         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
49759         from here...
49760         * modules/getpagesize (configure.ac): ... to here.
49762 2011-05-08  Bruno Haible  <bruno@clisp.org>
49764         getopt: Move AC_LIBOBJ invocations to module description.
49765         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
49766         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
49767         invocations from here...
49768         * modules/getopt-gnu (configure.ac): ... to here.
49769         * modules/getopt-posix (configure.ac): ... and here.
49770         (Depends-on): Update condition.
49772 2011-05-08  Bruno Haible  <bruno@clisp.org>
49774         getopt, argp: Respect rules for use of AC_LIBOBJ.
49775         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
49776         (gl_REPLACE_GETOPT_ALWAYS): New macro.
49777         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
49778         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
49780 2011-05-08  Bruno Haible  <bruno@clisp.org>
49782         getlogin_r: Move AC_LIBOBJ invocations to module description.
49783         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
49784         gl_PREREQ_GETLOGIN_R invocations from here...
49785         * modules/getlogin_r (configure.ac): ... to here.
49787 2011-05-08  Bruno Haible  <bruno@clisp.org>
49789         getlogin: Move AC_LIBOBJ invocations to module description.
49790         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
49791         here...
49792         * modules/getlogin (configure.ac): ... to here.
49794 2011-05-08  Bruno Haible  <bruno@clisp.org>
49796         getloadavg: Move AC_LIBOBJ invocations to module description.
49797         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
49798         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
49799         * modules/getloadavg (configure.ac): ... to here.
49801 2011-05-08  Bruno Haible  <bruno@clisp.org>
49803         gethrxtime: Move AC_LIBOBJ invocations to module description.
49804         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
49805         LIB_GETHRXTIME from here...
49806         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
49807         invocations from here...
49808         * modules/gethrxtime (configure.ac): ... to here.
49810 2011-05-08  Bruno Haible  <bruno@clisp.org>
49812         gethostname: Move AC_LIBOBJ invocations to module description.
49813         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
49814         gl_PREREQ_GETHOSTNAME invocations from here...
49815         * modules/gethostname (configure.ac): ... to here.
49817 2011-05-08  Bruno Haible  <bruno@clisp.org>
49819         getgroups: Move AC_LIBOBJ invocations to module description.
49820         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
49821         here...
49822         * modules/getgroups (configure.ac): ... to here.
49824 2011-05-08  Bruno Haible  <bruno@clisp.org>
49826         getdtablesize: Move AC_LIBOBJ invocations to module description.
49827         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
49828         invocation from here...
49829         * modules/getdtablesize (configure.ac): ... to here.
49831 2011-05-08  Bruno Haible  <bruno@clisp.org>
49833         getdomainname: Move AC_LIBOBJ invocations to module description.
49834         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
49835         gl_PREREQ_GETDOMAINNAME invocations from here...
49836         * modules/getdomainname (configure.ac): ... to here.
49838 2011-05-08  Bruno Haible  <bruno@clisp.org>
49840         getline: Move AC_LIBOBJ invocations to module description.
49841         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
49842         invocations from here...
49843         * modules/getline (configure.ac): ... to here.
49845 2011-05-08  Bruno Haible  <bruno@clisp.org>
49847         getline: Simplify.
49848         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
49849         It's already handled through the module dependency.
49851 2011-05-08  Bruno Haible  <bruno@clisp.org>
49853         getdelim: Move AC_LIBOBJ invocations to module description.
49854         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
49855         and gl_PREREQ_GETDELIM invocations from here...
49856         * modules/getdelim (configure.ac): ... to here.
49857         (Depends-on): Fix condition.
49859 2011-05-08  Bruno Haible  <bruno@clisp.org>
49861         getcwd: Move AC_LIBOBJ invocations to module description.
49862         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
49863         invocations from here...
49864         * modules/getcwd (configure.ac): ... to here.
49866 2011-05-08  Bruno Haible  <bruno@clisp.org>
49868         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
49869         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
49870         here...
49871         * modules/getcwd-lgpl (configure.ac): ... to here.
49873 2011-05-07  Bruno Haible  <bruno@clisp.org>
49875         crypto/gc: Move AC_LIBOBJ invocations to module description.
49876         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
49877         * modules/crypto/gc (configure.ac): ... to here.
49879 2011-05-07  Bruno Haible  <bruno@clisp.org>
49881         fwriting: Move AC_LIBOBJ invocations to module description.
49882         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
49883         here...
49884         * modules/fwriting (configure.ac): ... to here.
49886 2011-05-07  Bruno Haible  <bruno@clisp.org>
49888         fwritable: Move AC_LIBOBJ invocations to module description.
49889         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
49890         here...
49891         * modules/fwritable (configure.ac): ... to here.
49893 2011-05-07  Bruno Haible  <bruno@clisp.org>
49895         futimens: Move AC_LIBOBJ invocations to module description.
49896         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
49897         here...
49898         * modules/futimens (configure.ac): ... to here.
49900 2011-05-07  Bruno Haible  <bruno@clisp.org>
49902         ftruncate: Move AC_LIBOBJ invocations to module description.
49903         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
49904         gl_PREREQ_FTRUNCATE invocations from here...
49905         * modules/ftruncate (configure.ac): ... to here.
49907 2011-05-07  Bruno Haible  <bruno@clisp.org>
49909         fsync: Move AC_LIBOBJ invocations to module description.
49910         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
49911         invocations from here...
49912         * modules/fsync (configure.ac): ... to here.
49914 2011-05-07  Bruno Haible  <bruno@clisp.org>
49916         fsusage: Move AC_LIBOBJ invocations to module description.
49917         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
49918         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
49919         * modules/fsusage (configure.ac): ... to here.
49921 2011-05-07  Bruno Haible  <bruno@clisp.org>
49923         freopen: Move AC_LIBOBJ invocations to module description.
49924         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
49925         invocations from here...
49926         * modules/freopen (configure.ac): ... to here.
49928 2011-05-07  Bruno Haible  <bruno@clisp.org>
49930         free: Move AC_LIBOBJ invocations to module description.
49931         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
49932         invocations from here...
49933         * modules/free (configure.ac): ... to here.
49935 2011-05-07  Bruno Haible  <bruno@clisp.org>
49937         freadable: Move AC_LIBOBJ invocations to module description.
49938         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
49939         here...
49940         * modules/freadable (configure.ac): ... to here.
49942 2011-05-07  Bruno Haible  <bruno@clisp.org>
49944         fpurge: Move AC_LIBOBJ invocations to module description.
49945         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
49946         invocations from here...
49947         * modules/fpurge (configure.ac): ... to here.
49949 2011-05-07  Bruno Haible  <bruno@clisp.org>
49951         fpending: Move AC_LIBOBJ invocations to module description.
49952         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
49953         gl_FUNC_FPENDING.
49954         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
49955         invocations from here...
49956         * modules/fpending (configure.ac): ... to here.
49958 2011-05-07  Bruno Haible  <bruno@clisp.org>
49960         fopen: Move AC_LIBOBJ invocations to module description.
49961         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
49962         invocations from here...
49963         * modules/fopen (configure.ac): ... to here.
49965 2011-05-07  Bruno Haible  <bruno@clisp.org>
49967         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
49968         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
49969         gl_FUNC_FNMATCH_POSIX.
49970         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
49971         invocations from here...
49972         * modules/fnmatch (configure.ac): ... to here.
49973         * modules/fnmatch-gnu (configure.ac): ... and here.
49975 2011-05-07  Bruno Haible  <bruno@clisp.org>
49977         flock: Move AC_LIBOBJ invocations to module description.
49978         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
49979         invocations from here...
49980         * modules/flock (configure.ac): ... to here.
49982 2011-05-07  Bruno Haible  <bruno@clisp.org>
49984         fileblocks: Move AC_LIBOBJ invocations to module description.
49985         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
49986         gl_PREREQ_FILEBLOCKS invocations from here...
49987         * modules/fileblocks (configure.ac): ... to here.
49989 2011-05-06  Bruno Haible  <bruno@clisp.org>
49991         fflush: Move AC_LIBOBJ invocations to module description.
49992         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
49993         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
49994         invocations from here...
49995         * modules/fflush (configure.ac): ... to here.
49997 2011-05-06  Bruno Haible  <bruno@clisp.org>
49999         fdopendir: Move AC_LIBOBJ invocations to module description.
50000         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
50001         here...
50002         * modules/fdopendir (configure.ac): ... to here.
50003         (Depends-on): Improve conditions.
50005 2011-05-06  Bruno Haible  <bruno@clisp.org>
50007         _Exit: Move AC_LIBOBJ invocations to module description.
50008         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
50009         invocations from here...
50010         * modules/_Exit (configure.ac): ... to here.
50012 2011-05-21  Bruno Haible  <bruno@clisp.org>
50014         euidaccess: Respect rules for use of AC_LIBOBJ.
50015         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50016         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
50017         from here...
50018         * modules/euidaccess (configure.ac): ... to here.
50020 2011-05-06  Bruno Haible  <bruno@clisp.org>
50022         error: Move AC_LIBOBJ invocations to module description.
50023         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
50024         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
50025         invocations from here...
50026         * modules/error (configure.ac): ... to here.
50028 2011-05-06  Bruno Haible  <bruno@clisp.org>
50030         duplocale: Move AC_LIBOBJ invocations to module description.
50031         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
50032         gl_PREREQ_DUPLOCALE invocations from here...
50033         * modules/duplocale (configure.ac): ... to here.
50035 2011-05-05  Bruno Haible  <bruno@clisp.org>
50037         dirfd: Move AC_LIBOBJ invocations to module description.
50038         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
50039         gl_FUNC_DIRFD.
50040         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
50041         here...
50042         * modules/dirfd (configure.ac): ... to here.
50043         (Depends-on): Fix condition.
50045 2011-05-05  Bruno Haible  <bruno@clisp.org>
50047         chown: Respect rules for use of AC_LIBOBJ.
50048         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
50049         * modules/chown (configure.ac): ... to here.
50051 2011-05-05  Bruno Haible  <bruno@clisp.org>
50053         chdir-long: Move AC_LIBOBJ invocations to module description.
50054         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
50055         gl_PREREQ_CHDIR_LONG invocations from here...
50056         * modules/chdir-long (configure.ac): ... to here.
50058 2011-05-05  Bruno Haible  <bruno@clisp.org>
50060         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
50061         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
50062         from here...
50063         * modules/canonicalize-lgpl (configure.ac): ... to here.
50065 2011-05-05  Bruno Haible  <bruno@clisp.org>
50067         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
50068         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
50069         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
50070         REPLACE_CALLOC.
50071         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
50072         * modules/calloc-gnu (configure.ac): Likewise.
50074 2011-05-05  Bruno Haible  <bruno@clisp.org>
50076         btowc: Move AC_LIBOBJ invocations to module description.
50077         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
50078         invocations from here...
50079         * modules/btowc (configure.ac): ... to here.
50081 2011-05-21  Bruno Haible  <bruno@clisp.org>
50083         atexit: Move AC_LIBOBJ invocations to module description.
50084         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
50085         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
50086         here...
50087         * modules/atexit (configure.ac): ... to here.
50089 2011-05-05  Bruno Haible  <bruno@clisp.org>
50091         atoll: Move AC_LIBOBJ invocations to module description.
50092         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
50093         invocations from here...
50094         * modules/atoll (configure.ac): ... to here.
50096 2011-05-05  Bruno Haible  <bruno@clisp.org>
50098         argz: Move AC_LIBOBJ invocations to module description.
50099         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
50100         * modules/argz (configure.ac): ... to here.
50102 2011-05-05  Bruno Haible  <bruno@clisp.org>
50104         alphasort: Move AC_LIBOBJ invocations to module description.
50105         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
50106         gl_PREREQ_ALPHASORT invocations from here...
50107         * modules/alphasort (configure.ac): ... to here.
50109 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
50111         verify: new macro verify_expr; verify_true deprecated
50112         * NEWS: Mention this.
50113         * doc/verify.texi (Compile-time Assertions): Document this.
50114         * lib/verify.h (verify_true): Deprecate.
50115         (verify_expr): New macro.
50116         * tests/test-verify.c (function): Test verify_expr.
50118 2011-06-14  Jim Meyering  <meyering@redhat.com>
50120         init.sh: give more portable redirection-related advice in a comment
50121         * tests/init.sh (stderr_fileno_): Update the advice in comments.
50122         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
50123         for lots of discussion.  Stefano Lattarini suggested the solution
50124         of putting "9>&2" after the command.  Reported by Bruno Haible.
50126 2011-06-13  Bruno Haible  <bruno@clisp.org>
50128         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
50129         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
50130         'none'.
50132 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
50134         ftoastr: use strtof only if HAVE_STRTOF
50135         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
50136         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
50137         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
50138         * modules/ftoastr (configure.ac): Check for strtof.
50140 2011-06-13  Bruno Haible  <bruno@clisp.org>
50142         gnulib-tool: Addendum to 2011-06-08 commit.
50143         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
50144         and --witness-c-macro have been given, augment AM_CPPFLAGS.
50146 2011-06-13  Bruno Haible  <bruno@clisp.org>
50148         fseeko: Provide a non-inline replacement of fseek().
50149         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
50150         * modules/fseeko (Depends-on): Add fseek.
50151         * modules/fseek (License): Change to LGPLv2+.
50153 2011-06-13  Bruno Haible  <bruno@clisp.org>
50155         ftello: Provide a non-inline replacement of ftell().
50156         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
50157         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
50158         not have ftello() (such as on mingw).
50159         * modules/ftello (Depends-on): Add ftell.
50160         * modules/ftell (License): Change to LGPLv2+.
50162 2011-05-07  Bruno Haible  <bruno@clisp.org>
50164         ftell: Move AC_LIBOBJ invocations to module description.
50165         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
50166         * modules/ftell (configure.ac): ... to here.
50168 2011-05-07  Bruno Haible  <bruno@clisp.org>
50170         ftello: Respect rules for use of AC_LIBOBJ.
50171         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
50172         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
50173         here...
50174         * modules/ftello (configure.ac): ... to here.
50176 2011-05-07  Bruno Haible  <bruno@clisp.org>
50178         fseeko: Simplify.
50179         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
50180         (gl_FUNC_FSEEKO): Inline it here.
50182 2011-05-07  Bruno Haible  <bruno@clisp.org>
50184         fseek: Move AC_LIBOBJ invocations to module description.
50185         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
50186         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50187         * modules/fseek (configure.ac): ... to here.
50189 2011-05-07  Bruno Haible  <bruno@clisp.org>
50191         fseek: Respect rules for use of AC_LIBOBJ.
50192         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
50193         here...
50194         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
50196 2011-05-07  Bruno Haible  <bruno@clisp.org>
50198         fseeko: Respect rules for use of AC_LIBOBJ.
50199         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
50200         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
50201         here...
50202         * modules/fseeko (configure.ac): ... to here.
50204 2011-06-13  Bruno Haible  <bruno@clisp.org>
50206         gnulib-tool: Allow comments in the 'Depends-on' section.
50207         * doc/gnulib.texi (Module description): Mention comment syntax in the
50208         Depends-on section.
50209         * gnulib-tool (func_get_dependencies): Filter out comment lines.
50211 2011-06-13  Bruno Haible  <bruno@clisp.org>
50213         file-set.h: guard __attibute__ use, now that it's not always defined
50214         * lib/file-set.h (record_file): Use __attribute__ only with compiler
50215         versions that support it.  This fixes a coreutils build failure with
50216         the vendor cc on HP-UX 11.31.
50218 2011-06-12  Bruno Haible  <bruno@clisp.org>
50220         acl: Add support for HP-UX >= 11.11 JFS ACLs.
50221         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
50222         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
50223         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
50224         (acl, aclsort): New declarations.
50225         (aclv_nontrivial): New declaration.
50226         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
50227         (file_has_acl): Read also the second kind of HP-UX ACLs.
50228         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
50229         kind of HP-UX ACLs if the first kind fails.
50230         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
50231         second kind of HP-UX ACLs.
50232         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
50233         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
50234         agree.
50235         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50236         hpuxjfs.
50237         Handle hpuxjfs.
50238         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
50239         hpuxjfs.
50240         Handle hpuxjfs.
50241         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50242         (func_test_same_acls): Use both lsacl and getacl.
50243         Handle hpuxjfs.
50244         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
50245         (func_test_same_acls): Use both lsacl and getacl.
50246         Handle hpuxjfs.
50248 2011-06-12  Bruno Haible  <bruno@clisp.org>
50250         acl: Complete the 2010-08-10 fix.
50251         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
50252         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
50253         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
50254         explicitly.
50255         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
50256         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
50258 2011-06-12  Bruno Haible  <bruno@clisp.org>
50260         spawn-pipe tests: Comments.
50261         * tests/test-spawn-pipe-child.c (main): Update comment.
50262         Reported by James Youngman <jay@gnu.org>.
50264 2011-06-11  James Youngman  <jay@gnu.org>
50266         New module 'stat-size'.
50267         * modules/stat-size: New module.  Provides macros for accessing
50268         file size information in instances of struct stat.  Depends on the
50269         fileblocks module because it calls st_blocks.
50270         * lib/stat-size.h: New file, adapted from coreutils' system.h.
50271         * doc/gnulib.texi: Include stat-size.texi.
50272         * doc/stat-size.texi: Documentation for this module.
50273         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
50274         * m4/fileblocks.m4: Mention that stat-size depends on the call to
50275         AC_STRUCT_ST_BLOCKS.
50277 2011-06-09  Bruno Haible  <bruno@clisp.org>
50279         thread: Support pthreads-win32.
50280         * lib/glthread/thread.h (gl_thread_self): Define differently on
50281         pthreads-win32.
50282         (gl_null_thread): New declaration.
50283         (gl_thread_self_pointer): New macro.
50284         * lib/glthread/thread.c (gl_null_thread): New constant.
50285         * tests/test-lock.c: Use gl_thread_self_pointer instead of
50286         gl_thread_self.
50287         * tests/test-tls.c: Likewise.
50288         Suggested by Paul Eggert. Reported by Eric Blake.
50290 2011-06-09  Bruno Haible  <bruno@clisp.org>
50292         thread: Fix confusion between NULL and 0.
50293         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
50294         Reported by Paul Eggert.
50296 2011-06-09  Bruno Haible  <bruno@clisp.org>
50298         spawn-pipe tests: Avoid test failure on HP-UX 11.
50299         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
50300         is closed.
50302 2011-06-09  Bruno Haible  <bruno@clisp.org>
50304         acl tests: Fix compilation error on HP-UX 11.
50305         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
50307 2011-06-09  Bruno Haible  <bruno@clisp.org>
50309         rmdir: Avoid test failure on HP-UX 10.20.
50310         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
50311         EEXIST.
50313 2011-06-08  Eric Blake  <eblake@redhat.com>
50315         perror: fix test on mingw
50316         * modules/perror-tests (Depends-on): Add dup2.
50318         strerror_r-posix: fix on MacOS
50319         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
50320         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
50321         logic bug.
50322         * lib/strerror_r.c (strerror_r): Fix the bug.
50323         * lib/strerror.c (strerror): Likewise.
50324         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
50325         problem.
50326         * doc/posix-functions/strerror.texi (strerror): Likewise.
50327         * doc/posix-functions/perror.texi (perror): Likewise.
50328         * tests/test-strerror.c (main): Enhance test.
50329         * tests/test-strerror_r.c (main): Likewise.
50331 2011-06-08  Bruno Haible  <bruno@clisp.org>
50333         gnulib-tool: Better isolation between different gnulib-tool invocations.
50334         * gnulib-tool: New option --witness-c-macro.
50335         (witness_c_macro): New variable.
50336         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
50337         AM_CPPFLAGS define it as a C macro.
50338         (func_emit_tests_Makefile_am): Likewise.
50339         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
50340         read it from there.
50341         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
50342         m4_define, not AC_DEFUN.
50343         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
50344         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
50345         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
50346         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
50347         s|...|...|, to substitute the values of the GNULIB_* module indicator
50348         variables.
50349         * modules/dirent (Makefile.am): Likewise.
50350         * modules/fcntl-h (Makefile.am): Likewise.
50351         * modules/iconv-h (Makefile.am): Likewise.
50352         * modules/langinfo (Makefile.am): Likewise.
50353         * modules/locale (Makefile.am): Likewise.
50354         * modules/math (Makefile.am): Likewise.
50355         * modules/netdb (Makefile.am): Likewise.
50356         * modules/poll-h (Makefile.am): Likewise.
50357         * modules/pty (Makefile.am): Likewise.
50358         * modules/search (Makefile.am): Likewise.
50359         * modules/signal (Makefile.am): Likewise.
50360         * modules/spawn (Makefile.am): Likewise.
50361         * modules/stdio (Makefile.am): Likewise.
50362         * modules/stdlib (Makefile.am): Likewise.
50363         * modules/string (Makefile.am): Likewise.
50364         * modules/sys_ioctl (Makefile.am): Likewise.
50365         * modules/sys_select (Makefile.am): Likewise.
50366         * modules/sys_socket (Makefile.am): Likewise.
50367         * modules/sys_stat (Makefile.am): Likewise.
50368         * modules/sys_times (Makefile.am): Likewise.
50369         * modules/sys_utsname (Makefile.am): Likewise.
50370         * modules/sys_wait (Makefile.am): Likewise.
50371         * modules/termios (Makefile.am): Likewise.
50372         * modules/time (Makefile.am): Likewise.
50373         * modules/unistd (Makefile.am): Likewise.
50374         * modules/wchar (Makefile.am): Likewise.
50376 2011-06-08  Eric Blake  <eblake@redhat.com>
50378         strerror: simplify replacement
50379         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
50380         * modules/strerror (configure.ac): No prereqs needed here...
50381         * modules/strerror-override (configure.ac): ...but this needs it.
50382         (Files): Add file for needed prereq macro.
50384 2011-06-08  Bruno Haible  <bruno@clisp.org>
50386         strerror_r-posix: Tweaks.
50387         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
50388         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
50389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
50390         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
50391         (gl_FUNC_STRERROR_R): ... to here.
50392         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
50394 2011-06-07  Eric Blake  <eblake@redhat.com>
50396         perror: document fixed bugs
50397         * doc/posix-functions/perror.texi (perror): Document recent
50398         patches.
50400 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
50402         stat-time: get_stat_birthtime failure is better-defined
50403         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
50404         return a timestamp whose tv_sec and tv_nsec values are both -1.
50405         Previously, the spec said only that the tv_nsec value was negative.
50406         This upward-compatible change simplifies GNU tar a bit.
50408 2011-06-07  Eric Blake  <eblake@redhat.com>
50410         strerror_r-posix: work around cygwin 1.7.9
50411         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
50412         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
50413         bug without replacing strerror_r.
50414         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
50415         strerror_r is buggy, but without requiring strerror_r compilation.
50416         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
50418         test-perror: relax test to ignore cygwin bug
50419         * tests/test-perror2.c (main): Relax test on requiring detection
50420         of stream errors, and use unbuffered stream.
50421         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
50422         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
50423         * doc/posix-functions/fputc.texi (fputc): Likewise.
50424         * doc/posix-functions/fputs.texi (fputs): Likewise.
50425         * doc/posix-functions/fputws.texi (fputws): Likewise.
50426         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
50427         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
50428         * doc/posix-functions/getopt.texi (getopt): Likewise.
50429         * doc/posix-functions/perror.texi (perror): Likewise.
50430         * doc/posix-functions/printf.texi (printf): Likewise.
50431         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
50432         * doc/posix-functions/psignal.texi (psignal): Likewise.
50433         * doc/posix-functions/putc.texi (putc): Likewise.
50434         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
50435         Likewise.
50436         * doc/posix-functions/putchar.texi (putchar): Likewise.
50437         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
50438         Likewise.
50439         * doc/posix-functions/puts.texi (puts): Likewise.
50440         * doc/posix-functions/putwc.texi (putwc): Likewise.
50441         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50442         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50443         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50444         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
50445         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50446         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50447         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
50448         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
50450 2011-05-22  Bruno Haible  <bruno@clisp.org>
50452         strerror: Move AC_LIBOBJ invocations to module description.
50453         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
50454         gl_PREREQ_STRERROR invocations from here...
50455         * modules/strerror (configure.ac): ... to here.
50457 2011-05-21  Bruno Haible  <bruno@clisp.org>
50459         perror: Use common idiom.
50460         * modules/perror (configure.ac): Reorder statements.
50462 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50464         tests: fix usage message in 'mktempd_'
50465         * tests/init.sh (mktempd_): In the usage message, use literal
50466         'mktempd_', not '$ME' (which is even undefined), as the name of
50467         the subroutine.
50469 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
50471         tests init: new function 'fatal_', for hard errors
50472         Before this patch, the only way offered by tests/init.sh to
50473         properly signal a hard error was the `framework_failure_'
50474         function.  But the error message issued by that function,
50475         as its name would suggest, refers to a set-up failure in the
50476         testsuite, while hard errors can obviously also be due to
50477         other reasons.  The best way to fix this inconsistency is to
50478         introduce a new function with a more general error message.
50479         * tests/init.sh (fatal_): New function.
50481 2011-06-06  Eric Blake  <eblake@redhat.com>
50483         canonicalize-lgpl: use common idiom
50484         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
50485         over newer POSIX -Rf.
50486         Reported by Bruno Haible.
50488         canonicalize-lgpl: work around AIX realpath bug
50489         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
50490         * doc/posix-functions/realpath.texi (realpath): Document it.
50491         Reported by Bruno Haible.
50493         strerror: work around FreeBSD bug
50494         * lib/strerror.c (strerror): Special case 0.
50495         Reported by Bruno Haible.
50497         strerror-override: avoid bloating errno module
50498         * modules/errno (Files, configure.ac): Move replacement strings...
50499         * modules/strerror-override: ...to new module.
50500         * modules/strerror (Depends-on): Add strerror-override.
50501         * modules/strerror_r-posix (Depends-on): Likewise.
50502         * MODULES.html.sh: Document new module.
50503         Reported by Bruno Haible.
50505 2011-06-06  Bruno Haible  <bruno@clisp.org>
50507         spawn-pipe tests: Rename program.
50508         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
50509         * tests/test-spawn-pipe-child.c: Update comment.
50510         * tests/test-spawn-pipe.sh: Update.
50511         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
50513         spawn-pipe tests: Link the child program only against libc.
50514         * tests/test-spawn-pipe-child.c: New file, extracted from
50515         tests/test-spawn-pipe.c.
50516         (main): Expect only one argument.
50517         (is_open): New function, copied from tests/test-pipe.c.
50518         * tests/test-spawn-pipe.c: Don't include <errno.h>.
50519         (child_main): Remove function.
50520         (test_pipe): Pass only one argument to the child program.
50521         (main): Remove child process code. Expect the child program's name as
50522         first argument.
50523         * tests/test-spawn-pipe.sh: Pass the child program's name as first
50524         argument.
50525         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
50526         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
50527         test-spawn-pipe-child against no libraries.
50529 2011-06-06  Bruno Haible  <bruno@clisp.org>
50531         careadlinkat: Avoid mismatch between ssize_t and int.
50532         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
50533         * lib/careadlinkat.c (careadlinkatcwd): Define always.
50535 2011-06-06  Jim Meyering  <meyering@redhat.com>
50537         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
50538         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
50539         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
50541 2011-06-05  Bruno Haible  <bruno@clisp.org>
50543         ansi-c++-opt: Interoperability with libtool.
50544         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
50545         set the variable to "no", not to ":".
50546         * NEWS: Mention the change.
50548 2011-06-05  Bruno Haible  <bruno@clisp.org>
50550         acl: Fix test failure on AIX 7.
50551         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
50552         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
50554 2011-06-05  Bruno Haible  <bruno@clisp.org>
50556         pipe-filter-ii: Fix test failure on AIX and IRIX.
50557         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
50558         with EAGAIN, retry with a smaller buffer size.
50560 2011-06-05  Bruno Haible  <bruno@clisp.org>
50562         localename: Fix link dependencies.
50563         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
50564         * modules/localename-tests (Makefile.am): Link test-localename with
50565         $(LIBTHREAD).
50567 2011-06-05  Bruno Haible  <bruno@clisp.org>
50569         error: Avoid gcc warning.
50570         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
50572 2011-06-05  Bruno Haible  <bruno@clisp.org>
50574         unsetenv: Avoid gcc warning.
50575         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
50577 2011-06-05  Bruno Haible  <bruno@clisp.org>
50579         setenv: Avoid gcc warning.
50580         * lib/setenv.c (setenv): Provide declaration if system lacks it.
50582 2011-06-05  Bruno Haible  <bruno@clisp.org>
50584         sys_select: Ensure memset is declared also on AIX 7.
50585         * lib/sys_select.in.h: Include <string.h> also on AIX.
50586         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
50587         self-contained also on AIX 7.1.
50589 2011-06-04  Jim Meyering  <meyering@redhat.com>
50591         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
50592         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
50593         function name, "error".
50594         (_gl_translatable_diag_func_re): New configurable variable.
50596 2011-06-04  Bruno Haible  <bruno@clisp.org>
50598         getopt: Avoid gcc warning.
50599         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
50601 2011-06-04  Bruno Haible  <bruno@clisp.org>
50603         strerror_r: Fix comments.
50604         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
50605         commit.
50607 2011-06-04  Bruno Haible  <bruno@clisp.org>
50609         perror: Fix compilation error.
50610         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
50611         Undefine fprintf, not sprintf.
50612         * modules/perror (Depends-on): Remove intprops, verify.
50614 2011-06-04  Bruno Haible  <bruno@clisp.org>
50616         setlocale: Enable replacement on Cygwin 1.5.
50617         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
50618         Cygwin 1.5.x.
50619         * doc/posix-functions/setlocale.texi: Mention that the problem with the
50620         LC_CTYPE category also exists on Cygwin 1.5.x.
50622 2011-06-04  Bruno Haible  <bruno@clisp.org>
50624         strerror-override: Don't disable symbol renamings.
50625         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
50626         * lib/strerror-override.c: Include config.h.
50627         (strerror_override): Don't undefine.
50629 2011-06-03  Bruno Haible  <bruno@clisp.org>
50631         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
50632         * lib/localename.h: Update copyright header.
50633         * lib/localename.c: Likewise.
50634         * lib/relocatable.h: Likewise.
50635         * lib/relocatable.c: Likewise.
50637 2011-06-02  Bruno Haible  <bruno@clisp.org>
50639         doc: Fix a module name.
50640         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
50642 2011-06-02  Bruno Haible  <bruno@clisp.org>
50644         pipe2: Remove dependency on 'nonblocking' module.
50645         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
50646         O_NONBLOCK is defined by gnulib.
50647         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
50648         is zero.
50649         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
50650         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
50651         defined by gnulib.
50652         (get_nonblocking_flag): New function.
50653         (main): Test O_NONBLOCK flag only if it is nonzero.
50654         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
50656 2011-06-03  Jim Meyering  <meyering@redhat.com>
50658         maint: three new prohibit-header-without-use rules
50659         Prohibit use of cloexec.h, posixver.h, same.h without use.
50660         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
50661         (sc_prohibit_posixver_without_use): Likewise.
50662         (sc_prohibit_same_without_use): Likewise.
50664 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50666         allocator: 'die' routine is now given requested size
50667         * lib/allocator.h (struct allocator.die): New size arg.
50668         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
50669         If the actual problem is an ssize_t limitation, not a size_t or
50670         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
50672 2011-06-01  Eric Blake  <eblake@redhat.com>
50674         strerror: drop strerror_r dependency
50675         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
50676         * lib/strerror-override.c (strerror_override): ...to new file.
50677         * lib/strerror-override.h: Add prototype.
50678         * lib/strerror-impl.h: Delete.
50679         * lib/strerror.c (strerror): New implementation.
50680         * modules/errno (Files): Add new files.
50681         (configure.ac): Compile new file as appropriate.
50682         * modules/strerror (Files): Drop unused file.
50683         (Depends-on): Drop strerror_r-posix.
50684         * MODULES.html.sh: Document strerror_r-posix.
50685         Requested by Sam Steingold.
50687         perror: call strerror_r directly
50688         * modules/perror (Files): Drop strerror-impl.h.
50689         * lib/perror.c (perror): Use our own stack buffer, rather than
50690         calling a wrapper that uses static storage.
50691         * doc/posix-functions/perror.texi (perror): Document a limitation
50692         of our replacement.
50694         strerror_r: fix includes for FreeBSD
50695         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
50696         since we use abort on some platforms.
50697         Reported by Matthias Bolte.
50699 2011-05-31  Bruno Haible  <bruno@clisp.org>
50701         Fix link errors in tests: openat-die uses gettext-h.
50702         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
50703         against $(LIBINTL).
50704         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
50705         against $(LIBINTL).
50706         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
50707         $(LIBINTL).
50708         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
50709         against $(LIBINTL).
50710         * modules/linkat-tests (Makefile.am): Link test-linkat against
50711         $(LIBINTL).
50712         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
50713         $(LIBINTL).
50714         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
50715         against $(LIBINTL).
50716         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
50717         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
50718         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
50719         $(LIBINTL).
50720         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
50721         $(LIBINTL).
50722         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
50723         $(LIBINTL).
50724         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50726 2011-05-31  Bruno Haible  <bruno@clisp.org>
50728         Fix link errors in tests: wait-process uses gettext-h.
50729         * modules/nonblocking-pipe-tests (Makefile.am): Set
50730         test_nonblocking_pipe_main_LDADD.
50731         * modules/nonblocking-socket-tests (Makefile.am): Link
50732         test-nonblocking-socket-main against $(LIBINTL).
50733         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50735 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
50737         assert-h: work around 'verify' incompatibility
50738         * lib/verify.h: Use @...@ directives, not ifdef.
50739         * modules/assert-h (assert.h): Implement the directives.
50740         (assert.h): Substitute the symbol-prefix more consistently.
50742 2011-05-29  Jim Meyering  <meyering@redhat.com>
50744         trim: remove three superfluous assignments
50745         * lib/trim.c (trim2): Remove three superfluous assignments
50746         and correct brace positioning.
50748 2011-05-29  Bruno Haible  <bruno@clisp.org>
50750         wctype-h: Avoid namespace pollution on Solaris 2.6.
50751         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
50752         identifiers.
50753         * doc/posix-headers/wctype.texi: Mention the problem.
50754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50756 2011-05-28  Jim Meyering  <meyering@redhat.com>
50758         parse-datetime.y: accommodate -Wstrict-overflow
50759         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
50760         placate -Wstrict-overflow.
50762         trim: avoid a warning from -O2 -Wstrict-overflow
50763         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
50765 2011-05-29  Bruno Haible  <bruno@clisp.org>
50767         gnulib-tool: Fix bug in yesterday's commit.
50768         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
50769         twice.
50771 2011-05-29  Bruno Haible  <bruno@clisp.org>
50773         Allow multiple gnulib generated include files to be combined.
50774         * gnulib-tool (func_compute_include_guard_prefix): New function.
50775         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
50776         ${gl_include_guard_prefix} references.
50777         (func_import, func_create_testdir): Invoke
50778         func_compute_include_guard_prefix.
50779         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
50780         * lib/ctype.in.h: Likewise.
50781         * lib/dirent.in.h: Likewise.
50782         * lib/errno.in.h: Likewise.
50783         * lib/fcntl.in.h: Likewise.
50784         * lib/float.in.h: Likewise.
50785         * lib/getopt.in.h: Likewise.
50786         * lib/iconv.in.h: Likewise.
50787         * lib/langinfo.in.h: Likewise.
50788         * lib/locale.in.h: Likewise.
50789         * lib/math.in.h: Likewise.
50790         * lib/netdb.in.h: Likewise.
50791         * lib/netinet_in.in.h: Likewise.
50792         * lib/poll.in.h: Likewise.
50793         * lib/pthread.in.h: Likewise.
50794         * lib/pty.in.h: Likewise.
50795         * lib/sched.in.h: Likewise.
50796         * lib/se-selinux.in.h: Likewise.
50797         * lib/search.in.h: Likewise.
50798         * lib/signal.in.h: Likewise.
50799         * lib/spawn.in.h: Likewise.
50800         * lib/stdarg.in.h: Likewise.
50801         * lib/stddef.in.h: Likewise.
50802         * lib/stdint.in.h: Likewise.
50803         * lib/stdio.in.h: Likewise.
50804         * lib/stdlib.in.h: Likewise.
50805         * lib/string.in.h: Likewise.
50806         * lib/strings.in.h: Likewise.
50807         * lib/sys_file.in.h: Likewise.
50808         * lib/sys_ioctl.in.h: Likewise.
50809         * lib/sys_select.in.h: Likewise.
50810         * lib/sys_socket.in.h: Likewise.
50811         * lib/sys_stat.in.h: Likewise.
50812         * lib/sys_time.in.h: Likewise.
50813         * lib/sys_times.in.h: Likewise.
50814         * lib/sys_uio.in.h: Likewise.
50815         * lib/sys_utsname.in.h: Likewise.
50816         * lib/sys_wait.in.h: Likewise.
50817         * lib/sysexits.in.h: Likewise.
50818         * lib/termios.in.h: Likewise.
50819         * lib/time.in.h: Likewise.
50820         * lib/unistd.in.h: Likewise.
50821         * lib/wchar.in.h: Likewise.
50822         * lib/wctype.in.h: Likewise.
50823         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
50824         * modules/ctype (Makefile.am): Likewise.
50825         * modules/dirent (Makefile.am): Likewise.
50826         * modules/errno (Makefile.am): Likewise.
50827         * modules/fcntl-h (Makefile.am): Likewise.
50828         * modules/float (Makefile.am): Likewise.
50829         * modules/getopt-posix (Makefile.am): Likewise.
50830         * modules/iconv-h (Makefile.am): Likewise.
50831         * modules/langinfo (Makefile.am): Likewise.
50832         * modules/locale (Makefile.am): Likewise.
50833         * modules/math (Makefile.am): Likewise.
50834         * modules/netdb (Makefile.am): Likewise.
50835         * modules/netinet_in (Makefile.am): Likewise.
50836         * modules/poll-h (Makefile.am): Likewise.
50837         * modules/pthread (Makefile.am): Likewise.
50838         * modules/pty (Makefile.am): Likewise.
50839         * modules/sched (Makefile.am): Likewise.
50840         * modules/search (Makefile.am): Likewise.
50841         * modules/selinux-h (Makefile.am): Likewise.
50842         * modules/signal (Makefile.am): Likewise.
50843         * modules/spawn (Makefile.am): Likewise.
50844         * modules/stdarg (Makefile.am): Likewise.
50845         * modules/stddef (Makefile.am): Likewise.
50846         * modules/stdint (Makefile.am): Likewise.
50847         * modules/stdio (Makefile.am): Likewise.
50848         * modules/stdlib (Makefile.am): Likewise.
50849         * modules/string (Makefile.am): Likewise.
50850         * modules/strings (Makefile.am): Likewise.
50851         * modules/sys_file (Makefile.am): Likewise.
50852         * modules/sys_ioctl (Makefile.am): Likewise.
50853         * modules/sys_select (Makefile.am): Likewise.
50854         * modules/sys_socket (Makefile.am): Likewise.
50855         * modules/sys_stat (Makefile.am): Likewise.
50856         * modules/sys_time (Makefile.am): Likewise.
50857         * modules/sys_times (Makefile.am): Likewise.
50858         * modules/sys_uio (Makefile.am): Likewise.
50859         * modules/sys_utsname (Makefile.am): Likewise.
50860         * modules/sys_wait (Makefile.am): Likewise.
50861         * modules/sysexits (Makefile.am): Likewise.
50862         * modules/termios (Makefile.am): Likewise.
50863         * modules/time (Makefile.am): Likewise.
50864         * modules/unistd (Makefile.am): Likewise.
50865         * modules/wchar (Makefile.am): Likewise.
50866         * modules/wctype-h (Makefile.am): Likewise.
50867         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
50869 2011-05-29  Bruno Haible  <bruno@clisp.org>
50871         assert-h: Allow multiple gnulib generated replacements to coexist.
50872         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
50874 2011-05-29  Bruno Haible  <bruno@clisp.org>
50876         argp: Allow coexistence with strerror_r-posix module.
50877         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
50878         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
50879         by gnulib's <string.h> replacement), assume it has the POSIX signature,
50880         not the glibc signature.
50882 2011-05-28  Bruno Haible  <bruno@clisp.org>
50884         gnulib-tool: Alternative structure of testdirs, similar to --import.
50885         * gnulib-tool: New option --single-configure.
50886         (func_usage): Document it.
50887         (single_configure): New variable.
50888         (func_modules_transitive_closure_separately,
50889         func_modules_transitive_closure_separately,
50890         func_determine_use_libtests, func_modules_add_dummy_separately,
50891         func_modules_to_filelist_separately): New functions, extracted from
50892         func_import.
50893         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
50894         (func_import): Use the new functions.
50895         (func_create_testdir): Set final_modules. Handle $single_configure =
50896         true case.
50898 2011-05-28  Bruno Haible  <bruno@clisp.org>
50900         getloadavg: Remove an unreliable safety check.
50901         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
50902         getloadavg.c is in place.
50903         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
50904         Reported by Sam Steingold <sds@gnu.org>.
50906 2011-05-28  Bruno Haible  <bruno@clisp.org>
50908         doc: Cleanup yet another file produced by texinfo.tex.
50909         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
50911 2011-05-28  Bruno Haible  <bruno@clisp.org>
50913         Finish the conditional dependencies mechanism.
50914         * gnulib-tool: New option --no-conditional-dependencies.
50915         (func_usage): Document it. Don't mark --conditional-dependencies as
50916         experimental.
50917         (cond_dependencies): The possible values can now be true, false, empty.
50918         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
50919         (func_import): Store setting in gnulib-cache.m4 and read it from there.
50920         * doc/gnulib-tool.texi (Conditional dependencies): New section.
50922 2011-05-28  Bruno Haible  <bruno@clisp.org>
50924         doc: Use a recent texinfo.tex.
50925         * doc/Makefile (tex_opts): New variable.
50926         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
50928 2011-05-28  Jim Meyering  <meyering@redhat.com>
50930         intprops.h: adjust comment to match code change
50931         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
50932         only once, it *may* have side effects.  Also fix an unrelated typo.
50933         (_GL_INT_SIGNED): Likewise.
50935 2011-05-26  Simon Josefsson  <simon@josefsson.org>
50937         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
50939 2011-05-26  Bruno Haible  <bruno@clisp.org>
50941         mbsrchr: Avoid collision with system function on Interix.
50942         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
50943         Reported by Markus Duft <mduft@gentoo.org>.
50945 2011-05-15  James Youngman  <jay@gnu.org>
50947         getopt: for ambiguous options, enumerate the possibilities.
50948         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
50949         the ambiguous options when an ambiguous prefix is given. This was
50950         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
50951         glibc change was
50952         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
50954 2011-05-25  Eric Blake  <eblake@redhat.com>
50956         getcwd: work around mingw bug
50957         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
50958         * doc/posix-functions/getcwd.texi (getcwd): Document it.
50959         Reported by Matthias Bolte.
50961 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
50963         test-intprops: disable -Wtype-limits diagnostics
50964         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
50965         diagnostics.  Otherwise, the integer overflow macros generate many
50966         diagnostics.  Reported by Jim Meyering in
50967         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
50969         intprops: shorten, to pacify gcc -Woverlength-strings
50970         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
50971         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
50972         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
50973         likely to run afoul of C compiler limits for string constant lengths.
50974         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
50976 2011-05-24  Eric Blake  <eblake@redhat.com>
50978         docs: document recently fixed glibc printf bug
50979         * doc/posix-functions/fprintf.texi (fprintf): Document it.
50980         * doc/posix-functions/printf.texi (printf): Likewise.
50981         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50982         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50984         closein-tests: convert to init.sh
50985         * modules/closein-tests (Files): Add init.sh
50986         * tests/test-closein.sh Use it.
50988         yesno-tests: convert to init.sh
50989         * modules/yesno-tests (Files): Add init.sh.
50990         * tests/test-yesno.sh: Use it.
50992         atexit-tests: ensure reliable exit status
50993         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
50994         Reported by Bruno Haible.
50996 2011-05-24  Bruno Haible  <bruno@clisp.org>
50998         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
50999         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
51000         gl_PREREQ_STRERROR_R invocations from here...
51001         * modules/strerror_r-posix (configure.ac): ... to here.
51003 2011-05-24  Eric Blake  <eblake@redhat.com>
51005         strerror_r: fix missing header
51006         * lib/strerror_r.c: Avoid compiler warning about snprintf.
51008         strerror_r: fix AIX test failures
51009         * lib/strerror_r.c (strerror_r): Convert silent truncation to
51010         ERANGE failure.
51012         strerror_r: fix Solaris test failures
51013         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
51014         failures.
51015         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51017         strerror_r: enforce POSIX recommendations
51018         * lib/strerror_r.c (safe_copy): New helper method.
51019         (strerror_r): Guarantee a non-empty string.
51020         * tests/test-strerror_r.c (main): Enhance tests to incorporate
51021         recent POSIX rulings and to match our strerror guarantees.
51022         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
51024 2011-05-24  Jim Meyering  <meyering@redhat.com>
51026         test-perror2.c: avoid warning about unused variable
51027         * tests/test-perror2.c (main): Remove declaration of unused "fp".
51029 2011-05-24  Eric Blake  <eblake@redhat.com>
51031         perror: avoid spurious test failure on HP-UX
51032         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
51034         tests: fix logic bug in init.sh
51035         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
51036         shell.
51038 2011-05-24  Jim Meyering  <meyering@redhat.com>
51040         utimensat: do not reference an out-of-scope buffer
51041         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
51042         declared in an inner scope, yet "times" would be dereferenced outside
51043         the scope in which "ts" was valid.
51044         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
51045         of ts[2] "out/up", so that the use of aliased "times" (via
51046         "times = ts;") does not end up referencing an out-of-scope "ts"
51048         opendir-safer.c: don't clobber errno; don't close negative FD
51049         * lib/opendir-safer.c (opendir_safer):
51050         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
51051         file descriptor, and more importantly, don't clobber the
51052         offending errno value with EINVAL.  Before, upon failure
51053         of dup_safer, we would pass the negative file descriptor to
51054         fdopendir, which would clobber errno.
51056 2011-05-23  Bruno Haible  <bruno@clisp.org>
51058         idcache: Fix module description.
51059         * modules/idcache (Include): Set to "idcache.h".
51061 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
51063         gnulib-tool: fix portability problem with MacOS sed
51064         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
51065         before the "}".  Problem reported by Leo in
51066         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
51067         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
51068         sed_extract_condition1, sed_extract_condition2.
51070 2011-05-23  Bruno Haible  <bruno@clisp.org>
51072         hash: Simplify autoconf macro.
51073         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
51075 2011-05-23  Bruno Haible  <bruno@clisp.org>
51077         getugroups: Fix module description.
51078         * modules/getugroups (Include): Set to "getugroups.h".
51080 2011-05-23  Bruno Haible  <bruno@clisp.org>
51082         linkat: Simplify autoconf macro.
51083         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
51085 2011-05-23  Bruno Haible  <bruno@clisp.org>
51086             Eric Blake  <eblake@redhat.com>
51088         linkat, renameat: Update dependencies.
51089         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
51090         * modules/linkat (Depends-on): Likewise. Remove also readlink,
51091         symlinkat.
51093 2011-05-23  Jim Meyering  <meyering@redhat.com>
51095         maint.mk: more tight_scope improvements
51096         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
51097         (_gl_TS_headers): Define only in if-0'd block.
51098         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
51099         sometimes we must *not* use it.  Adjust uses accordingly.
51100         (sc_tight_scope): Use much simpler grep-based test to determine
51101         whether we skip this rule.
51103         maint.mk: generalize/improve the tight-scope rule
51104         * top/maint.mk: Emit a warning when the test is skipped.
51105         (_gl_TS_dir): Add $(srcdir)/ prefix.
51106         (_gl_TS_function_match): Simplify, rather than trying
51107         to enumerate common types.  Otherwise, it would fail to match an
51108         "extern unsigned char const *" declaration in idutils.
51109         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
51110         a way to support use of that type of macro.
51111         (_gl_TS_var_match): Simplify regexp.
51112         (_gl_TS_obj_files): New configurable variable.
51113         (_gl_TS_headers): Likewise.
51115 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51117         verify: fix bug when gnulib <assert.h> is also included
51118         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
51119         is defined, not if _GL_STATIC_ASSERT_H is not defined.
51120         Perhaps there's a better way, but this fixes the immediate problem.
51121         Problem reported by Bruno Haible in
51122         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
51124 2011-05-22  Bruno Haible  <bruno@clisp.org>
51126         xgetcwd: Simplify autoconf macro.
51127         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
51129 2011-05-22  Bruno Haible  <bruno@clisp.org>
51131         New module 'mktime-internal'.
51132         * modules/mktime-internal: New file.
51133         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
51134         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
51135         mktime_internal as a C macro if libc has __mktime_internal.
51136         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
51137         conditions.
51138         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
51140 2011-05-22  Bruno Haible  <bruno@clisp.org>
51142         timegm: Correct mktime replacement statements.
51143         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
51144         defining mktime as a C macro. This completes a 2009-07-28 commit.
51146 2011-05-22  Bruno Haible  <bruno@clisp.org>
51148         timegm: Simplify autoconf macro.
51149         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
51151 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
51153         clock-time: change to LGPLv2+.
51154         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
51155         BSD-like but we have no mark for that; this is good enough for now.
51157 2011-05-21  Bruno Haible  <bruno@clisp.org>
51159         strerror_r: Fix comments.
51160         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
51162 2011-05-21  Bruno Haible  <bruno@clisp.org>
51164         relocatable-prog-wrapper: Fix possible link error.
51165         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
51166         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
51167         (gl_FUNC_SETENV): ... to here.
51168         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
51169         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
51171 2011-05-21  Bruno Haible  <bruno@clisp.org>
51173         relocatable-prog-wrapper: Assume strerror() exists.
51174         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
51175         m4/strerror.m4.
51176         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
51177         * lib/relocwrapper.c: Remove mention of strerror module.
51178         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
51179         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
51180         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
51181         C macro.
51183 2011-05-21  Bruno Haible  <bruno@clisp.org>
51185         select: Simplify replacement idiom.
51186         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
51187         Win32 platforms.
51188         * lib/sys_select.in.h (select): Simplify accordingly.
51189         * modules/select (Depends-on): Likewise.
51191 2011-05-21  Bruno Haible  <bruno@clisp.org>
51193         mkdir-p: Simplify autoconf macro.
51194         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
51195         gl_FUNC_LCHOWN.
51197 2011-05-21  Eric Blake  <eblake@redhat.com>
51199         strerror_r: avoid clobbering strerror on cygwin
51200         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
51201         fall back instead to sys_errlist.
51202         * modules/strerror (configure.ac): Add witness.
51203         * tests/test-strerror_r.c (main): Enhance test.
51204         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51205         * tests/test-perror2.c (main): Free memory before exit.
51207 2011-05-21  Bruno Haible  <bruno@clisp.org>
51209         mkdtemp: Use gnulib naming conventions.
51210         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
51211         * modules/mkdtemp (configure.ac): Update.
51213 2011-05-20  Eric Blake  <eblake@redhat.com>
51215         strerror_r: avoid corrupting errno on Solaris
51216         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
51217         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51219         strerror_r: avoid compiler warning
51220         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
51222         strerror_r: simplify AIX code
51223         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
51225         test-perror: avoid spurious failure on FreeBSD
51226         * modules/perror-tests (Depends-on): Add strerror, now that
51227         strerror_r no longer pulls it in.
51229 2011-05-20  Bruno Haible  <bruno@clisp.org>
51231         strerror_r-posix: Remove unused dependencies.
51232         * modules/strerror_r-posix (Depends-on): Remove strerror.
51233         Reported by Eric Blake.
51235 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51237         intprops: remove assumption about A|B representation
51238         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
51239         is a valid integer if both A and B are.  Although this is true for
51240         all known practical hosts, the C standard doesn't guarantee it,
51241         and the code need not assume it.  Also, this change may work around
51242         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
51243         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
51245 2011-05-20  Eric Blake  <eblake@redhat.com>
51247         perror: work around FreeBSD bug
51248         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
51249         is broken.  Move AC_LIBOBJ...
51250         * modules/perror (configure.ac): Here.
51251         * doc/posix-functions/perror.texi (perror): Document this.
51252         * tests/test-perror2.c (main): Enhance test.
51254         test-perror: check for strerror interactions
51255         * tests/macros.h (STREQ): Add macro.
51256         * modules/perror-tests (Files): Add second test.
51257         * tests/test-perror2.c (main): New file.
51258         * doc/posix-functions/perror.texi (perror): Document glibc bug.
51260         test-perror: rewrite to use init script
51261         * modules/perror-tests (Files): Add init.sh.
51262         * tests/test-perror.sh: Use temporary directory.
51264 2011-05-20  Jim Meyering  <meyering@redhat.com>
51266         maint: replace misused "a" with "an"
51267         * doc/intprops.texi: "a integer"
51268         * doc/regex.texi: "a explanation"
51269         * lib/alignof.h: "a object"
51270         * lib/argmatch.h: "a explanation"
51271         * lib/argp-help.c: "a option" and "a OPTION_DOC"
51272         * lib/stdint.in.h: "a integer"
51273         * lib/userspec.c: "a owner"
51274         * doc/gnulib.texi: Fix "a idea", and reword.
51276 2011-05-19  Jim Meyering  <meyering@redhat.com>
51278         maint: correct misuse of "a" and "an"
51279         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
51280         * lib/argp-help.c: "an docum...": s/an/a/
51281         * lib/argp-parse.c: "An vector": s/An/A/
51282         * lib/execute.c: "an native": s/an/a/
51283         * lib/spawn-pipe.c: Likewise.
51284         * lib/gc.h: "an Gc_rc": s/an/a/
51285         * lib/unigbrk.in.h: "an grapheme": s/an/a/
51286         * lib/fts.c: "an stat.st_dev": s/an/a/
51288 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51290         intprops-tests: work around HP-UX 11.23 cc bug with constants
51291         * tests/test-intprops.c (VERIFY): New macro.
51292         (main): Use it, instead of verify, to work around the compiler bug; see
51293         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51295         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
51296         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
51297         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
51298         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
51299         (_GL_REMAINDER_OVERFLOW): Use it.
51301         intprops-tests: revert unsigned part of previous change
51302         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
51303         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
51304         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
51305         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
51307 2011-05-19  Bruno Haible  <bruno@clisp.org>
51309         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
51310         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
51311         strerror_r() returned without filling the buffer.
51312         Reported by Eric Blake.
51314 2011-05-19  Eric Blake  <eblake@redhat.com>
51316         strerror_r: guarantee unchanged errno
51317         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
51318         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
51319         failure.
51320         * tests/test-strerror_r.c (main): Enhance test.
51322 2011-05-19  Bruno Haible  <bruno@clisp.org>
51324         strerror_r: Reorder #if blocks.
51325         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
51326         for consistency with the previous commit.
51328 2011-05-19  Bruno Haible  <bruno@clisp.org>
51330         perror: Avoid clobbering the strerror buffer when possible.
51331         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
51332         * lib/strerror.c: Include it.
51333         * modules/strerror (Files): Add lib/strerror-impl.h.
51334         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
51335         (my_strerror): New function, defined through lib/strerror-impl.h.
51336         (perror): Use it instead of strerror.
51337         * modules/perror (Files): Add lib/strerror-impl.h.
51338         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
51340 2011-05-19  Eric Blake  <eblake@redhat.com>
51342         strerror_r: fix on newer cygwin
51343         * lib/strerror_r.c (strerror_r): Cygwin now has
51344         __xpg_strerror_r, use it.
51346 2011-05-19  Bruno Haible  <bruno@clisp.org>
51348         strerror_r: Avoid clobbering the strerror buffer when possible.
51349         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
51350         (sys_nerr, sys_errlist): New declarations.
51351         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
51352         HP-UX, native Win32, IRIX, and 32-bit Solaris.
51353         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
51355 2011-05-19  Bruno Haible  <bruno@clisp.org>
51357         strerror_r: Fix test failure on mingw.
51358         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
51359         EXTEND_STRERROR_R.
51360         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
51361         macros from errno.in.h instead.
51363 2011-05-19  Eric Blake  <eblake@redhat.com>
51365         strerror: relax test for Solaris
51366         * tests/test-strerror.c (main): Permit Solaris behavior.
51367         * tests/test-strerror_r.c (main): Likewise.
51369         strerror: enforce POSIX ruling on strerror(0)
51370         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
51371         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
51372         * lib/strerror_r.c (rpl_strerror_r): Work around it.
51373         * doc/posix-functions/strerror.texi (strerror): Document it.
51374         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
51375         * tests/test-strerror.c (main): Strengthen test.
51376         * tests/test-strerror_r.c (main): Likewise.
51378 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51380         intprop-tests: port to older and more-pedantic compilers
51381         * modules/intprops-tests (Files): Add tests/macros.h.
51382         * tests/test-intprops.c: Include macros.h.
51383         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
51384         it's no longer documented to expand to an integer constant expression.
51385         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
51386         argument is floating point, as it's no longer documented to expand
51387         to an integer constant expression in that case.
51388         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
51389         compiler bugs reported by Bruno Haible.  See
51390         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51391         (U0, U1): New constants, to work around the same bugs.  Also,
51392         in tests, use e.g., "(unsigned int) 39" rather than "39u".
51394         intprops: work around C compiler bugs
51395         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
51396         bug in Sun C 5.11 2010/08/13 and other compilers; see
51397         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
51399         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
51400         * doc/intprops.texi (Integer Type Determination): Fix
51401         documentation for TYPE_IS_INTEGER: it returns an constant
51402         expression, not an integer constant expression.  Fix doc for
51403         TYPE_SIGNED: it returns an integer constant expression only if its
51404         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
51405         hardly worth documented that way....)
51407 2011-05-18  Bruno Haible  <bruno@clisp.org>
51409         strerror_r: Avoid clobbering the strerror buffer when possible.
51410         * lib/strerror_r.c (strerror_r): Merge the three implementations.
51411         Handle gnulib defined errno values here. When strerror() returns NULL
51412         or an empty string, return EINVAL.
51413         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
51414         gnulib defined errno values here.
51415         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
51417 2011-05-18  Eric Blake  <eblake@redhat.com>
51419         fnmatch: avoid compiler warning
51420         * lib/fnmatch_loop.c (FCT): Use correct type.
51421         Reported by Matthias Bolte.
51423 2011-05-13  Jim Meyering  <meyering@redhat.com>
51425         maint.mk: three new prohibit_<HDR>_without_use rules
51426         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
51427         (sc_prohibit_stdio-safer_without_use): Likewise.
51428         (sc_prohibit_xfreopen_without_use): Likewise.
51430 2011-05-17  Jim Meyering  <meyering@redhat.com>
51432         announce-gen: fail if the NEWS delta is empty
51433         If there's nothing noteworthy in NEWS, then either you forgot
51434         or you shouldn't be releasing.
51435         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
51437 2011-05-17  Pádraig Brady  <P@draigBrady.com>
51439         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
51440         reserved symbols starting with double underscore from the check.
51442 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51444         intprops: add doc
51445         * doc/intprops.texi: New file, documenting intprops.
51446         * doc/gnulib.texi (Particular Modules): Include it.
51448         verify: add doc to gnulib manual and fix example
51449         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
51450         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
51451         (Compile-time Assertions): Fix example so it can't overflow.
51453 2011-05-17  Jim Meyering  <meyering@redhat.com>
51455         warnings.m4: don't usurp save_CPPFLAGS variable name
51456         * m4/warnings.m4: Prefix local temporary variable name with gl_.
51458         doc: fix typo
51459         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
51461 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51462             Bruno Haible  <bruno@clisp.org>
51464         doc: Tweak recent change.
51465         * README (Portability guidelines): Tweak new text.
51466         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
51467         Interix 6.1.
51469 2011-05-16  Eric Blake  <eblake@redhat.com>
51471         inttypes: avoid autoconf warning
51472         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
51473         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51475 2011-05-16  Sam Steingold  <sds@gnu.org>
51476         and Eric Blake  <eblake@redhat.com>
51478         vc-list-files: accept multiple directory operands
51479         * build-aux/vc-list-files: Iterate over all remaining operands.
51481 2011-05-16  Bruno Haible  <bruno@clisp.org>
51483         Fix confusion regarding deprecated modules.
51484         * modules/calloc (Status, Notice): Mark module as deprecated, not
51485         obsolete.
51486         * modules/fnmatch-posix (Status, Notice): Likewise.
51487         * modules/getdate (Status, Notice): Likewise.
51488         * modules/getopt (Status, Notice): Likewise.
51489         * modules/malloc (Status, Notice): Likewise.
51490         * modules/pipe (Status, Notice): Likewise.
51491         * modules/realloc (Status, Notice): Likewise.
51492         * modules/rename-dest-slash (Status, Notice): Likewise.
51493         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
51494         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
51495         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
51496         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
51497         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
51499 2011-05-16  Bruno Haible  <bruno@clisp.org>
51501         doc: List the target platforms.
51502         * doc/gnulib-intro.texi (Target Platforms): New section.
51503         * doc/gnulib.texi (Introduction): Update menu.
51504         * README (Portability guidelines): Refer to the new section. Update
51505         statement about oldest supported environment. Remove rationale why
51506         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
51507         unportable C89 function.
51508         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
51509         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
51511 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51513         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
51515 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51517         intprops-tests: new module
51518         * modules/intprops-tests, tests/test-intprops.c: New files.
51520         intprops: add safe, portable integer overflow checking
51521         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
51522         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
51523         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
51524         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
51525         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
51526         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
51527         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
51528         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
51529         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
51530         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
51531         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
51533 2011-05-12  James Youngman  <jay@gnu.org>
51535         Add a test for glibc's Bugzilla bug #12378.
51536         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
51537         doesn't allow the literal matching of a lone "[" (which is
51538         required by POSIX).
51539         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
51541 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
51543         Sync glibc change fixing Bugzilla bug #12378.
51544         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
51545         beginning and fall back to matching as normal character if the
51546         string ends before the matching ']' is found.  This is what POSIX
51547         requires.
51549 2011-05-13  Eric Blake  <eblake@redhat.com>
51551         getcwd-lgpl: relax test for FreeBSD
51552         * doc/posix-functions/getcwd.texi (getcwd): Document portability
51553         issue.
51554         * tests/test-getcwd-lgpl.c (main): Relax test.
51555         Reported by Matthias Bolte.
51557 2011-05-11  Eric Blake  <eblake@redhat.com>
51559         test-fflush: silence compiler warning
51560         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
51562 2011-05-11  Bruno Haible  <bruno@clisp.org>
51564         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
51565         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
51566         * modules/canonicalize (Depends-on): Add 'nocrash'.
51567         * modules/canonicalize-lgpl (Depends-on): Likewise.
51568         * doc/posix-functions/realpath.texi: Update platforms list.
51569         Reported by Ryan Schmidt <ryandesign@macports.org>.
51571 2011-05-11  Bruno Haible  <bruno@clisp.org>
51573         group-member: Declare function in <unistd.h>.
51574         * lib/unistd.in.h (group_member): New declaration.
51575         * lib/group-member.h: Remove file.
51576         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
51577         * tests/test-unistd-c++.cc: Check signature of group_member.
51578         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
51579         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
51580         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
51581         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
51582         HAVE_GROUP_MEMBER.
51583         * modules/group-member (Files): Remove lib/group-member.h.
51584         (Depends-on): Add unistd. Specify conditions.
51585         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51586         (Include): Change to <unistd.h>.
51587         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
51588         HAVE_GROUP_MEMBER.
51589         * NEWS: Mention the change.
51590         * lib/euidaccess.c: Don't include group-member.h.
51592 2011-05-11  Bruno Haible  <bruno@clisp.org>
51594         group-member: Document module.
51595         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
51596         module.
51598 2011-05-11  Bruno Haible  <bruno@clisp.org>
51600         fclose: Fix mistake earlier today.
51601         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
51603 2011-05-11  Eric Blake  <eblake@redhat.com>
51605         fclose: preserve fflush errors
51606         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
51607         Reported by Jim Meyering.
51609         bootstrap: support a prereq of 'rpcgen -' on RHEL5
51610         * build-aux/bootstrap (check_versions): When no specific version
51611         is required, merely check that the app produces an exit status
51612         that indicates its existence.
51614         maint.mk: drop redundant check
51615         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
51616         the same but better.
51618 2011-05-11  Bruno Haible  <bruno@clisp.org>
51620         fclose: Fix possible link error.
51621         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
51622         unregister_shadow_fd. Improve comments.
51623         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
51624         Eric Blake.
51626 2011-05-11  Jim Meyering  <meyering@redhat.com>
51628         maint.mk: improve "can not" detection and generalize rule name
51629         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
51630         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
51631         Use the same technique as in sc_prohibit_doubled_word, so that
51632         we recognize "can not" also when the words are separated by a newline.
51633         Suggested by Eric Blake.
51634         (perl_filename_lineno_text_): Define.  Factored out of...
51635         (prohibit_doubled_word_): ...here.  Use the new definition.
51636         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
51637         (prohibit_undesirable_word_seq_RE_): New overridable variable.
51638         (ignore_undesirable_word_sequence_RE_): New overridable variable.
51640 2011-05-10  Eric Blake  <eblake@redhat.com>
51642         fclose: avoid double close race when possible
51643         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
51644         all but WINDOWS_SOCKETS.
51646 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
51648         openat: correct new comment
51649         * lib/openat-proc.c (openat_proc_name): Correct the comment.
51651 2011-05-10  Jim Meyering  <meyering@redhat.com>
51653         openat: add comments
51654         * lib/openat-proc.c (openat_proc_name): Add comments,
51655         mostly from Eric Blake.
51657 2011-05-09  Eric Blake  <eblake@redhat.com>
51659         openat: reduce syscalls in first probe of /proc
51660         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
51661         be a directory.  Simplify the probe for .. bugs.
51662         * modules/openat (Depends-on): Drop same-inode.
51663         Reported by Bastien ROUCARIES.
51665 2011-05-09  Jim Meyering  <meyering@redhat.com>
51667         maint.mk: change semantics/name of tight_scope variables
51668         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
51669         Rename variables to align with semantics that make them more useful.
51671         maint.mk: tweak new rule's name not to impinge
51672         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
51673         (sc_tight_scope): Use new rule name rather than $@-0.
51675         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
51676         * top/maint.mk (sc_tight_scope): New rule.
51677         (sc_tight_scope-0): New rule, ifdef'd out.
51678         (_gl_TS_dir): Default.
51679         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
51680         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
51682 2011-05-09  Simon Josefsson  <simon@josefsson.org>
51684         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
51685         Haible <bruno@clisp.org>.
51687 2011-05-08  Bruno Haible  <bruno@clisp.org>
51689         Comments.
51690         * m4/isnanf.m4: Add comment.
51691         * m4/isnanl.m4: Likewise.
51693 2011-05-08  Bruno Haible  <bruno@clisp.org>
51695         glob: Remove obsolete macro.
51696         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
51698 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
51700         intprops: Sun C 5.11 supports __typeof__
51701         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
51702         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
51703         which is new.
51704         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
51706         intprops: switch to usual gnulib indenting and naming
51707         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
51708         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
51710         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
51712 2011-05-08  Jim Meyering  <meyering@redhat.com>
51714         maint.mk: suppress "Entering/Leaving directory" diag in announcement
51715         * top/maint.mk (release-prep): Use make's --no-print-directory
51716         option when generating the announcement.  This eliminates the
51717         pesky "make[2]: Entering/Leaving directory" diagnostics in the
51718         generated announcement template.
51720 2011-05-08  Bruno Haible  <bruno@clisp.org>
51722         tzset: Fix gettimeofday wrapper on Solaris 2.6.
51723         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
51724         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
51726 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
51728         ignore-value, verify: Omit include files from lib_SOURCES.
51729         * modules/ignore-value, modules/verify (Makefile.am):
51730         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
51731         that leads Automake to duplicate use of am__objects_... variables
51732         in Makefile.in.  See
51733         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
51735 2011-05-07  Bruno Haible  <bruno@clisp.org>
51737         fclose: Simplify autoconf macro.
51738         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
51739         defined.
51741 2011-05-07  Bruno Haible  <bruno@clisp.org>
51743         canonicalize-lgpl: Fix autoconf macro ordering bug.
51744         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
51745         gl_STDLIB_H_DEFAULTS.
51747 2011-05-06  Eric Blake  <eblake@redhat.com>
51749         maintainer-makefile: make sc_po_check easier to tune
51750         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
51751         to probe for strings, such as an alternate location for gnulib.
51753         fclose: guarantee behavior on seekable stdin
51754         * modules/fclose (Depends-on): Add fflush.
51755         * doc/posix-functions/fclose.texi (fclose): Document this.
51756         * tests/test-fclose.c (main): Make test for this unconditional.
51758 2011-05-06  Bruno Haible  <bruno@clisp.org>
51760         fflush, fpurge: Relicense under LGPLv2+.
51761         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
51762         * modules/fpurge (License): Likewise.
51763         With permission from Eric Blake and Jim Meyering.
51764         Suggested by Eric Blake.
51766 2011-05-06  Karl Berry  <karl@gnu.org>
51768         * MODULES.html.sh (func_all_modules): remove exit.
51770 2011-05-06  Jim Meyering  <meyering@redhat.com>
51772         maint.mk: use info-gnu@ as the default only for a stable release
51773         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
51774         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
51775         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
51776         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
51778 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51780         assert-h: new module, which supports C1X-style static_assert
51781         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
51782         * lib/verify.h: Revamp so that this can be copied into assert.h,
51783         while retaining the ability to use it standalone as before.
51784         Rename private identifiers so as not to encroach on the
51785         standard C namespace, since this is now used by assert.h.
51786         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
51787         the old verify_true.
51788         (_GL_VERIFY_TRUE): New macro, with much of the contents of
51789         the old verify_true.  Use _GL_VERIFY_TYPE.
51790         (_GL_VERIFY): New macro, with much of the contents of the old verify.
51791         (static_assert): New macro, if _GL_STATIC_ASSERT_H
51792         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
51793         defined when this file is copied into the replacement assert.h.
51794         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
51795         and _Static_assert is not built in.
51796         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
51797         defined, and use the new macros mentioned above.
51798         * doc/posix-headers/assert.texi: Document this.
51800 2011-05-05  Bruno Haible  <bruno@clisp.org>
51802         fclose, fflush: Respect rules for use of AC_LIBOBJ.
51803         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
51804         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
51805         gl_REPLACE_FCLOSE here.
51806         * modules/fflush (Depends-on): Remove fclose.
51807         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
51808         combination with module 'fclose'.
51810 2011-05-05  Bruno Haible  <bruno@clisp.org>
51812         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
51813         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
51814         gl_FUNC_FFLUSH.
51815         (gl_FUNC_FFLUSH): Use it.
51816         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
51817         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
51818         gl_REPLACE_FSEEKO here.
51820 2011-05-05  Bruno Haible  <bruno@clisp.org>
51822         tzset: Relicense under LGPL.
51823         * modules/tzset (License): Change to LGPL.
51824         No agreement needed; it's a no-op.
51826         strtoimax, strtoumax: Relicense under LGPL.
51827         * modules/strtoimax (License): Change to LGPL.
51828         * modules/strtoumax (License): Likewise.
51829         With permission from Jim Meyering, Paul Eggert:
51830         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
51831         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
51833         getgroups: Relicense under LGPL.
51834         * modules/getgroups (License): Change to LGPL.
51835         With permission from Jim Meyering, Paul Eggert, Eric Blake:
51836         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51837         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51838         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51840         nanosleep: Relicense under LGPL.
51841         * modules/nanosleep (License): Change to LGPL.
51842         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
51843         Haible:
51844         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
51845         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
51846         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51847         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51849         futimens: Relicense under LGPL.
51850         * modules/futimens (License): Change to LGPL.
51851         With permission from Eric Blake:
51852         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51854         fflush: Relicense under LGPL.
51855         * modules/fflush (License): Change to LGPL.
51856         With permission from Eric Blake, Bruno Haible, Jim Meyering:
51857         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
51858         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
51859         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
51861         tmpfile: Relicense under LGPL.
51862         * modules/tmpfile (License): Change to LGPL.
51863         With permission from Ben Pfaff:
51864         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51866         isfinite: Relicense under LGPL.
51867         * modules/isfinite (License): Change to LGPL.
51868         With permission from Ben Pfaff, Bruno Haible:
51869         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
51870         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
51872         acosl..tanl: Relicense under LGPL.
51873         * modules/acosl (License): Change to LGPL.
51874         * modules/asinl (License): Likewise.
51875         * modules/atanl (License): Likewise.
51876         * modules/cosl (License): Likewise.
51877         * modules/expl (License): Likewise.
51878         * modules/logl (License): Likewise.
51879         * modules/sinl (License): Likewise.
51880         * modules/sqrtl (License): Likewise.
51881         * modules/tanl (License): Likewise.
51882         Source code originally from glibc and Paolo Bonzini. Agreements:
51883         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
51884         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
51886 2011-05-05  Bruno Haible  <bruno@clisp.org>
51888         signal: Define sighandler_t.
51889         * lib/signal.in.h (sighandler_t): New type.
51890         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
51891         whether sighandler_t is defined.
51892         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
51893         * modules/signal (Depends-on): Add extensions.
51894         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
51895         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
51896         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
51898 2011-05-05  Eric Blake  <eblake@redhat.com>
51900         maint: remove useless REPLACE_*_H macros
51901         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
51902         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
51903         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
51904         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
51905         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
51906         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
51907         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
51908         * m4/btowc.m4: Update callers.
51909         * m4/dirfd.m4: Likewise.
51910         * m4/duplocale.m4: Likewise.
51911         * m4/fchdir.m4: Likewise.
51912         * m4/fdopendir.m4: Likewise.
51913         * m4/inet_ntop.m4: Likewise.
51914         * m4/inet_pton.m4: Likewise.
51915         * m4/ioctl.m4: Likewise.
51916         * m4/mbrlen.m4: Likewise.
51917         * m4/mbrtowc.m4: Likewise.
51918         * m4/mbsinit.m4: Likewise.
51919         * m4/mbsnrtowcs.m4: Likewise.
51920         * m4/mbsrtowcs.m4: Likewise.
51921         * m4/poll.m4: Likewise.
51922         * m4/setlocale.m4: Likewise.
51923         * m4/wcrtomb.m4: Likewise.
51924         * m4/wcsnrtombs.m4: Likewise.
51925         * m4/wcsrtombs.m4: Likewise.
51926         * m4/wctob.m4: Likewise.
51927         * m4/wcwidth.m4: Likewise.
51928         * modules/posix_spawn: Likewise.
51929         * modules/posix_spawn_file_actions_addclose: Likewise.
51930         * modules/posix_spawn_file_actions_adddup2: Likewise.
51931         * modules/posix_spawn_file_actions_addopen: Likewise.
51932         * modules/posix_spawn_file_actions_destroy: Likewise.
51933         * modules/posix_spawn_file_actions_init: Likewise.
51934         * modules/posix_spawnattr_destroy: Likewise.
51935         * modules/posix_spawnattr_getflags: Likewise.
51936         * modules/posix_spawnattr_getpgroup: Likewise.
51937         * modules/posix_spawnattr_getschedparam: Likewise.
51938         * modules/posix_spawnattr_getschedpolicy: Likewise.
51939         * modules/posix_spawnattr_getsigdefault: Likewise.
51940         * modules/posix_spawnattr_getsigmask: Likewise.
51941         * modules/posix_spawnattr_init: Likewise.
51942         * modules/posix_spawnattr_setflags: Likewise.
51943         * modules/posix_spawnattr_setpgroup: Likewise.
51944         * modules/posix_spawnattr_setschedparam: Likewise.
51945         * modules/posix_spawnattr_setschedpolicy: Likewise.
51946         * modules/posix_spawnattr_setsigdefault: Likewise.
51947         * modules/posix_spawnattr_setsigmask: Likewise.
51948         * modules/posix_spawnp: Likewise.
51950 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
51952         Add option to do-release-commit-and-tag to specify branch.
51953         * build-aux/do-release-commit-and-tag: Add --branch.
51955 2011-05-03  Bruno Haible  <bruno@clisp.org>
51957         Avoid unnecessary compilation units, through conditional dependencies.
51958         * modules/accept (Depends-on): Add conditions to the dependencies.
51959         * modules/acosl (Depends-on): Likewise.
51960         * modules/argz (Depends-on): Likewise.
51961         * modules/asinl (Depends-on): Likewise.
51962         * modules/atanl (Depends-on): Likewise.
51963         * modules/atoll (Depends-on): Likewise.
51964         * modules/bind (Depends-on): Likewise.
51965         * modules/btowc (Depends-on): Likewise.
51966         * modules/canonicalize-lgpl (Depends-on): Likewise.
51967         * modules/ceil (Depends-on): Likewise.
51968         * modules/ceilf (Depends-on): Likewise.
51969         * modules/ceill (Depends-on): Likewise.
51970         * modules/chdir-long (Depends-on): Likewise.
51971         * modules/chown (Depends-on): Likewise.
51972         * modules/close (Depends-on): Likewise.
51973         * modules/connect (Depends-on): Likewise.
51974         * modules/cosl (Depends-on): Likewise.
51975         * modules/dirfd (Depends-on): Likewise.
51976         * modules/dprintf (Depends-on): Likewise.
51977         * modules/dprintf-posix (Depends-on): Likewise.
51978         * modules/error (Depends-on): Likewise.
51979         * modules/euidaccess (Depends-on): Likewise.
51980         * modules/expl (Depends-on): Likewise.
51981         * modules/faccessat (Depends-on): Likewise.
51982         * modules/fchdir (Depends-on): Likewise.
51983         * modules/fclose (Depends-on): Likewise.
51984         * modules/fcntl (Depends-on): Likewise.
51985         * modules/fdopendir (Depends-on): Likewise.
51986         * modules/fflush (Depends-on): Likewise.
51987         * modules/floor (Depends-on): Likewise.
51988         * modules/floorf (Depends-on): Likewise.
51989         * modules/floorl (Depends-on): Likewise.
51990         * modules/fnmatch (Depends-on): Likewise.
51991         * modules/fopen (Depends-on): Likewise.
51992         * modules/fprintf-posix (Depends-on): Likewise.
51993         * modules/frexp (Depends-on): Likewise.
51994         * modules/frexp-nolibm (Depends-on): Likewise.
51995         * modules/frexpl (Depends-on): Likewise.
51996         * modules/frexpl-nolibm (Depends-on): Likewise.
51997         * modules/fseek (Depends-on): Likewise.
51998         * modules/fsusage (Depends-on): Likewise.
51999         * modules/ftell (Depends-on): Likewise.
52000         * modules/ftello (Depends-on): Likewise.
52001         * modules/futimens (Depends-on): Likewise.
52002         * modules/getcwd (Depends-on): Likewise.
52003         * modules/getcwd-lgpl (Depends-on): Likewise.
52004         * modules/getdelim (Depends-on): Likewise.
52005         * modules/getdomainname (Depends-on): Likewise.
52006         * modules/getgroups (Depends-on): Likewise.
52007         * modules/gethostname (Depends-on): Likewise.
52008         * modules/getline (Depends-on): Likewise.
52009         * modules/getlogin_r (Depends-on): Likewise.
52010         * modules/getopt-posix (Depends-on): Likewise.
52011         * modules/getpeername (Depends-on): Likewise.
52012         * modules/getsockname (Depends-on): Likewise.
52013         * modules/getsockopt (Depends-on): Likewise.
52014         * modules/getsubopt (Depends-on): Likewise.
52015         * modules/getusershell (Depends-on): Likewise.
52016         * modules/glob (Depends-on): Likewise.
52017         * modules/grantpt (Depends-on): Likewise.
52018         * modules/iconv_open (Depends-on): Likewise.
52019         * modules/iconv_open-utf (Depends-on): Likewise.
52020         * modules/inet_ntop (Depends-on): Likewise.
52021         * modules/inet_pton (Depends-on): Likewise.
52022         * modules/ioctl (Depends-on): Likewise.
52023         * modules/isapipe (Depends-on): Likewise.
52024         * modules/isfinite (Depends-on): Likewise.
52025         * modules/isinf (Depends-on): Likewise.
52026         * modules/lchown (Depends-on): Likewise.
52027         * modules/ldexpl (Depends-on): Likewise.
52028         * modules/link (Depends-on): Likewise.
52029         * modules/linkat (Depends-on): Likewise.
52030         * modules/listen (Depends-on): Likewise.
52031         * modules/logl (Depends-on): Likewise.
52032         * modules/lstat (Depends-on): Likewise.
52033         * modules/mbrlen (Depends-on): Likewise.
52034         * modules/mbrtowc (Depends-on): Likewise.
52035         * modules/mbsinit (Depends-on): Likewise.
52036         * modules/mbsnrtowcs (Depends-on): Likewise.
52037         * modules/mbsrtowcs (Depends-on): Likewise.
52038         * modules/mbtowc (Depends-on): Likewise.
52039         * modules/memcmp (Depends-on): Likewise.
52040         * modules/mkdir (Depends-on): Likewise.
52041         * modules/mkdtemp (Depends-on): Likewise.
52042         * modules/mkfifo (Depends-on): Likewise.
52043         * modules/mkfifoat (Depends-on): Likewise.
52044         * modules/mknod (Depends-on): Likewise.
52045         * modules/mkostemp (Depends-on): Likewise.
52046         * modules/mkostemps (Depends-on): Likewise.
52047         * modules/mkstemp (Depends-on): Likewise.
52048         * modules/mkstemps (Depends-on): Likewise.
52049         * modules/mktime (Depends-on): Likewise.
52050         * modules/nanosleep (Depends-on): Likewise.
52051         * modules/open (Depends-on): Likewise.
52052         * modules/openat (Depends-on): Likewise.
52053         * modules/perror (Depends-on): Likewise.
52054         * modules/poll (Depends-on): Likewise.
52055         * modules/popen (Depends-on): Likewise.
52056         * modules/posix_spawn (Depends-on): Likewise.
52057         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
52058         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52059         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52060         * modules/posix_spawnp (Depends-on): Likewise.
52061         * modules/pread (Depends-on): Likewise.
52062         * modules/printf-posix (Depends-on): Likewise.
52063         * modules/ptsname (Depends-on): Likewise.
52064         * modules/putenv (Depends-on): Likewise.
52065         * modules/pwrite (Depends-on): Likewise.
52066         * modules/readline (Depends-on): Likewise.
52067         * modules/readlink (Depends-on): Likewise.
52068         * modules/readlinkat (Depends-on): Likewise.
52069         * modules/recv (Depends-on): Likewise.
52070         * modules/recvfrom (Depends-on): Likewise.
52071         * modules/regex (Depends-on): Likewise.
52072         * modules/remove (Depends-on): Likewise.
52073         * modules/rename (Depends-on): Likewise.
52074         * modules/renameat (Depends-on): Likewise.
52075         * modules/rmdir (Depends-on): Likewise.
52076         * modules/round (Depends-on): Likewise.
52077         * modules/roundf (Depends-on): Likewise.
52078         * modules/roundl (Depends-on): Likewise.
52079         * modules/rpmatch (Depends-on): Likewise.
52080         * modules/select (Depends-on): Likewise.
52081         * modules/send (Depends-on): Likewise.
52082         * modules/sendto (Depends-on): Likewise.
52083         * modules/setenv (Depends-on): Likewise.
52084         * modules/setlocale (Depends-on): Likewise.
52085         * modules/setsockopt (Depends-on): Likewise.
52086         * modules/shutdown (Depends-on): Likewise.
52087         * modules/sigaction (Depends-on): Likewise.
52088         * modules/signbit (Depends-on): Likewise.
52089         * modules/sigprocmask (Depends-on): Likewise.
52090         * modules/sinl (Depends-on): Likewise.
52091         * modules/sleep (Depends-on): Likewise.
52092         * modules/snprintf (Depends-on): Likewise.
52093         * modules/snprintf-posix (Depends-on): Likewise.
52094         * modules/socket (Depends-on): Likewise.
52095         * modules/sprintf-posix (Depends-on): Likewise.
52096         * modules/sqrtl (Depends-on): Likewise.
52097         * modules/stat (Depends-on): Likewise.
52098         * modules/strchrnul (Depends-on): Likewise.
52099         * modules/strdup-posix (Depends-on): Likewise.
52100         * modules/strerror (Depends-on): Likewise.
52101         * modules/strerror_r-posix (Depends-on): Likewise.
52102         * modules/strndup (Depends-on): Likewise.
52103         * modules/strnlen (Depends-on): Likewise.
52104         * modules/strptime (Depends-on): Likewise.
52105         * modules/strsep (Depends-on): Likewise.
52106         * modules/strsignal (Depends-on): Likewise.
52107         * modules/strstr-simple (Depends-on): Likewise.
52108         * modules/strtod (Depends-on): Likewise.
52109         * modules/strtoimax (Depends-on): Likewise.
52110         * modules/strtok_r (Depends-on): Likewise.
52111         * modules/strtoumax (Depends-on): Likewise.
52112         * modules/symlink (Depends-on): Likewise.
52113         * modules/symlinkat (Depends-on): Likewise.
52114         * modules/tanl (Depends-on): Likewise.
52115         * modules/tcgetsid (Depends-on): Likewise.
52116         * modules/tmpfile (Depends-on): Likewise.
52117         * modules/trunc (Depends-on): Likewise.
52118         * modules/truncf (Depends-on): Likewise.
52119         * modules/truncl (Depends-on): Likewise.
52120         * modules/uname (Depends-on): Likewise.
52121         * modules/unlink (Depends-on): Likewise.
52122         * modules/unlockpt (Depends-on): Likewise.
52123         * modules/unsetenv (Depends-on): Likewise.
52124         * modules/usleep (Depends-on): Likewise.
52125         * modules/utimensat (Depends-on): Likewise.
52126         * modules/vasprintf (Depends-on): Likewise.
52127         * modules/vdprintf (Depends-on): Likewise.
52128         * modules/vdprintf-posix (Depends-on): Likewise.
52129         * modules/vfprintf-posix (Depends-on): Likewise.
52130         * modules/vprintf-posix (Depends-on): Likewise.
52131         * modules/vsnprintf (Depends-on): Likewise.
52132         * modules/vsnprintf-posix (Depends-on): Likewise.
52133         * modules/vsprintf-posix (Depends-on): Likewise.
52134         * modules/wcrtomb (Depends-on): Likewise.
52135         * modules/wcscasecmp (Depends-on): Likewise.
52136         * modules/wcscspn (Depends-on): Likewise.
52137         * modules/wcsdup (Depends-on): Likewise.
52138         * modules/wcsncasecmp (Depends-on): Likewise.
52139         * modules/wcsnrtombs (Depends-on): Likewise.
52140         * modules/wcspbrk (Depends-on): Likewise.
52141         * modules/wcsrtombs (Depends-on): Likewise.
52142         * modules/wcsspn (Depends-on): Likewise.
52143         * modules/wcsstr (Depends-on): Likewise.
52144         * modules/wcstok (Depends-on): Likewise.
52145         * modules/wcswidth (Depends-on): Likewise.
52146         * modules/wctob (Depends-on): Likewise.
52147         * modules/wctomb (Depends-on): Likewise.
52148         * modules/wctype (Depends-on): Likewise.
52149         * modules/wcwidth (Depends-on): Likewise.
52150         * modules/write (Depends-on): Likewise.
52152 2011-05-03  Bruno Haible  <bruno@clisp.org>
52154         Support for conditional dependencies.
52155         * doc/gnulib.texi (Module description): Document the syntax of
52156         conditional dependencies.
52157         * gnulib-tool: New option --conditional-dependencies.
52158         (func_usage): Document it.
52159         (cond_dependencies): New variable.
52160         (func_get_automake_snippet_conditional,
52161         func_get_automake_snippet_unconditional): New functions, extracted from
52162         func_get_automake_snippet.
52163         (func_get_automake_snippet): Use them.
52164         (sed_first_32_chars): New variable.
52165         (func_module_shellfunc_name): New function.
52166         (func_module_shellvar_name): New function.
52167         (func_module_conditional_name): New function.
52168         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
52169         func_cond_module_condition): New functions.
52170         (func_modules_transitive_closure): Add support for conditional
52171         dependencies.
52172         (func_emit_lib_Makefile_am): For a conditional module, enclose the
52173         conditional automake snippet in an automake conditional.
52174         (func_emit_autoconf_snippets): Emit shell functions that contain the
52175         code for conditional modules.
52176         (func_import, func_create_testdir): Update specification.
52178 2011-05-03  Eric Blake  <eblake@redhat.com>
52180         test-getaddrinfo: report error information
52181         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
52183 2011-05-03  Jim Meyering  <meyering@redhat.com>
52185         bootstrap: avoid build failure when $GZIP is set
52186         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
52187         program name.  If defined at all, it is supposed to list gzip options.
52188         Reported by Alan Curry in http://debbugs.gnu.org/8609
52190 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
52192         readme-release: new module with release instructions
52193         * modules/readme-release: New module.
52194         * top/README-release: New file, from coreutils, grep, diffutils.
52195         * MODULES.html.sh (Support for maintaining and releasing): Add it.
52197 2011-05-02  Eric Blake  <eblake@redhat.com>
52199         fflush: also replace fclose when fixing fflush
52200         * modules/fflush (Depends-on): Add fclose.
52201         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
52202         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
52203         memstreams with no backing fd.
52204         * doc/posix-functions/fclose.texi (fclose): Document the use of
52205         fflush module to fix the bug.
52206         * tests/test-fclose.c (main): Relax test when fclose is used in
52207         isolation.
52209         fclose: add some tests
52210         * modules/fclose-tests: New test module.
52211         * tests/test-fclose.c: New file.
52212         * doc/posix-functions/fclose.texi (fclose): Document the bug.
52214         fclose: reduced dependencies
52215         * modules/fclose (Depends-on): Switch from fflush/fseeko to
52216         simpler lseek.
52217         * lib/fclose.c (rpl_fclose): Likewise.
52218         Reported by Simon Josefsson.
52220         exit: drop remaining clients
52221         * modules/argmatch (Depends-on): Replace exit with stdlib.
52222         * modules/copy-file (Depends-on): Likewise.
52223         * modules/execute (Depends-on): Likewise.
52224         * modules/exitfail (Depends-on): Likewise.
52225         * modules/obstack (Depends-on): Likewise.
52226         * modules/pagealign_alloc (Depends-on): Likewise.
52227         * modules/pipe-filter-gi (Depends-on): Likewise.
52228         * modules/pipe-filter-ii (Depends-on): Likewise.
52229         * modules/savewd (Depends-on): Likewise.
52230         * modules/spawn-pipe (Depends-on): Likewise.
52231         * modules/wait-process (Depends-on): Likewise.
52232         * modules/xsetenv (Depends-on): Likewise.
52233         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
52234         * modules/git-merge-changelog (Depends-on): Likewise.
52235         * modules/long-options (Depends-on): Likewise.
52236         * modules/pt_chown (Depends-on): Likewise.
52237         * modules/sysexits (Depends-on): Likewise.
52239         freading: relax license from LGPLv3+ to LGPLv2+
52240         * modules/freading (License): Relax LGPL version.
52242 2011-05-02  Bruno Haible  <bruno@clisp.org>
52244         fchdir: Remove unused dependencies.
52245         * modules/fchdir (Depends-on): Remove include_next.
52247 2011-05-02  Bruno Haible  <bruno@clisp.org>
52249         gnulib-tool: Refactor.
52250         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
52251         from func_emit_autoconf_snippets.
52252         (func_emit_autoconf_snippets): Use it.
52254 2011-05-02  Simon Josefsson  <simon@josefsson.org>
52256         * NEWS: Document removal of 'exit'.
52257         * modules/exit: Remove file.
52259 2011-05-01  Bruno Haible  <bruno@clisp.org>
52261         Update DEPENDENCIES.
52262         * DEPENDENCIES (gettext): Recommend the newest release.
52263         Reported by Simon Josefsson.
52265 2011-05-01  Bruno Haible  <bruno@clisp.org>
52267         gnulib-tool: Reduce code duplication.
52268         * gnulib-tool (func_emit_autoconf_snippets): New function.
52269         (func_import, func_create_testdir): Use it.
52271 2011-04-30  Eric Blake  <eblake@redhat.com>
52273         fclose: don't fail on non-seekable input stream
52274         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
52275         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
52276         since fflush is allowed to fail in that case.
52278 2011-04-30  Bruno Haible  <bruno@clisp.org>
52280         dup3: cleanup
52281         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
52283 2011-04-30  Bruno Haible  <bruno@clisp.org>
52285         netdb: Make it work in C++ mode.
52286         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
52287         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
52288         module.
52289         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
52290         gl_MODULE_INDICATOR_FOR_TESTS.
52291         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
52292         * modules/netdb-c++-tests: New file.
52293         * tests/test-netdb-c++.cc: New file.
52295 2011-04-30  Bruno Haible  <bruno@clisp.org>
52297         New modules 'vfscanf', 'vscanf'.
52298         * modules/vfscanf: New file.
52299         * modules/vscanf: New file.
52300         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
52301         here.
52302         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
52303         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
52305 2011-04-30  Bruno Haible  <bruno@clisp.org>
52307         passfd: Add comments.
52308         * lib/passfd.c: Add comments about platforms.
52310 2011-04-30  Bruno Haible  <bruno@clisp.org>
52312         sys_uio: Make <sys/uio.h> self-contained.
52313         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
52314         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
52316 2011-04-30  Bruno Haible  <bruno@clisp.org>
52318         sys_socket: Ensure 'struct iovec' definition.
52319         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
52320         <sys/socket.h>.
52321         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
52323 2011-04-30  Bruno Haible  <bruno@clisp.org>
52325         sys_uio: Protect definition of 'struct iovec'.
52326         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
52327         it as a C struct.
52329 2011-04-30  Bruno Haible  <bruno@clisp.org>
52331         manywarnings: fix indentation
52332         * m4/manywarnings.m4: Indent by 2 spaces consistently.
52334 2011-04-30  Pádraig Brady  <P@draigBrady.com>
52336         manywarnings: add -Wno-missing-field-initializers if needed.
52337         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
52338         option if it's needed to allow initialization with { 0, }
52340 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
52342         announce-gen: cosmetic improvement
52343         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
52345 2011-04-29  Jim Meyering  <meyering@redhat.com>
52347         vc-list-files: indent with spaces, not TABs
52348         * build-aux/vc-list-files: Convert leading TABs to spaces,
52349         to match the style of most other files in gnulib.
52351         announce-gen: indent with spaces, not TABs
52352         * build-aux/announce-gen: Convert all TABs to spaces, to match
52353         the style of most other files in gnulib.
52355 2011-04-29  Eric Blake  <eblake@redhat.com>
52357         quotearg: avoid uninitialized variable use
52358         * lib/quotearg.c (quoting_options_from_style): Initialize
52359         remaining fields, and ensure that custom styles are only used via
52360         quoting_options rather than quoting_style.
52362 2011-04-29  Jim Meyering  <meyering@redhat.com>
52364         maint.mk: remove unused VC-tag variable
52365         * top/maint.mk (VC-tag): Remove unused variable.
52367 2011-04-29  Bruno Haible  <bruno@clisp.org>
52369         netdb: fix gai_strerror replacements
52370         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
52371         * modules/netdb: Substitute it.
52373 2011-04-29  Jim Meyering  <meyering@redhat.com>
52375         test-getcwd.c: avoid new set-but-not-used warning
52376         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
52377         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
52378         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
52379         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
52381         test-hash.c: avoid a new shadowing warning
52382         * tests/test-hash.c (main): Don't shadow "dup".
52384 2011-04-28  Eric Blake  <eblake@redhat.com>
52386         getaddrinfo: fix gai_strerror signature
52387         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
52388         and work around mingw with UNICODE defined.
52389         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
52390         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
52391         * modules/netdb (Makefile.am): Substitute it.
52392         * lib/netdb.in.h (gai_strerror): Declare replacement.
52393         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
52394         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
52395         the fix.
52397         getsockopt: avoid compiler warning
52398         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
52399         Reported by Matthias Bolte.
52401         tests: drop unused link dependency
52402         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
52403         * modules/dirent-safer-tests (Makefile.am): Likewise.
52404         * modules/fdopendir-tests (Makefile.am): Likewise.
52405         * modules/mkfifoat-tests (Makefile.am): Likewise.
52406         * modules/openat-safer-tests (Makefile.am): Likewise.
52407         * modules/openat-tests (Makefile.am): Likewise.
52408         * modules/readlinkat-tests (Makefile.am): Likewise.
52409         * modules/symlinkat-tests (Makefile.am): Likewise.
52410         * modules/linkat-tests (Makefile.am): Likewise.
52411         (Depends-on): Switch to filenamecat-lgpl.
52412         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
52413         LIBINTL.
52414         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
52415         * tests/test-linkat.c (main): Don't require xalloc.
52417         hash, mgetgroups: drop xalloc dependency
52418         * lib/hash.c (includes): Adjust includes.
52419         * lib/mgetgroups.c (includes): Likewise.
52420         (xgetgroups): Move...
52421         * lib/xgetgroups.c: ...to new file.
52422         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
52423         * modules/xgetgroups: New file, split from...
52424         * modules/mgetgroups: ...here.
52425         (Depends-on): Add xalloc-oversized.
52426         * modules/hash (Depends-on): Likewise.
52427         * modules/hash-tests (Depends-on): Drop xalloc.
52428         (test_hash_LDADD): Drop unused library.
52429         * tests/test-hash.c (main): Break xalloc dependency.
52430         (includes): Drop unused include.
52432         xalloc-oversized: new module
52433         * modules/xalloc-oversized: New module.
52434         * modules/xalloc (Depends-on): Add it.
52435         * lib/xalloc.h (xalloc_oversized): Move...
52436         * lib/xalloc-oversized.h: ...into new file.
52438         utimecmp: drop dependency on xmalloc
52439         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
52440         due to memory pressure.
52441         * modules/utimecmp (Depends-on): Drop xalloc.
52443 2011-04-27  Eric Blake  <eblake@redhat.com>
52445         getcwd: fix mingw bugs
52446         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
52447         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
52448         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
52450 2011-04-27  Bruno Haible  <bruno@clisp.org>
52452         mkstemps: Ensure declaration on MacOS X 10.5.
52453         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
52454         * doc/glibc-functions/mkstemps.texi: Document header file problem on
52455         MacOS X.
52457 2011-04-27  Bruno Haible  <bruno@clisp.org>
52459         mkstemp: More documentation.
52460         * doc/posix-functions/mkstemp.texi: Document header file problem on
52461         MacOS X.
52463 2011-04-27  Bruno Haible  <bruno@clisp.org>
52465         mkstemp: Tweak configure message when cross-compiling.
52466         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
52467         result as a guess.
52469 2011-04-27  Bruno Haible  <bruno@clisp.org>
52471         clean-temp: Clarify what it does.
52472         * lib/clean-temp.h: Add more comments.
52473         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
52474         module.
52475         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
52476         * doc/glibc-functions/mkstemps.texi: Likewise.
52477         * doc/glibc-functions/mkostemps.texi: Likewise.
52479 2011-04-27  Eric Blake  <eblake@redhat.com>
52481         fchdir: avoid extra chdir and fix test
52482         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
52483         getcwd-lgpl.
52484         * lib/fchdir.c (get_name): Any absolute name will do; it does not
52485         have to be canonical.
52486         (canonicalize_file_name): Drop unused macro.
52487         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
52489         filenamecat-lgpl: fix licence
52490         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
52491         when it was first created.
52493         linkat, renameat: add missing dependency
52494         * modules/linkat (Depends-on): Require getcwd-lgpl.
52495         * modules/renameat (Depends-on): Likewise.
52497         tests: reduce dependencies
52498         * tests/test-linkat.c (main): Use lighter-weight getcwd.
52499         * tests/test-renameat.c (main): Likewise.
52500         * modules/linkat-tests (Depends-on): Relax dependency.
52501         * modules/renameat-tests (Depends-on): Likewise.
52502         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
52503         dependency explicit.
52505         save-cwd: reduce default dependency
52506         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
52507         * lib/save-cwd.c: Update comments.
52508         * NEWS: Document the semantic change.
52510         getcwd: enhance tests
52511         * tests/test-getcwd-lgpl.c: New file, taken from...
52512         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
52513         repeat long path stress tests from m4 probe.
52514         * modules/getcwd-lgpl-tests: New module.
52515         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
52516         * m4/getcwd-abort-bug.m4: Update comment.
52517         * m4/getcwd-path-max.m4: Likewise.
52519         getcwd-lgpl: new module
52520         * modules/getcwd-lgpl: New module.
52521         * lib/getcwd-lgpl.c: New file.
52522         * doc/posix-functions/getcwd.texi (getcwd): Document it.
52523         * MODULES.html.sh (lacking POSIX:2008): Likewise.
52524         * modules/getcwd (configure.ac): Set C witness.
52525         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
52527         getcwd: tweak comments
52528         * m4/getcwd-abort-bug.m4: Fix comments.
52529         * m4/getcwd-path-max.m4: Likewise.
52530         * m4/getcwd.m4: Likewise.
52532 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52533         and Eric Blake  <eblake@redhat.com>
52535         mkstemp: replace if system version uses wrong permissions
52536         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
52537         read/write mode bits set in file created by mkstemp.
52538         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
52540 2011-04-27  Eric Blake  <eblake@redhat.com>
52542         passfd: avoid compiler warning
52543         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
52544         Reported by Laine Stump.
52546 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
52548         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
52549         required by the NetBSD (and perhaps other 4.4BSD derived) join.
52551 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
52552         and Eric Blake  <eblake@redhat.com>
52554         mkstemp: mention clean-temp module
52555         * lib/mkstemp.c: Add comment.
52556         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
52558 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
52560         inttypes: also provide default values for 32-bit tests
52561         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
52562         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
52564 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52566         strtoumax: remove dependency on strtoimax
52567         This is like the strtoull change of yesterday.
52568         * modules/strtoumax (Files): Add lib/strtoimax.c.
52569         (Depends-on): Remove strtoimax and add verify.
52571         inttypes-incomplete: new module
52572         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
52573         all but the PRI* and SCN* parts of gl_INTTYPES_H.
52574         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
52575         of gl_INTTYPES_H.
52576         (gl_INTTYPES_H): Rewrite in terms of these new macros.
52577         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
52578         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
52579         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
52580         * modules/strtoumax, modules/xstrtol (Depends-on):
52581         Depend on inttypes-incomplete, not inttypes.
52582         * modules/inttypes-incomplete: New module, containing the contents
52583         of the old modules/inttypes module, except that the Files: section
52584         omits m4/inttypes-pri.m4, and the configure.ac section invokes
52585         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
52586         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
52587         (Depends-on): Depend only on inttypes-incomplete.
52588         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
52590         inttypes: omit now-redundant strtoimax and strtoumax work
52591         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
52592         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
52594         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
52595         This supports apps that need pointers to strtoimax and strtoumax,
52596         and ports to HP-UX 11.00 64.bit, which has macros that expand to
52597         nonexistent functions.  See
52598         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
52599         et seq.
52600         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
52601         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
52602         a macro.
52603         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52605 2011-04-25  Simon Josefsson  <simon@josefsson.org>
52607         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
52609 2011-04-25  Bruno Haible  <bruno@clisp.org>
52611         strtol, strtoul: Mark modules as obsolete.
52612         * modules/strtol (Status, Notice): New sections.
52613         * modules/strtoul (Status, Notice): New sections.
52615 2011-04-25  Bruno Haible  <bruno@clisp.org>
52617         strtod: Remove check for strtod, unless supporting old platforms.
52618         * modules/strtod-obsolete: New file.
52619         * m4/strtod-obsolete.m4: New file.
52620         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
52621         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
52622         * modules/strtod (Depends-on): Add strtod-obsolete.
52623         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
52625 2011-04-25  Bruno Haible  <bruno@clisp.org>
52627         strcase: Make module obsolete.
52628         * modules/strcase (Status, Notice): New sections.
52630 2011-04-25  Bruno Haible  <bruno@clisp.org>
52632         dup2: Remove check for dup2, unless supporting old obsolete platforms.
52633         * modules/dup2-obsolete: New file.
52634         * m4/dup2-obsolete.m4: New file.
52635         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
52636         gl_FUNC_DUP2_OBSOLETE is not also defined.
52637         * modules/dup2 (Depends-on): Add dup2-obsolete.
52638         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
52640 2011-04-25  Bruno Haible  <bruno@clisp.org>
52642         strnlen: Avoid memchr related link error on old obsolete platforms.
52643         * modules/memchr-obsolete: New file.
52644         * m4/memchr-obsolete.m4: New file.
52645         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
52646         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
52647         * modules/memchr (Depends-on): Add memchr-obsolete.
52648         * modules/strnlen (Depends-on): Likewise.
52649         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
52651 2011-04-25  Jim Meyering  <meyering@redhat.com>
52653         maint.mk: makefile_at_at_check extend and clean up
52654         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
52655         in addition to */Makefile.am.
52656         Exempt legitimate uses of @VAR@ notation, e.g.,
52657         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
52658         Remove obsolete coreutils-specific comment.
52659         Prompted by discussion here:
52660         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
52662 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52664         strtoul: remove dependency on strtol
52665         This is so that 'configure' need not check for strtol merely because
52666         the application needs strtoul.
52667         * modules/strtoul (Files): Add lib/strtol.c.
52668         (Depends-on): Remove strtol.
52670         strtoull: remove dependency on strtoul
52671         This is like the strtoll change.
52672         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
52673         (Depends-on): Remove strtoul.
52675         strtoll: remove dependency on strtol
52676         This is so that 'configure' need not check for strtol merely because
52677         the application needs strtoll.
52678         * modules/strtoll (Files): Add lib/strtol.c.
52679         (Depends-on): Remove strtol.
52681 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52683         inttypes: Move some configure check to module 'imaxdiv'.
52684         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
52685         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
52686         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
52688 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52690         inttypes: Move some configure check to module 'imaxabs'.
52691         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
52692         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
52693         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
52695 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52697         inttypes: Remove configure tests that are not needed since 2009-12-31.
52698         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
52699         gl_cv_header_working_inttypes_h.
52701 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
52703         * modules/strnlen (Depends-on): Remove memchr.
52704         The strnlen implementation doesn't need the memchr module's fixes; see
52705         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
52707         strtol: remove dependency on wchar
52708         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
52709         * modules/strtol (Depends-on): Remove wchar.
52711 2011-04-21  Eric Blake  <eblake@redhat.com>
52713         passfd: fix test regression on Linux
52714         * modules/passfd-tests (configure.ac): Correct socketpair check.
52716         passfd: speed up configure and drop unused code
52717         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
52718         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
52719         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
52720         Instead of probing at configure for unix_scm_rights_bsd44_way,
52721         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
52722         check to a struct member probe.
52723         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
52724         (sendfd, recvfd): Update preprocessor checks.
52725         * modules/passfd (Files): Reflect rename, and drop unused file.
52726         (Depends-on): Drop unused dependency.
52728         passfd: allow compilation on mingw
52729         * modules/sys_socket (Depends-on): Add sys_uio.
52730         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
52731         iovec and a minimal struct msghdr.
52732         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
52733         * tests/test-sys_socket.c (main): Enhance test.
52734         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
52735         guaranteed to provide what we need.
52736         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
52737         * modules/passfd-tests (Depends-on): Add sys_wait.
52738         * tests/test-passfd.c (main): Skip test on mingw, for now.
52739         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
52740         partial 'struct msghdr' implementation.
52742         sys_uio: new module
52743         * modules/sys_uio: New module.
52744         * modules/sys_uio-tests: Likewise.
52745         * lib/sys_uio.in.h: New file.
52746         * m4/sys_uio_h.m4: Likewise.
52747         * tests/test-sys_uio.c: Likewise.
52748         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
52749         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
52751 2011-04-20  Jim Meyering  <meyering@redhat.com>
52753         useless-if-before-free: avoid false-positive
52754         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
52755         disjunct so that it too requires a terminating ";".  Without that,
52756         this script would identify as useless one statement from gcc that
52757         was not:
52758           if (aligned_ptr)
52759             free (((void **) aligned_ptr) [-1]);
52761 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
52763         doc: update users.txt.
52764         * users.txt: Add barcode.
52766 2011-04-19  Bruno Haible  <bruno@clisp.org>
52768         ioctl: Remove link dependency on native Windows.
52769         * lib/fd-hook.h: Renamed from lib/close-hook.h.
52770         (gl_close_fn, gl_ioctl_fn): New types.
52771         (struct fd_hook): Renamed from struct close_hook. Change type of
52772         private_close_fn field. Add private_ioctl_fn field.
52773         (close_hook_fn): Add parameter for primary close method.
52774         (execute_close_hooks, execute_all_close_hooks): Likewise.
52775         (ioctl_hook_fn): New type.
52776         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
52777         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52778         argument.
52779         (unregister_fd_hook): Renamed from unregister_close_hook.
52780         * lib/fd-hook.c: Renamed from lib/close-hook.c.
52781         Don't include <unistd.h>.
52782         (close): Remove undef.
52783         (anchor): Update.
52784         (execute_close_hooks): Add argument for primary close method.
52785         (execute_all_close_hooks): Likewise.
52786         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
52787         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
52788         argument. Allow each argument to be NULL.
52789         (unregister_fd_hook): Renamed from unregister_close_hook.
52790         * lib/close.c (rpl_close): Pass 'close' function pointer to
52791         execute_all_close_hooks.
52792         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
52793         (primary_ioctl): New function.
52794         (ioctl): Don't call ioctlsocket here. Instead, call
52795         execute_all_ioctl_hooks.
52796         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
52797         close method.
52798         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
52799         (fd_sockets_hook): Renamed from close_sockets_hook.
52800         (gl_sockets_startup, gl_sockets_cleanup): Update.
52801         * modules/fd-hook: Renamed from modules/close-hook. Update.
52802         * modules/close (Depends-on): Add fd-hook, remove close-hook.
52803         * modules/sockets (Depends-on): Likewise.
52804         * modules/ioctl (Depends-on): Add fd-hook.
52805         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
52806         GNULIB_SOCKET.
52808 2011-04-19  Bruno Haible  <bruno@clisp.org>
52810         Move the support of O_NONBLOCK in open() to the 'open' module.
52811         * modules/nonblocking (Depends-on): Remove 'open'.
52812         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
52813         gl_cv_have_open_O_NONBLOCK.
52814         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
52815         O_NONBLOCK support.
52816         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
52818 2011-04-17  Bruno Haible  <bruno@clisp.org>
52820         pipe2: Simplify code.
52821         * lib/pipe2.c (pipe2): Reduce code duplication.
52823 2011-04-17  Bruno Haible  <bruno@clisp.org>
52825         nonblocking: Add comment.
52826         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
52828 2011-04-17  Bruno Haible  <bruno@clisp.org>
52830         nonblocking: Add tests for sockets.
52831         * tests/test-nonblocking-socket.sh: New file.
52832         * tests/test-nonblocking-socket-main.c: New file.
52833         * tests/test-nonblocking-socket-child.c: New file.
52834         * tests/test-nonblocking-socket.h: New file.
52835         * tests/socket-server.h: New file.
52836         * tests/socket-client.h: New file.
52837         * modules/nonblocking-socket-tests: New file.
52838         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
52840 2011-04-17  Bruno Haible  <bruno@clisp.org>
52842         nonblocking: Add tests for pipes.
52843         * tests/test-nonblocking-pipe.sh: New file.
52844         * tests/test-nonblocking-pipe-main.c: New file.
52845         * tests/test-nonblocking-pipe-child.c: New file.
52846         * tests/test-nonblocking-pipe.h: New file.
52847         * tests/test-nonblocking-writer.h: New file.
52848         * tests/test-nonblocking-reader.h: New file.
52849         * tests/test-nonblocking-misc.h: New file.
52850         * modules/nonblocking-pipe-tests: New file.
52851         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
52853 2011-04-16  Bruno Haible  <bruno@clisp.org>
52855         gettext: Clarify the needed programmer actions.
52856         * modules/gettext (Notice): New field.
52857         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52859 2011-04-16  Bruno Haible  <bruno@clisp.org>
52861         strchrnul: Tweak last commit.
52862         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
52863         bug.
52864         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
52865         as in _GL_FUNCDECL_SYS.
52866         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
52867         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
52869 2011-04-15  Eric Blake  <eblake@redhat.com>
52871         strchrnul: work around cygwin bug
52872         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
52873         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
52874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
52875         * modules/string (Makefile.am): Substitute it.
52876         * lib/string.in.h (strchrnul): Use it.
52878 2011-04-15  Bruno Haible  <bruno@clisp.org>
52880         Don't require lib/stdio-write.c when only module 'stdio' is used.
52881         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
52882         invocation.
52883         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
52885 2011-04-14  Bruno Haible  <bruno@clisp.org>
52887         Support non-blocking pipe I/O in read() on native Windows.
52888         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
52889         (read): New declaration.
52890         * lib/read.c: New file.
52891         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
52892         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
52893         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
52894         vscanf): New declarations.
52895         * lib/stdio-read.c: New file.
52896         * m4/read.m4: New file.
52897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
52898         REPLACE_READ.
52899         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
52900         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52901         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
52902         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
52903         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
52904         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52905         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
52906         * modules/read: New file.
52907         * modules/nonblocking (Files): Add lib/stdio-read.c.
52908         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
52909         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
52910         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
52911         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
52912         * modules/pread (Depends-on): Add read.
52913         * modules/safe-read (Depends-on): Likewise.
52914         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
52915         gets, scanf, vfscanf, vscanf): Verify signatures.
52916         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
52917         problem with non-blocking pipes.
52918         * doc/posix-functions/fgetc.texi: Likewise.
52919         * doc/posix-functions/fgets.texi: Likewise.
52920         * doc/posix-functions/fread.texi: Likewise.
52921         * doc/posix-functions/fscanf.texi: Likewise.
52922         * doc/posix-functions/getc.texi: Likewise.
52923         * doc/posix-functions/getchar.texi: Likewise.
52924         * doc/posix-functions/gets.texi: Likewise.
52925         * doc/posix-functions/scanf.texi: Likewise.
52926         * doc/posix-functions/vfscanf.texi: Likewise.
52927         * doc/posix-functions/vscanf.texi: Likewise.
52929 2011-04-14  Bruno Haible  <bruno@clisp.org>
52931         Support non-blocking pipe I/O in write() on native Windows.
52932         * lib/write.c (rpl_write): Split a write request that failed merely
52933         because the byte count was larger than the pipe buffer's size.
52934         * doc/posix-functions/write.texi: Mention the problem with large byte
52935         counts.
52937 2011-04-14  Bruno Haible  <bruno@clisp.org>
52939         wchar: Ensure that wchar_t gets defined on uClibc.
52940         * lib/wchar.in.h: On uClibc, include <stddef.h>.
52941         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
52943 2011-04-13  Bruno Haible  <bruno@clisp.org>
52945         safe-write, full-read: Avoid unnecessary compilation units.
52946         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
52947         (Depends-on): Remove safe-read. Add ssize_t.
52948         * modules/full-read (Files): Add lib/full-write.c.
52949         (Depends-on): Add full-write.
52951 2011-04-13  Bruno Haible  <bruno@clisp.org>
52953         Support non-blocking pipe I/O and SIGPIPE in pwrite().
52954         * modules/pwrite (Depends-on): Add 'write'.
52956 2011-04-13  Bruno Haible  <bruno@clisp.org>
52958         Support non-blocking pipe I/O in write() on native Windows.
52959         * lib/unistd.in.h (write): Enable replacement also if
52960         GNULIB_UNISTD_H_NONBLOCKING is 1.
52961         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
52962         (rpl_write): When failing to write on a non-blocking pipe, change
52963         errno from ENOSPC to EAGAIN.
52964         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
52965         putchar, puts, vfprintf, vprintf): Enable replacement also if
52966         GNULIB_STDIO_H_NONBLOCKING is 1.
52967         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
52968         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
52969         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
52970         CALL_WITH_SIGPIPE_EMULATION.
52971         (CALL_WITH_SIGPIPE_EMULATION): Use them.
52972         * m4/nonblocking.m4: New file.
52973         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
52974         for non-blocking I/O support.
52975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52976         GNULIB_UNISTD_H_NONBLOCKING.
52977         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
52978         required for non-blocking I/O support.
52979         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
52980         * modules/nonblocking (Files): Add m4/nonblocking.m4,
52981         lib/stdio-write.c, m4/asm-underscore.m4.
52982         (Depends-on): Add stdio, unistd.
52983         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
52984         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
52985         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
52986         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
52987         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
52988         problem with non-blocking pipes.
52989         * doc/posix-functions/fputc.texi: Likewise.
52990         * doc/posix-functions/fputs.texi: Likewise.
52991         * doc/posix-functions/fwrite.texi: Likewise.
52992         * doc/posix-functions/printf.texi: Likewise.
52993         * doc/posix-functions/putc.texi: Likewise.
52994         * doc/posix-functions/putchar.texi: Likewise.
52995         * doc/posix-functions/puts.texi: Likewise.
52996         * doc/posix-functions/vfprintf.texi: Likewise.
52997         * doc/posix-functions/vprintf.texi: Likewise.
52998         * doc/posix-functions/write.texi: Likewise.
53000 2011-04-10  Jim Meyering  <meyering@redhat.com>
53002         maint.mk: prohibit doubled words
53003         Detect them also when they're separated by a newline.
53004         There are 3 ways to customize it:
53005           - disable the test on a per file basis, as usual with rules using
53006             $(VC_LIST_EXCEPT)
53007           - replace the default doubled-word-selecting regexp (affects all files)
53008           - ignore a particular file-vs-doubled-word match
53009         I nearly used that last one to ignore the "is is" match in
53010         coreutils' NEWS file, since the text was "ls -is is ..."
53011         To do that, I would have added this line to cfg.mk:
53012           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
53013         but it would have ignored any "is is" match in NEWS.
53014         Low probability, but still...
53015         Instead, I changed the text, slightly:
53016           -  ls -is is now consistent with ls -lis in ignoring values returned
53017           +  "ls -is" is now consistent with ls -lis in ignoring values returned
53018         * top/maint.mk (prohibit_double_word_RE_): Provide default.
53019         (prohibit_doubled_word_): Define.
53020         (sc_prohibit_doubled_word): New rule.
53021         (sc_prohibit_the_the): Remove.  Subsumed by the above.
53023 2011-04-10  Jim Meyering  <meyering@redhat.com>
53025         maint: fix doubled-word typo in comment
53026         * m4/gethostname.m4: s/is is/it is/
53027         * m4/getdomainname.m4: Likewise.
53029 2011-04-10  Jim Meyering  <meyering@redhat.com>
53031         maint: remove doubled word: s/it it/it/
53032         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
53034 2011-04-10  Jim Meyering  <meyering@redhat.com>
53036         maint.mk: remove useless semicolon and backslash
53037         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
53038         semicolon and backslash.
53040 2011-04-10  Bruno Haible  <bruno@clisp.org>
53042         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
53043         * modules/stdint-tests (Depends-on): Add wchar.
53045 2011-04-10  Jim Meyering  <meyering@redhat.com>
53047         maint: remove doubled words in comments, e.g., s/a a/a/
53048         * lib/strptime.c (day_of_the_week): s/the the/the/
53049         * tests/test-chown.h (test_chown): s/a a/a/
53051         test-chown.h: correct a cast
53052         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
53053         when the destination is a stat.st_gid.
53055 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
53057         getaddrinfo: Fix test for sa_len member.
53058         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
53059         include <sys/types.h> before <sys/socket.h>.
53061 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53063         maint: change "can not" to "cannot"
53064         * doc/posix-functions/iconv.texi (iconv): This one crossed line
53065         boundaries.
53067 2011-04-09  Jim Meyering  <meyering@redhat.com>
53069         maint: change "a a" to "a"
53070         * tests/test-lchown.h (test_lchown): s/a a/a/
53072         maint.mk: prohibit \<the the\>
53073         * top/maint.mk (sc_prohibit_the_the): New rule.
53075         maint: fix "the the" in comment
53076         * lib/count-one-bits.h: s/the the/the/
53078         maint: change "can not" to "cannot"
53079         But do not change the occurrences in maintain.texi or in
53080         build-aux/po/Makefile.in.in, which I presume comes from gettext.
53081         * doc/gnulib-tool.texi: s/can not/cannot/
53082         * doc/posix-functions/accept.texi (accept): Likewise.
53083         * doc/posix-functions/socket.texi (socket): Likewise.
53084         * lib/mbrtowc.c: Likewise.
53086         maint.mk: prohibit use of "can not"
53087         * top/maint.mk (sc_prohibit_can_not): New rule.
53088         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
53090 2011-04-09  Bruno Haible  <bruno@clisp.org>
53092         careadlinkat: Guard against misuse of careadlinkatcwd.
53093         * lib/careadlinkat.c: Include <stdlib.h>.
53094         (careadlinkatcwd): Check that the fd argument is as expected.
53096 2011-04-09  Bruno Haible  <bruno@clisp.org>
53098         careadlinkat: Use common coding style.
53099         * lib/careadlinkat.c: Move gnulib includes after system includes.
53101 2011-04-09  Bruno Haible  <bruno@clisp.org>
53103         careadlinkat: Clarify specification.
53104         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
53105         (careadlinkatcwd): Add comment.
53106         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
53108 2011-04-09  Bruno Haible  <bruno@clisp.org>
53110         areadlinkat: Avoid link error on many platforms.
53111         * modules/areadlinkat (Depends-on): Add areadlink.
53113 2011-04-09  Bruno Haible  <bruno@clisp.org>
53115         allocator, careadlinkat: Fix double-inclusion guard.
53116         * lib/allocator.h: Fix double-inclusion guard.
53117         * lib/careadlinkat.h: Likewise.
53119 2011-04-09  Bruno Haible  <bruno@clisp.org>
53121         relocatable-prog-wrapper: Update after module 'areadlink' changed.
53122         * lib/relocwrapper.c: Update dependencies hierarchy.
53123         * build-aux/install-reloc: Update list of files to be compiled.
53124         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
53125         lib/allocator.[hc].
53127 2011-04-08  Eric Blake  <eblake@redhat.com>
53129         strftime: silence gnulib-tool warning
53130         * modules/strftime-tests (Depends-on): Drop automatic dependency.
53132 2011-04-08  Bruno Haible  <bruno@clisp.org>
53134         verify: Fix syntax error with GCC 4.6 in C++ mode.
53135         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
53136         (HAVE_STATIC_ASSERT): New macro.
53137         (verify_true, verify): Use 'static_assert' if it is supported and
53138         '_Static_assert' is not supported.
53140 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
53142         allocator: New module.
53143         * modules/allocator, lib/allocator.c: New files.
53144         * lib/allocator.h (stdlib_allocator): New decl.
53145         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
53146         Remove.  Do not include <stdlib.h>.
53147         (careadlinkat): Use stdlib_allocator instead of rolling our own.
53148         * modules/careadlinkat (Files): Remove lib/allocator.h.
53149         (Depends-on): Add allocator.
53151         stdlib: let modules use system malloc, realloc
53152         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
53153         if !_GL_USE_STDLIB_ALLOC.
53154         (malloc, realloc): Limit this change to a smaller scope.
53156         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
53157         (malloc, realloc): Don't #undef; no longer needed.
53158         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53159         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53160         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53161         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53162         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53163         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53164         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
53165         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
53167         careadlinkat: rename members to avoid problem
53168         * lib/allocator.h (struct allocator): Rename members from
53169         malloc/realloc to allocate/reallocate, to avoid problems if malloc
53170         and realloc are #define'd.  Reported by Eric Blake in
53171         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
53172         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
53174 2011-04-08  Eric Blake  <eblake@redhat.com>
53176         nonblocking: reduce dependency
53177         * tests/test-nonblocking.c: Only test sockets when in use.
53178         * modules/nonblocking-tests (Depends-on): Drop socket.
53179         (Makefile.am): Link even if sockets are not present.
53180         * modules/pipe2-tests (Makefile.am): Likewise.
53181         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
53183         pipe2: fix O_NONBLOCK support on mingw
53184         * modules/pipe2 (Depends-on): Add nonblocking.
53185         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
53186         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
53187         * tests/test-nonblocking.c (main): Likewise.
53188         * modules/pipe2-tests (Makefile.am): Avoid link failure.
53190         fcntl-h: fix O_ACCMODE on cygwin
53191         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
53192         * lib/fcntl.in.h (O_ACCMODE): Fix it.
53194         pipe-filter: drop O_NONBLOCK workarounds
53195         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
53196         * modules/pipe-filter-ii (Depends-on): Likewise.
53197         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
53199         nonblocking: provide O_NONBLOCK for mingw
53200         * modules/nonblocking (Depends-on): Add open.
53201         (configure.ac): Set new witness macro.
53202         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
53203         * modules/fcntl-h (Makefile.am): Substitute it.
53204         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
53205         nonblocking module is in use.
53206         * lib/nonblocking.c: Adjust portability test.
53207         * lib/open.c (open): Don't let native open see gnulib flag.
53208         * tests/test-fcntl-h.c (main): Enhance test.
53209         * tests/test-open.h (test_open): Likewise.
53210         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
53212         careadlinkat: fix compilation error on mingw
53213         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
53214         within struct allocator.
53216 2011-04-06  Eric Blake  <eblake@redhat.com>
53218         binary-io: relicense under LGPLv2+
53219         * modules/binary-io (License): Relax to LGPLv2+.
53220         Requested for libvirt, and required by pipe2.
53222 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
53224         verify: use _Static_assert if available
53225         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
53226         (verify_true, verify): Use it if available.  This generates better
53227         diagnostics with GCC 4.6.0 and later.
53229 2011-04-05  Bruno Haible  <bruno@clisp.org>
53231         Remove leftover generated .h files after config.status changed.
53233         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
53234         GL_GENERATE_ALLOCA_H.
53235         * modules/alloca-opt (Makefile.am): Remove alloca.h if
53236         GL_GENERATE_ALLOCA_H evaluates to false.
53238         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
53239         GL_GENERATE_ARGZ_H.
53240         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
53241         evaluates to false.
53243         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
53244         GL_GENERATE_BYTESWAP_H.
53245         * modules/byteswap (Makefile.am): Remove byteswap.h if
53246         GL_GENERATE_BYTESWAP_H evaluates to false.
53248         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
53249         GL_GENERATE_ERRNO_H.
53250         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
53251         evaluates to false.
53253         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
53254         GL_GENERATE_FLOAT_H.
53255         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
53256         evaluates to false.
53258         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
53259         GL_GENERATE_FNMATCH_H.
53260         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
53261         GL_GENERATE_FNMATCH_H evaluates to false.
53263         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
53264         GL_GENERATE_GLOB_H.
53265         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
53266         evaluates to false.
53268         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
53269         automake conditional GL_GENERATE_ICONV_H.
53270         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
53271         evaluates to false.
53273         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
53274         GL_GENERATE_NETINET_IN_H.
53275         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
53276         GL_GENERATE_NETINET_IN_H evaluates to false.
53278         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
53279         conditional GL_GENERATE_PTHREAD_H.
53280         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
53281         * modules/pthread (Makefile.am): Remove pthread.h if
53282         GL_GENERATE_PTHREAD_H evaluates to false.
53284         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
53285         GL_GENERATE_SCHED_H.
53286         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
53287         evaluates to false.
53289         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
53290         conditional GL_GENERATE_SELINUX_CONTEXT_H.
53291         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
53292         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
53294         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
53295         GL_GENERATE_STDARG_H.
53296         * modules/stdarg (Makefile.am): Remove stdarg.h if
53297         GL_GENERATE_STDARG_H evaluates to false.
53299         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
53300         GL_GENERATE_STDBOOL_H.
53301         * modules/stdbool (Makefile.am): Remove stdbool.h if
53302         GL_GENERATE_STDBOOL_H evaluates to false.
53304         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
53305         conditional GL_GENERATE_STDDEF_H.
53306         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
53307         * modules/stddef (Makefile.am): Remove stddef.h if
53308         GL_GENERATE_STDDEF_H evaluates to false.
53310         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
53311         GL_GENERATE_STDINT_H.
53312         * modules/stdint (Makefile.am): Remove stdint.h if
53313         GL_GENERATE_STDINT_H evaluates to false.
53315         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
53316         GL_GENERATE_SYSEXITS_H.
53317         * modules/sysexits (Makefile.am): Remove sysexits.h if
53318         GL_GENERATE_SYSEXITS_H evaluates to false.
53320         Reported by Karl Berry and Ralf Wildenhues.
53322 2011-04-05  Bruno Haible  <bruno@clisp.org>
53324         Ensure to rebuild generated .h files when config.status has changed.
53325         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
53326         config.status.
53327         * modules/ctype (Makefile.am): Likewise.
53328         * modules/dirent (Makefile.am): Likewise.
53329         * modules/errno (Makefile.am): Likewise.
53330         * modules/fcntl-h (Makefile.am): Likewise.
53331         * modules/float (Makefile.am): Likewise.
53332         * modules/getopt-posix (Makefile.am): Likewise.
53333         * modules/glob (Makefile.am): Likewise.
53334         * modules/iconv-h (Makefile.am): Likewise.
53335         * modules/inttypes (Makefile.am): Likewise.
53336         * modules/langinfo (Makefile.am): Likewise.
53337         * modules/locale (Makefile.am): Likewise.
53338         * modules/math (Makefile.am): Likewise.
53339         * modules/netdb (Makefile.am): Likewise.
53340         * modules/netinet_in (Makefile.am): Likewise.
53341         * modules/poll-h (Makefile.am): Likewise.
53342         * modules/pthread (Makefile.am): Likewise.
53343         * modules/pty (Makefile.am): Likewise.
53344         * modules/sched (Makefile.am): Likewise.
53345         * modules/search (Makefile.am): Likewise.
53346         * modules/selinux-h (Makefile.am): Likewise.
53347         * modules/signal (Makefile.am): Likewise.
53348         * modules/spawn (Makefile.am): Likewise.
53349         * modules/stdarg (Makefile.am): Likewise.
53350         * modules/stdbool (Makefile.am): Likewise.
53351         * modules/stddef (Makefile.am): Likewise.
53352         * modules/stdint (Makefile.am): Likewise.
53353         * modules/stdio (Makefile.am): Likewise.
53354         * modules/stdlib (Makefile.am): Likewise.
53355         * modules/string (Makefile.am): Likewise.
53356         * modules/strings (Makefile.am): Likewise.
53357         * modules/sys_file (Makefile.am): Likewise.
53358         * modules/sys_ioctl (Makefile.am): Likewise.
53359         * modules/sys_select (Makefile.am): Likewise.
53360         * modules/sys_socket (Makefile.am): Likewise.
53361         * modules/sys_stat (Makefile.am): Likewise.
53362         * modules/sys_time (Makefile.am): Likewise.
53363         * modules/sys_times (Makefile.am): Likewise.
53364         * modules/sys_utsname (Makefile.am): Likewise.
53365         * modules/sys_wait (Makefile.am): Likewise.
53366         * modules/sysexits (Makefile.am): Likewise.
53367         * modules/termios (Makefile.am): Likewise.
53368         * modules/time (Makefile.am): Likewise.
53369         * modules/unistd (Makefile.am): Likewise.
53370         * modules/wchar (Makefile.am): Likewise.
53371         * modules/wctype-h (Makefile.am): Likewise.
53372         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
53374 2011-04-05  Bruno Haible  <bruno@clisp.org>
53376         pipe2: Relicense under LGPLv2+.
53377         * modules/pipe2 (License): Change to LGPLv2+.
53378         Requested by Eric Blake, for libvirt.
53380 2011-04-05  Bruce Korb  <bkorb@gnu.org>
53382         bootstrap: compute gnulib_extra_files after updating build_aux
53383         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
53384         change build_aux or also supply gnulib_extra_files.  Handle correctly.
53386 2011-04-05  Eric Blake  <eblake@redhat.com>
53388         bootstrap: preserve git whitelist item sorting
53389         * build-aux/bootstrap (sort_patterns): New function.
53390         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
53392 2011-04-05  Simon Josefsson  <simon@josefsson.org>
53394         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
53395         sc_space_tab check.
53397 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
53399         areadlink, areadlinkat: rewrite in terms of careadlinkat
53400         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
53401         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
53402         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
53403         (malloc, realloc): Remove #undefs.
53404         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
53405         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
53406         readlink, ssize_t, stdint, unistd.
53407         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
53408         areadlink, stdint.
53410         careadlinkat: new module
53411         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
53412         * modules/careadlinkat: New files, written by me with
53413         a review and feedback from Ben Pfaff in
53414         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
53416 2011-04-01  Bruno Haible  <bruno@clisp.org>
53418         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
53419         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
53420         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
53421         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
53422         Reported by Bruce Korb <bruce.korb@gmail.com>.
53424 2011-04-01  Bruno Haible  <bruno@clisp.org>
53426         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
53427         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
53428         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
53429         * modules/wcpcpy (Depends-on): Add extensions.
53430         * modules/wcpncpy (Depends-on): Likewise.
53431         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
53432         systems.
53433         * doc/posix-functions/wcpncpy.texi: Likewise.
53434         * doc/posix-functions/wcwidth.texi: Likewise.
53436 2011-03-31  Eric Blake  <eblake@redhat.com>
53438         nonblocking: fix mingw test failures
53439         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
53440         non-blocking flag on regular file.
53441         (get_nonblocking_flag): Set errno on invalid fd.
53442         * tests/test-nonblocking.c (main): Avoid test failure on
53443         directories if fchdir is not active.
53444         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
53446 2011-03-31  Bruno Haible  <bruno@clisp.org>
53448         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
53449         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
53450         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
53451         Reported by Simon Josefsson <simon@josefsson.org>.
53453 2011-03-31  Bruno Haible  <bruno@clisp.org>
53454         and Eric Blake  <eblake@redhat.com>
53456         nonblocking: new module
53457         * modules/nonblocking: New module.
53458         * modules/nonblocking-tests: Likewise.
53459         * lib/nonblocking.h: New file.
53460         * lib/nonblocking.c: Likewise.
53461         * tests/test-nonblocking.c: New test.
53462         * lib/ioctl.c (ioctl) [mingw]: Update comment.
53464 2011-03-30  Bruno Haible  <bruno@clisp.org>
53466         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
53467         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
53468         instead of 'printf' format for GCC >= 4.4.
53469         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
53470         (fprintf, printf, vfprintf, vprintf): Declare with
53471         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
53472         the system's vfprintf() function.
53473         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
53475 2011-03-30  Eric Blake  <eblake@redhat.com>
53477         passfd: fix scoping bug
53478         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
53479         before sendmsg/recvmsg.
53481         passfd: standardize coding conventions
53482         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
53483         can be learned at compile time.
53484         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
53485         ifdefs.
53486         (sendfd, recvfd): Follow gnulib code conventions.
53488         passfd: fix incorrect sendmsg arguments
53489         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
53490         incorrect msg_controllen value.
53491         * modules/passfd-tests (Depends-on): Check for alarm.
53492         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
53493         Reported by Bastien ROUCARIES.
53495 2011-03-30  Bruno Haible  <bruno@clisp.org>
53497         c-strcasestr: Relicense under LGPLv2+.
53498         * modules/c-strcasestr (License): Change to LGPLv2+.
53499         Requested by Eric Blake, for libvirt.
53501 2011-03-30  Simon Josefsson  <simon@josefsson.org>
53503         * users.txt: Add libidn2.  Fix libtasn1 link.
53505 2011-03-30  Jim Meyering  <meyering@redhat.com>
53507         tests: readlink* ("",... fails with EINVAL on newer kernels
53508         readlink and readlinkat have typically failed with ENOENT for
53509         the invalid, empty file name,  "".  However, with the advent
53510         of linux-2.6.39, they fail with EINVAL.
53511         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
53512         when operating on the empty file name.
53513         * tests/test-readlink.h (test_readlink): Likewise.
53515 2011-03-29  Bruno Haible  <bruno@clisp.org>
53517         Relicense some modules under LGPLv2+, for libidn2.
53518         * modules/array-mergesort (License): Change to LGPLv2+.
53519         * modules/c-strcaseeq (License): Likewise.
53520         * modules/striconveh (License): Likewise.
53521         * modules/striconveha (License): Likewise.
53522         * modules/uniconv/base (License): Likewise.
53523         * modules/uniconv/u8-conv-from-enc (License): Likewise.
53524         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
53525         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
53526         * modules/unictype/base (License): Likewise.
53527         * modules/unictype/bidiclass-of (License): Likewise.
53528         * modules/unictype/category-M (License): Likewise.
53529         * modules/unictype/category-none (License): Likewise.
53530         * modules/unictype/category-of (License): Likewise.
53531         * modules/unictype/category-test (License): Likewise.
53532         * modules/unictype/category-test-withtable (License): Likewise.
53533         * modules/unictype/combining-class (License): Likewise.
53534         * modules/unictype/joiningtype-of (License): Likewise.
53535         * modules/unictype/scripts (License): Likewise.
53536         * modules/uninorm/base (License): Likewise.
53537         * modules/uninorm/canonical-decomposition (License): Likewise.
53538         * modules/uninorm/composition (License): Likewise.
53539         * modules/uninorm/decompose-internal (License): Likewise.
53540         * modules/uninorm/decomposition-table (License): Likewise.
53541         * modules/uninorm/nfc (License): Likewise.
53542         * modules/uninorm/nfd (License): Likewise.
53543         * modules/uninorm/u32-normalize (License): Likewise.
53544         * modules/unistr/base (License): Likewise.
53545         * modules/unistr/u32-cpy (License): Likewise.
53546         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
53547         * modules/unistr/u32-to-u8 (License): Likewise.
53548         * modules/unistr/u32-uctomb (License): Likewise.
53549         * modules/unistr/u8-check (License): Likewise.
53550         * modules/unistr/u8-mblen (License): Likewise.
53551         * modules/unistr/u8-mbtouc (License): Likewise.
53552         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
53553         * modules/unistr/u8-mbtoucr (License): Likewise.
53554         * modules/unistr/u8-prev (License): Likewise.
53555         * modules/unistr/u8-strlen (License): Likewise.
53556         * modules/unistr/u8-to-u32 (License): Likewise.
53557         * modules/unistr/u8-uctomb (License): Likewise.
53558         * modules/unitypes (License): Likewise.
53559         Requested by Simon Josefsson.
53561 2011-03-29  Simon Josefsson  <simon@josefsson.org>
53563         lib-symbol-visibility: Add a notice.
53564         * modules/lib-symbol-visibility (Notice): New field.
53566 2011-03-29  Bruno Haible  <bruno@clisp.org>
53568         getaddrinfo: Doc fix.
53569         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
53570         section "fixed in Gnulib".
53572 2011-03-28  Simon Josefsson  <simon@josefsson.org>
53574         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
53575         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
53577 2011-03-26  Bruno Haible  <bruno@clisp.org>
53579         unictype/property-byname: Reduce the number of load-time relocations.
53580         * lib/unictype/pr_byname.c: Include <stdlib.h>.
53581         (UC_PROPERTY_INDEX_*): New enumeration values.
53582         (uc_property_byname): Convert an index from the lookup table to an
53583         uc_property_t.
53584         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
53585         values.
53587 2011-03-26  Bruno Haible  <bruno@clisp.org>
53589         unictype/property-byname: Allow omitted word separators and aliases.
53590         * lib/unictype/pr_byname.gperf: Add property names without word
53591         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
53592         for 'space'.
53594 2011-03-26  Bruno Haible  <bruno@clisp.org>
53596         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
53597         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
53598         also hyphens to space.
53599         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
53600         without spaces.
53601         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
53603 2011-03-26  Bruno Haible  <bruno@clisp.org>
53605         unictype/joiningtype-byname: Recognize long names as well.
53606         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
53607         a long name.
53608         * lib/unictype/joiningtype_byname.c: Include <string.h>,
53609         unictype/joiningtype_byname.h.
53610         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
53611         * lib/unictype/joiningtype_byname.gperf: New file.
53612         * modules/unictype/joiningtype-byname (Files): Add
53613         lib/unictype/joiningtype_byname.gperf.
53614         (Depends-on): Add gperf.
53615         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
53616         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
53617         long names.
53619         Tests for module 'unictype/joiningtype-longname'.
53620         * modules/unictype/joiningtype-longname-tests: New file.
53621         * tests/unictype/test-joiningtype_longname.c: New file.
53623         New module 'unictype/joiningtype-longname'.
53624         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
53625         * lib/unictype/joiningtype_longname.c: New file.
53626         * modules/unictype/joiningtype-longname: New file.
53627         * modules/unictype/joiningtype-all (Depends-on): Add
53628         unictype/joiningtype-longname.
53630 2011-03-26  Bruno Haible  <bruno@clisp.org>
53632         unictype/bidiclass-byname: Recognize long names as well.
53633         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
53634         name.
53635         * lib/unictype/bidi_byname.c: Include <string.h>,
53636         unictype/bidi_byname.h.
53637         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
53638         * lib/unictype/bidi_byname.gperf: New file.
53639         * modules/unictype/bidiclass-byname (Files): Add
53640         lib/unictype/bidi_byname.gperf.
53641         (Depends-on): Add gperf.
53642         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
53643         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
53644         long names.
53646         Tests for module 'unictype/bidiclass-longname'.
53647         * modules/unictype/bidiclass-longname-tests: New file.
53648         * tests/unictype/test-bidi_longname.c: New file.
53650         New module 'unictype/bidiclass-longname'.
53651         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
53652         * lib/unictype/bidi_longname.c: New file.
53653         * modules/unictype/bidiclass-longname: New file.
53654         * modules/unictype/bidiclass-all (Depends-on): Add
53655         unictype/bidiclass-longname.
53657 2011-03-26  Bruno Haible  <bruno@clisp.org>
53659         unictype/bidi*: Rename modules.
53660         * modules/unictype/bidiclass-all: Renamed from
53661         modules/unictype/bidicategory-all.
53662         * modules/unictype/bidiclass-name: Renamed from
53663         modules/unictype/bidiclass-name.
53664         (Description): Update.
53665         * modules/unictype/bidiclass-name-tests: Renamed from
53666         modules/unictype/bidicategory-name-tests.
53667         * modules/unictype/bidiclass-byname: Renamed from
53668         modules/unictype/bidicategory-byname.
53669         (Description): Update.
53670         * modules/unictype/bidiclass-byname-tests: Renamed from
53671         modules/unictype/bidicategory-byname-tests.
53672         * modules/unictype/bidiclass-of: Renamed from
53673         modules/unictype/bidicategory-of.
53674         (Description): Update.
53675         * modules/unictype/bidiclass-of-tests: Renamed from
53676         modules/unictype/bidicategory-of-tests.
53677         * modules/unictype/bidiclass-test: Renamed from
53678         modules/unictype/bidicategory-test.
53679         (Description): Update.
53680         * modules/unictype/bidiclass-test-tests: Renamed from
53681         modules/unictype/bidicategory-test-tests.
53682         * modules/unictype/bidicategory-all: New file, a simple redirection.
53683         * modules/unictype/bidicategory-name: Likewise.
53684         * modules/unictype/bidicategory-byname: Likewise.
53685         * modules/unictype/bidicategory-of: Likewise.
53686         * modules/unictype/bidicategory-test: Likewise.
53687         * modules/unictype/property-bidi-* (Dependencies): Update.
53688         * lib/unictype/bidi_*.c: Update comment.
53690 2011-03-26  Bruno Haible  <bruno@clisp.org>
53692         unictype/bidi*: Rename functions, part 2.
53693         * modules/unictype/bidicategory-name (configure.ac): Update required
53694         libunistring version.
53695         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
53697 2011-03-25  Bruno Haible  <bruno@clisp.org>
53699         New module 'unictype/combining-class-all'.
53700         * modules/unictype/combining-class-all: New file.
53702         Tests for module 'unictype/combining-class-byname'.
53703         * modules/unictype/combining-class-byname-tests: New file.
53704         * tests/unictype/test-combiningclass_byname.c: New file.
53706         New module 'unictype/combining-class-byname'.
53707         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
53708         * lib/unictype/combiningclass_byname.c: New file.
53709         * lib/unictype/combiningclass_byname.gperf: New file.
53710         * modules/unictype/combining-class-byname: New file.
53712         Tests for module 'unictype/combining-class-longname'.
53713         * modules/unictype/combining-class-longname-tests: New file.
53714         * tests/unictype/test-combiningclass_longname.c: New file.
53716         New module 'unictype/combining-class-longname'.
53717         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
53718         * lib/unictype/combiningclass_longname.c: New file.
53719         * modules/unictype/combining-class-longname: New file.
53721         Tests for module 'unictype/combining-class-name'.
53722         * modules/unictype/combining-class-name-tests: New file.
53723         * tests/unictype/test-combiningclass_name.c: New file.
53725         New module 'unictype/combining-class-name'.
53726         * lib/unictype.in.h (uc_combining_class_name): New declaration.
53727         * lib/unictype/combiningclass_name.c: New file.
53728         * modules/unictype/combining-class-name: New file.
53730 2011-03-25  Bruno Haible  <bruno@clisp.org>
53732         unictype/combining-class: Rename source files.
53733         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
53734         of unictype/combining.h.
53735         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
53736         Update.
53737         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
53738         * modules/unictype/combining-class (Description): Fix.
53739         (Files, Makefile.am): Update.
53740         * tests/unictype/test-combiningclass.c: Renamed from
53741         tests/unictype/test-combining.c.
53742         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
53744 2011-03-25  Bruno Haible  <bruno@clisp.org>
53746         unictype: Update list of canonical combining classes.
53747         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
53749 2011-03-25  Bruno Haible  <bruno@clisp.org>
53751         unictype/category-byname: Recognize long names as well.
53752         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
53753         a long name.
53754         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
53755         unictype/categ_byname.h.
53756         (UC_CATEGORY_INDEX_*): New enumeration values.
53757         (uc_general_category_byname): Use uc_general_category_lookup and
53758         convert from index to value.
53759         * lib/unictype/categ_byname.gperf: New file.
53760         * modules/unictype/category-byname (Files): Add
53761         lib/unictype/categ_byname.gperf.
53762         (Depends-on): Add gperf.
53763         (Makefile.am): Add rule for generating unictype/categ_byname.h.
53764         * tests/unictype/test-categ_byname.c (main): Test the recognition of
53765         long names.
53767         Tests for module 'unictype/category-longname'.
53768         * modules/unictype/category-longname-tests: New file.
53769         * tests/unictype/test-categ_longname.c: New file.
53771         New module 'unictype/category-longname'.
53772         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
53773         * lib/unictype/categ_longname.c: New file.
53774         * modules/unictype/category-longname: New file.
53775         * modules/unictype/category-all (Depends-on): Add it.
53777 2011-03-25  Bruno Haible  <bruno@clisp.org>
53779         Tests for module 'unictype/category-LC'.
53780         * modules/unictype/category-LC-tests: New file.
53781         * tests/unictype/test-categ_LC.c: New file, automatically generated.
53783         New module 'unictype/category-LC'.
53784         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
53785         (UC_CATEGORY_LC): New declaration.
53786         (UC_CASED_LETTER): New macro.
53787         * lib/gen-uni-tables.c (is_category_LC): New function.
53788         (output_categories): Also handle category LC.
53789         (UC_CATEGORY_MASK_LC): New enumeration value.
53790         (general_category_byname): Also handle category LC.
53791         * lib/unictype/categ_LC.c: New file.
53792         * lib/unictype/categ_LC.h: New file, automatically generated.
53793         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
53794         category LC.
53795         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
53796         * modules/unictype/category-LC: New file.
53797         * modules/unictype/category-byname (Depends-on): Add
53798         unictype/category-LC.
53799         * modules/unictype/category-all (Depends-on): Likewise.
53801 2011-03-25  Eric Blake  <eblake@redhat.com>
53803         xmalloc: revert yesterday's regression
53804         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
53805         realloc's underlying behavior (allowing allocation of zero-size
53806         objects, especially if malloc-gnu is also in use).
53808 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
53810         maint.mk: add missing version to VC-tag
53811         * top/maint.mk: git tag was missing actual tag name; add it.
53813         valgrind: do leak checking, and exit with code 1 on error (not 0)
53814         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
53815         to VALGRIND.
53817 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
53819         posix-modules: say what it does.
53820         * posix-modules: Add a line to the --help output saying what it does.
53822 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
53824         xmalloc: Do not leak if underlying realloc is C99 compatible.
53825         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
53826         This avoids a leak on C99-based systems.  See
53827         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
53829 2011-03-24  Eric Blake  <eblake@redhat.com>
53831         realloc: document portability problem
53832         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
53833         passing 0 size to realloc.
53835 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
53837         doc: update users.txt
53838         * users.txt: Add cvsps, tmpwatch
53840 2011-03-23  Matt Rice  <ratmice@gmail.com>
53842         doc: update users.txt
53843         * users.txt: Add gdb.
53845 2011-03-23  Jim Meyering  <meyering@redhat.com>
53847         doc: update users.txt
53848         Looking through matches up to the following URL (there are still
53849         several more pages), I found several projects that use gnulib:
53850         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
53851         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
53852         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
53854 2011-03-22  Bruno Haible  <bruno@clisp.org>
53856         unictype/bidi*: Rename functions.
53857         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
53858         uc_bidi_class, uc_is_bidi_class): New declarations.
53859         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
53860         uc_bidi_category_byname.
53861         (uc_bidi_category_byname): New function.
53862         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
53863         u_bidi_category_name.
53864         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
53865         (uc_bidi_category_name): New function.
53866         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
53867         uc_bidi_category.
53868         (uc_bidi_category): New function.
53869         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
53870         uc_is_bidi_category. Invoke uc_bidi_class.
53871         (uc_is_bidi_category): New function.
53872         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
53873         instead of uc_bidi_category_byname.
53874         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
53875         instead of uc_bidi_category_name.
53876         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
53877         uc_bidi_category.
53878         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
53879         instead of uc_is_bidi_category.
53881 2011-03-21  Bruno Haible  <bruno@clisp.org>
53883         New module 'unictype/joininggroup-all'.
53884         * modules/unictype/joininggroup-all: New file.
53886         Tests for module 'unictype/joininggroup-of'.
53887         * modules/unictype/joininggroup-of-tests: New file.
53888         * tests/unictype/test-joininggroup_of.c: New file.
53889         * tests/unictype/test-joininggroup_of.h: New file, automatically
53890         generated by gen-uni-tables.
53892         New module 'unictype/joininggroup-of'.
53893         * modules/unictype/joininggroup-of: New file.
53894         * lib/unictype/joininggroup_of.c: New file.
53895         * lib/unictype/joininggroup_of.h: New file, automatically generated by
53896         gen-uni-tables.
53898         Tests for module 'unictype/joininggroup-byname'.
53899         * modules/unictype/joininggroup-byname-tests: New file.
53900         * tests/unictype/test-joininggroup_byname.c: New file.
53902         New module 'unictype/joininggroup-byname'.
53903         * modules/unictype/joininggroup-byname: New file.
53904         * lib/unictype/joininggroup_byname.c: New file.
53905         * lib/unictype/joininggroup_byname.gperf: New file.
53907         Tests for module 'unictype/joininggroup-name'.
53908         * modules/unictype/joininggroup-name-tests: New file.
53909         * tests/unictype/test-joininggroup_name.c: New file.
53911         New module 'unictype/joininggroup-name'.
53912         * modules/unictype/joininggroup-name: New file.
53913         * lib/unictype/joininggroup_name.c: New file.
53914         * lib/unictype/joininggroup_name.h: New file.
53916         New module 'unictype/joiningtype-all'.
53917         * modules/unictype/joiningtype-all: New file.
53919         Tests for module 'unictype/joiningtype-of'.
53920         * modules/unictype/joiningtype-of-tests: New file.
53921         * tests/unictype/test-joiningtype_of.c: New file.
53922         * tests/unictype/test-joiningtype_of.h: New file, automatically
53923         generated by gen-uni-tables.
53925         New module 'unictype/joiningtype-of'.
53926         * modules/unictype/joiningtype-of: New file.
53927         * lib/unictype/joiningtype_of.c: New file.
53928         * lib/unictype/joiningtype_of.h: New file, automatically generated by
53929         gen-uni-tables.
53931         Tests for module 'unictype/joiningtype-byname'.
53932         * modules/unictype/joiningtype-byname-tests: New file.
53933         * tests/unictype/test-joiningtype_byname.c: New file.
53935         New module 'unictype/joiningtype-byname'.
53936         * modules/unictype/joiningtype-byname: New file.
53937         * lib/unictype/joiningtype_byname.c: New file.
53939         Tests for module 'unictype/joiningtype-name'.
53940         * modules/unictype/joiningtype-name-tests: New file.
53941         * tests/unictype/test-joiningtype_name.c: New file.
53943         New module 'unictype/joiningtype-name'.
53944         * modules/unictype/joiningtype-name: New file.
53945         * lib/unictype/joiningtype_name.c: New file.
53947         unictype: Add support for Arabic shaping properties.
53948         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
53949         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
53950         declarations.
53951         (UC_JOINING_GROUP_*): New enumeration values.
53952         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
53953         declarations.
53954         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
53955         (unicode_joining_type): New variable.
53956         (UC_JOINING_GROUP_*): New enumeration values.
53957         (unicode_joining_group): New variable.
53958         (fill_arabicshaping, joining_type_as_c_identifier,
53959         output_joining_type_test, output_joining_type,
53960         joining_group_as_c_identifier, output_joining_group_test,
53961         output_joining_group): New functions.
53962         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
53963         fill_arabicshaping and output_joining_type_test, output_joining_type,
53964         output_joining_group_test, output_joining_group.
53965         Reported by Simon Josefsson.
53967 2011-03-21  Jim Meyering  <meyering@redhat.com>
53969         strftime: fix a bug in yesterday's change
53970         * lib/strftime.c (add): Accommodate width's initial value of -1.
53971         Otherwise, nstrftime would copy uninitialized data into
53972         the result buffer.
53974 2011-03-21  Jim Meyering  <meyering@redhat.com>
53976         tests: add strftime-tests module
53977         * tests/test-strftime.c: New file.
53978         * modules/strftime-tests: New module.
53980 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53982         strftime: don't assume a byte count fits in 'int'
53983         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
53984         found this problem by static analysis, using gcc -Wstrict-overflow
53985         (GCC 4.5.2, x86-64).  This reported an optimization that depended
53986         on an integer overflow having undefined behavior, but it turns out
53987         that the argument is a size, which might not fit in 'int' anyway,
53989 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
53991         stdio: don't require ignore_value around fwrite
53993         This patch works around libc bug 11959
53994         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
53995         Without this patch, applications must often write
53996         ignore_value (fwrite (...)) even though the ignore_value is
53997         not helpful here.  It's common to write many objects, using
53998         fwrite/printf/etc., and then use ferror to detect output error.
54000         I considered making this patch optional, but decided against it,
54001         because libc is obviously being inconsistent here: there is no
54002         reason libc should insist that user code must inspect fwrite
54003         return's value without also insisting that it inspect printf's,
54004         putchar's, etc.  If user code wants to have a strict style where
54005         all these functions' values are checked (so that ferror need not
54006         be checked), we could add support for that style in a new gnulib
54007         module, but in the meantime it's better to be consistent and to
54008         support common usage.
54010         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
54011         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
54012         that we are compiling in checking mode, and if not C++, and
54013         if not already wrapping fwrite for some other reason.
54014         (fwrite): #define to rpl_fwrite if the latter is defined.
54016 2011-03-20  Bruno Haible  <bruno@clisp.org>
54018         verror: Fix compilation error introduced on 2011-02-13.
54019         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
54020         instead of __attribute__.
54021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54023 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
54024             Bruno Haible  <bruno@clisp.org>
54026         socklen: do not depend on sys_socket
54027         While trying to modify Emacs to use gnulib's socklen module,
54028         I discovered a circular dependency: socklen depends on sys_socket
54029         and vice versa.  Emacs can use socklen, but it does not need
54030         sys_socket because it has its own substitute for sys/socket.h.
54031         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
54032         gl_TYPE_SOCKLEN_T.
54033         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
54034         gl_PREREQ_SYS_H_SOCKET.
54035         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
54036         gl_PREREQ_SYS_H_SOCKET.
54037         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
54038         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
54039         * modules/socklen (Depends-on): Do not depend on sys_socket.
54040         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
54042 2011-03-20  Jim Meyering  <meyering@redhat.com>
54044         maint.mk: sort file names *after* new transformation
54045         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
54046         prefix would have led to an unwarranted failure in GNU parted.
54047         Sort after that transformation.
54049 2011-03-19  Jim Meyering  <meyering@redhat.com>
54051         maint.mk: fix po-file syntax-check rule
54052         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
54053         Patch by Bruno Haible.
54055 2011-03-19  Bruno Haible  <bruno@clisp.org>
54057         socklen: Update comment.
54058         * m4/socklen.m4: Update comment about platforms.
54060 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54061             Bruno Haible  <bruno@clisp.org>
54063         inet_ntop, inet_pton: Simplify.
54064         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
54065         documented to provide socklen_t and we already depend on sys_socket.
54066         * modules/inet_pton (Depends-on): Likewise.
54067         * lib/arpa_inet.in.h: Adjust comment.
54069 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54070             Bruno Haible  <bruno@clisp.org>
54072         netdb: Simplify.
54073         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
54074         documented to provide socklen_t and we already depend on sys_socket.
54075         * lib/netdb.in.h: Adjust comment.
54077 2011-03-19  Bruno Haible  <bruno@clisp.org>
54079         sys_socket, netdb: Document problem with socklen_t.
54080         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
54081         platforms.
54082         * doc/posix-headers/netdb.texi: Likewise.
54084 2011-03-18  Eric Blake  <eblake@redhat.com>
54086         maint.mk: let po check work in VPATH build
54087         * top/maint.mk (po_file): Allow cfg.mk override.
54088         (sc_po_check): Allow VPATH use.
54089         Reported by Jiri Denemark.
54091 2011-03-16  Jim Meyering  <meyering@redhat.com>
54093         maint.mk: allow fine-grained syntax-check exclusion via Make variables
54094         Before, you would have had to create one .x-sc_ file per rule in order
54095         to exempt offending files.  Now, you may instead use a Make variable --
54096         usually defined in cfg.mk -- whose name identifies the affected rule.
54097         * top/maint.mk (_sc_excl): Define.
54098         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
54099         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
54101 2011-03-13  Bruno Haible  <bruno@clisp.org>
54103         ignore-value tests: Avoid warnings.
54104         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
54105         empty for gcc < 3.4.
54107 2011-03-13  Bruno Haible  <bruno@clisp.org>
54109         passfd: Fix link error on Solaris.
54110         * modules/passfd (Description): Correct.
54111         (Depends-on): Add socketlib.
54112         (Link): New section.
54113         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
54115 2011-03-13  Bruno Haible  <bruno@clisp.org>
54117         passfd: Fix link error on AIX 5.2.
54118         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
54120 2011-03-13  Bruno Haible  <bruno@clisp.org>
54122         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
54123         * lib/sys_socket.in.h: Include <stddef.h>.
54124         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
54125         CMSG_FIRSTHDR. Remove unused variable.
54127 2011-03-13  Bruno Haible  <bruno@clisp.org>
54129         passfd: Fix compilation error on OpenBSD.
54130         * lib/passfd.c: Include <sys/uio.h>.
54132 2011-03-13  Bruno Haible  <bruno@clisp.org>
54134         passfd test: Fix warnings.
54135         * tests/test-passfd.c: Include <sys/wait.h>.
54136         (main): Fix typo.
54138 2011-03-13  Bruno Haible  <bruno@clisp.org>
54140         passfd module, part 4, tweaks.
54141         * tests/test-passfd.c: Reorder includes.
54142         (main): Fix perror and printf calls.
54144 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54146         passfd module, part 4.
54147         * modules/passfd-tests: New file.
54148         * tests/test-passfd.c: New file.
54150 2011-03-13  Jim Meyering  <meyering@redhat.com>
54152         Makefile: rely on GNU make; derive syntax-check rule names
54153         Rather than requiring that each sc_ rule be listed as a dependent
54154         of "check", use features of GNU make to derive the list.
54155         * Makefile (syntax-check-rules): Define.
54156         (check): Depend on the new variable, not the hard-coded list.
54158 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
54159             Bruno Haible  <bruno@clisp.org>
54161         passfd module, part 3.
54162         * lib/passfd.h (recvfd): Add a flags argument.
54163         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
54164         (recvfd): Add a flags argument.
54165         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
54166         exists.
54167         * modules/passfd (Depends-on): Add cloexec.
54168         Suggested by Eric Blake.
54170 2011-03-13  Bruno Haible  <bruno@clisp.org>
54172         passfd module, part 2, tweaks.
54173         * modules/passfd (Files): Reorder.
54174         (Depends-on): Remove errno.
54175         (Include): Remove <sys/socket.h>, <sys/un.h>.
54176         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
54177         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
54178         specification header. Include <sys/socket.h> always. Don't include
54179         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
54180         (sendfd): Clarify that it sets errno when it fails.
54181         (recvfd): Fix specification.
54183 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54185         passfd module, part 2.
54186         * modules/passfd: New file.
54187         * lib/passfd.h: New file.
54188         * lib/passfd.c: New file.
54190 2011-03-12  Bruno Haible  <bruno@clisp.org>
54192         wcswidth, mbswidth: Avoid integer overflow.
54193         * lib/wcswidth.c: Include <limits.h>.
54194         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
54195         * lib/mbswidth.c: Include <limits.h>.
54196         (mbsnwidth): Avoid 'int' overflow.
54197         Reported by Jim Meyering.
54199 2011-03-12  Bruno Haible  <bruno@clisp.org>
54201         futimens, utimensat: Avoid endless recursion on Solaris 10.
54202         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
54203         Solaris.
54204         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
54205         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
54207 2011-03-11  Jim Meyering  <meyering@redhat.com>
54209         maint.mk: relax a regexp to accommodate other formatting styles
54210         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
54211         between "ngettext" and the following "(".
54213 2011-03-11  Pádraig Brady  <P@draigBrady.com>
54215         maint.mk: suppress a false positive warning
54216         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
54217         diagnostics are marked with ngettext.
54219 2011-03-10  Eric Blake  <eblake@redhat.com>
54221         wchar: add explicit dependencies, for Tru64
54222         * modules/mbmemcasecoll (Depends-on): Add wchar.
54223         * modules/mbtowc (Depends-on): Likewise.
54224         * modules/vasnprintf (Depends-on): Likewise.
54225         * modules/unistdio/u-printf-args (Depends-on): Likewise.
54226         * modules/wctomb (Depends-on): Likewise.
54227         Reported by Peter O'Gorman.
54229 2011-03-08  Bruno Haible  <bruno@clisp.org>
54231         passfd module, part 1, tweaks.
54232         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
54233         Improve indentation. Improve AC_MSG_CHECKING messages.
54234         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
54235         gl_SOCKET_FAMILIES.
54237 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
54239         passfd module, part 1.
54240         * m4/afunix.m4: New file.
54241         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
54242         sockets.
54244 2011-03-08  Bruno Haible  <bruno@clisp.org>
54246         regex-quote: New API.
54247         * lib/regex-quote.h: Include <stdbool.h>.
54248         (struct regex_quote_spec): New type.
54249         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54250         New declarations.
54251         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54252         'const struct regex_quote_spec *' argument.
54253         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
54254         (pcre_special): New constant.
54255         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
54256         New functions.
54257         (regex_quote_length, regex_quote_copy, regex_quote): Take a
54258         'const struct regex_quote_spec *' argument.
54259         * modules/regex-quote (Depends-on): Add stdbool.
54260         * tests/test-regex-quote.c (check): Update for new API. Add test for
54261         anchored results.
54262         * NEWS: Mention the API change.
54263         Reported by Reuben Thomas and Eric Blake.
54265 2011-03-06  Bruno Haible  <bruno@clisp.org>
54267         regex-quote: Fix creation of POSIX extended regular expressions.
54268         * lib/regex-quote.c (ere_special): Add grouping and alternation
54269         operators.
54271 2011-03-05  Bruno Haible  <bruno@clisp.org>
54273         doc: Improve doc regarding autopoint vs. gnulib.
54274         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
54275         disable autopoint while running autoreconf.
54276         Suggested by Ralf Wildenhues.
54278 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54280         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
54281         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
54283 2011-03-03  Bruce Korb  <bkorb@gnu.org>
54285         parse-duration: remove xalloc.h dependency
54286         * lib/parse-duration.c (parse_period): handle NULL return from
54287         strdup instead of calling xstrdup().
54288         * modules/parse-duration: remove "xalloc" dependency
54290 2011-03-03  Matthew Booth  <mbooth@redhat.com>
54292         bootstrap: honor m4_base when running aclocal
54293         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
54295 2011-03-02  Jim Meyering  <meyering@redhat.com>
54297         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
54298         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
54299         on request from Matt Booth.
54301 2011-03-01  Eric Blake  <eblake@redhat.com>
54303         test-link: work on Hurd
54304         * tests/test-link.h (test_link): Hurd rejects linking directories
54305         with EISDIR instead of the POSIX-mandated EPERM.
54307 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
54309         stdio: simplify by moving files to printf-posix, sigpipe
54310         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
54311         since this symbol is needed only if printf is replaced.
54312         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
54313         Require gl_ASM_SYMBOL_PREFIX.
54314         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
54315         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
54316         (Depends-on): Add 'raise'.
54317         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
54318         * modules/stdio (Files): Remove lib/stdio-write.c,
54319         m4/asm-underscore.m4.
54320         (Depends-on): Remove 'raise'.
54322         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
54323         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
54324         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
54325         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
54327 2011-02-28  Bruno Haible  <bruno@clisp.org>
54329         localcharset: Assume ANSI C behaviour of free().
54330         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
54331         calling free().
54332         Suggested by Simon Josefsson <simon@josefsson.org>.
54334 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
54335             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
54336             Bruno Haible  <bruno@clisp.org>  (tiny change)
54338         On Cygwin, use /proc file system instead of win32 API.
54339         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
54340         Win32 file names.
54341         (DllMain): Simplify by removing Cygwin specific code.
54342         (find_shared_library_fullname): Use Linux specific implementation also
54343         for Cygwin.
54344         (get_shared_library_fullname): Update accordingly.
54345         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
54346         Win32 file names.
54347         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
54348         Cygwin specific code.
54350 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
54351             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
54353         Fix OpenMP flag detection for various Fortran compilers.
54354         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
54355         OpenMP-conditional compilation construct, to force compile
54356         failure with missing OpenMP flag.
54357         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
54359 2011-02-25  Eric Blake  <eblake@redhat.com>
54361         strstr: expand test coverage
54362         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
54363         compilation.
54364         * tests/test-memmem.c (main): Duplicate tests.
54365         * tests/test-strcasestr.c (main): Likewise.
54366         * tests/test-c-strcasestr.c (main): Likewise.
54368 2011-02-25  Jim Meyering  <meyering@redhat.com>
54370         maint.mk: detect missing-NL-at-EOF, too
54371         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
54372         it also detects when a file lacks a newline at EOF.
54373         (require_exactly_one_NL_at_EOF_): Renamed from
54374         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
54375         since people may well have .x-sc_... file names tied to the
54376         existing name.  Suggested by Eric Blake.
54378 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
54380         dirname: move m4/dos.m4 functionality into lib/dosname.h
54382         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
54383         extracts symbols from it, puts them into config.h; but it's much
54384         easier to use the symbols directly.  filename.h already does this,
54385         but it disagrees with dos.m4 in some respects.  This patch
54386         introduces a different include file dosname.h that packages up
54387         dos.m4, and then later we can work on merging filename.h and
54388         dosname.h.  Applications that need only the easy-to-configure
54389         symbols should consider including dosname.h rather than dirname.h.
54390         * NEWS: Mention incompatible changes.
54391         * m4/dos.m4: Remove.
54392         * lib/dosname.h, modules/dosname: New files.
54393         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
54394         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
54395         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
54396         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
54397         Include dosname.h, not dirname.h.
54398         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
54399         Include dosname.h, for definitions of symbols like ISSLASH
54400         that used to be in config.h.
54401         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
54402         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
54403         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
54404         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
54405         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
54406         * modules/rmdir (Files): Likewise.
54407         * modules/stat (Files): Likewise.
54408         * modules/unlink (Files): Likewise.
54409         * modules/dirname-lgpl (Depends-on): Add dosname.
54410         * modules/lstat (Depends-on): Likewise.
54411         * modules/openat (Depends-on): Likewise.
54412         * modules/rmdir (Depends-on): Likewise.
54413         * modules/savewd (Depends-on): Likewise.
54414         * modules/stat (Depends-on): Likewise.
54415         * modules/unlink (Depends-on): Likewise.
54416         * modules/openat (Depends-on): Remove dirname-lgpl.
54417         * modules/savewd (Depends-on): Likewise.
54418         * tests/test-dirname.c: Do not use removed symbols like
54419         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
54420         the remaining symbols, e.g., ISSLASH ('\\').
54422 2011-02-25  Eric Blake  <eblake@redhat.com>
54424         strstr: revert patches that introduced bug and pessimization
54425         * lib/str-two-way.h: Add another reference.
54426         (two_way_short_needle, two_way_long_needle): Revert changes from
54427         2011-02-24; they pessimize search speed.
54428         (critical_factorization): Partially revert changes from
54429         2010-06-22; they violate the requirement that the left half of the
54430         needle be smaller than the period of the needle.
54432 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54434         filenamecat: remove unnecessary dependency on dirname-lgpl
54435         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
54436         is no direct dependency, just an indirect one via filenamecat-lgpl.
54438         remove: remove unnecessary use of m4/dos.m4
54439         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
54440         * modules/remove (FILES): Remove m4/dos.m4.
54442         * lib/openat-proc.c: Don't include dirname.h; not needed.
54444         backupfile: remove unnecessary use of m4/dos.m4
54445         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
54446         of its symbols are used by the backupfile code.  backupfile.c does
54447         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
54448         for the rare case of programs that want all their backup file
54449         names to live within 8+3 limits, and dos.m4 doesn't address that.
54450         * modules/backupfile (Files): Remove m4/dos.m4.
54452 2011-02-24  Jim Meyering  <meyering@redhat.com>
54454         strstr: fix a bug whereby strstr would mistakenly return NULL
54455         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
54456         in period calculation.
54457         (two_way_long_needle): Likewise.
54458         The original problem was reported by Mike Stump in
54459         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
54460         Ralf Wildenhues provided the short needle and haystack.
54461         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
54462         Add a more involved test to trigger the bug in two_way_long_needle.
54464 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
54466         gnulib-tool: remove use of bold display in help screen
54467         * gnulib-tool (func_usage): Do not use bold display anymore in the
54468         help screen.  That was just meant to be a temporary emphasis for a
54469         backward-incompatible change.
54471 2011-02-23  Bruno Haible  <bruno@clisp.org>
54473         Fix misindentation of preprocessor directives.
54474         * lib/argp-namefrob.h: Reindent preprocessor directives.
54475         * lib/getopt_int.h (struct _getopt_data): Likewise.
54476         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
54477         * lib/vasnprintf.c (decode_long_double): Likewise.
54478         * tests/test-argmatch.c: Insert blank lines, for clarity.
54479         * tests/test-exclude.c: Likewise.
54481 2011-02-22  Bruno Haible  <bruno@clisp.org>
54483         ioctl: Fix for MacOS X in 64-bit mode.
54484         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
54485         value.
54486         Suggested by Eric Blake.
54487         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
54489 2011-02-22  Jim Meyering  <meyering@redhat.com>
54491         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
54492         * Makefile (sc_cpp_indent_check): Don't limit the check to files
54493         in lib/.
54495 2011-02-22  Eric Blake  <eblake@redhat.com>
54497         maint: avoid any CDPATH issue
54498         * Makefile (sc_cpp_indent_check): Anchor cd argument.
54500         maint: adjust cpp indentation for my modules, as well
54501         * Makefile (sc_cpp_indent_check): Add my name.
54502         * lib/fbufmode.c: Filter through cppi.
54503         * lib/fpurge.c: Likewise.
54504         * lib/freadable.c: Likewise.
54505         * lib/freading.c: Likewise.
54506         * lib/fwritable.c: Likewise.
54507         * lib/fwriting.c: Likewise.
54508         * lib/sigaction.c: Likewise.
54510 2011-02-22  Jim Meyering  <meyering@redhat.com>
54512         maint: adjust cpp indentation to reflect nesting depth
54513         I.e., in a block of code that begins with an unnested "#if",
54514         put one space between the "#" in column 1 and following token.
54515         For example,
54516         -#include <sys/vfs.h>
54517         +# include <sys/vfs.h>
54518         Do this only in .c files that are part of a module I maintain.
54519         * lib/linkat.c: Filter through cppi.
54520         * lib/nanosleep.c: Likewise.
54521         * lib/openat.c: Likewise.
54522         * lib/openat-die.c: Likewise.
54523         * lib/dup3.c: Likewise.
54524         * lib/fchownat.c: Likewise.
54525         * lib/flock.c: Likewise.
54526         * lib/fsync.c: Likewise.
54527         * lib/fts.c: Likewise.
54528         * lib/getpass.c: Likewise.
54529         * lib/gettimeofday.c: Likewise.
54530         * lib/userspec.c: Likewise.
54531         * Makefile (sc_cpp_indent_check): New rule, to check this.
54533 2011-02-22  Bruno Haible  <bruno@clisp.org>
54535         New module 'wctomb'.
54536         * lib/stdlib.in.h (wctomb): New declaration.
54537         * lib/wctomb.c: New file.
54538         * lib/wctomb-impl.h: New file.
54539         * m4/wctomb.m4: New file.
54540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
54541         REPLACE_WCTOMB.
54542         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
54543         REPLACE_WCTOMB.
54544         * modules/wctomb: New file.
54545         * tests/test-stdlib-c++.cc: Test signature of wctomb.
54546         * doc/posix-functions/wctomb.texi: Mention the new module.
54547         * modules/wctob (Depends-on): Add wctomb.
54549 2011-02-22  Bruno Haible  <bruno@clisp.org>
54551         New module 'mbtowc'.
54552         * lib/stdlib.in.h (mbtowc): New declaration.
54553         * lib/mbtowc.c: New file.
54554         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
54555         * m4/mbtowc.m4: New file.
54556         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
54557         REPLACE_MBTOWC.
54558         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
54559         REPLACE_MBTOWC.
54560         * modules/mbtowc: New file.
54561         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
54562         * doc/posix-functions/mbtowc.texi: Mention the new module.
54563         * modules/btowc (Depends-on): Add mbtowc.
54565 2011-02-22  Bruno Haible  <bruno@clisp.org>
54567         wcrtomb: Add more tests for native Windows platforms.
54568         * tests/test-wcrtomb-w32-1.sh: New file.
54569         * tests/test-wcrtomb-w32-2.sh: New file.
54570         * tests/test-wcrtomb-w32-3.sh: New file.
54571         * tests/test-wcrtomb-w32-4.sh: New file.
54572         * tests/test-wcrtomb-w32-5.sh: New file.
54573         * tests/test-wcrtomb-w32.c: New file.
54574         * modules/wcrtomb-tests (Files): Add them.
54575         (Makefile.am): Arrange to run these tests.
54576         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
54577         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
54579 2011-02-20  Bruno Haible  <bruno@clisp.org>
54581         wcrtomb: Enhance test.
54582         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
54584 2011-02-20  Bruno Haible  <bruno@clisp.org>
54586         mbrtowc: Tiny optimization.
54587         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
54589 2011-02-20  Jim Meyering  <meyering@redhat.com>
54591         test-exclude.c: remove unmatched #endif
54592         * tests/test-exclude.c: Remove stray #endif, left over from
54593         the change of a week ago.
54595 2011-02-19  Jim Meyering  <meyering@redhat.com>
54597         git-version-gen: skip "-dirty" check when appropriate
54598         * build-aux/git-version-gen: Don't run any git commands when the
54599         version string comes from .tarball-version.  Prior to this, we
54600         would run git update-index --refresh even from a just-unpacked
54601         tarball directory, and that could affect a .git/ directory in a
54602         parent of the build directory.  Reported by Mike Frysinger.
54604 2011-02-19  Bruno Haible  <bruno@clisp.org>
54606         unictype/property-byname: Reduce the size of the 'data' segment.
54607         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
54609 2011-02-19  Bruno Haible  <bruno@clisp.org>
54611         unictype/scripts: Reduce the size of the 'data' segment.
54612         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
54613         '%pic'.
54614         * lib/unictype/scripts_byname.gperf: Regenerated.
54616 2011-02-19  Bruno Haible  <bruno@clisp.org>
54618         stdint: Update documentation.
54619         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
54621 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
54623         stdint: omit redundant check for wchar.h
54624         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
54625         always tests whether wchar.h exists, so remove the now-redundant test.
54627 2011-02-18  Bruno Haible  <bruno@clisp.org>
54629         stdint: Cut dependency to module 'wchar'.
54630         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
54631         include the necessary prerequisites.
54632         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
54633         * modules/stdint (Depends-on): Remove wchar.
54634         (Makefile.am): Substitute HAVE_WCHAR_H.
54635         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
54637 2011-02-18  Eric Blake  <eblake@redhat.com>
54639         longlong: skip, rather than fail, on cross-compilation
54640         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
54641         when cross-compiling; regression from 2011-02-16.
54643 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54645         * NEWS: Mention 2011-02-08 change to stdlib.
54647 2011-02-17  Bruno Haible  <bruno@clisp.org>
54649         getloadavg: Add comments about platforms.
54650         * m4/getloadavg.m4: Add comment.
54651         * lib/getloadavg.c: Likewise.
54653 2011-02-17  Bruno Haible  <bruno@clisp.org>
54655         getloadavg: Fix link error on Solaris 2.6.
54656         * modules/getloadavg (Link): New section.
54657         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
54658         linking test-getloadavg.
54659         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
54660         getloadavg.
54662 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
54664         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
54665         It was 'int', but this doesn't match the IRIX 6.5 manual.
54666         Suggested by Bruno Haible in
54667         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
54669 2011-02-17  Bruno Haible  <bruno@clisp.org>
54671         havelib: Fix comments.
54672         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
54673         change.
54675 2011-02-17  Bruno Haible  <bruno@clisp.org>
54677         havelib: Update config.rpath.
54678         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
54680 2011-02-17  Bruno Haible  <bruno@clisp.org>
54682         getloadavg test: Add some plausibility checks.
54683         * tests/test-getloadavg.c (check_avg): Print a warning when the value
54684         is improbable.
54686 2011-02-16  Eric Blake  <eblake@redhat.com>
54688         maintainer-makefile: make syntax-check a no-op from tarballs
54689         * top/maint.mk (no-vc-detected): New rule.
54690         (local-checks-available): Use it to avoid hanging if someone tries
54691         'make syntax-check' from a tarball.  Also append to any non-syntax
54692         checks already defined in cfg.mk.
54694 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
54696         longlong: tune, particularly for common case of c99
54698         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
54699         or running anything if c99, or if unsigned long long int does not
54700         work.  In either case, we know the answer without further tests.
54701         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
54702         it at most once, and use its results for both long long int and
54703         unsigned long long int.  This is more likely to be efficient in
54704         the common case where the program wants to check for both long
54705         long int and unsigned long long int.
54706         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
54707         since the answer is already known.
54709 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
54711         getloadavg: set errno
54712         * lib/getloadavg.c: Set errno when returning -1.  If no other
54713         error number looks appropriate, set it to ENOSYS if the getloadavg
54714         looks like it can't possibly ever work, ENOTSUP otherwise.
54715         Suggested by Bruno Haible in
54716         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
54718         getloadavg: trim unused parts and speed up 'configure'
54719         * NEWS: Document this.
54720         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
54721         always compiled if getloadavg is absent.
54722         Move test code to ...
54723         * tests/test-getloadavg.c: New file, containing previous
54724         contents of test from lib/getloadavg.c.  It also contains
54725         suggestions by Bruno Haible in
54726         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
54727         * modules/getloadavg-tests: New file.
54728         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
54729         Do tests in the same order as they're needed for getloadavg.c.
54730         Omit setgid-related tests that generate symbols KMEM_GROUP,
54731         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
54732         Do only the tests that are needed to see whether the system has
54733         getloadavg, moving the other tests into ...
54734         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
54735         NLIST_NAME_UNION; nobody should be using it.  Do not define
54736         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
54737         relevant, as the user of this module shouldn't care how getloadavg
54738         is implemented.
54740         getloadavg: omit unused var
54741         * lib/getloadavg.c (getloadavg): Omit unused local variable.
54743 2011-02-15  Jim Meyering  <meyering@redhat.com>
54745         doc: update users.txt
54746         * users.txt: Update iwhd's URL.
54748 2011-02-13  Bruno Haible  <bruno@clisp.org>
54750         Consistent macro naming for macros that use GCC __attribute__.
54751         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
54752         _ATTRIBUTE_NONNULL_.
54753         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
54754         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
54755         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
54756         ATTRIBUTE_DEPRECATED.
54757         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
54758         ATTRIBUTE_NORETURN.
54759         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54760         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54761         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54762         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
54763         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
54764         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
54765         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
54766         ATTRIBUTE_SENTINEL.
54767         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
54768         ATTRIBUTE_RETURN_CHECK.
54769         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
54770         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
54771         ATTRIBUTE_NORETURN.
54772         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
54773         Reported by Paul Eggert.
54775 2011-02-13  Bruno Haible  <bruno@clisp.org>
54777         Don't interfere with a program's definition of __attribute__.
54778         * lib/argp.h (__attribute__): Remove definition.
54779         (_GL_ATTRIBUTE_FORMAT): New macro.
54780         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
54781         * lib/argp-fmtstream.h (__attribute__): Remove definition.
54782         (_GL_ATTRIBUTE_FORMAT): New macro.
54783         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
54784         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
54785         GCC 3 or newer.
54786         * lib/error.h (__attribute__): Remove definition.
54787         (_GL_ATTRIBUTE_FORMAT): New macro.
54788         (error, error_at_line): Use it.
54789         * lib/hash.h (__attribute__): Remove definition.
54790         (ATTRIBUTE_WUR): Update definition. Define always.
54791         * lib/openat.h (__attribute__): Remove definition.
54792         (ATTRIBUTE_NORETURN): Update definition. Define always.
54793         * lib/sigpipe-die.h (__attribute__): Remove definition.
54794         (ATTRIBUTE_NORETURN): Update definition. Define always.
54795         * lib/vasnprintf.h (__attribute__): Remove definition.
54796         (_GL_ATTRIBUTE_FORMAT): New macro.
54797         (asnprintf, vasnprintf): Use it.
54798         * lib/xalloc.h (__attribute__): Remove definition.
54799         (ATTRIBUTE_NORETURN): Update definition. Define always.
54800         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
54801         * lib/xmemdup0.h (__attribute__): Remove definition.
54802         (ATTRIBUTE_NORETURN): Update definition. Define always.
54803         * lib/xprintf.h (__attribute__): Remove definition.
54804         (_GL_ATTRIBUTE_FORMAT): New macro.
54805         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
54806         * lib/xstrtol.h (__attribute__): Remove definition.
54807         (ATTRIBUTE_NORETURN): Update definition. Define always.
54808         * lib/xvasprintf.h (__attribute__): Remove definition.
54809         (_GL_ATTRIBUTE_FORMAT): New macro.
54810         (xasprintf, xvasprintf): Use it.
54811         * tests/test-argmatch.c (__attribute__): Remove definition.
54812         (ATTRIBUTE_NORETURN): Update definition. Define always.
54813         * tests/test-exclude.c (__attribute__): Remove definition.
54814         (ATTRIBUTE_NORETURN): Update definition. Define always.
54815         Reported by Paul Eggert.
54817 2011-02-13  Bruno Haible  <bruno@clisp.org>
54819         mbrtowc: Add more tests for native Windows platforms.
54820         * tests/test-mbrtowc-w32-1.sh: New file.
54821         * tests/test-mbrtowc-w32-2.sh: New file.
54822         * tests/test-mbrtowc-w32-3.sh: New file.
54823         * tests/test-mbrtowc-w32-4.sh: New file.
54824         * tests/test-mbrtowc-w32-5.sh: New file.
54825         * tests/test-mbrtowc-w32.c: New file.
54826         * modules/mbrtowc-tests (Files): Add them.
54827         (Makefile.am): Arrange to run these tests.
54828         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
54829         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
54831 2011-02-13  Bruno Haible  <bruno@clisp.org>
54833         mbrtowc: Work around native Windows bug.
54834         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
54835         guess when no suitable locale for testing was found.
54836         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
54838 2011-02-13  Bruno Haible  <bruno@clisp.org>
54840         mbsinit: Work around mingw bug.
54841         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
54842         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
54843         Windows.
54844         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
54846 2011-02-13  Bruno Haible  <bruno@clisp.org>
54848         mbsinit: Don't crash for a NULL argument.
54849         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
54850         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
54852 2011-02-13  Bruno Haible  <bruno@clisp.org>
54854         Don't interfere with a program's definition of __attribute__.
54855         * lib/stdio.in.h (__attribute__): Remove definition.
54856         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
54857         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
54858         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
54859         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
54860         * lib/string.in.h (__attribute__): Remove definition.
54861         Reported by Paul Eggert.
54863 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54865         stdlib: don't get in the way of non-GCC __attribute__
54866         See thread starting at
54867         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
54868         Revert previous stdlib change, installing the following instead:
54869         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
54870         to get in the way of a non-GCC compiler that supports __attribute__.
54871         (_GL_ATTRIBUTE_RETURN): New macro.
54872         (_Exit): Use it instead of __attribute__.
54874 2011-02-12  Bruno Haible  <bruno@clisp.org>
54876         quotearg test: Avoid test failure on mingw.
54877         * tests/test-quotearg.sh: Convert the locale identifier from native
54878         Windows syntax to Unix syntax.
54880 2011-02-12  Bruno Haible  <bruno@clisp.org>
54882         setlocale: Prefer gnulib's override over libintl's override.
54883         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
54884         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
54885         GNULIB_defined_setlocale is set.
54887 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54889         stdlib: support non-GCC __attribute__
54891         Fix a serious and tricky problem encountered when attempting to
54892         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
54893         5.5, but it crashed due to memory corruption on Solaris 10 with
54894         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
54895         bits that are otherwise zero.  This tagging is optional inside
54896         Emacs but is preferred and is used when __attribute__ ((__aligned
54897         (8))) works, as it does with both recent-enough GCC and with Sun C
54898         5.11.  However, Sun C 5.11 is not GCC and does not #define
54899         __GNUC__ and __GNUC_MINOR__.
54901         When I added the getloadavg module to Emacs, it brought in
54902         stdlib.in.h, which contained this fragment:
54904            #ifndef __attribute__
54905            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
54906            #  define __attribute__(Spec)   /* empty */
54907            # endif
54908            #endif
54910         When files that include <stdlib.h> were compiled with Sun C 5.11,
54911         the above code disabled __attribute__ ((__aligned (8))), which
54912         caused variables to not be properly aligned, which eventually led
54913         to the pointer corruption mentioned above.  (This was a bit hard
54914         to diagnose, unfortunately.)
54916         Several "#define __attribute__(X) /* empty */" code snippets need
54917         to be eradicated from Gnulib to work with non-GCC compilers that
54918         support __attribute__.  The Autoconf way to do this is to test for
54919         each kind of attribute that we want support for, and selectively
54920         enable that in source code.
54922         Fix this problem just for stdlib.h, by adding a test for the
54923         __noreturn__ attribute, and change stdlib.in.h to use that test
54924         when needed.  This technique can be easily generalized to the
54925         other *.in.h files and attributes, and a similar technique can be
54926         used for *.h and *.c files.  This patch is enough to solve the
54927         problem for Emacs + getloadavg, and I thought I'd publish it for
54928         feedback before undertaking further, similar fixes in other
54929         modules.
54931         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
54932         because it's not needed for stdlib.h.  It merely substitutes the
54933         value directly into stdlib.h.  We may well need to #define it, or
54934         similar symbols, for other modules, but it's nice to also have an
54935         option to not #define it for applications like Emacs that do not
54936         need it.
54938         * lib/stdlib.in.h (__attribute__): Do not #define.
54939         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
54940         be defined only if the _Exit module is also used.
54941         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
54942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
54943         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
54944         platforms.
54945         * modules/_Exit (Files): Add m4/attribute.m4.
54946         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
54947         * m4/attribute.m4: New file.
54949 2011-02-12  Bruno Haible  <bruno@clisp.org>
54951         wcsrtombs: Work around bug on native Windows.
54952         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
54953         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
54954         instead of len.
54955         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
54957 2011-02-12  Bruno Haible  <bruno@clisp.org>
54959         mbsrtowcs: Work around bug on native Windows.
54960         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
54961         against mingw bug.
54962         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
54964 2011-02-12  Bruno Haible  <bruno@clisp.org>
54966         Avoid setlocale bugs in tests.
54967         * modules/btowc (Dependencies): Add setlocale.
54968         * modules/c-strcase (Dependencies): Likewise.
54969         * modules/mbmemcasecmp (Dependencies): Likewise.
54970         * modules/mbmemcasecoll (Dependencies): Likewise.
54971         * modules/mbrtowc (Dependencies): Likewise.
54972         * modules/mbscasecmp (Dependencies): Likewise.
54973         * modules/mbscasestr (Dependencies): Likewise.
54974         * modules/mbschr (Dependencies): Likewise.
54975         * modules/mbscspn (Dependencies): Likewise.
54976         * modules/mbsinit (Dependencies): Likewise.
54977         * modules/mbsncasecmp (Dependencies): Likewise.
54978         * modules/mbsnrtowcs (Dependencies): Likewise.
54979         * modules/mbspbrk (Dependencies): Likewise.
54980         * modules/mbspcasecmp (Dependencies): Likewise.
54981         * modules/mbsrchr (Dependencies): Likewise.
54982         * modules/mbsrtowcs (Dependencies): Likewise.
54983         * modules/mbsspn (Dependencies): Likewise.
54984         * modules/mbsstr (Dependencies): Likewise.
54985         * modules/nl_langinfo (Dependencies): Likewise.
54986         * modules/quotearg (Dependencies): Likewise.
54987         * modules/unicase/locale-language (Dependencies): Likewise.
54988         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
54989         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
54990         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
54991         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
54992         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
54993         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
54994         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
54995         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
54996         * modules/vasnprintf-posix (Dependencies): Likewise.
54997         * modules/wcrtomb (Dependencies): Likewise.
54998         * modules/wcsnrtombs (Dependencies): Likewise.
54999         * modules/wcsrtombs (Dependencies): Likewise.
55001 2011-02-12  Bruno Haible  <bruno@clisp.org>
55003         setlocale: Workaround native Windows bug.
55004         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
55005         succeeds but sets LC_CTYPE to "C", report a failure.
55006         * tests/test-setlocale2.sh: New file.
55007         * tests/test-setlocale2.c: New file.
55008         * modules/setlocale-tests (Files): Add the new files.
55009         (Makefile.am): Enable test-setlocale2.sh test.
55010         * doc/posix-functions/setlocale.texi: Mention workaround.
55012 2011-02-11  Bruno Haible  <bruno@clisp.org>
55014         Tests for module 'setlocale'.
55015         * modules/setlocale-tests: New file.
55016         * tests/test-setlocale1.sh: New file.
55017         * tests/test-setlocale1.c: New file.
55019         New module 'setlocale'.
55020         * lib/locale.in.h (setlocale): New declaration.
55021         * lib/setlocale.c: New file, based on
55022         gettext/gettext-runtime/intl/setlocale.c.
55023         * m4/setlocale.m4: New file.
55024         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
55025         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
55026         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
55027         REPLACE_SETLOCALE.
55028         * modules/setlocale: New file.
55029         * tests/test-locale-c++.cc: Test the declaration of setlocale.
55030         * doc/posix-functions/setlocale.texi: Mention the new module.
55032 2011-02-11  Bruno Haible  <bruno@clisp.org>
55034         Prepare for locale dependent tests on mingw.
55035         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
55036         because it has the wrong locale encoding.
55037         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
55038         French_France.1252 instead of "fr".
55039         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
55040         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
55041         because it has the wrong locale encoding.
55042         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
55043         native Windows, try Turkish_Turkey.65001.
55044         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
55045         Chinese_China.54936.
55047         Prepare for locale dependent tests on mingw.
55048         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
55049         differently.
55050         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
55051         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
55052         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55053         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55055 2011-02-11  Eric Blake  <eblake@redhat.com>
55057         strptime: avoid compiler warnings
55058         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
55059         compiler warnings about dead code.
55060         Reported by Daniel P. Berrange.
55062 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
55064         doc: update users.txt
55065         * users.txt: Add rcs.
55067 2011-02-10  John W. Eaton  <jwe@gnu.org>
55069         doc: update users.txt
55070         * users.txt: Add octave.
55072 2011-02-10  Jim Meyering  <meyering@redhat.com>
55074         doc: update users.txt
55075         * users.txt: Add iwhd.
55077 2011-02-09  Bruno Haible  <bruno@clisp.org>
55079         gnulib-tool: Make copyright notice adjustment more robust.
55080         * gnulib-tool (func_import): In sed_transform_main_lib_file,
55081         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
55082         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
55083         License".
55084         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
55086 2011-02-06  Bruno Haible  <bruno@clisp.org>
55088         New module 'towctrans'.
55089         * modules/towctrans: New file.
55090         * lib/wctype.in.h (towctrans): New declaration.
55091         * lib/towctrans.c: New file.
55092         * lib/towctrans-impl.h: New file.
55093         * m4/towctrans.m4: New file.
55094         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
55095         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
55096         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
55097         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
55098         * doc/posix-functions/towctrans.texi: Mention the new module.
55100 2011-02-06  Bruno Haible  <bruno@clisp.org>
55102         New module 'wctrans'.
55103         * modules/wctrans: New file.
55104         * lib/wctype.in.h (wctrans): New declaration.
55105         * lib/wctrans.c: New file.
55106         * lib/wctrans-impl.h: New file.
55107         * m4/wctrans.m4: New file.
55108         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
55109         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
55110         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
55111         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
55112         * doc/posix-functions/wctrans.texi: Mention the new module.
55114 2011-02-06  Bruno Haible  <bruno@clisp.org>
55116         New module 'iswctype'.
55117         * modules/iswctype: New file.
55118         * lib/wctype.in.h (iswctype): New declaration.
55119         * lib/iswctype.c: New file.
55120         * lib/iswctype-impl.h: New file.
55121         * m4/iswctype.m4: New file.
55122         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
55123         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
55124         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
55125         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
55126         * doc/posix-functions/iswctype.texi: Mention the new module and the
55127         HP-UX 11.00 problem.
55129 2011-02-06  Bruno Haible  <bruno@clisp.org>
55131         New module 'wctype'.
55132         * modules/wctype: Change to represent the wctype() substitute.
55133         * lib/wctype.in.h (wctype): New declaration.
55134         * lib/wctype.c: New file.
55135         * lib/wctype-impl.h: New file.
55136         * m4/wctype.m4: New file.
55137         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
55138         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
55139         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
55140         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
55141         * doc/posix-functions/wctype.texi: Mention the new module and the
55142         HP-UX 11.00 problem.
55144 2011-02-06  Bruno Haible  <bruno@clisp.org>
55146         wctype-h: Ensure wctype_t and wctrans_t are defined.
55147         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
55148         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55149         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
55150         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
55151         HAVE_WCTRANS_T.
55152         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
55154 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
55156         flock: fix license typo
55158         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
55159         omitted.
55161 2011-02-08  Bruno Haible  <bruno@clisp.org>
55163         Split large sed scripts, for HP-UX sed.
55164         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
55165         to avoid HP-UX limit of 99 commands, in the near future.
55166         * modules/stdlib (Makefile.am): Likewise.
55167         * modules/unistd (Makefile.am): Likewise.
55168         * modules/wchar (Makefile.am): Likewise.
55169         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55170         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
55171         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
55173 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55174             Bruno Haible  <bruno@clisp.org>
55176         stdlib: improve random_r modularization
55177         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
55178         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
55179         you also need the random_r module to get this material right.
55180         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
55181         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
55182         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
55184 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
55186         stdlib: don't depend on stdint
55187         * lib/stdlib.in.h: Don't include <stdint.h> merely because
55188         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
55189         be independent of whether stdint.h is needed.
55190         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
55191         here, instead of ...
55192         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
55193         struct random_data should be using the random_r module, not just
55194         the stdlib module (which wouldn't make sense: what package needs
55195         just struct random_data without also needing random_r?).
55196         * modules/stdlib (Depends-on): Remove stdint.
55198         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
55199         See the thread rooted at
55200         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
55201         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
55202         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
55203         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
55204         __VMS)); previously it was always included (via fcntl--.h).
55205         (getloadavg): Do not use c_strtod.  Instead, approximate it by
55206         hand; this is good enough for load averages.  Also, do not use
55207         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
55208         flags directly if available and don't bother otherwise.  (Packages
55209         that need the extra reliability should use the modules that define
55210         these flags on older platforms that lack them.)
55211         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
55212         fcntl-safer.
55214 2011-02-08  Jim Meyering  <meyering@redhat.com>
55216         di-set.h, ino-map.h: add multiple-inclusion guard
55217         Technically, the guard is required only for ino-map.h, due to its
55218         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
55219         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
55220         * lib/ino-map.h: Likewise.
55222 2011-02-06  Bruno Haible  <bruno@clisp.org>
55224         iswblank: Ensure declaration on glibc systems.
55225         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
55226         * modules/iswblank (Dependencies): Add 'extensions'.
55227         * doc/posix-functions/iswblank.texi: Document the glibc problem.
55229 2011-02-06  Bruno Haible  <bruno@clisp.org>
55231         New module 'iswblank'.
55232         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
55233         * modules/iswblank: New file.
55234         * modules/wctype-h (Files): Remove lib/iswblank.c.
55235         (Makefile.am): Substitute GNULIB_ISWBLANK.
55236         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
55237         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
55238         (gl_WCTYPE_H_DEFAULTS): New macro.
55239         (gl_WCTYPE_H): Require it. Remove iswblank related code.
55240         * modules/iswblank-tests: New file.
55241         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
55242         * tests/test-wctype-h.c (main): Remove iswblank tests.
55243         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
55244         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
55245         of 'wctype-h'.
55246         * NEWS: Mention the change.
55247         * modules/mbchar (Depends-on): Add iswblank.
55249 2011-02-08  Bruno Haible  <bruno@clisp.org>
55251         di-set tests: Refactor.
55252         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
55253         unnecessary includes.
55254         (ASSERT): Remove macro.
55255         (main): Make C90 compliant by avoiding variable declaration after
55256         statement.
55257         * modules/di-set-tests (Files): Add tests/macros.h.
55259 2011-02-08  Bruno Haible  <bruno@clisp.org>
55261         ino-map tests: Refactor.
55262         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
55263         unnecessary includes.
55264         (ASSERT): Remove macro.
55265         (main): Make C90 compliant by avoiding variable declaration after
55266         statement.
55267         * modules/ino-map-tests (Files): Add tests/macros.h.
55269 2011-02-08  Jim Meyering  <meyering@redhat.com>
55271         di-set: add "const" to a cast
55272         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
55273         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
55275 2011-02-06  Bruno Haible  <bruno@clisp.org>
55277         Rename module 'wctype' to 'wctype-h'.
55278         * modules/wctype-h: Renamed from modules/wctype.
55279         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
55280         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
55281         (Files, Depends-on, Makefile.am): Update.
55282         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
55283         (Files, Makefile.am): Update.
55284         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
55285         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
55286         * doc/posix-headers/wctype.texi: Update.
55287         * doc/posix-functions/iswalnum.texi: Update.
55288         * doc/posix-functions/iswalpha.texi: Update.
55289         * doc/posix-functions/iswblank.texi: Update.
55290         * doc/posix-functions/iswcntrl.texi: Update.
55291         * doc/posix-functions/iswdigit.texi: Update.
55292         * doc/posix-functions/iswgraph.texi: Update.
55293         * doc/posix-functions/iswlower.texi: Update.
55294         * doc/posix-functions/iswprint.texi: Update.
55295         * doc/posix-functions/iswpunct.texi: Update.
55296         * doc/posix-functions/iswspace.texi: Update.
55297         * doc/posix-functions/iswupper.texi: Update.
55298         * doc/posix-functions/iswxdigit.texi: Update.
55299         * doc/posix-functions/towlower.texi: Update.
55300         * doc/posix-functions/towupper.texi: Update.
55301         * NEWS: Mention the change.
55302         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
55303         * modules/mbchar (Dependencies): Likewise.
55304         * modules/mbswidth (Dependencies): Likewise.
55305         * modules/quotearg (Dependencies): Likewise.
55306         * modules/regex (Dependencies): Likewise.
55307         * modules/wcscasecmp (Dependencies): Likewise.
55308         * modules/wcsncasecmp (Dependencies): Likewise.
55309         * modules/wcwidth (Dependencies): Likewise.
55311 2011-02-06  Bruno Haible  <bruno@clisp.org>
55313         New module 'wcswidth'.
55314         * modules/wcswidth: New file.
55315         * lib/wchar.in.h (wcswidth): New declaration.
55316         * lib/wcswidth.c: New file.
55317         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
55318         * m4/wcswidth.m4: New file.
55319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
55320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
55321         REPLACE_WCSWIDTH.
55322         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
55323         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
55324         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
55325         * doc/posix-functions/wcswidth.texi: Mention the new module.
55327 2011-02-06  Bruno Haible  <bruno@clisp.org>
55329         New module 'wcstok'.
55330         * modules/wcstok: New file.
55331         * lib/wchar.in.h (wcstok): New declaration.
55332         * lib/wcstok.c: New file.
55333         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
55334         * m4/wcstok.m4: New file.
55335         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
55336         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
55337         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
55338         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
55339         * doc/posix-functions/wcstok.texi: Mention the new module.
55341 2011-02-06  Bruno Haible  <bruno@clisp.org>
55343         New module 'wcsstr'.
55344         * modules/wcsstr: New file.
55345         * lib/wchar.in.h (wcsstr): New declaration.
55346         * lib/wcsstr.c: New file.
55347         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
55348         * m4/wcsstr.m4: New file.
55349         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
55350         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
55351         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
55352         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
55353         * doc/posix-functions/wcsstr.texi: Mention the new module.
55355 2011-02-06  Bruno Haible  <bruno@clisp.org>
55357         New module 'wcspbrk'.
55358         * modules/wcspbrk: New file.
55359         * lib/wchar.in.h (wcspbrk): New declaration.
55360         * lib/wcspbrk.c: New file.
55361         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
55362         * m4/wcspbrk.m4: New file.
55363         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
55364         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
55365         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
55366         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
55367         * doc/posix-functions/wcspbrk.texi: Mention the new module.
55369 2011-02-06  Bruno Haible  <bruno@clisp.org>
55371         New module 'wcsspn'.
55372         * modules/wcsspn: New file.
55373         * lib/wchar.in.h (wcsspn): New declaration.
55374         * lib/wcsspn.c: New file.
55375         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
55376         * m4/wcsspn.m4: New file.
55377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
55378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
55379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
55380         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
55381         * doc/posix-functions/wcsspn.texi: Mention the new module.
55383 2011-02-06  Bruno Haible  <bruno@clisp.org>
55385         New module 'wcscspn'.
55386         * modules/wcscspn: New file.
55387         * lib/wchar.in.h (wcscspn): New declaration.
55388         * lib/wcscspn.c: New file.
55389         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
55390         * m4/wcscspn.m4: New file.
55391         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
55392         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
55393         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
55394         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
55395         * doc/posix-functions/wcscspn.texi: Mention the new module.
55397 2011-02-06  Bruno Haible  <bruno@clisp.org>
55399         New module 'wcsrchr'.
55400         * modules/wcsrchr: New file.
55401         * lib/wchar.in.h (wcsrchr): New declaration.
55402         * lib/wcsrchr.c: New file.
55403         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
55404         * m4/wcsrchr.m4: New file.
55405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
55406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
55407         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
55408         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
55409         * doc/posix-functions/wcsrchr.texi: Mention the new module.
55411 2011-02-06  Bruno Haible  <bruno@clisp.org>
55413         New module 'wcschr'.
55414         * modules/wcschr: New file.
55415         * lib/wchar.in.h (wcschr): New declaration.
55416         * lib/wcschr.c: New file.
55417         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
55418         * m4/wcschr.m4: New file.
55419         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
55420         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
55421         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
55422         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
55423         * doc/posix-functions/wcschr.texi: Mention the new module.
55425 2011-02-06  Bruno Haible  <bruno@clisp.org>
55427         New module 'wcsdup'.
55428         * modules/wcsdup: New file.
55429         * lib/wchar.in.h (wcsdup): New declaration.
55430         * lib/wcsdup.c: New file.
55431         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
55432         * m4/wcsdup.m4: New file.
55433         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
55434         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
55435         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
55436         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
55437         * doc/posix-functions/wcsdup.texi: Mention the new module.
55439 2011-02-06  Bruno Haible  <bruno@clisp.org>
55441         New module 'wcsxfrm'.
55442         * modules/wcsxfrm: New file.
55443         * lib/wchar.in.h (wcsxfrm): New declaration.
55444         * lib/wcsxfrm.c: New file.
55445         * lib/wcsxfrm-impl.h: New file.
55446         * m4/wcsxfrm.m4: New file.
55447         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
55448         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
55449         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
55450         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
55451         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
55453 2011-02-06  Bruno Haible  <bruno@clisp.org>
55455         New module 'wcscoll'.
55456         * modules/wcscoll: New file.
55457         * lib/wchar.in.h (wcscoll): New declaration.
55458         * lib/wcscoll.c: New file.
55459         * lib/wcscoll-impl.h: New file.
55460         * m4/wcscoll.m4: New file.
55461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
55462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
55463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
55464         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
55465         * doc/posix-functions/wcscoll.texi: Mention the new module.
55467 2011-02-06  Bruno Haible  <bruno@clisp.org>
55469         New module 'wcsncasecmp'.
55470         * modules/wcsncasecmp: New file.
55471         * lib/wchar.in.h (wcsncasecmp): New declaration.
55472         * lib/wcsncasecmp.c: New file.
55473         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
55474         * m4/wcsncasecmp.m4: New file.
55475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
55476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
55477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
55478         HAVE_WCSNCASECMP.
55479         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
55480         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
55482 2011-02-06  Bruno Haible  <bruno@clisp.org>
55484         New module 'wcscasecmp'.
55485         * modules/wcscasecmp: New file.
55486         * lib/wchar.in.h (wcscasecmp): New declaration.
55487         * lib/wcscasecmp.c: New file.
55488         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
55489         * m4/wcscasecmp.m4: New file.
55490         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
55491         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
55492         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
55493         HAVE_WCSCASECMP.
55494         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
55495         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
55497 2011-02-05  Bruno Haible  <bruno@clisp.org>
55499         New module 'wcsncmp'.
55500         * modules/wcsncmp: New file.
55501         * lib/wchar.in.h (wcsncmp): New declaration.
55502         * lib/wcsncmp.c: New file.
55503         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
55504         * m4/wcsncmp.m4: New file.
55505         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
55506         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
55507         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
55508         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
55509         * doc/posix-functions/wcsncmp.texi: Mention the new module.
55511 2011-02-05  Bruno Haible  <bruno@clisp.org>
55513         New module 'wcscmp'.
55514         * modules/wcscmp: New file.
55515         * lib/wchar.in.h (wcscmp): New declaration.
55516         * lib/wcscmp.c: New file.
55517         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
55518         * m4/wcscmp.m4: New file.
55519         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
55520         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
55521         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
55522         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
55523         * doc/posix-functions/wcscmp.texi: Mention the new module.
55525 2011-02-05  Bruno Haible  <bruno@clisp.org>
55527         New module 'wcsncat'.
55528         * modules/wcsncat: New file.
55529         * lib/wchar.in.h (wcsncat): New declaration.
55530         * lib/wcsncat.c: New file.
55531         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
55532         * m4/wcsncat.m4: New file.
55533         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
55534         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
55535         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
55536         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
55537         * doc/posix-functions/wcsncat.texi: Mention the new module.
55539 2011-02-05  Bruno Haible  <bruno@clisp.org>
55541         New module 'wcscat'.
55542         * modules/wcscat: New file.
55543         * lib/wchar.in.h (wcscat): New declaration.
55544         * lib/wcscat.c: New file.
55545         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
55546         * m4/wcscat.m4: New file.
55547         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
55548         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
55549         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
55550         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
55551         * doc/posix-functions/wcscat.texi: Mention the new module.
55553 2011-02-05  Bruno Haible  <bruno@clisp.org>
55555         New module 'wcpncpy'.
55556         * modules/wcpncpy: New file.
55557         * lib/wchar.in.h (wcpncpy): New declaration.
55558         * lib/wcpncpy.c: New file.
55559         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
55560         * m4/wcpncpy.m4: New file.
55561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
55562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
55563         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
55564         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
55565         * doc/posix-functions/wcpncpy.texi: Mention the new module.
55567 2011-02-05  Bruno Haible  <bruno@clisp.org>
55569         New module 'wcsncpy'.
55570         * modules/wcsncpy: New file.
55571         * lib/wchar.in.h (wcsncpy): New declaration.
55572         * lib/wcsncpy.c: New file.
55573         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
55574         * m4/wcsncpy.m4: New file.
55575         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
55576         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
55577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
55578         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
55579         * doc/posix-functions/wcsncpy.texi: Mention the new module.
55581 2011-02-05  Bruno Haible  <bruno@clisp.org>
55583         New module 'wcpcpy'.
55584         * modules/wcpcpy: New file.
55585         * lib/wchar.in.h (wcpcpy): New declaration.
55586         * lib/wcpcpy.c: New file.
55587         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
55588         * m4/wcpcpy.m4: New file.
55589         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
55590         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
55591         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
55592         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
55593         * doc/posix-functions/wcpcpy.texi: Mention the new module.
55595 2011-02-05  Bruno Haible  <bruno@clisp.org>
55597         New module 'wcscpy'.
55598         * modules/wcscpy: New file.
55599         * lib/wchar.in.h (wcscpy): New declaration.
55600         * lib/wcscpy.c: New file.
55601         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
55602         * m4/wcscpy.m4: New file.
55603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
55604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
55605         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
55606         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
55607         * doc/posix-functions/wcscpy.texi: Mention the new module.
55609 2011-02-05  Bruno Haible  <bruno@clisp.org>
55611         New module 'wcsnlen'.
55612         * modules/wcsnlen: New file.
55613         * lib/wchar.in.h (wcsnlen): New declaration.
55614         * lib/wcsnlen.c: New file.
55615         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
55616         * m4/wcsnlen.m4: New file.
55617         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
55618         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
55619         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
55620         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
55621         * doc/posix-functions/wcsnlen.texi: Mention the new module.
55623 2011-02-05  Bruno Haible  <bruno@clisp.org>
55625         New module 'wcslen'.
55626         * modules/wcslen: New file.
55627         * lib/wchar.in.h (wcslen): New declaration.
55628         * lib/wcslen.c: New file.
55629         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
55630         * m4/wcslen.m4: New file.
55631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
55632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
55633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
55634         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
55635         * doc/posix-functions/wcslen.texi: Mention the new module.
55637 2011-02-05  Bruno Haible  <bruno@clisp.org>
55639         New module 'wmemset'.
55640         * modules/wmemset: New file.
55641         * lib/wchar.in.h (wmemset): New declaration.
55642         * lib/wmemset.c: New file.
55643         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
55644         * m4/wmemset.m4: New file.
55645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
55646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
55647         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
55648         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
55649         * doc/posix-functions/wmemset.texi: Mention the new module.
55651 2011-02-05  Bruno Haible  <bruno@clisp.org>
55653         New module 'wmemmove'.
55654         * modules/wmemmove: New file.
55655         * lib/wchar.in.h (wmemmove): New declaration.
55656         * lib/wmemmove.c: New file.
55657         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
55658         * m4/wmemmove.m4: New file.
55659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
55660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
55661         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
55662         HAVE_WMEMMOVE.
55663         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
55664         * doc/posix-functions/wmemmove.texi: Mention the new module.
55666 2011-02-05  Bruno Haible  <bruno@clisp.org>
55668         New module 'wmemcpy'.
55669         * modules/wmemcpy: New file.
55670         * lib/wchar.in.h (wmemcpy): New declaration.
55671         * lib/wmemcpy.c: New file.
55672         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
55673         * m4/wmemcpy.m4: New file.
55674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
55675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
55676         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
55677         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
55678         * doc/posix-functions/wmemcpy.texi: Mention the new module.
55680 2011-02-05  Bruno Haible  <bruno@clisp.org>
55682         New module 'wmemcmp'.
55683         * modules/wmemcmp: New file.
55684         * lib/wchar.in.h (wmemcmp): New declaration.
55685         * lib/wmemcmp.c: New file.
55686         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
55687         * m4/wmemcmp.m4: New file.
55688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
55689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
55690         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
55691         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
55692         * doc/posix-functions/wmemcmp.texi: Mention the new module.
55694 2011-02-07  Jim Meyering  <meyering@redhat.com>
55696         di-set, ino-map: new modules, from coreutils
55697         * lib/di-set.c: New file.
55698         * lib/di-set.h: Likewise.
55699         * lib/ino-map.c: Likewise.
55700         * lib/ino-map.h: Likewise.
55701         * modules/di-set: Likewise.
55702         * modules/di-set-tests: Likewise.
55703         * modules/ino-map: Likewise.
55704         * modules/ino-map-tests: Likewise.
55705         * tests/test-di-set.c: Likewise.
55706         * tests/test-ino-map.c: Likewise.
55708 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
55710         getloadavg: merge minor changes from Emacs
55712         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
55713         (getloadavg): Use memset, not bzero.
55715         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
55716         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
55717         clash (bug#86).
55719 2010-11-14  Bruno Haible  <bruno@clisp.org>
55721         Allow multiple gnulib generated replacements to coexist.
55722         * lib/getopt.in.h (struct option): Avoid identical redefinition.
55723         * lib/inttypes.in.h (imaxdiv_t): Likewise.
55724         * lib/langinfo.in.h (nl_item): Likewise.
55725         * lib/math.in.h (_NaN, NAN): Likewise.
55726         * lib/netdb.in.h (struct addrinfo): Likewise.
55727         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
55728         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
55729         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
55730         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
55731         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
55732         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
55733         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
55734         pthread_mutexattr_init, pthread_mutexattr_settype,
55735         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
55736         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
55737         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
55738         pthread_spin_trylock, pthread_spin_unlock): Likewise.
55739         * lib/sched.in.h (struct sched_param): Likewise.
55740         * lib/se-selinux.in.h (security_class_t, security_context_t,
55741         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
55742         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
55743         lsetfilecon, fsetfilecon, security_check_context,
55744         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
55745         Likewise.
55746         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
55747         Likewise.
55748         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
55749         _gl_function_taking_int_returning_void_t, union sigval,
55750         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
55751         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
55752         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
55753         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
55754         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
55755         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
55756         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
55757         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
55758         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
55759         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
55760         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
55761         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
55762         socklen_t, rpl_fd_isset): Likewise.
55763         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
55764         * lib/sys_time.in.h (struct timeval): Likewise.
55765         * lib/sys_times.in.h (struct tms): Likewise.
55766         * lib/sys_utsname.in.h (struct utsname):
55767         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
55768         * lib/unistd.in.h (getpagesize): Likewise.
55769         * lib/wchar.in.h (mbstate_t): Likewise.
55770         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55771         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
55772         towlower, towupper): Likewise.
55773         Reported by Sam Steingold <sds@gnu.org>.
55775 2011-02-05  Eric Blake  <eblake@redhat.com>
55777         unsetenv: work around Haiku issues
55778         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
55779         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
55781 2010-12-30  Bruce Korb  <bkorb@gnu.org>
55783         libposix: avoid calling error() within libposix
55784         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
55785         is defined.
55787 2011-02-05  Eric Blake  <eblake@redhat.com>
55789         strerror_r-posix: port to cygwin
55790         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
55791         implementation.
55792         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
55793         * tests/test-strerror_r.c (main): Fix test.
55794         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
55795         issue.
55797 2011-02-05  Bruno Haible  <bruno@clisp.org>
55799         New module 'wmemchr'.
55800         * modules/wmemchr: New file.
55801         * lib/wchar.in.h (wmemchr): New declaration.
55802         * lib/wmemchr.c: New file.
55803         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
55804         * m4/wmemchr.m4: New file.
55805         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
55806         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
55807         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
55808         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
55809         * doc/posix-functions/wmemchr.texi: Mention the new module.
55811 2011-02-04  Eric Blake  <eblake@redhat.com>
55813         fdopendir: detect FreeBSD bug
55814         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
55815         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
55817 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
55819         stdbool: do not define HAVE_STDBOOL_H
55820         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
55821         AC_HEADER_STDBOOL.  All uses changed.  Do not define
55822         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
55823         imported from the latest Autoconf git.  It was motivated by Emacs,
55824         which uses gnulib but does not need HAVE_STDBOOL_H.
55826 2011-02-04  Bruno Haible  <bruno@clisp.org>
55828         wcsnrtombs: Prepare for new module wwcsnrtombs.
55829         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
55830         * lib/wcsnrtombs.c: Include it.
55831         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
55833         wcsrtombs: Prepare for new module wwcsrtombs.
55834         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
55835         * lib/wcsrtombs.c: Include it.
55836         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
55838         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
55839         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
55840         * lib/mbsnrtowcs.c: Include it.
55841         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
55843         mbsrtowcs: Prepare for new module mbsrtowwcs.
55844         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
55845         * lib/mbsrtowcs.c: Include it.
55846         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
55848 2011-02-04  Bruno Haible  <bruno@clisp.org>
55850         vasnprintf: Reduce use of malloc for small format strings.
55851         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
55852         (arguments): Add room for the first 7 arguments.
55853         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
55854         (char_directives, u8_directives, u16_directives, u32_directives): Add
55855         room for the first 7 directives.
55856         * lib/printf-parse.c: Include <string.h>.
55857         (PRINTF_PARSE): Change memory handling code so that it uses the first
55858         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
55859         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
55860         Reported by Pádraig Brady <P@draigbrady.com>.
55862 2011-01-31  Eric Blake  <eblake@redhat.com>
55864         dup2: work around Haiku bug
55865         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
55866         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
55867         * doc/posix-functions/dup2.texi (dup2): Document the bug.
55868         * tests/test-dup2.c (main): Enhance test.
55870 2011-01-31  Simon Josefsson  <simon@josefsson.org>
55872         doc: off_t is not available in eglibc 2.11.2 stdio.h.
55873         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
55874         declared by eglibc 2.11.2.
55875         * lib/stdio.in.h: Likewise.
55877 2011-01-31  Eric Blake  <eblake@redhat.com>
55879         ignore-value: add missing test dependency
55880         * tests/test-ignore-value.c: Revert previous change; stdio.h
55881         provides off_t.
55882         * modules/ignore-value-tests (Depends-on): Add missing dependency.
55884 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
55886         mktime: clarify long_int width checking
55887         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
55888         the top level, to make it clearer that the assumption about
55889         long_int width is being checked.  See
55890         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
55892 2011-01-30  Simon Josefsson  <simon@josefsson.org>
55894         ignore-value: Fix self-test.
55895         * tests/test-ignore-value.c: Include sys/types.h for off_t.
55897 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55899         TYPE_MAXIMUM: avoid theoretically undefined behavior
55900         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
55901         negative number, which the C Standard says has undefined behavior.
55902         In practice this is not a problem, but might as well do it by the book.
55903         Reported by Rich Felker and Eric Blake; see
55904         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
55905         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
55906         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55908         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
55909         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55910         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
55912         mktime: #undef mktime before #defining it
55913         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
55915         mktime: systematically normalize tm_isdst comparisons
55916         * lib/mktime.c (isdst_differ): New function.
55917         (__mktime_internal): Use it systematically for all isdst comparisons.
55918         This completes the fix for libc BZ #6723, and removes the need for
55919         normalizing tm_isdst.  See
55920         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
55921         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
55923         mktime: fix some integer overflow issues and sidestep the rest
55925         This was prompted by a bug report by Benjamin Lindner for MinGW
55926         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
55927         His bug is due to signed integer overflow (0 - INT_MIN), and I
55928         I scanned through mktime.c looking for other integer overflow
55929         problems, fixing all the bugs I found.
55931         Although the C Standard says the resulting code is still not safe
55932         in the presence of integer overflow, in practice it should be good
55933         enough for all real-world two's-complement implementations, except
55934         for debugging environments that deliberately trap on integer
55935         overflow (e.g., gcc -ftrapv).
55937         * lib/mktime.c (WRAPV): New macro.
55938         (SHR): Also check that long_int and time_t shift right in the
55939         usual way, before using the fast-but-unportable method.
55940         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
55941         used.  The code already assumed two's complement, so there's
55942         no need to test for alternatives.  All uses removed.
55943         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
55944         the C standard.  Problem reported by Rich Felker in
55945         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
55946         (twos_complement_arithmetic): Also check long_int and time_t.
55947         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
55948         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
55949         (__mktime_internal): Avoid integer overflow with unary subtraction
55950         in two instances where -1 - X is an adequate replacement for -X,
55951         since the calculations are approximate.
55953 2011-01-29  Eric Blake  <eblake@redhat.com>
55955         mktime: avoid infinite loop
55956         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
55957         type; behavior is still undefined but portable to all known targets.
55958         Reported by Rich Felker.
55960 2011-01-29  Simon Josefsson  <simon@josefsson.org>
55962         rename, unlink, same-inode: Relicense.
55963         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
55964         * modules/unlink (License): Likewise.
55965         * modules/same-inode (License): Likewise.
55967 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55969         mktime: avoid problems on NetBSD 5 / i386
55970         * lib/mktime.c (long_int): New type.  This works around a problem
55971         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
55972         but time_t is 64 bits, and where I expect the existing code is
55973         wrong in some cases.
55974         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
55975         (ydhms_diff): Bring back the compile-time check for wide-enough
55976         year and yday.
55978         mktime: fix misspelling in comment
55979         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
55980         This merges all recent glibc changes of importance.
55982 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55984         move-if-change: cope with concurrent mv of identical file.
55985         * build-aux/move-if-change (CMPPROG): Accept environment
55986         variable as an override for `cmp'.
55987         (usage): Document CMPPROG.
55988         Adjust comparison to drop stdout.  Cope with failure of mv if
55989         the target file exists and is identical to the source, for
55990         parallel builds.
55991         Report from H.J. Lu against binutils in PR binutils/12283.
55993 2011-01-28  Bruce Korb  <bkorb@gnu.org>
55995         * users.txt: Mention sharutils.
55997 2011-01-28  Simon Josefsson  <simon@josefsson.org>
55999         * users.txt: Mention OATH Toolkit.
56001 2011-01-27  Bruno Haible  <bruno@clisp.org>
56003         Prepare for supporting FreeBSD 10.
56004         * build-aux/config.libpath: Remove handling of freebsd1*.
56006 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
56008         Prepare for supporting FreeBSD 10.
56009         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
56010         match FreeBSD 10.0.
56012 2011-01-27  Bruno Haible  <bruno@clisp.org>
56014         vma-iter, get-rusage-as: Add OpenBSD support.
56015         * modules/vma-iter (configure.ac): Test for mquery.
56016         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
56017         * lib/vma-iter.c: Include <sys/mman.h>.
56018         (vma_iterate): Add an implementation based on mquery().
56019         * lib/resource-ext.h (get_rusage_as): Update comments.
56020         * lib/get-rusage-as.c: Likewise.
56021         * lib/get-rusage-data.c: Likewise.
56023 2011-01-26  Karl Berry  <karl@gnu.org>
56025         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
56026         variables to make it easier to override the makeinfo program used.
56028 2011-01-26  Eric Blake  <eblake@redhat.com>
56030         fcntl: work around Haiku F_DUPFD bugs
56031         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
56032         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
56033         cloexec bit on duplication.
56034         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
56036 2011-01-26  Bruno Haible  <bruno@clisp.org>
56038         Enable memory leak tests on AIX.
56039         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
56040         * tests/test-fprintf-posix3.c (main): Likewise.
56042 2011-01-26  Bruno Haible  <bruno@clisp.org>
56044         Tests for module 'get-rusage-data'.
56045         * modules/get-rusage-data-tests: New file.
56046         * tests/test-get-rusage-data.c: New file.
56048         New module 'get-rusage-data'.
56049         * lib/resource-ext.h (get_rusage_data): New declaration.
56050         * lib/get-rusage-data.c: New file.
56051         * modules/get-rusage-data: New file.
56053 2011-01-25  Bruno Haible  <bruno@clisp.org>
56055         get-rusage-as: Allow for easier testing.
56056         * lib/resource-ext.h (get_rusage_as): Add comment.
56057         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
56058         (main): New function for interactive testing.
56060 2011-01-25  Bruno Haible  <bruno@clisp.org>
56062         vma-iter: Treat Haiku like BeOS.
56063         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
56064         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
56066 2011-01-25  Eric Blake  <eblake@redhat.com>
56068         c-stack: fix regression on cygwin when libsigsegv is present
56069         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
56071 2011-01-24  Bruno Haible  <bruno@clisp.org>
56073         vma-iter: Avoid empty intervals.
56074         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
56075         on an empty interval.
56077 2011-01-24  Jim Meyering  <meyering@redhat.com>
56079         u64: remove unnecessary #include
56080         * lib/u64.h: Don't include <stddef.h>.  It was not used.
56082 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56084         Allow the user to avoid the HAVE_RAW_DECL_* macros.
56085         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
56087 2011-01-23  Bruno Haible  <bruno@clisp.org>
56089         New module 'vma-iter'.
56090         * lib/vma-iter.h: New file.
56091         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
56092         * modules/vma-iter: New file.
56093         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
56094         for get_rusage_as_via_iterator.
56095         (vma_iterate_callback): New function.
56096         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
56097         * modules/get-rusage-as (Depends-on): Add vma-iter.
56099 2011-01-23  Bruno Haible  <bruno@clisp.org>
56101         uninorm: Tweak includes.
56102         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
56103         Reported by Jim Meyering.
56105 2011-01-23  Bruno Haible  <bruno@clisp.org>
56107         get-rusage-as: Improve on NetBSD.
56108         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
56109         /proc, like on FreeBSD.
56111 2011-01-23  Jim Meyering  <meyering@redhat.com>
56113         xreadlink.h: remove unnecessary #include
56114         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
56116         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
56117         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
56119 2011-01-23  Bruno Haible  <bruno@clisp.org>
56121         get-rusage-as: Fix bug.
56122         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
56123         original limit when aborting the first loop.
56125 2011-01-23  Bruno Haible  <bruno@clisp.org>
56127         wctype: Ensure valid C syntax.
56128         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
56129         unconditionally, instead of gl_NEXT_HEADERS conditionally.
56131 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
56133         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
56134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
56135         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
56136         as they are needed only for configure's test case.
56137         This removes two unnecessary symbols from config.h.
56139         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
56140         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
56141         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
56142         AC_CHECK_HEADERS_ONCE on a header that we also invoke
56143         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
56144         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
56145         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
56146         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
56147         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56148         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56149         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56150         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56151         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56152         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
56153         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
56154         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56155         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
56156         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
56158 2011-01-21  Eric Blake  <eblake@redhat.com>
56160         maintainer-makefile: work with older git for submodule check
56161         * top/maint.mk (public-submodule-commit): Rewrite to avoid
56162         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
56163         Reported by Matthias Bolte.
56165         bootstrap: minor portability fixes
56166         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
56167         (usage): Omit leading capital and trailing . on help phrases, per
56168         GNU Coding Standards.
56169         (check_versions, top level): Prefix messages with script name.
56171 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
56173         bootstrap: support --no-git option
56174         * build-aux/bootstrap: Add --no-git option, to be used when
56175         --gnulib-srcdir points to the exact desired checkout.
56177 2011-01-21  Eric Blake  <eblake@redhat.com>
56179         strerror_r-posix: work with glibc 2.13
56180         * lib/strerror_r.c (strerror_r): Fix return type.
56182 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56183             Bruno Haible  <bruno@clisp.org>
56185         uN_strstr: New unit tests.
56186         * modules/unistr/u8-strstr-tests: New file.
56187         * modules/unistr/u16-strstr-tests: New file.
56188         * modules/unistr/u32-strstr-tests: New file.
56189         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
56190         * tests/unistr/test-u8-strstr.c: New file.
56191         * tests/unistr/test-u16-strstr.c: New file.
56192         * tests/unistr/test-u32-strstr.c: New file.
56194 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56195             Bruno Haible  <bruno@clisp.org>
56197         Make uN_strstr functions O(n) worst-case.
56198         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
56199         16-bit and 32-bit unit cases, use the unibyte algorithm from
56200         lib/mbsstr.c.
56201         * lib/unistr/u8-strstr.c: Include <string.h>.
56202         (UNIT_IS_UINT8_T): New macro.
56203         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
56204         (U_STRLEN, U_STRNLEN): New macros.
56205         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
56206         (U_STRLEN, U_STRNLEN): New macros.
56207         * modules/unistr/u8-strstr (Depends-on): Add strstr.
56208         (configure.ac): Update required libunistring version.
56209         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
56210         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
56211         malloca.
56212         (configure.ac): Update required libunistring version.
56213         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
56214         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
56215         malloca.
56216         (configure.ac): Update required libunistring version.
56218 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56219             Bruno Haible  <bruno@clisp.org>
56221         Prepare for faster uN_strstr functions.
56222         * lib/str-kmp.h: Support definable UNITs.
56223         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
56224         needle_len argument.
56225         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
56226         * lib/mbscasestr.c (mbscasestr): Likewise.
56228 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56230         malloca-tests: make faster by unsetting MALLOC_PERTURB_
56231         * tests/test-malloca.c (main): Unset the environment variable
56232         to greatly speed up the test.
56233         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
56234         * modules/malloca-tests: Depend on unsetenv.
56236 2011-01-21  Pádraig Brady  <P@draigBrady.com>
56238         ignore-value: remove stdint dependency
56239         * lib/ignore-value.h: Remove <stdint.h>
56240         * modules/ignore-value: Remove stdint dependency.
56242 2011-01-21  Jim Meyering  <meyering@redhat.com>
56244         maint.mk: adjust variable name to be consistent with other gl_ vars
56245         * top/maint.mk (gl_public_submodule_commit): Rename the variable
56246         to be lower case.
56248 2011-01-20  Jim Meyering  <meyering@redhat.com>
56250         maint.mk: make "check" depend on public-submodule-commit by default
56251         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
56253 2011-01-20  Bruno Haible  <bruno@clisp.org>
56255         mbfile, mbiter: Complete change from 2008-12-21.
56256         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
56257         * m4/mbiter.m4 (gl_MBITER): Likewise.
56259 2011-01-20  Jim Meyering  <meyering@redhat.com>
56261         init.sh: insert space between each function name and "()"
56262         * tests/init.sh: Make it a little easier to see that a function's
56263         name is "warn_", and not "warn" when looking at the first part of
56264         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
56266 2011-01-20  Jim Meyering  <meyering@redhat.com>
56268         mountlist: clean up code formatting
56269         * lib/mountlist.c (read_file_system_list): Split a long line,
56270         correct bracing style, use NULL in place of "(struct statfs *)0",
56271         don't parenthesize return value, add spaces around "=" and after
56272         ";-in-for-stmt".
56274 2011-01-14  Markus Duft  <mduft@gentoo.org>
56276         mountlist: add support for Interix
56277         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
56278         Apply statvfs to all entries of /dev/fs.
56279         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
56280         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
56282 2011-01-20  Jim Meyering  <meyering@redhat.com>
56284         maint.mk: improve the public-submodule-commit rule
56285         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
56286         to suppress printing of its commands... unless V=1.
56287         Add git submodule's --quiet option to suppress printing of e.g.,
56288         "Entering gnulib" output.
56289         "cd" into $(srcdir) before running git submodule.
56291 2011-01-20  Bruno Haible  <bruno@clisp.org>
56293         include_next: Fix bug introduced on 2011-01-18.
56294         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
56295         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
56296         ac_cv_header_... variable if the second argument is not 'check'.
56297         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
56298         gl_NEXT_HEADERS_INTERNAL.
56300 2011-01-20  Bruno Haible  <bruno@clisp.org>
56302         Allow the user to avoid the GNULIB_TEST_* macros.
56303         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
56304         Suggested by Paul Eggert.
56306 2011-01-14  Jim Meyering  <meyering@redhat.com>
56308         bootstrap: avoid failure when there is no .gitmodules file
56309         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
56310         has been assigned to, even when its value is the empty string.
56311         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
56312         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
56313         Reported by John W. Eaton <jwe@gnu.org>.
56315 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
56317         assume <ctype.h>, ..., <time.h> exist
56318         For years gnulib has been assuming the existence of the headers
56319         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
56320         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
56321         them, since they don't appear to be needed.
56322         * README (Portability guidelines): Document this.
56323         * lib/flock.c: Assume <fcntl.h> exists.
56324         * lib/regex_internal.h: Assume <locale.h> exists.
56325         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
56326         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
56327         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
56328         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
56329         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
56330         * m4/regex.m4 (gl_REGEX): Likewise.
56331         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
56332         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
56333         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
56334         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
56335         * tests/test-argp.c: Likewise.
56336         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
56338         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
56339         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
56340         AA_APPLE_UNIVERSAL_BUILD.  See
56341         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
56342         * NEWS: Document this.
56344 2011-01-19  Eric Blake  <eblake@redhat.com>
56346         c-stack: assume stack overflow if SA_SIGINFO unsupported
56347         * lib/c-stack.c (SIGACTION_WORKS): Rename...
56348         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
56349         sigaction will work.
56350         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
56351         behavior match Linux.
56352         * tests/test-c-stack.c (main): Prefer NULL for pointers.
56354         stdbool-tests: accommodate Haiku
56355         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
56357         binary-io: fix O_TEXT on Haiku
56358         * modules/binary-io (Depends-on): Add fcntl-h.
56359         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
56360         than blindly undefining O_TEXT.
56361         Reported by Scott McCreary.
56363 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56365         include_next: do not check for standard headers like stddef.h
56367         I found this problem when modifying Emacs to use gnulib.
56368         I noticed that it added HAVE_STDDEF_H to config.h, even though
56369         gnulib always assumes <stddef.h> exists as per README and this
56370         symbol is unnecessary.
56371         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
56372         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
56373         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
56374         faster for headers like stddef.h that are known to exist.
56375         (gl_CHECK_NEXT_HEADERS): Use it.
56376         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
56377         rather than gl_CHECK_NEXT_HEADERS.
56378         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
56379         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
56381 2011-01-18  Eric Blake  <eblake@redhat.com>
56383         ansi-c++-opt: skip C++ dependency style if C++ is unused
56384         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
56385         tests when we know C++ compilation is not desired.
56386         Reported by Scott McCreary.
56388 2011-01-18  Bruno Haible  <bruno@clisp.org>
56390         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
56391         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
56392         (main): Perform test also when getrlimit and setrlimit don't exist or
56393         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
56394         limiting the address space size using setrlimit, compare the address
56395         space size before and after the test.
56396         * tests/test-dprintf-posix2.c: Likewise.
56397         * tests/test-fprintf-posix3.sh: Update skip messages.
56398         * tests/test-dprintf-posix2.sh: Likewise.
56399         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
56400         * modules/dprintf-posix-tests (Depends-on): Likewise.
56401         Reported by Bruce Korb <bkorb@gnu.org> and
56402         Gary V. Vaughan <gary@gnu.org>.
56404 2011-01-18  Bruno Haible  <bruno@clisp.org>
56406         get-rusage-as: Improvement for Cygwin.
56407         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
56408         areas that are merely reserved.
56410 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
56412         strftime: remove dependencies on multibyte modules
56414         strftime depended on mbrlen, mbsinit, and wchar, but these modules
56415         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
56416         only if __osf__ is defined, and I suspect OSF doesn't need these
56417         other modules.  If my guess is wrong, we'll need to come up with a
56418         variant of strftime that doesn't need the multibyte modules.
56420         I discovered this problem when attempting modify Emacs to use the
56421         strftime module.  With the previous gnulib, this caused Emacs to
56422         need 31 new files, ranging from lib/config.charset to
56423         m4/wint_t.m4.  This was overkill and I expect would be offputting
56424         to the Emacs maintainers.  After this change, only 6 new files are
56425         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
56426         stdbool.m4, and tm_gmtoff.m4.
56428         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
56429         Suggested by Bruno Haible in
56430         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
56431         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
56432         and do not check for wchar.h.
56433         * modules/strftime (Files): Remove m4/mbstate_t.m4.
56434         (Depends-on): Remove mbrlen, mbsinit, wchar.
56436 2011-01-18  Bruno Haible  <bruno@clisp.org>
56438         Tests for module 'get-rusage-as'.
56439         * modules/get-rusage-as-tests: New file.
56440         * tests/test-get-rusage-as.c: New file.
56442         New module 'get-rusage-as'.
56443         * modules/get-rusage-as: New file.
56444         * lib/resource-ext.h: New file.
56445         * lib/get-rusage-as.c: New file.
56447 2011-01-17  Eric Blake  <eblake@redhat.com>
56449         sigaction: relax license from LGPLv3+ to LGPLv2+
56450         * modules/sigaction (License): Relax to LGPLv2+.
56452 2011-01-14  Bruno Haible  <bruno@clisp.org>
56454         filemode: Make function declarations usable in C++ mode.
56455         * lib/filemode.h: Enclose function declarations in extern "C" block.
56456         Reported by John W. Eaton <jwe@gnu.org>.
56458 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
56460         save-cwd: no longer include "xgetcwd.h"
56461         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
56462         This avoids a compilation failure in projects that use save-cwd
56463         without also using the xgetcwd module.
56465 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56467         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
56468         This is so that a program like Emacs, which needs only dtoastr,
56469         does not have to bother with distributing and compiling ftoastr
56470         and ldtoastr.
56471         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
56472         * modules/dtoastr, modules/ldtoastr: New files.
56473         * modules/ftoastr: Now works just for 'float'.
56474         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
56475         (Makefile.am): Remove ftoastr.h (not needed and no effect),
56476         dtoastr.c, ldtoastr.c.
56478 2011-01-11  Jim Meyering  <meyering@redhat.com>
56480         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
56481         There is no need to work around the lack of the fchdir function,
56482         since gnulib can now provide a replacement when required.
56483         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
56484         * modules/save-cwd (Depends-on): Add fchdir.
56486 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
56488         openat, save-cwd: avoid xmalloc
56490         This removes a direct (but undocumented) dependency of openat on
56491         xalloc, along with an indirect dependency via save-cwd.  It also
56492         removes a dependency of save-cwd on xgetcwd, and thereby
56493         indirectly on xalloc.  This change causes the openat substitute
56494         to fall back on save_cwd when memory is tight, and for save_cwd to
56495         fail instead of dying when memory is tight, but that's good enough.
56496         Problem and initial idea for fix reported by Bastien Roucaries in
56497         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
56499         * lib/openat-proc.c: Include stdlib.h (for malloc), not
56500         xalloc.h (for xmalloc).
56501         (openat_proc_name): Use malloc, not xmalloc.
56502         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
56503         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
56505         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
56506         This avoids heap allocation for file names whose lengths are in
56507         the range 512..1023, with the upper bound increasing to at most
56508         4031 depending on the platform's PATH_MAX.  (We do not want
56509         pathmax.h here as it might supply a non-constant PATH_MAX.)
56510         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
56511         Perhaps they should be moved to malloca.h?
56512         (OPENAT_BUFFER_SIZE): Use them.
56514 2011-01-10  Bruno Haible  <bruno@clisp.org>
56516         doc: Update users.txt.
56517         * users.txt: Add recutils.
56519 2011-01-09  Karl Berry  <karl@gnu.org>
56521         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
56523         * doc/configmake.texi: New file.
56524         * doc/gnulib.texi: Include it.
56525         * modules/configmake: Move documentation from here.
56527 2011-01-09  Bruno Haible  <bruno@clisp.org>
56529         Update to Unicode 6.0.0.
56530         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
56531         (get_lbp): Update for Unicode 6.0.0.
56532         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
56533         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
56534         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
56535         U+11001, U+11038..U+11046. Remove U+06DE.
56536         (uc_width): Fix bounds of planes.
56537         * tests/uniwidth/test-uc_width2.sh: Same updates as in
56538         lib/uniwidth/width.c.
56539         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
56540         trailing whitespace removed.
56541         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
56542         without comments, but with the original copyright notice.
56543         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
56544         * lib/unicase/ignorable.h: Likewise.
56545         * lib/unicase/tocasefold.h: Likewise.
56546         * lib/unicase/tolower.h: Likewise.
56547         * lib/unicase/totitle.h: Likewise.
56548         * lib/unicase/toupper.h: Likewise.
56549         * lib/unictype/bidi_of.h: Likewise.
56550         * lib/unictype/blocks.h: Likewise.
56551         * lib/unictype/categ_C.h: Likewise.
56552         * lib/unictype/categ_Cn.h: Likewise.
56553         * lib/unictype/categ_L.h: Likewise.
56554         * lib/unictype/categ_Ll.h: Likewise.
56555         * lib/unictype/categ_Lm.h: Likewise.
56556         * lib/unictype/categ_Lo.h: Likewise.
56557         * lib/unictype/categ_Lu.h: Likewise.
56558         * lib/unictype/categ_M.h: Likewise.
56559         * lib/unictype/categ_Mc.h: Likewise.
56560         * lib/unictype/categ_Me.h: Likewise.
56561         * lib/unictype/categ_Mn.h: Likewise.
56562         * lib/unictype/categ_N.h: Likewise.
56563         * lib/unictype/categ_Nd.h: Likewise.
56564         * lib/unictype/categ_No.h: Likewise.
56565         * lib/unictype/categ_P.h: Likewise.
56566         * lib/unictype/categ_Po.h: Likewise.
56567         * lib/unictype/categ_S.h: Likewise.
56568         * lib/unictype/categ_Sc.h: Likewise.
56569         * lib/unictype/categ_Sk.h: Likewise.
56570         * lib/unictype/categ_Sm.h: Likewise.
56571         * lib/unictype/categ_So.h: Likewise.
56572         * lib/unictype/categ_of.h: Likewise.
56573         * lib/unictype/combining.h: Likewise.
56574         * lib/unictype/ctype_alnum.h: Likewise.
56575         * lib/unictype/ctype_alpha.h: Likewise.
56576         * lib/unictype/ctype_graph.h: Likewise.
56577         * lib/unictype/ctype_lower.h: Likewise.
56578         * lib/unictype/ctype_print.h: Likewise.
56579         * lib/unictype/ctype_punct.h: Likewise.
56580         * lib/unictype/ctype_upper.h: Likewise.
56581         * lib/unictype/decdigit.h: Likewise.
56582         * lib/unictype/digit.h: Likewise.
56583         * lib/unictype/numeric.h: Likewise.
56584         * lib/unictype/pr_alphabetic.h: Likewise.
56585         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56586         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56587         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56588         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56589         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56590         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56591         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56592         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56593         * lib/unictype/pr_case_ignorable.h: Likewise.
56594         * lib/unictype/pr_cased.h: Likewise.
56595         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
56596         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
56597         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
56598         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
56599         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
56600         * lib/unictype/pr_combining.h: Likewise.
56601         * lib/unictype/pr_composite.h: Likewise.
56602         * lib/unictype/pr_currency_symbol.h: Likewise.
56603         * lib/unictype/pr_decimal_digit.h: Likewise.
56604         * lib/unictype/pr_deprecated.h: Likewise.
56605         * lib/unictype/pr_format_control.h: Likewise.
56606         * lib/unictype/pr_grapheme_base.h: Likewise.
56607         * lib/unictype/pr_grapheme_extend.h: Likewise.
56608         * lib/unictype/pr_grapheme_link.h: Likewise.
56609         * lib/unictype/pr_id_continue.h: Likewise.
56610         * lib/unictype/pr_id_start.h: Likewise.
56611         * lib/unictype/pr_ideographic.h: Likewise.
56612         * lib/unictype/pr_lowercase.h: Likewise.
56613         * lib/unictype/pr_math.h: Likewise.
56614         * lib/unictype/pr_numeric.h: Likewise.
56615         * lib/unictype/pr_other_alphabetic.h: Likewise.
56616         * lib/unictype/pr_other_id_continue.h: Likewise.
56617         * lib/unictype/pr_other_math.h: Likewise.
56618         * lib/unictype/pr_punctuation.h: Likewise.
56619         * lib/unictype/pr_sentence_terminal.h: Likewise.
56620         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56621         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56622         * lib/unictype/pr_unified_ideograph.h: Likewise.
56623         * lib/unictype/pr_uppercase.h: Likewise.
56624         * lib/unictype/pr_xid_continue.h: Likewise.
56625         * lib/unictype/pr_xid_start.h: Likewise.
56626         * lib/unictype/scripts.h: Likewise.
56627         * lib/unictype/scripts_byname.gperf: Likewise.
56628         * lib/unictype/sy_java_ident.h: Likewise.
56629         * lib/unigbrk/gbrkprop.h: Likewise.
56630         * lib/unilbrk/lbrkprop1.h: Likewise.
56631         * lib/unilbrk/lbrkprop2.h: Likewise.
56632         * lib/uninorm/decomposition-table2.h: Likewise.
56633         * lib/uniwbrk/wbrkprop.h: Likewise.
56634         * tests/unicase/test-cased.c: Likewise.
56635         * tests/unicase/test-ignorable.c: Likewise.
56636         * tests/unicase/test-uc_tolower.c: Likewise.
56637         * tests/unicase/test-uc_totitle.c: Likewise.
56638         * tests/unicase/test-uc_toupper.c: Likewise.
56639         * tests/unictype/test-categ_C.c: Likewise.
56640         * tests/unictype/test-categ_Cn.c: Likewise.
56641         * tests/unictype/test-categ_L.c: Likewise.
56642         * tests/unictype/test-categ_Ll.c: Likewise.
56643         * tests/unictype/test-categ_Lm.c: Likewise.
56644         * tests/unictype/test-categ_Lo.c: Likewise.
56645         * tests/unictype/test-categ_Lu.c: Likewise.
56646         * tests/unictype/test-categ_M.c: Likewise.
56647         * tests/unictype/test-categ_Mc.c: Likewise.
56648         * tests/unictype/test-categ_Me.c: Likewise.
56649         * tests/unictype/test-categ_Mn.c: Likewise.
56650         * tests/unictype/test-categ_N.c: Likewise.
56651         * tests/unictype/test-categ_Nd.c: Likewise.
56652         * tests/unictype/test-categ_No.c: Likewise.
56653         * tests/unictype/test-categ_P.c: Likewise.
56654         * tests/unictype/test-categ_Po.c: Likewise.
56655         * tests/unictype/test-categ_S.c: Likewise.
56656         * tests/unictype/test-categ_Sc.c: Likewise.
56657         * tests/unictype/test-categ_Sk.c: Likewise.
56658         * tests/unictype/test-categ_Sm.c: Likewise.
56659         * tests/unictype/test-categ_So.c: Likewise.
56660         * tests/unictype/test-ctype_alnum.c: Likewise.
56661         * tests/unictype/test-ctype_alpha.c: Likewise.
56662         * tests/unictype/test-ctype_graph.c: Likewise.
56663         * tests/unictype/test-ctype_lower.c: Likewise.
56664         * tests/unictype/test-ctype_print.c: Likewise.
56665         * tests/unictype/test-ctype_punct.c: Likewise.
56666         * tests/unictype/test-ctype_upper.c: Likewise.
56667         * tests/unictype/test-decdigit.h: Likewise.
56668         * tests/unictype/test-digit.h: Likewise.
56669         * tests/unictype/test-numeric.h: Likewise.
56670         * tests/unictype/test-pr_alphabetic.c: Likewise.
56671         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56672         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56673         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56674         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56675         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56676         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56677         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56678         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56679         * tests/unictype/test-pr_case_ignorable.c: Likewise.
56680         * tests/unictype/test-pr_cased.c: Likewise.
56681         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
56682         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
56683         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
56684         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
56685         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
56686         * tests/unictype/test-pr_combining.c: Likewise.
56687         * tests/unictype/test-pr_composite.c: Likewise.
56688         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56689         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56690         * tests/unictype/test-pr_deprecated.c: Likewise.
56691         * tests/unictype/test-pr_format_control.c: Likewise.
56692         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56693         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56694         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56695         * tests/unictype/test-pr_id_continue.c: Likewise.
56696         * tests/unictype/test-pr_id_start.c: Likewise.
56697         * tests/unictype/test-pr_ideographic.c: Likewise.
56698         * tests/unictype/test-pr_lowercase.c: Likewise.
56699         * tests/unictype/test-pr_math.c: Likewise.
56700         * tests/unictype/test-pr_numeric.c: Likewise.
56701         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56702         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56703         * tests/unictype/test-pr_other_math.c: Likewise.
56704         * tests/unictype/test-pr_punctuation.c: Likewise.
56705         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56706         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56707         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56708         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56709         * tests/unictype/test-pr_uppercase.c: Likewise.
56710         * tests/unictype/test-pr_xid_continue.c: Likewise.
56711         * tests/unictype/test-pr_xid_start.c: Likewise.
56712         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
56713         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
56714         changes.
56715         * lib/unictype/categ_Cc.h: Likewise.
56716         * lib/unictype/categ_Cf.h: Likewise.
56717         * lib/unictype/categ_Co.h: Likewise.
56718         * lib/unictype/categ_Cs.h: Likewise.
56719         * lib/unictype/categ_Lt.h: Likewise.
56720         * lib/unictype/categ_Nl.h: Likewise.
56721         * lib/unictype/categ_Pc.h: Likewise.
56722         * lib/unictype/categ_Pd.h: Likewise.
56723         * lib/unictype/categ_Pe.h: Likewise.
56724         * lib/unictype/categ_Pf.h: Likewise.
56725         * lib/unictype/categ_Pi.h: Likewise.
56726         * lib/unictype/categ_Ps.h: Likewise.
56727         * lib/unictype/categ_Z.h: Likewise.
56728         * lib/unictype/categ_Zl.h: Likewise.
56729         * lib/unictype/categ_Zp.h: Likewise.
56730         * lib/unictype/categ_Zs.h: Likewise.
56731         * lib/unictype/ctype_blank.h: Likewise.
56732         * lib/unictype/ctype_cntrl.h: Likewise.
56733         * lib/unictype/ctype_digit.h: Likewise.
56734         * lib/unictype/ctype_space.h: Likewise.
56735         * lib/unictype/ctype_xdigit.h: Likewise.
56736         * lib/unictype/mirror.h: Likewise.
56737         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56738         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56739         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56740         * lib/unictype/pr_bidi_control.h: Likewise.
56741         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56742         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56743         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56744         * lib/unictype/pr_bidi_pdf.h: Likewise.
56745         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56746         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56747         * lib/unictype/pr_dash.h: Likewise.
56748         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56749         * lib/unictype/pr_diacritic.h: Likewise.
56750         * lib/unictype/pr_extender.h: Likewise.
56751         * lib/unictype/pr_hex_digit.h: Likewise.
56752         * lib/unictype/pr_hyphen.h: Likewise.
56753         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56754         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56755         * lib/unictype/pr_ignorable_control.h: Likewise.
56756         * lib/unictype/pr_iso_control.h: Likewise.
56757         * lib/unictype/pr_join_control.h: Likewise.
56758         * lib/unictype/pr_left_of_pair.h: Likewise.
56759         * lib/unictype/pr_line_separator.h: Likewise.
56760         * lib/unictype/pr_logical_order_exception.h: Likewise.
56761         * lib/unictype/pr_non_break.h: Likewise.
56762         * lib/unictype/pr_not_a_character.h: Likewise.
56763         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56764         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56765         * lib/unictype/pr_other_id_start.h: Likewise.
56766         * lib/unictype/pr_other_lowercase.h: Likewise.
56767         * lib/unictype/pr_other_uppercase.h: Likewise.
56768         * lib/unictype/pr_paired_punctuation.h: Likewise.
56769         * lib/unictype/pr_paragraph_separator.h: Likewise.
56770         * lib/unictype/pr_pattern_syntax.h: Likewise.
56771         * lib/unictype/pr_pattern_white_space.h: Likewise.
56772         * lib/unictype/pr_private_use.h: Likewise.
56773         * lib/unictype/pr_quotation_mark.h: Likewise.
56774         * lib/unictype/pr_radical.h: Likewise.
56775         * lib/unictype/pr_soft_dotted.h: Likewise.
56776         * lib/unictype/pr_space.h: Likewise.
56777         * lib/unictype/pr_titlecase.h: Likewise.
56778         * lib/unictype/pr_variation_selector.h: Likewise.
56779         * lib/unictype/pr_white_space.h: Likewise.
56780         * lib/unictype/pr_zero_width.h: Likewise.
56781         * lib/unictype/sy_c_ident.h: Likewise.
56782         * lib/unictype/sy_c_whitespace.h: Likewise.
56783         * lib/unictype/sy_java_whitespace.h: Likewise.
56784         * lib/uninorm/composition-table.gperf: Likewise.
56785         * lib/uninorm/decomposition-table1.h: Likewise.
56786         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
56787         LB8.
56788         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56789         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56790         * modules/unictype/*: Bump version number of expected libunistring
56791         version.
56793 2011-01-09  Bruno Haible  <bruno@clisp.org>
56795         Update to Unicode 5.2.0.
56796         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
56797         trailing whitespace removed.
56799 2011-01-09  Bruno Haible  <bruno@clisp.org>
56801         New Unicode character properties, from Unicode 5.2.0.
56802         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
56803         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
56804         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
56805         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
56806         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
56807         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
56808         uc_is_property_cased, uc_is_property_case_ignorable,
56809         uc_is_property_changes_when_lowercased,
56810         uc_is_property_changes_when_uppercased,
56811         uc_is_property_changes_when_titlecased,
56812         uc_is_property_changes_when_casefolded,
56813         uc_is_property_changes_when_casemapped): New declarations.
56814         * lib/unictype/pr_byname.gperf: Add the new properties.
56815         * modules/unictype/property-byname (Depends-on): Depend on the new
56816         properties modules.
56817         * modules/unictype/property-all (Depends-on): Likewise.
56818         * MODULES.html.sh (Unicode string functions): Add
56819         unictype/property-case-ignorable, unictype/property-cased,
56820         unictype/property-changes-when-casefolded,
56821         unictype/property-changes-when-casemapped,
56822         unictype/property-changes-when-lowercased,
56823         unictype/property-changes-when-titlecased,
56824         unictype/property-changes-when-uppercased.
56826         New module 'unictype/property-changes-when-casemapped'.
56827         * modules/unictype/property-changes-when-casemapped: New file.
56828         * lib/unictype/pr_changes_when_casemapped.c: New file.
56829         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
56830         generated by gen-uni-tables.
56831         * modules/unictype/property-changes-when-casemapped-tests: New file.
56832         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
56833         automatically generated by gen-uni-tables.
56835         New module 'unictype/property-changes-when-casefolded'.
56836         * modules/unictype/property-changes-when-casefolded: New file.
56837         * lib/unictype/pr_changes_when_casefolded.c: New file.
56838         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
56839         generated by gen-uni-tables.
56840         * modules/unictype/property-changes-when-casefolded-tests: New file.
56841         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
56842         automatically generated by gen-uni-tables.
56844         New module 'unictype/property-changes-when-titlecased'.
56845         * modules/unictype/property-changes-when-titlecased: New file.
56846         * lib/unictype/pr_changes_when_titlecased.c: New file.
56847         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
56848         generated by gen-uni-tables.
56849         * modules/unictype/property-changes-when-titlecased-tests: New file.
56850         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
56851         automatically generated by gen-uni-tables.
56853         New module 'unictype/property-changes-when-uppercased'.
56854         * modules/unictype/property-changes-when-uppercased: New file.
56855         * lib/unictype/pr_changes_when_uppercased.c: New file.
56856         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
56857         generated by gen-uni-tables.
56858         * modules/unictype/property-changes-when-uppercased-tests: New file.
56859         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
56860         automatically generated by gen-uni-tables.
56862         New module 'unictype/property-changes-when-lowercased'.
56863         * modules/unictype/property-changes-when-lowercased: New file.
56864         * lib/unictype/pr_changes_when_lowercased.c: New file.
56865         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
56866         generated by gen-uni-tables.
56867         * modules/unictype/property-changes-when-lowercased-tests: New file.
56868         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
56869         automatically generated by gen-uni-tables.
56871         New module 'unictype/property-case-ignorable'.
56872         * modules/unictype/property-case-ignorable: New file.
56873         * lib/unictype/pr_case_ignorable.c: New file.
56874         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
56875         by gen-uni-tables.
56876         * modules/unictype/property-case-ignorable-tests: New file.
56877         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
56878         generated by gen-uni-tables.
56880         New module 'unictype/property-cased'.
56881         * modules/unictype/property-cased: New file.
56882         * lib/unictype/pr_cased.c: New file.
56883         * lib/unictype/pr_cased.h: New file, automatically generated by
56884         gen-uni-tables.
56885         * modules/unictype/property-cased-tests: New file.
56886         * tests/unictype/test-pr_cased.c: New file, automatically generated by
56887         gen-uni-tables.
56889 2011-01-09  Bruno Haible  <bruno@clisp.org>
56891         Update to Unicode 5.2.0.
56892         * lib/gen-uni-tables.c (output_predicate, output_category,
56893         output_combclass, output_bidi_category, output_decimal_digit_test,
56894         output_decimal_digit, output_digit_test, output_digit,
56895         output_numeric_test, output_numeric, output_mirror, output_scripts,
56896         output_scripts_byname, output_blocks, output_ident_category): Fix
56897         comment header.
56898         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
56899         get_wbp.
56900         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
56901         items.
56902         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
56903         Changes_When_Lowercased, Changes_When_Uppercased,
56904         Changes_When_Titlecased, Changes_When_Casefolded,
56905         Changes_When_Casemapped.
56906         (is_property_alphabetic, is_property_default_ignorable_code_point):
56907         Update for Unicode 5.2.0.
56908         (is_property_cased, is_property_case_ignorable,
56909         is_property_changes_when_lowercased,
56910         is_property_changes_when_uppercased,
56911         is_property_changes_when_titlecased,
56912         is_property_changes_when_casefolded,
56913         is_property_changes_when_casemapped): New functions.
56914         (output_properties): Output also the properties cased, case_ignorable,
56915         changes_when_lowercased, changes_when_uppercased,
56916         changes_when_titlecased, changes_when_casefolded,
56917         changes_when_casemapped.
56918         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
56919         Unicode TR#11 revision 17 -> 19.
56920         (LBP_CP): New enumeration value.
56921         (LBP_*): Adjust values accordingly.
56922         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
56923         TR#14 revision 22 -> 24.
56924         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
56925         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
56926         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
56927         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
56928         is_WBP_MIDLETTER.
56929         (output_composition_tables): Allow for 24 bits instead of 16 bits in
56930         the code1 and code2 of each composition rule.
56931         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
56932         * lib/unicase/ignorable.h: Likewise.
56933         * lib/unicase/tocasefold.h: Likewise.
56934         * lib/unicase/tolower.h: Likewise.
56935         * lib/unicase/totitle.h: Likewise.
56936         * lib/unicase/toupper.h: Likewise.
56937         * lib/unictype/bidi_of.h: Likewise.
56938         * lib/unictype/blocks.h: Likewise.
56939         * lib/unictype/categ_C.h: Likewise.
56940         * lib/unictype/categ_Cf.h: Likewise.
56941         * lib/unictype/categ_Cn.h: Likewise.
56942         * lib/unictype/categ_L.h: Likewise.
56943         * lib/unictype/categ_Ll.h: Likewise.
56944         * lib/unictype/categ_Lm.h: Likewise.
56945         * lib/unictype/categ_Lo.h: Likewise.
56946         * lib/unictype/categ_Lu.h: Likewise.
56947         * lib/unictype/categ_M.h: Likewise.
56948         * lib/unictype/categ_Mc.h: Likewise.
56949         * lib/unictype/categ_Mn.h: Likewise.
56950         * lib/unictype/categ_N.h: Likewise.
56951         * lib/unictype/categ_Nd.h: Likewise.
56952         * lib/unictype/categ_Nl.h: Likewise.
56953         * lib/unictype/categ_No.h: Likewise.
56954         * lib/unictype/categ_P.h: Likewise.
56955         * lib/unictype/categ_Pd.h: Likewise.
56956         * lib/unictype/categ_Po.h: Likewise.
56957         * lib/unictype/categ_S.h: Likewise.
56958         * lib/unictype/categ_Sc.h: Likewise.
56959         * lib/unictype/categ_So.h: Likewise.
56960         * lib/unictype/categ_of.h: Likewise.
56961         * lib/unictype/combining.h: Likewise.
56962         * lib/unictype/ctype_alnum.h: Likewise.
56963         * lib/unictype/ctype_alpha.h: Likewise.
56964         * lib/unictype/ctype_graph.h: Likewise.
56965         * lib/unictype/ctype_lower.h: Likewise.
56966         * lib/unictype/ctype_print.h: Likewise.
56967         * lib/unictype/ctype_punct.h: Likewise.
56968         * lib/unictype/ctype_upper.h: Likewise.
56969         * lib/unictype/decdigit.h: Likewise.
56970         * lib/unictype/digit.h: Likewise.
56971         * lib/unictype/numeric.h: Likewise.
56972         * lib/unictype/pr_alphabetic.h: Likewise.
56973         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56974         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56975         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56976         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56977         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56978         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56979         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56980         * lib/unictype/pr_combining.h: Likewise.
56981         * lib/unictype/pr_composite.h: Likewise.
56982         * lib/unictype/pr_currency_symbol.h: Likewise.
56983         * lib/unictype/pr_dash.h: Likewise.
56984         * lib/unictype/pr_decimal_digit.h: Likewise.
56985         * lib/unictype/pr_deprecated.h: Likewise.
56986         * lib/unictype/pr_diacritic.h: Likewise.
56987         * lib/unictype/pr_extender.h: Likewise.
56988         * lib/unictype/pr_grapheme_base.h: Likewise.
56989         * lib/unictype/pr_grapheme_extend.h: Likewise.
56990         * lib/unictype/pr_grapheme_link.h: Likewise.
56991         * lib/unictype/pr_id_continue.h: Likewise.
56992         * lib/unictype/pr_id_start.h: Likewise.
56993         * lib/unictype/pr_ideographic.h: Likewise.
56994         * lib/unictype/pr_ignorable_control.h: Likewise.
56995         * lib/unictype/pr_logical_order_exception.h: Likewise.
56996         * lib/unictype/pr_lowercase.h: Likewise.
56997         * lib/unictype/pr_numeric.h: Likewise.
56998         * lib/unictype/pr_other_alphabetic.h: Likewise.
56999         * lib/unictype/pr_punctuation.h: Likewise.
57000         * lib/unictype/pr_sentence_terminal.h: Likewise.
57001         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57002         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57003         * lib/unictype/pr_unified_ideograph.h: Likewise.
57004         * lib/unictype/pr_uppercase.h: Likewise.
57005         * lib/unictype/pr_xid_continue.h: Likewise.
57006         * lib/unictype/pr_xid_start.h: Likewise.
57007         * lib/unictype/pr_zero_width.h: Likewise.
57008         * lib/unictype/scripts.h: Likewise.
57009         * lib/unictype/scripts_byname.gperf: Likewise.
57010         * lib/unictype/sy_java_ident.h: Likewise.
57011         * lib/unigbrk/gbrkprop.h: Likewise.
57012         * lib/unilbrk/lbrkprop1.h: Likewise.
57013         * lib/unilbrk/lbrkprop2.h: Likewise.
57014         * lib/unilbrk/lbrktables.h: Likewise.
57015         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
57016         LBP_CP. Implement rule LB30.
57017         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
57018         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
57019         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
57020         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
57021         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
57022         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
57023         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
57024         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
57025         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
57026         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
57027         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
57028         bits instead of 16 bits in the code1 and code2 of each composition
57029         rule.
57030         (uc_composition): Update for Unicode 5.2.0.
57031         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
57032         * lib/uninorm/decomposition-table2.h: Likewise.
57033         * lib/uniwbrk/wbrkprop.h: Likewise.
57034         * tests/unicase/test-cased.c: Likewise.
57035         * tests/unicase/test-ignorable.c: Likewise.
57036         * tests/unicase/test-uc_tolower.c: Likewise.
57037         * tests/unicase/test-uc_totitle.c: Likewise.
57038         * tests/unicase/test-uc_toupper.c: Likewise.
57039         * tests/unictype/test-categ_C.c: Likewise.
57040         * tests/unictype/test-categ_Cf.c: Likewise.
57041         * tests/unictype/test-categ_Cn.c: Likewise.
57042         * tests/unictype/test-categ_L.c: Likewise.
57043         * tests/unictype/test-categ_Ll.c: Likewise.
57044         * tests/unictype/test-categ_Lm.c: Likewise.
57045         * tests/unictype/test-categ_Lo.c: Likewise.
57046         * tests/unictype/test-categ_Lu.c: Likewise.
57047         * tests/unictype/test-categ_M.c: Likewise.
57048         * tests/unictype/test-categ_Mc.c: Likewise.
57049         * tests/unictype/test-categ_Mn.c: Likewise.
57050         * tests/unictype/test-categ_N.c: Likewise.
57051         * tests/unictype/test-categ_Nd.c: Likewise.
57052         * tests/unictype/test-categ_Nl.c: Likewise.
57053         * tests/unictype/test-categ_No.c: Likewise.
57054         * tests/unictype/test-categ_P.c: Likewise.
57055         * tests/unictype/test-categ_Pd.c: Likewise.
57056         * tests/unictype/test-categ_Po.c: Likewise.
57057         * tests/unictype/test-categ_S.c: Likewise.
57058         * tests/unictype/test-categ_Sc.c: Likewise.
57059         * tests/unictype/test-categ_So.c: Likewise.
57060         * tests/unictype/test-ctype_alnum.c: Likewise.
57061         * tests/unictype/test-ctype_alpha.c: Likewise.
57062         * tests/unictype/test-ctype_graph.c: Likewise.
57063         * tests/unictype/test-ctype_lower.c: Likewise.
57064         * tests/unictype/test-ctype_print.c: Likewise.
57065         * tests/unictype/test-ctype_punct.c: Likewise.
57066         * tests/unictype/test-ctype_upper.c: Likewise.
57067         * tests/unictype/test-decdigit.h: Likewise.
57068         * tests/unictype/test-digit.h: Likewise.
57069         * tests/unictype/test-numeric.h: Likewise.
57070         * tests/unictype/test-pr_alphabetic.c: Likewise.
57071         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57072         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57073         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57074         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57075         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57076         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57077         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57078         * tests/unictype/test-pr_combining.c: Likewise.
57079         * tests/unictype/test-pr_composite.c: Likewise.
57080         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57081         * tests/unictype/test-pr_dash.c: Likewise.
57082         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57083         * tests/unictype/test-pr_deprecated.c: Likewise.
57084         * tests/unictype/test-pr_diacritic.c: Likewise.
57085         * tests/unictype/test-pr_extender.c: Likewise.
57086         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57087         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57088         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57089         * tests/unictype/test-pr_id_continue.c: Likewise.
57090         * tests/unictype/test-pr_id_start.c: Likewise.
57091         * tests/unictype/test-pr_ideographic.c: Likewise.
57092         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57093         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57094         * tests/unictype/test-pr_lowercase.c: Likewise.
57095         * tests/unictype/test-pr_numeric.c: Likewise.
57096         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57097         * tests/unictype/test-pr_punctuation.c: Likewise.
57098         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57099         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57100         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57101         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57102         * tests/unictype/test-pr_uppercase.c: Likewise.
57103         * tests/unictype/test-pr_xid_continue.c: Likewise.
57104         * tests/unictype/test-pr_xid_start.c: Likewise.
57105         * tests/unictype/test-pr_zero_width.c: Likewise.
57106         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57107         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
57108         changed behaviour: line breaking is now disallowed between a letter
57109         or '=' and '('.
57110         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57111         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57112         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57113         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
57114         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57115         lib/uniwidth/width.c.
57116         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
57117         without comments, but with the original copyright notice.
57118         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57119         changes.
57120         * lib/unictype/categ_Cc.h: Likewise.
57121         * lib/unictype/categ_Co.h: Likewise.
57122         * lib/unictype/categ_Cs.h: Likewise.
57123         * lib/unictype/categ_Lt.h: Likewise.
57124         * lib/unictype/categ_Me.h: Likewise.
57125         * lib/unictype/categ_Pc.h: Likewise.
57126         * lib/unictype/categ_Pe.h: Likewise.
57127         * lib/unictype/categ_Pf.h: Likewise.
57128         * lib/unictype/categ_Pi.h: Likewise.
57129         * lib/unictype/categ_Ps.h: Likewise.
57130         * lib/unictype/categ_Sk.h: Likewise.
57131         * lib/unictype/categ_Sm.h: Likewise.
57132         * lib/unictype/categ_Z.h: Likewise.
57133         * lib/unictype/categ_Zl.h: Likewise.
57134         * lib/unictype/categ_Zp.h: Likewise.
57135         * lib/unictype/categ_Zs.h: Likewise.
57136         * lib/unictype/ctype_blank.h: Likewise.
57137         * lib/unictype/ctype_cntrl.h: Likewise.
57138         * lib/unictype/ctype_digit.h: Likewise.
57139         * lib/unictype/ctype_space.h: Likewise.
57140         * lib/unictype/ctype_xdigit.h: Likewise.
57141         * lib/unictype/mirror.h: Likewise.
57142         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57143         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57144         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57145         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57146         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57147         * lib/unictype/pr_bidi_control.h: Likewise.
57148         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57149         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57150         * lib/unictype/pr_bidi_pdf.h: Likewise.
57151         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57152         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57153         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57154         * lib/unictype/pr_format_control.h: Likewise.
57155         * lib/unictype/pr_hex_digit.h: Likewise.
57156         * lib/unictype/pr_hyphen.h: Likewise.
57157         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57158         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57159         * lib/unictype/pr_iso_control.h: Likewise.
57160         * lib/unictype/pr_join_control.h: Likewise.
57161         * lib/unictype/pr_left_of_pair.h: Likewise.
57162         * lib/unictype/pr_line_separator.h: Likewise.
57163         * lib/unictype/pr_math.h: Likewise.
57164         * lib/unictype/pr_non_break.h: Likewise.
57165         * lib/unictype/pr_not_a_character.h: Likewise.
57166         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57167         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57168         * lib/unictype/pr_other_id_continue.h: Likewise.
57169         * lib/unictype/pr_other_id_start.h: Likewise.
57170         * lib/unictype/pr_other_lowercase.h: Likewise.
57171         * lib/unictype/pr_other_math.h: Likewise.
57172         * lib/unictype/pr_other_uppercase.h: Likewise.
57173         * lib/unictype/pr_paired_punctuation.h: Likewise.
57174         * lib/unictype/pr_paragraph_separator.h: Likewise.
57175         * lib/unictype/pr_pattern_syntax.h: Likewise.
57176         * lib/unictype/pr_pattern_white_space.h: Likewise.
57177         * lib/unictype/pr_private_use.h: Likewise.
57178         * lib/unictype/pr_quotation_mark.h: Likewise.
57179         * lib/unictype/pr_radical.h: Likewise.
57180         * lib/unictype/pr_soft_dotted.h: Likewise.
57181         * lib/unictype/pr_space.h: Likewise.
57182         * lib/unictype/pr_titlecase.h: Likewise.
57183         * lib/unictype/pr_variation_selector.h: Likewise.
57184         * lib/unictype/pr_white_space.h: Likewise.
57185         * lib/unictype/sy_c_ident.h: Likewise.
57186         * lib/unictype/sy_c_whitespace.h: Likewise.
57187         * lib/unictype/sy_java_whitespace.h: Likewise.
57188         * modules/uni*/*: Bump version number of expected libunistring version.
57189         Reported by Simon Josefsson.
57191 2011-01-09  Karl Heuer  <kwzh@gnu.org>
57193         useless-if-before-free: fix typo in --help and make the internal,
57194         automatic version date update process work once again.
57195         --help output contained a NUL character instead of the
57196         backslash-zero that was intended.  Also, the "must lie within
57197         the first 8 lines" line is on line 9, and hence not getting
57198         automatically updated.
57199         * build-aux/useless-if-before-free: Fix the former by adding a
57200         backslash, and the latter by condensing the three lines of what-it-does
57201         to a single line, leaving one line of slack for the future.
57203 2011-01-09  Bruno Haible  <bruno@clisp.org>
57205         uniwidth/width: Fix width of U+1D173..U+1D17A.
57206         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
57207         symbolic_width, output_width_property_test): New functions.
57208         (main): Invoke output_nonspacing_property, output_width_property_test.
57209         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
57210         U+1D173..U+1D17A.
57211         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
57212         1.
57213         * modules/uniwidth/*: Bump version number of expected libunistring
57214         version.
57215         * modules/unilbrk/*: Likewise.
57217 2011-01-08  Bruno Haible  <bruno@clisp.org>
57219         uninorm tests: Preserve copyright of Unicode data file.
57220         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
57221         Mention modifications.
57223 2011-01-08  Bruno Haible  <bruno@clisp.org>
57225         gen-uni-tables: Prepare for Unicode 5.2.0.
57226         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
57227         (debug_output_lbp, output_lbp): Update.
57229 2011-01-08  Bruno Haible  <bruno@clisp.org>
57231         unilbrk: Clarify gen-uni-tables.c code.
57232         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
57233         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
57234         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
57236 2011-01-07  Bruno Haible  <bruno@clisp.org>
57238         strtod: Restore errno when successfully parsing Infinity or NaN.
57239         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
57240         restore the original errno.
57242 2011-01-07  Bruno Haible  <bruno@clisp.org>
57244         remove test: Avoid failure on HP-UX 11.
57245         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
57247 2011-01-07  Bruno Haible  <bruno@clisp.org>
57249         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
57250         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
57251         error code.
57253 2011-01-07  Pádraig Brady  <P@draigBrady.com>
57255         ignore-value: fixup comments, and add Eric Blake
57256         as an author since he rewrote the macros.
57257         * lib/ignore-value.h (ignore_value):  State that
57258         we now support aggregates.  Also specify exactly
57259         when the GCC warn_unused_result feature was added.
57261 2011-01-06  Eric Blake  <eblake@redhat.com>
57263         ignore-value: support aggregate types
57264         * lib/ignore-value.h (ignore_value): Provide separate gcc
57265         definition.
57266         * modules/ignore-value-tests: New test module.
57267         * tests/test-ignore-value.c: New test.
57269         maint.mk: improve sc_prohibit_strcmp regex
57270         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
57271         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
57272         definition of STRNEQ.
57274         signal: work around Haiku issue with SIGBUS
57275         * lib/siglist.h: Add comment.
57276         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
57277         strsignal's favoring of SIGSEGV.
57278         * tests/test-signal.c (main): Avoid test failure.
57279         * doc/posix-headers/signal.texi (signal.h): Document the issue.
57280         Reported by Scott McCreary.
57282         maint.mk: add pre-release check to ensure submodule commits are public
57283         * top/maint.mk (public-submodule-commit): New rule.
57284         (submodule-checks): New variable.
57285         (alpha beta stable): Depend on the variable.
57287 2011-01-05  Pádraig Brady  <P@draigBrady.com>
57288         and Jim Meyering  <meyering@redhat.com>
57290         ignore-value: make ignore_value more generic; deprecate ignore_ptr
57291         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
57292         (ATTRIBUTE_DEPRECATED): Define.
57293         (_ignore_case): New function.
57294         (ignore_value): New macro, to replace the old function.
57295         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
57296         * modules/ignore-value (Depends-on): Add stdint.
57298 2011-01-04  Eric Blake  <eblake@redhat.com>
57300         doc: regenerate INSTALL
57301         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
57302         @firstparagraphindent support, now that autoconf dropped it.
57303         (INSTALL_PRELUDE): Reinstate old macro.
57304         * doc/install.texi: Resync from autoconf.
57305         * doc/INSTALL: Reflect recent autoconf update.
57306         * doc/INSTALL.ISO: Likewise.
57307         * doc/INSTALL.UTF-8: Likewise.
57308         Reported by Karl Berry.
57310 2011-01-04  Bruce Korb  <address@hidden>
57312         git-version-gen: avoid a sub-shell
57313         * build-aux/git-version-gen: Redirect stderr in `...` via
57314         "exec 2>...", rather than via an added sub-shell.
57316 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
57318         git-version-gen: use (...) rather than sh -c '...'
57319         * build-aux/git-version-gen: Rather than hard-coding a shell's name
57320         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
57322 2011-01-03  Jim Meyering  <meyering@redhat.com>
57324         git-version-gen: convert leading TABs to spaces
57325         * build-aux/git-version-gen: Expand leading TABs.
57327         git-version-gen: handle failed "git rev-list"
57328         * build-aux/git-version-gen: Rather than leaking a "fatal" error
57329         from git and proceeding as if it had succeeded but printed no SHA1
57330         checksums, suppress the diagnostic and handle the failure.
57331         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
57333         git-version-gen: include command name in one more diagnostic
57334         * build-aux/git-version-gen: When the required .tarball-version file
57335         was missing or unreadable, you might see the diagnostic from "cat",
57336         but no trace of the name of the invoking script.  Now, you still see
57337         the diagnostic from cat, but also get one from "git-version-gen: ".
57338         Inspired by a patch from Bruce Korb.
57340         update-copyright: adjust test to match changed code
57341         * tests/test-update-copyright.sh: Change test's expected output
57342         to match new actual output.
57344 2011-01-02  Bruno Haible  <bruno@clisp.org>
57346         getlogin_r: Avoid test failure on HP-UX 11.
57347         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
57348         ERANGE when the second argument is zero.
57349         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
57350         portability problem.
57352 2011-01-02  Bruce Korb  <bkorb@gnu.org>
57354         * build-aux/update-copyright: doc Simon's changes
57356 2011-01-02  Simon Josefsson  <simon@josefsson.org>
57358         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
57359         environment variable.
57361 2011-01-02  Bruno Haible  <bruno@clisp.org>
57363         unigbrk: Avoid gcc warnings.
57364         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
57365         unused variable.
57366         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
57367         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
57368         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
57369         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
57370         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
57371         Change type of first argument to 'const char *'.
57372         (main): Remove unused variable.
57373         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
57374         type of first argument to 'const char *'.
57375         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
57376         Likewise.
57377         (main): Change type of variable 's'.
57378         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
57379         to 'int'.
57381 2011-01-02  Bruno Haible  <bruno@clisp.org>
57383         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
57384         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
57385         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
57386         bug.
57387         * lib/pwrite.c: Undo 2010-12-31 patch.
57388         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
57390 2011-01-02  Bruno Haible  <bruno@clisp.org>
57392         pread: Fix test whether it works.
57393         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
57395 2011-01-02  Bruno Haible  <bruno@clisp.org>
57397         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
57398         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
57399         ends in "6". Don't require a specific month name. Try also the locale
57400         names found on HP-UX 11 and Solaris 7.
57402 2011-01-02  Bruno Haible  <bruno@clisp.org>
57404         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
57405         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
57406         C linkage.
57407         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
57409 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57411         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
57412         for consistency, since the "cluster" term is not used elsewhere.
57413         * lib/unigbrk.in.h: Update name.
57414         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
57415         * lib/unigbrk/u16-grapheme-next.c: Update name.
57416         * lib/unigbrk/u16-grapheme-prev.c: Update name.
57417         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
57418         * lib/unigbrk/u32-grapheme-next.c: Update name.
57419         * lib/unigbrk/u32-grapheme-prev.c: Update name.
57420         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
57421         * lib/unigbrk/u8-grapheme-next.c: Update name.
57422         * lib/unigbrk/u8-grapheme-prev.c: Update name.
57423         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
57424         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
57425         Suggested by Bruno Haible.
57427 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57429         Remove module 'u8-grapheme-len' as too redundant with
57430         'u8-grapheme-next'.
57431         * modules/unigbrk/u8-grapheme-len: Delete file.
57432         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
57433         * lib/unigbrk.in.h: Remove prototype for deleted function.
57434         * lib/unigbrk/u8-grapheme-len.c: Delete file.
57435         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
57437         Remove module 'u16-grapheme-len' as too redundant with
57438         'u16-grapheme-next'.
57439         * modules/unigbrk/u16-grapheme-len: Delete file.
57440         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
57441         * lib/unigbrk.in.h: Remove prototype for deleted function.
57442         * lib/unigbrk/u16-grapheme-len.c: Delete file.
57443         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
57445         Remove module 'u32-grapheme-len' as too redundant with
57446         'u32-grapheme-next'.
57447         * modules/unigbrk/u32-grapheme-len: Delete file.
57448         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
57449         * lib/unigbrk.in.h: Remove prototype for deleted function.
57450         * lib/unigbrk/u32-grapheme-len.c: Delete file.
57451         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
57453         Suggested by Bruno Haible.
57455 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
57457         * unigbrk.in.h: Fix typo: "ben" => "been".
57458         Reported by Bruno Haible.
57460 2011-01-01  Jim Meyering  <meyering@redhat.com>
57462         maint: update almost all copyright ranges to include 2011
57463         Run the new "make update-copyright" rule.
57465 2011-01-01  Jim Meyering  <meyering@redhat.com>
57467         maint: update-copyright: exempt doc/INSTALL*
57468         * Makefile (update-copyright): Also exclude doc/INSTALL*,
57469         since they are generated.  Suggested by Bruno Haible.
57471 2011-01-01  Jim Meyering  <meyering@redhat.com>
57473         maint: refine the update-copyright rule
57474         * Makefile (update-copyright): Also exclude any file that includes
57475         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
57476         code that merely generates the comment.
57478 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57480         New module 'u8-grapheme-len'.
57481         * modules/unigbrk/u8-grapheme-len: New file.
57482         * modules/unigbrk/u8-grapheme-len-tests: New file.
57483         * lib/unigbrk.in.h: Add prototype for new function.
57484         * lib/unigbrk/u8-grapheme-len.c: New file.
57485         * tests/unigbrk/test-u8-grapheme-len.c: New file.
57487         New module 'u16-grapheme-len'.
57488         * modules/unigbrk/u16-grapheme-len: New file.
57489         * modules/unigbrk/u16-grapheme-len-tests: New file.
57490         * lib/unigbrk.in.h: Add prototype for new function.
57491         * lib/unigbrk/u16-grapheme-len.c: New file.
57492         * tests/unigbrk/test-u16-grapheme-len.c: New file.
57494         New module 'u32-grapheme-len'.
57495         * modules/unigbrk/u32-grapheme-len: New file.
57496         * modules/unigbrk/u32-grapheme-len-tests: New file.
57497         * lib/unigbrk.in.h: Add prototype for new function.
57498         * lib/unigbrk/u32-grapheme-len.c: New file.
57499         * tests/unigbrk/test-u32-grapheme-len.c: New file.
57501         New module 'u8-grapheme-next'.
57502         * modules/unigbrk/u8-grapheme-next: New file.
57503         * modules/unigbrk/u8-grapheme-next-tests: New file.
57504         * lib/unigbrk.in.h: Add prototype for new function.
57505         * lib/unigbrk/u8-grapheme-next.c: New file.
57506         * tests/unigbrk/test-u8-grapheme-next.c: New file.
57508         New module 'u16-grapheme-next'.
57509         * modules/unigbrk/u16-grapheme-next: New file.
57510         * modules/unigbrk/u16-grapheme-next-tests: New file.
57511         * lib/unigbrk.in.h: Add prototype for new function.
57512         * lib/unigbrk/u16-grapheme-next.c: New file.
57513         * tests/unigbrk/test-u16-grapheme-next.c: New file.
57515         New module 'u32-grapheme-next'.
57516         * modules/unigbrk/u32-grapheme-next: New file.
57517         * modules/unigbrk/u32-grapheme-next-tests: New file.
57518         * lib/unigbrk.in.h: Add prototype for new function.
57519         * lib/unigbrk/u32-grapheme-next.c: New file.
57520         * tests/unigbrk/test-u32-grapheme-next.c: New file.
57522         New module 'u8-grapheme-prev'.
57523         * modules/unigbrk/u8-grapheme-prev: New file.
57524         * modules/unigbrk/u8-grapheme-prev-tests: New file.
57525         * lib/unigbrk.in.h: Add prototype for new function.
57526         * lib/unigbrk/u8-grapheme-prev.c: New file.
57527         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
57529         New module 'u16-grapheme-prev'.
57530         * modules/unigbrk/u16-grapheme-prev: New file.
57531         * modules/unigbrk/u16-grapheme-prev-tests: New file.
57532         * lib/unigbrk.in.h: Add prototype for new function.
57533         * lib/unigbrk/u16-grapheme-prev.c: New file.
57534         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
57536         New module 'u32-grapheme-prev'.
57537         * modules/unigbrk/u32-grapheme-prev: New file.
57538         * modules/unigbrk/u32-grapheme-prev-tests: New file.
57539         * lib/unigbrk.in.h: Add prototype for new function.
57540         * lib/unigbrk/u32-grapheme-prev.c: New file.
57541         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
57543         New module 'u8-grapheme-breaks'.
57544         * modules/unigbrk/u8-grapheme-breaks: New file.
57545         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
57546         * lib/unigbrk.in.h: Add prototype for new function.
57547         * lib/unigbrk/u8-grapheme-breaks.c: New file.
57548         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
57550         New module 'u16-grapheme-breaks'.
57551         * modules/unigbrk/u16-grapheme-breaks: New file.
57552         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
57553         * lib/unigbrk.in.h: Add prototype for new function.
57554         * lib/unigbrk/u16-grapheme-breaks.c: New file.
57555         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
57557         New module 'u32-grapheme-breaks'.
57558         * modules/unigbrk/u32-grapheme-breaks: New file.
57559         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
57560         * lib/unigbrk.in.h: Add prototype for new function.
57561         * lib/unigbrk/u32-grapheme-breaks.c: New file.
57562         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
57564         New module 'ulc-grapheme-breaks'.
57565         * modules/unigbrk/ulc-grapheme-breaks: New file.
57566         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
57567         * m4/locale-ar.m4: New file.
57568         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
57569         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
57570         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
57572 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
57574         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
57575         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
57576         modified how this file was generated before I initially submitted
57577         the module, but failed to regenerate it.  This meant that several
57578         of the level2 entries were wrong.
57579         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
57580         Remove the division-by-2 that is folded into the table now that
57581         gbrkprop.h has been regenerated properly.  Now -1 entries are
57582         handled correctly.
57584         New module 'unigbrk/uc-gbrk-prop-tests'.
57585         * modules/unigbrk/uc-gbrk-prop-tests: New file.
57586         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
57587         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
57588         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
57590 2011-01-01  Bruno Haible  <bruno@clisp.org>
57592         Avoid use of hexadecimal escapes.
57593         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
57594         instead of hexadecimal escapes.
57596 2011-01-01  Jim Meyering  <meyering@redhat.com>
57598         maint: new rule to update copyright year ranges
57599         * Makefile (update-copyright): New rule.
57601         maint: indent with TABs in Makefile
57602         * Makefile: Expand leading sequences of spaces to TABs
57604         version-etc: update the copyright year it reports
57605         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
57607 2010-12-31  Bruno Haible  <bruno@clisp.org>
57609         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
57610         * lib/isfinite.c (zerof, zerod, zerol): New variables.
57611         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
57612         zero.
57614 2010-12-31  Bruno Haible  <bruno@clisp.org>
57616         pwrite: Work around HP-UX 11.11 bug.
57617         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
57618         works and set REPLACE_PWRITE if not.
57619         * lib/pwrite.c (pwrite): Add an implementation that uses the system
57620         function.
57621         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
57623 2010-12-31  Bruno Haible  <bruno@clisp.org>
57625         pread: Work around HP-UX 11 bugs.
57626         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
57627         and set REPLACE_PREAD if not.
57628         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
57630 2010-12-31  Eric Blake  <eblake@redhat.com>
57632         nl_langinfo: fix YESEXPR on Irix 6.5
57633         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
57634         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
57635         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
57636         it.
57638 2010-12-31  Bruno Haible  <bruno@clisp.org>
57640         iconv: Document HP-UX 11 bug.
57641         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
57643 2010-12-31  Bruno Haible  <bruno@clisp.org>
57645         ldexpl: Fix link error on HP-UX 11.
57646         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
57647         LDEXPL_LIBM, using $ISNANL_LIBM.
57649 2010-12-31  Eric Blake  <eblake@redhat.com>
57651         ftello: avoid compilation failure with SunStudio c89
57652         * lib/ftello.c (ftello): Use lseek, not llseek.
57654         tests: avoid failing coreutils tests on cygwin
57655         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
57656         (create_exe_shims_): Return 0 when skipping.
57658 2010-12-31  Bruno Haible  <bruno@clisp.org>
57660         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
57661         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
57663 2010-12-31  Bruno Haible  <bruno@clisp.org>
57665         waitpid: Fix link error in C++ mode.
57666         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
57668 2010-12-31  Bruno Haible  <bruno@clisp.org>
57670         isnan: Use GCC built-ins when possible.
57671         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
57672         __builtin_isnan.
57673         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
57674         (isnan): Define using GCC built-ins for GCC >= 4.0.
57676 2010-12-31  Bruno Haible  <bruno@clisp.org>
57678         isnand: Fix mistake.
57679         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
57680         __builtin_isnand.
57682 2010-12-31  Bruno Haible  <bruno@clisp.org>
57684         open: Avoid C++ error on HP-UX 11.
57685         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
57687 2010-12-31  Bruno Haible  <bruno@clisp.org>
57689         time_r: Add missing declarations on HP-UX 11.
57690         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
57691         instead of HAVE_LOCALTIME_R.
57692         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
57693         HAVE_LOCALTIME_R always.
57694         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
57695         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
57696         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
57697         HAVE_LOCALTIME_R.
57698         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
57699         * doc/posix-functions/localtime_r.texi: Likewise.
57701 2010-12-29  Eric Blake  <eblake@redhat.com>
57703         mountlist: tweak previous commit
57704         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
57705         Reported by Paul Eggert.
57707         mountlist: fix local drive detection on cygwin
57708         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
57709         that works for cygwin.
57711 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57713         ftoastr, snprintf: ftoastr + snprintf module
57714         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
57715         since the snprintf module now should be good enough here.
57716         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
57717         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
57718         and gl_MODULE_INDICATOR([snprintf]), but the former enables
57719         GNULIB_SNPRINTF only for the test directory, and the latter
57720         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
57721         seems to suffice by itself.
57723 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57725         alloca: one step towards thread-safety
57726         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
57727         need for a static variable.  All callers changed.  This does not
57728         make the alloca replacement thread-safe, but it's one step.
57730         tests: minor indenting change
57731         * tests/init.sh: Sync from coreutils housekeeping patch
57732         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
57733         to keep lines within 80 columns.
57735 2010-12-28  Jim Meyering  <meyering@redhat.com>
57737         regex: don't infloop on persistent failing calloc
57738         * lib/regexec.c (build_trtable): Return failure indication upon
57739         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
57740         In glibc, this was fixed for version 2.13:
57741         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
57743 2010-12-28  Bruno Haible  <bruno@clisp.org>
57744             Paul Eggert <eggert@cs.ucla.edu>
57746         linkat: Make implementation robust against system behaviour variations.
57747         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
57748         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
57749         way, and to -2 if it needs a generic runtime test.
57750         * lib/linkat.c (solaris_optimized_link_immediate,
57751         solaris_optimized_link_follow): New functions.
57752         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
57753         (check_same_link): Use it.
57755 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
57757         New module 'unigbrk/base'.
57758         * modules/unigbrk/base: New file.
57759         * lib/unigbrk.in.h: New file.
57761         New module 'unigbrk/uc-gbrk-prop'.
57762         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
57763         * modules/unigbrk/uc-gbrk-prop: New file.
57764         * lib/unigbrk/gbrkprop.h: New file.
57765         * lib/unigbrk/uc-gbrk-prop.c: New file.
57767         New module 'unigbrk/uc-is-grapheme-break'.
57768         * modules/unigbrk/uc-is-grapheme-break: New file.
57769         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
57770         * lib/unigbrk/uc-is-grapheme-break.c: New file.
57771         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
57772         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
57773         * tests/unigbrk/GraphemeBreakTest.txt: New file.
57775         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
57777 2010-12-27  Bruno Haible  <bruno@clisp.org>
57779         linkat test: Avoid failure on Solaris 11 2010-11.
57780         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
57782 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57784         utimens: work around glibc rounding bug on more platforms
57785         * lib/utimens.c (fdutimens): Work around rounding bug even if
57786         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
57787         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
57789 2010-12-27  Bruno Haible  <bruno@clisp.org>
57791         select tests: Improve comments.
57792         * tests/test-select.c (do_select): Add comments.
57794 2010-12-27  Bruno Haible  <bruno@clisp.org>
57796         select tests: Safer way of handling timeout.
57797         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
57798         at every invocation.
57800 2010-12-27  Bruno Haible  <bruno@clisp.org>
57802         select tests: Use 'bool' where appropriate.
57803         * tests/test-select.c (connect_to_socket): Change argument type to
57804         'bool'.
57806 2010-12-27  Bruno Haible  <bruno@clisp.org>
57808         select tests: Use existing modules.
57809         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
57810         (configure.ac): Don't test for unistd.h.
57811         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
57812         declared in <unistd.h>.
57814 2010-12-27  Bruno Haible  <bruno@clisp.org>
57816         mbrtowc: Work around a Solaris 7 bug.
57817         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
57818         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
57819         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
57820         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
57821         MBRTOWC_NULL_ARG1_BUG.
57822         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
57823         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
57824         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
57825         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
57827 2010-12-27  Jim Meyering  <meyering@redhat.com>
57829         read-file.c: tweak syntax
57830         * lib/read-file.c (fread_file): Remove space after "*" in function
57831         definitions.
57833 2010-12-27  Bruno Haible  <bruno@clisp.org>
57835         times test: Avoid gcc warnings on OSF/1.
57836         * tests/test-times.c (main): Cast printf arguments from clock_t to
57837         'long int'.
57839 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
57841         utimens: work around glibc rounding bug on older Linux kernels
57842         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
57843         on Linux with a glibc whose utimes might not work, then work
57844         around a longstanding glibc bug involving rounding rather than
57845         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
57846         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57848 2010-12-26  Bruno Haible  <bruno@clisp.org>
57850         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
57851         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
57852         _GL_CXXALIAS_SYS.
57853         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57855 2010-12-26  Bruno Haible  <bruno@clisp.org>
57857         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
57858         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
57859         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
57860         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
57861         looking for the declaration.
57862         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
57863         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
57864         problem.
57865         * doc/posix-functions/inet_pton.texi: Likewise.
57867 2010-12-26  Bruno Haible  <bruno@clisp.org>
57869         arpa_inet: Use the common idioms with C++ support.
57870         * lib/arpa_inet.in.h: Include c++defs.h.
57871         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
57872         support.
57873         * modules/arpa_inet (Depends-on): Add c++defs.
57874         (Makefile.am): Substitute the contents of c++defs.h.
57875         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
57876         * modules/arpa_inet-c++-tests: New file.
57877         * tests/test-arpa_inet-c++.cc: New file.
57879 2010-12-25  Bruno Haible  <bruno@clisp.org>
57881         Fix more C++ link errors on Solaris 8.
57882         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
57883         $(LIB_EACCESS).
57884         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
57885         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
57886         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
57887         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
57888         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
57890 2010-12-25  Bruno Haible  <bruno@clisp.org>
57892         printf-posix: Fix link error when a non-GCC compiler is used.
57893         * lib/stdio.in.h (printf): When not using GCC, override printf
57894         correctly.
57895         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
57897 2010-12-25  Bruno Haible  <bruno@clisp.org>
57899         strerror_r-posix: Update doc.
57900         * doc/posix-functions/strerror_r.texi: Update doc about the return
57901         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
57903 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57905         utimens: simplify the logic of the previous change
57906         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
57907         This should not affect whether the test succeeds or fails.
57909         utimens: configure better on hosts with NFS clock skew
57910         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
57911         uses the clock of the local host.  It might use the clock of the
57912         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
57913         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
57915 2010-12-25  Bruno Haible  <bruno@clisp.org>
57917         ptsname test: Avoid failure on Solaris.
57918         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
57919         open a pseudo-terminal; don't use BSD-style ptys.
57920         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
57922 2010-12-25  Bruno Haible  <bruno@clisp.org>
57924         ptsname: Avoid ERANGE failure on some systems.
57925         * lib/ptsname.c (buffer): Increase size.
57927 2010-12-25  Bruno Haible  <bruno@clisp.org>
57929         rename, renameat: Avoid test failures at NFS mounted locations.
57930         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
57931         so that subsequent mkdir calls succeed.
57933 2010-12-25  Bruno Haible  <bruno@clisp.org>
57935         iswblank: Fix C++ link error on Solaris 8.
57936         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
57937         _GL_FUNCDECL_SYS.
57939 2010-12-25  Bruno Haible  <bruno@clisp.org>
57941         unistd: Fix C++ link error on Solaris 8.
57942         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
57944 2010-12-25  Bruno Haible  <bruno@clisp.org>
57946         readlink doc: Mention an old glibc bug.
57947         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
57949 2010-12-25  Bruno Haible  <bruno@clisp.org>
57951         fcntl-h: Fix for use of C++ on glibc systems.
57952         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
57953         also on glibc systems in C++ mode.
57954         Reported by Gary V. Vaughan <gary@gnu.org>.
57956 2010-12-25  Bruno Haible  <bruno@clisp.org>
57958         roundl-ieee: Make it work on OSF/1 5.1 with cc.
57959         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
57961 2010-12-25  Bruno Haible  <bruno@clisp.org>
57963         truncl-ieee: Make it work on OSF/1 5.1 with cc.
57964         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
57965         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
57966         test whether truncl works according to ISO C 99 with IEC 60559.
57967         * m4/truncl-ieee.m4: New file.
57968         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
57969         m4/signbit.m4.
57970         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
57972 2010-12-25  Bruno Haible  <bruno@clisp.org>
57974         ceill-ieee: Make it work on OSF/1 5.1 with cc.
57975         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
57976         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
57977         test whether ceill works according to ISO C 99 with IEC 60559.
57978         * m4/ceill-ieee.m4: New file.
57979         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
57980         m4/signbit.m4.
57981         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
57983 2010-12-25  Bruno Haible  <bruno@clisp.org>
57985         Ensure all prerequisites of <wchar.h> are included.
57986         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
57987         before <wchar.h>.
57988         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
57989         gl_MBRLEN_NUL_RETVAL): Likewise.
57990         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
57991         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
57992         AC_FUNC_MBRTOWC): Likewise.
57993         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
57994         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57995         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
57996         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
57997         Likewise.
57998         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
57999         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
58000         (gl_WCHAR_H): Improve comments.
58001         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
58003 2010-12-25  Bruno Haible  <bruno@clisp.org>
58005         strtok_r: Fix C syntax error in autoconf macro.
58006         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
58007         characters in test program.
58009 2010-12-24  Bruno Haible  <bruno@clisp.org>
58011         ceil, trunc, round: Fix gcc warnings.
58012         * lib/ceil.c (MIN): Undefine before redefining.
58013         * lib/trunc.c (MIN): Likewise.
58014         * lib/round.c (MIN): Likewise.
58015         Include <math.h> first.
58017 2010-12-24  Bruno Haible  <bruno@clisp.org>
58019         select tests: Avoid failures on OSF/1 5.1.
58020         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
58021         failure of closing the last socket; it may fail with ECONNRESET.
58023 2010-12-24  Eric Blake  <eblake@redhat.com>
58025         stdint: avoid HP-UX 10.20 preprocessor bug
58026         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
58027         than #if.
58028         * tests/test-floor2.c (main): Likewise.
58029         Reported by Peter O'Gorman.
58031         pipe: make obsoletion transition easier
58032         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
58033         * modules/pipe (Files): Include revived file.
58034         (Include): Drop reference, to mirror getdate's behavior.
58036 2010-12-24  Bruno Haible  <bruno@clisp.org>
58038         sys_socket: Hide mismatch of declarations on NonStop Kernel.
58039         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
58040         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
58041         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58043 2010-12-24  Bruno Haible  <bruno@clisp.org>
58045         gethostname: Ensure declaration on NonStop Kernel.
58046         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
58047         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58049 2010-12-24  Bruno Haible  <bruno@clisp.org>
58051         sys_select: Ensure all necessary types on NonStop Kernel.
58052         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
58053         include <sys/time.h>.
58054         * doc/posix-headers/sys_select.texi: Mention that it's missing on
58055         NonStop Kernel.
58056         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58058 2010-12-24  Bruno Haible  <bruno@clisp.org>
58060         sys_select: Remove unneeded include.
58061         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
58062         have <sys/select.h>.
58064 2010-12-24  Bruno Haible  <bruno@clisp.org>
58066         gethostname: Provide a fallback for HOST_NAME_MAX.
58067         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
58068         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
58069         instead.
58070         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58072 2010-12-24  Bruno Haible  <bruno@clisp.org>
58074         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
58075         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
58076         (SA_RESTART): Likewise.
58077         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58079 2010-12-24  Bruno Haible  <bruno@clisp.org>
58081         signal: Define NSIG.
58082         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
58083         * tests/test-signal.c (nsig): New variable.
58084         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58086 2010-12-24  Bruno Haible  <bruno@clisp.org>
58088         rename, renameat: Avoid test failures on OSF/1 5.1.
58089         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
58090         alternative error codes.
58091         * tests/test-renameat.c (main): Likewise.
58093 2010-12-24  Bruno Haible  <bruno@clisp.org>
58095         *printf: Detect large precisions bug on Solaris 10/SPARC.
58096         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
58097         by Paul Eggert.
58098         * tests/test-snprintf-posix.h (test_function): Add this test code here
58099         too.
58100         * tests/test-sprintf-posix.h (test_function): Likewise.
58101         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58102         * tests/test-vasprintf-posix.c (test_function): Likewise.
58103         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
58104         around by gnulib.
58105         * doc/posix-functions/printf.texi: Likewise.
58106         * doc/posix-functions/snprintf.texi: Likewise.
58107         * doc/posix-functions/sprintf.texi: Likewise.
58108         * doc/posix-functions/vfprintf.texi: Likewise.
58109         * doc/posix-functions/vprintf.texi: Likewise.
58110         * doc/posix-functions/vsnprintf.texi: Likewise.
58111         * doc/posix-functions/vsprintf.texi: Likewise.
58112         * doc/posix-functions/dprintf.texi: Undo last commit.
58113         * doc/posix-functions/vdprintf.texi: Likewise.
58115 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58117         tests: port test-fdutimensat.c to Solaris 8
58118         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
58119         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
58120         On Solaris 8, it fails with errno == ENOSYS, because there is no
58121         futimens (so it can't use the fd), and there is no lutimens (so it
58122         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
58124         vsnprintf: make more consistent with snprintf; doc fixes
58126         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
58127         the byte count return problem was promoted from the snprintf-posix
58128         to the snprintf module.
58129         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
58130         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
58131         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
58132         * tests/test-snprintf.c (main): Check the byte count returned.
58133         * tests/test-vsnprintf.c (main): Likewise.
58135 2010-12-23  Eric Blake  <eblake@redhat.com>
58137         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
58138         * modules/sigpipe (License): Relax license.
58140 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58142         doc: document Solaris printf bug with large float precisions
58143         * doc/posix-functions/dprintf.texi (dprintf):
58144         * doc/posix-functions/fprintf.texi (fprintf):
58145         * doc/posix-functions/printf.texi (printf):
58146         * doc/posix-functions/snprintf.texi (snprintf):
58147         * doc/posix-functions/sprintf.texi (sprintf):
58148         * doc/posix-functions/vdprintf.texi (vdprintf):
58149         * doc/posix-functions/vfprintf.texi (vfprintf):
58150         * doc/posix-functions/vprintf.texi (vprintf):
58151         * doc/posix-functions/vsnprintf.texi (vsnprintf):
58152         * doc/posix-functions/vsprintf.texi (vsprintf):
58153         Mention that these functions mishandle large floating point
58154         precisions on Solaris 10.  The same bug is also present in Solaris
58155         8, and I assume earlier.  This causes "cd gnulib-tests; make
58156         check" to fail on Solaris 8 (and I assume, later) when building
58157         the latest coreutils, in test-vasprintf-posix's call to
58158         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
58159         the wide flavors (e.g., wprintf) so this patch just updates the
58160         documentation for the narrow ones.
58162         test-posixtm.c: add two tests
58163         * tests/test-posixtm.c: Add two tests, to highlight the
58164         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
58165         around this bug; this is merely to document it.
58167 2010-12-22  Bruno Haible  <bruno@clisp.org>
58169         getlogin_r: Work around portability problem on OSF/1.
58170         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
58171         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
58172         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
58173         test for a truncated result.
58174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
58175         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
58176         * modules/getlogin_r (Depends-on): Add memchr.
58177         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
58179 2010-12-22  Bruno Haible  <bruno@clisp.org>
58181         ptsname: Avoid test failure on OSF/1 5.1.
58182         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
58183         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
58184         (same_slave): New function.
58185         (main): Use it to compare ptsname's result with the expected file name.
58187 2010-12-22  Bruno Haible  <bruno@clisp.org>
58189         Port extended stdio modules to HP NonStop Kernel.
58190         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
58191         macros.
58192         * lib/fbufmode.c: Update comments.
58193         * lib/fflush.c: Likewise.
58194         * lib/fpurge.c: Likewise.
58195         * lib/freadable.c: Likewise.
58196         * lib/freadahead.c: Likewise.
58197         * lib/freading.c: Likewise.
58198         * lib/freadptr.c: Likewise.
58199         * lib/freadseek.c: Likewise.
58200         * lib/fseeko.c: Likewise.
58201         * lib/fseterr.c: Likewise.
58202         * lib/fwritable.c: Likewise.
58203         * lib/fwriting.c: Likewise.
58204         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58206 2010-12-22  Bruno Haible  <bruno@clisp.org>
58208         ttyname_r: Work around bug on OSF/1 5.1.
58209         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
58210         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
58211         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
58212         present.
58213         * lib/ttyname_r.c (ttyname_r): Update comments.
58215 2010-12-22  Bruno Haible  <bruno@clisp.org>
58217         round: Implement result sign according to IEEE 754.
58218         * lib/round.c (MIN, MINUS_ZERO): New macros.
58219         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
58220         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
58221         * tests/test-round-ieee.c (main): Likewise.
58222         * tests/test-roundl-ieee.c (main): Likewise.
58224         trunc: Implement result sign according to IEEE 754.
58225         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
58226         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
58227         * tests/test-trunc2.c: Include minus-zero.h.
58228         (MINUS_ZERO): New macro.
58229         (trunc_reference): Keep in sync with lib/trunc.c.
58230         * tests/test-truncf2.c: Include minus-zero.h.
58231         (MINUS_ZERO): New macro.
58232         (truncf_reference): Keep in sync with lib/trunc.c.
58233         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
58234         * tests/test-trunc-ieee.c (main): Likewise.
58235         * tests/test-truncl-ieee.c (main): Likewise.
58237         ceil: Implement result sign according to IEEE 754.
58238         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
58239         (FUNC): Return -0.0 for -1 < x < 0.
58240         * tests/test-ceil2.c: Include minus-zero.h.
58241         (MINUS_ZERO): New macro.
58242         (ceil_reference): Keep in sync with lib/ceil.c.
58243         * tests/test-ceilf2.c: Include minus-zero.h.
58244         (MINUS_ZERO): New macro.
58245         (ceilf_reference): Keep in sync with lib/ceil.c.
58246         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
58247         * tests/test-ceil-ieee.c (main): Likewise.
58248         * tests/test-ceill-ieee.c (main): Likewise.
58250         floor: Implement result sign according to IEEE 754.
58251         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
58252         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
58253         * tests/test-floorf2.c (floorf_reference): Likewise.
58254         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
58255         * tests/test-floor-ieee.c (main): Likewise.
58256         * tests/test-floorl-ieee.c (main): Likewise.
58258 2010-12-22  Bruno Haible  <bruno@clisp.org>
58260         getaddrinfo: Update doc.
58261         * doc/posix-functions/gai_strerror.texi: Return type is also different
58262         on AIX and HP-UX.
58264 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58266         getaddrinfo, inet_ntop: Update doc for Solaris.
58267         * doc/posix-functions/gai_strerror.texi: Return type is also an
58268         issue on Solaris 9 and earlier.
58269         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
58270         on Solaris 10 and earlier.
58272 2010-12-21  Bruno Haible  <bruno@clisp.org>
58274         New module 'roundl-ieee'.
58275         * modules/roundl-ieee: New file.
58276         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
58277         test whether roundl works according to ISO C 99 with IEC 60559.
58278         * m4/roundl-ieee.m4: New file.
58279         * modules/roundl-ieee-tests: New file.
58280         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
58281         * tests/test-roundl.c (main): Remove signbit tests.
58282         * modules/roundl-tests (Depends-on): Remove signbit.
58283         * doc/posix-functions/roundl.texi: Mention the new module.
58285 2010-12-21  Bruno Haible  <bruno@clisp.org>
58287         New module 'truncl-ieee'.
58288         * modules/truncl-ieee: New file.
58289         * modules/truncl-ieee-tests: New file.
58290         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
58291         * tests/test-truncl.c (main): Remove signbit tests.
58292         * modules/truncl-tests (Depends-on): Remove signbit.
58293         * doc/posix-functions/truncl.texi: Mention the new module.
58295 2010-12-21  Bruno Haible  <bruno@clisp.org>
58297         New module 'ceill-ieee'.
58298         * modules/ceill-ieee: New file.
58299         * modules/ceill-ieee-tests: New file.
58300         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
58301         * tests/test-ceill.c (main): Remove signbit tests.
58302         * modules/ceill-tests (Depends-on): Remove signbit.
58303         * doc/posix-functions/ceill.texi: Mention the new module.
58305 2010-12-21  Bruno Haible  <bruno@clisp.org>
58307         New module 'floorl-ieee'.
58308         * modules/floorl-ieee: New file.
58309         * modules/floorl-ieee-tests: New file.
58310         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
58311         * tests/test-floorl.c (main): Remove signbit tests.
58312         * modules/floorl-tests (Depends-on): Remove signbit.
58313         * doc/posix-functions/floorl.texi: Mention the new module.
58315 2010-12-21  Bruno Haible  <bruno@clisp.org>
58317         New module 'round-ieee'.
58318         * modules/round-ieee: New file.
58319         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
58320         whether round works according to ISO C 99 with IEC 60559.
58321         * m4/round-ieee.m4: New file.
58322         * modules/round-ieee-tests: New file.
58323         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
58324         * tests/test-round1.c (main): Remove signbit tests.
58325         * modules/round-tests (Depends-on): Remove 'signbit'.
58326         * doc/posix-functions/round.texi: Mention the new module.
58328 2010-12-21  Bruno Haible  <bruno@clisp.org>
58330         New module 'trunc-ieee'.
58331         * modules/trunc-ieee: New file.
58332         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
58333         whether trunc works according to ISO C 99 with IEC 60559.
58334         * m4/trunc-ieee.m4: New file.
58335         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
58336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
58337         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
58338         * modules/trunc-ieee-tests: New file.
58339         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
58340         * tests/test-trunc1.c (main): Remove signbit tests.
58341         * modules/trunc-tests (Depends-on): Remove 'signbit'.
58342         * doc/posix-functions/trunc.texi: Mention the new module.
58344 2010-12-21  Bruno Haible  <bruno@clisp.org>
58346         New module 'ceil-ieee'.
58347         * modules/ceil-ieee: New file.
58348         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
58349         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
58350         ISO C 99 with IEC 60559.
58351         * m4/ceil-ieee.m4: New file.
58352         * modules/ceil (Files): Add lib/ceil.c.
58353         (Depends-on): Add 'float'.
58354         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58355         * lib/math.in.h (ceil): New declaration.
58356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
58357         REPLACE_CEIL.
58358         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
58359         * modules/ceil-ieee-tests: New file.
58360         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
58361         * tests/test-math-c++.cc: Check the signature of 'ceil'.
58362         * doc/posix-functions/ceil.texi: Mention the new module.
58364 2010-12-21  Bruno Haible  <bruno@clisp.org>
58366         New module 'floor-ieee'.
58367         * modules/floor-ieee: New file.
58368         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
58369         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
58370         ISO C 99 with IEC 60559.
58371         * m4/floor-ieee.m4: New file.
58372         * modules/floor (Files): Add lib/floor.c.
58373         (Depends-on): Add 'float'.
58374         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
58375         * lib/math.in.h (floor): New declaration.
58376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
58377         REPLACE_FLOOR.
58378         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
58379         * modules/floor-ieee-tests: New file.
58380         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
58381         * tests/test-math-c++.cc: Check the signature of 'floor'.
58382         * doc/posix-functions/floor.texi: Mention the new module.
58384 2010-12-21  Bruno Haible  <bruno@clisp.org>
58386         New module 'roundf-ieee'.
58387         * modules/roundf-ieee: New file.
58388         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
58389         test whether roundf works according to ISO C 99 with IEC 60559.
58390         * m4/roundf-ieee.m4: New file.
58391         * modules/roundf-ieee-tests: New file.
58392         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
58393         * tests/test-roundf1.c (main): Remove signbit tests.
58394         * modules/roundf-tests (Depends-on): Remove 'signbit'.
58395         * doc/posix-functions/roundf.texi: Mention the new module.
58397 2010-12-21  Bruno Haible  <bruno@clisp.org>
58399         New module 'truncf-ieee'.
58400         * modules/truncf-ieee: New file.
58401         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
58402         test whether truncf works according to ISO C 99 with IEC 60559.
58403         * m4/truncf-ieee.m4: New file.
58404         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
58405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
58406         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
58407         * modules/truncf-ieee-tests: New file.
58408         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
58409         * tests/test-truncf1.c (main): Remove signbit tests.
58410         * modules/truncf-tests (Depends-on): Remove 'signbit'.
58411         * doc/posix-functions/truncf.texi: Mention the new module.
58413 2010-12-21  Bruno Haible  <bruno@clisp.org>
58415         New module 'ceilf-ieee'.
58416         * modules/ceilf-ieee: New file.
58417         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
58418         test whether ceilf works according to ISO C 99 with IEC 60559.
58419         * m4/ceilf-ieee.m4: New file.
58420         * modules/ceilf-ieee-tests: New file.
58421         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
58422         * tests/test-ceilf1.c (main): Remove signbit tests.
58423         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
58424         * doc/posix-functions/ceilf.texi: Mention the new module.
58426 2010-12-21  Bruno Haible  <bruno@clisp.org>
58428         New module 'floorf-ieee'.
58429         * modules/floorf-ieee: New file.
58430         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
58431         test whether floorf works according to ISO C 99 with IEC 60559.
58432         * m4/floorf-ieee.m4: New file.
58433         * modules/floorf-ieee-tests: New file.
58434         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
58435         * tests/test-floorf1.c (main): Remove signbit tests.
58436         * modules/floorf-tests (Depends-on): Remove 'signbit'.
58437         * doc/posix-functions/floorf.texi: Mention the new module.
58439 2010-12-21  Bruno Haible  <bruno@clisp.org>
58441         Support for minus zero in autoconf macros.
58442         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
58443         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
58444         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
58445         * tests/minus-zero.h: Update comments.
58447 2010-12-21  Bruno Haible  <bruno@clisp.org>
58449         Tests for module 'ceil'.
58450         * modules/ceil-tests: New file.
58451         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
58452         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
58454 2010-12-21  Bruno Haible  <bruno@clisp.org>
58456         Tests for module 'floor'.
58457         * modules/floor-tests: New file.
58458         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
58459         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
58461 2010-12-21  Bruno Haible  <bruno@clisp.org>
58463         math: Fix indentation.
58464         * lib/math.in.h (floorf): Fix indentation.
58466 2010-12-21  Bruno Haible  <bruno@clisp.org>
58468         Fix cross-compilation guesses on Solaris.
58469         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
58470         not match "solaris2.10".
58471         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58472         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
58473         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
58475 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58477         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
58478         This fixes a problem observed with the latest coreutils snapshot
58479         that caused a test to fail on Solaris 8.  src/csplit.c's call
58480         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
58481         earlier, instead of returning the number of bytes that would have
58482         been generated; this causes csplit to incorrectly report memory
58483         exhaustion.
58484         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
58485         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
58486         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
58487         comments to match.
58488         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
58489         Fix typo in matching older versions of Solaris: "solaris2.10"
58490         is matched by the shell pattern "solaris2.[0-9]*".  This matters
58491         only for guessing while cross-compiling.
58492         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
58494 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
58496         ftoastr: fix comment again
58497         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58498         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
58499         Also, simplify example a bit by using flags = 0.
58501 2010-12-20  Bruno Haible  <bruno@clisp.org>
58503         round*, trunc*: Update documentation regarding glibc.
58504         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
58505         * doc/posix-functions/round.texi: Likewise.
58506         * doc/posix-functions/roundl.texi: Likewise.
58507         * doc/posix-functions/truncf.texi: Likewise.
58508         * doc/posix-functions/trunc.texi: Likewise.
58509         * doc/posix-functions/truncl.texi: Likewise.
58511 2010-12-20  Bruno Haible  <bruno@clisp.org>
58513         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
58514         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
58515         * doc/posix-functions/round.texi: Likewise.
58516         * doc/posix-functions/roundl.texi: Likewise.
58518 2010-12-20  Bruno Haible  <bruno@clisp.org>
58520         ttyname_r: Add missing declaration on HP-UX 11.
58521         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
58522         HAVE_TTYNAME_R.
58523         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
58524         declared. Set HAVE_TTYNAME_R always.
58525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58526         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
58527         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
58528         HAVE_TTYNAME_R.
58529         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
58531 2010-12-20  Bruno Haible  <bruno@clisp.org>
58533         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
58534         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
58535         * doc/posix-functions/getlogin_r.texi: Likewise.
58536         * tests/test-getlogin.c: Include <errno.h>.
58537         (main): Avoid test failure on HP-UX 11.11.
58538         * tests/test-getlogin_r.c (main): Likewise.
58540 2010-12-20  Bruno Haible  <bruno@clisp.org>
58542         getlogin_r: Add missing declaration on HP-UX 11.
58543         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
58544         declared also when it exists as a function.
58545         * doc/posix-functions/getlogin_r.texi: Document this workaround.
58547 2010-12-20  Bruno Haible  <bruno@clisp.org>
58549         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
58550         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
58551         through wcrtomb.
58553 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58555         ftoastr: fix comment
58556         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
58557         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
58559 2010-12-19  Bruno Haible  <bruno@clisp.org>
58561         isnan: Ensure it is a macro.
58562         * lib/math.in.h (isnan): Define as a macro if not already a macro.
58563         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
58564         Solaris.
58566 2010-12-19  Bruno Haible  <bruno@clisp.org>
58568         ldexpl test: Fix link error on OSF/1 5.1.
58569         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
58571 2010-12-19  Bruno Haible  <bruno@clisp.org>
58573         wctype: Make it work in C++ mode on OSF/1 5.1.
58574         * lib/wctype.in.h (iswblank): Declare but not define here.
58575         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
58576         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
58577         * modules/wctype (Files): Add lib/iswblank.c.
58579 2010-12-19  Bruno Haible  <bruno@clisp.org>
58581         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
58582         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
58583         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
58585 2010-12-19  Bruno Haible  <bruno@clisp.org>
58587         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
58588         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
58589         _POSIX_PII_SOCKET.
58590         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
58591         * doc/posix-functions/recvfrom.texi: Likewise.
58592         * doc/posix-functions/send.texi: Likewise.
58593         * doc/posix-functions/sendto.texi: Likewise.
58595 2010-12-19  Bruno Haible  <bruno@clisp.org>
58597         tcgetsid: Add missing declaration on OSF/1 5.1.
58598         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
58599         HAVE_TCGETSID.
58600         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
58601         Don't set HAVE_TCGETSID.
58602         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
58603         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
58604         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
58605         HAVE_TCGETSID.
58606         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
58608 2010-12-19  Bruno Haible  <bruno@clisp.org>
58610         stdio: Fix problem with popen() declaration on OSF/1 5.1.
58611         * lib/stdio.in.h: During the include_next statement, let recursive
58612         includes of this file include only the system header file.
58614 2010-12-19  Bruno Haible  <bruno@clisp.org>
58616         iconv_open: Fix regression from 2010-12-04.
58617         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
58618         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
58620 2010-12-19  Bruno Haible  <bruno@clisp.org>
58622         stdbool test: Avoid a gcc warning.
58623         * tests/test-stdbool.c (main): Fail if e1 is false.
58624         Reported by Jim Meyering.
58626 2010-12-19  Jim Meyering  <meyering@redhat.com>
58628         setenv: restore to working order
58629         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
58630         mistakenly removed.
58631         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
58632         HAVE_SETENV.
58633         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
58634         HAVE_SETENV.
58636 2010-12-19  Bruno Haible  <bruno@clisp.org>
58638         Document some different function declarations on OSF/1 5.1.
58639         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
58640         * doc/posix-functions/inet_ntop.texi: Likewise.
58641         * doc/posix-functions/gethostname.texi: Likewise.
58642         * lib/unistd.in.h (gethostname): Update comment.
58644 2010-12-19  Bruno Haible  <bruno@clisp.org>
58646         doc: Mention vasprintf-posix module.
58647         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
58648         the 'vasprintf-posix' module.
58649         * doc/glibc-functions/vasprintf.texi: Likewise.
58651 2010-12-19  Bruno Haible  <bruno@clisp.org>
58653         unsetenv: Add missing declaration on OSF/1 5.1.
58654         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
58655         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
58656         Don't set HAVE_UNSETENV. In the test program, set _BSD.
58657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
58658         not HAVE_UNSETENV.
58659         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
58660         HAVE_UNSETENV.
58661         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
58663 2010-12-19  Bruno Haible  <bruno@clisp.org>
58665         setenv: Add missing declaration on OSF/1 5.1.
58666         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
58667         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
58668         declared. Don't set HAVE_SETENV.
58669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
58670         not HAVE_SETENV.
58671         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
58672         HAVE_SETENV.
58673         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
58675 2010-12-19  Bruno Haible  <bruno@clisp.org>
58677         nl_langinfo tests: Avoid gcc warning.
58678         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
58680 2010-12-19  Bruno Haible  <bruno@clisp.org>
58682         mknod: Avoid error in C++ mode on OSF/1 with GCC.
58683         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
58684         _GL_CXXALIAS_SYS.
58686 2010-12-19  Bruno Haible  <bruno@clisp.org>
58688         stdbool: Relax test.
58689         * tests/test-stdbool.c (e): Don't require that casts from a variable's
58690         address to 'bool' work in static initializer, for compilers other than
58691         GCC.
58693 2010-12-19  Bruno Haible  <bruno@clisp.org>
58695         ftello: Add missing declaration on OSF/1 5.1.
58696         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
58697         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
58698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
58699         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
58700         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
58702 2010-12-19  Bruno Haible  <bruno@clisp.org>
58704         fseeko: Add missing declaration on OSF/1 5.1.
58705         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
58706         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
58707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
58708         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
58709         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
58711 2010-12-19  Bruno Haible  <bruno@clisp.org>
58713         fchdir: Add missing declaration on OSF/1 5.1.
58714         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
58715         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
58716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
58717         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
58718         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
58720 2010-12-19  Bruno Haible  <bruno@clisp.org>
58722         relocatable-prog-wrapper: Separate from relocatable-prog.
58723         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
58724         uninstall-relocwrapper rule here.
58725         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
58726         Reported by Ian Beckwith <ianb@erislabs.net>.
58728 2010-12-19  Bruno Haible  <bruno@clisp.org>
58730         unistr/u8-mbsnlen: Add missing dependency.
58731         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
58732         Reported by Ian Beckwith <ianb@erislabs.net>.
58734 2010-12-19  Bruno Haible  <bruno@clisp.org>
58736         iconv: Make it possible again to use this module without 'iconv-h'.
58737         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
58738         if it is not defined.
58739         Reported by Ian Beckwith <ianb@erislabs.net>.
58741 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58743         acl: port to Solaris 8 when copying from tmpfs to ufs
58744         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
58745         error number.  Problem observed on Solaris 8 with latest
58746         coreutils, with "mv A B", where A is on a tmpfs file system and B
58747         is on a ufs file system.  This caused coreutils' mv/part-symlink
58748         test to fail.
58750         tests: set fail=0 at start
58751         * tests/init.sh (setup_): Move fail=0 initialization here ...
58752         (mktempd_): ... from here, so that tests can rely on fail being
58753         set to 0 initially.  This fixes a problem in coreutils; see:
58754         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
58756 2010-12-18  Bruno Haible  <bruno@clisp.org>
58758         memmem-simple: Stylistic changes.
58759         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
58760         Fix preprocessor directive indentation.
58762 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58764         memmem, memmem-simple: reorganize and expand empty needle check
58765         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
58766         functional checks to memmem-simple so that one has a fully functional
58767         memmem by using just this module.
58768         Restrict the performance only check to the memmem module.
58769         Also expand the empty needle check to ensure the correct
58770         pointer is returned, not just a non NULL pointer.
58771         * doc/glibc-functions/memmem.texi: Rearrange the portability
58772         documentation to correlate with the rearranged checks.
58773         Clarify exactly how the memmem and memmem-simple modules
58774         relate to each other.
58776 2010-12-15  Pádraig Brady  <P@draigBrady.com>
58777             Bruno Haible  <bruno@clisp.org>
58779         Improve cross-compilation guesses for uClibc.
58780         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
58781         that uClibc does not have the glibc bug.
58782         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
58783         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
58785 2010-12-14  Eric Blake  <eblake@redhat.com>
58787         configmake: provide fallbacks for oldest supported autotools
58788         * m4/configmake.m4: New file.
58789         * modules/configmake (Files): Ship it.
58790         (configure.ac): Use it to guarantee fallbacks.
58792 2010-12-13  Pádraig Brady  <P@draigBrady.com>
58794         read-file: Improve handling of large files
58795         * lib/read-file.c (fread_file): Minimize realloc()s
58796         for regular files, and better manage sizes around SIZE_MAX.
58798 2010-12-13  Eric Blake  <eblake@redhat.com>
58800         cloexec, fcntl: relax license
58801         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
58802         consent from all contributors.
58803         * modules/fcntl (License): Likewise.
58805 2010-12-10  Bruno Haible  <bruno@clisp.org>
58807         Tests for module 'pipe-posix'.
58808         * modules/pipe-posix-tests: New file.
58809         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
58811 2010-12-10  Bruno Haible  <bruno@clisp.org>
58813         pipe-posix: Make it work in C++ mode.
58814         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
58815         (pipe): Use common idiom, not a macro definition.
58816         * lib/pipe.c: New file.
58817         * m4/pipe.m4: New file.
58818         * modules/pipe-posix (Description): Enhance.
58819         (Files): Add lib/pipe.c, m4/pipe.m4.
58820         (configure.ac): Invoke gl_FUNC_PIPE.
58821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
58822         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
58823         * tests/test-unistd-c++.cc: Check the signature of pipe.
58825 2010-12-10  Bruno Haible  <bruno@clisp.org>
58827         Rename module 'pipe' to 'spawn-pipe'.
58828         * modules/spawn-pipe: New file, renamed from modules/pipe.
58829         (Files, configure.ac, Makefile.am): Update.
58830         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
58831         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
58832         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
58833         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
58834         "spawn-pipe.h" instead of "pipe.h".
58835         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
58836         to gl_SPAWN_PIPE.
58837         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
58838         (Files, Makefile.am): Update.
58839         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
58840         Update.
58841         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
58842         Include "spawn-pipe.h" instead of "pipe.h".
58843         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
58844         * lib/javacomp.c: Likewise.
58845         * lib/javaversion.c: Likewise.
58846         * lib/pipe-filter-gi.c: Likewise.
58847         * lib/pipe-filter-ii.c: Likewise.
58848         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
58849         * modules/javacomp (Depends-on): Likewise.
58850         * modules/javaversion (Depends-on): Likewise.
58851         * modules/pipe-filter-gi (Depends-on): Likewise.
58852         * modules/pipe-filter-ii (Depends-on): Likewise.
58853         * MODULES.html.sh (Executing programs): Update.
58854         * NEWS: Mention the change.
58856 2010-12-10  Eric Blake  <eblake@redhat.com>
58858         pipe-posix: new module
58859         * modules/pipe-posix: New file.
58860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
58861         (gl_UNISTD_H): Check for declaration.
58862         * modules/unistd (Makefile.am): Substitute it.
58863         * lib/unistd.in.h (pipe): Provide it for mingw.
58864         * doc/posix-functions/pipe.texi (pipe): Update documentation.
58865         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
58867 2010-12-07  Bruno Haible  <bruno@clisp.org>
58869         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
58870         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
58871         u8_strcmp_gnu.
58872         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
58874 2010-12-06  Bruno Haible  <bruno@clisp.org>
58876         Update internal documentation.
58877         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
58879 2010-12-04  Bruno Haible  <bruno@clisp.org>
58881         Put more information about failed tests into the test return codes.
58882         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
58883         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
58884         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
58885         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
58886         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
58887         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58888         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58889         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
58890         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
58891         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58892         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
58893         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58894         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
58895         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58896         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
58897         returns a bit mask.
58898         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
58899         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
58900         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
58901         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
58902         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
58903         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
58904         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
58905         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58906         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
58907         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
58908         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
58909         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
58910         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
58911         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
58912         * m4/link.m4 (gl_FUNC_LINK): Likewise.
58913         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
58914         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
58915         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
58916         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
58917         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
58918         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58919         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
58920         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
58921         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
58922         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
58923         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
58924         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
58925         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
58926         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
58927         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
58928         gl_PRINTF_PRECISION): Likewise.
58929         * m4/regex.m4 (gl_REGEX): Likewise.
58930         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
58931         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58932         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
58933         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58934         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58935         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58936         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
58937         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
58938         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58939         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
58940         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
58941         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
58942         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
58943         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
58944         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58945         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58946         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
58947         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
58948         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58949         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
58950         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
58951         enumerated value.
58952         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
58954 2010-12-04  Bruno Haible  <bruno@clisp.org>
58956         Update for Solaris 11 2010-11.
58957         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
58958         Express, released in November 2010.
58960 2010-12-04  Bruno Haible  <bruno@clisp.org>
58962         nproc: Relax license.
58963         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
58964         and Paul Eggert.
58965         Requested by Ludovic Courtès <ludo@gnu.org>.
58967 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
58969         utimecmp: fine-grained src to nearby coarse-grained dest
58971         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
58972         and the source is on a file system with higher-resolution time
58973         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
58974         not work, and the time stamps are close together, the algorithm to
58975         determine the exact resolution from the read-back mtime was buggy:
58976         it had a "!=" where it should have had an "==".  This bug has been
58977         in the code ever since it was introduced to gnulib.
58978         Problem reported by Dan Jacobson in
58979         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
58981 2010-11-30  Bruno Haible  <bruno@clisp.org>
58983         strerror_r-posix: Fix autoconf test.
58984         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
58986 2010-11-28  Bruno Haible  <bruno@clisp.org>
58987             Paul Eggert  <eggert@cs.ucla.edu>
58989         Tests for module 'getdomainname'.
58990         * modules/getdomainname-tests: New file.
58991         * tests/test-getdomainname.c: New file, based on
58992         tests/test-gethostname.c.
58994 2010-11-28  Bruno Haible  <bruno@clisp.org>
58995             Paul Eggert  <eggert@cs.ucla.edu>
58997         getdomainname: Use the system function when possible.
58998         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
58999         (getdomainname): Replace if needed. Provide the declaration if it is
59000         missing. Don't use _GL_CXXALIAS_SYS_CAST.
59001         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
59002         (getdomainname): When the system has getdomainname, call the system
59003         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
59004         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
59005         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
59006         found in libnsl. Look for the declaration also in <netdb.h>. Replace
59007         the function if its second argument is of type 'int' or if it is found
59008         in libnsl.
59009         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
59010         <sys/systeminfo.h> and sysinfo().
59011         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
59012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59013         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
59014         HAVE_GETDOMAINNAME.
59015         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
59016         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
59017         * doc/glibc-functions/getdomainname.texi: Document the problems with
59018         the getdomainname declaration.
59020 2010-11-28  Bruno Haible  <bruno@clisp.org>
59022         sys_socket: Ensure ss_family field on AIX.
59023         * lib/sys_socket.in.h (ss_family): New macro definition.
59024         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
59025         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
59026         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
59027         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59028         * modules/sys_socket (Makefile.am): Substitute
59029         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
59030         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
59032 2010-11-27  Bruno Haible  <bruno@clisp.org>
59034         readline: Improve configure output.
59035         * m4/readline.m4 (gl_FUNC_READLINE): Make the
59036         "checking for readline..." result understandable.
59038 2010-11-27  Bruno Haible  <bruno@clisp.org>
59040         *printf-posix: Detect a bug on Solaris 10/x86.
59041         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
59042         for floating-point output.
59043         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
59044         directive.
59045         * tests/test-snprintf-posix.h (test_function): Likewise.
59046         * tests/test-sprintf-posix.h (test_function): Likewise.
59047         * tests/test-vasprintf-posix.c (test_function): Likewise.
59048         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
59049         * doc/posix-functions/printf.texi: Likewise.
59050         * doc/posix-functions/snprintf.texi: Likewise.
59051         * doc/posix-functions/sprintf.texi: Likewise.
59052         * doc/posix-functions/vfprintf.texi: Likewise.
59053         * doc/posix-functions/vprintf.texi: Likewise.
59054         * doc/posix-functions/vsnprintf.texi: Likewise.
59055         * doc/posix-functions/vsprintf.texi: Likewise.
59056         * doc/glibc-functions/obstack_printf.texi: Likewise.
59057         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
59059 2010-11-27  Bruno Haible  <bruno@clisp.org>
59061         Fix link error when module libunistring-optional is in use.
59062         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
59063         * modules/striconveha-tests (Makefile.am): Likewise.
59065 2010-11-27  Bruno Haible  <bruno@clisp.org>
59067         regex: Mention link dependencies.
59068         * modules/regex (Link): New section.
59069         * modules/rpmatch (Link): Likewise.
59070         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
59072 2010-11-27  Bruno Haible  <bruno@clisp.org>
59074         ftoastr: Fix compilation error on Solaris.
59075         * lib/ftoastr.c: Include <config.h>.
59077 2010-11-27  Bruno Haible  <bruno@clisp.org>
59079         getloadavg: Update documentation.
59080         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
59082 2010-11-27  Bruno Haible  <bruno@clisp.org>
59084         sys_socket: Fix test whether the functions are declared.
59085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
59086         not <sys/select.h>.
59088 2010-11-27  Bruno Haible  <bruno@clisp.org>
59090         getpass: Make sure to get system declaration on some platforms.
59091         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
59092         gl_USE_SYSTEM_EXTENSIONS.
59093         * modules/getpass (Depends-on): Add extensions.
59095 2010-11-26  Bruno Haible  <bruno@clisp.org>
59097         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
59098         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
59099         'iconv' module is present.
59100         (ICONV_CONST): New macro.
59101         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
59102         ICONV_CONST.
59103         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
59104         set ICONV_CONST.
59105         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
59106         here.
59107         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
59108         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
59109         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
59110         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
59111         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
59112         present.
59114 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59116         ftoastr: comment fix
59117         * lib/ftoastr.c: "little" -> "little or no" in comment
59119 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
59121         stdint: port to GCC 4.3 + OSX + Octave
59122         On this platform, stdint.h is buggy and defines int64_t to long
59123         long int.  The replacement defined it to long int, causing
59124         problems with C++ style name mangling.  Instead, trust the system
59125         definition if INT64_MAX is defined, and likewise for the unsigned
59126         variant.   Problem reported by Jarno Rajahalme in
59127         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
59128         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
59129         and don't mess with int64_t and INT64_MAX in this case.
59130         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
59132 2010-11-24  Bruno Haible  <bruno@clisp.org>
59134         doc: Corrections regarding MacOS X 10.4 and 10.5.
59135         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
59136         MacOS X.
59137         Reported by Simon Josefsson.
59139 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
59141         Uninstall ".bin" files installed by relocwrapper.
59142         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
59143         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
59144         unless it is already there.
59146 2010-11-21  Bruno Haible  <bruno@clisp.org>
59148         Update for NetBSD 5.0.
59149         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59150         NetBSD; the test fails on NetBSD 5.0.
59151         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59152         about NetBSD.
59154 2010-11-21  Bruno Haible  <bruno@clisp.org>
59156         Update for HP-UX 11.23 and HP-UX 11.31.
59157         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
59158         HP-UX.
59160 2010-11-21  Bruno Haible  <bruno@clisp.org>
59162         Update for MacOS X 10.5.
59163         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
59164         MacOS X; the test fails on MacOS X 10.5.8.
59165         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
59166         about MacOS X.
59168 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
59170         bootstrap: add bootstrap_sync option.
59171         See discussion at
59172         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
59173         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
59174         * build-aux/bootstrap: Accept --bootstrap-sync to update
59175         bootstrap if it is not identical to the local gnulib's
59176         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
59177         enable this by default.  Accept --no-bootstrap-sync to disable
59178         it.
59180 2010-11-20  Bruno Haible  <bruno@clisp.org>
59182         Ensure that <features.h> is included before __GLIBC__ is tested.
59183         * lib/printf-parse.h: Include <features.h>.
59184         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
59185         Reported by Mike Frysinger <vapier@gentoo.org>.
59187         Ensure that <features.h> is included before __GLIBC__ is tested.
59188         * lib/wchar.in.h: Include <features.h>.
59189         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
59190         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
59191         Reported by Mike Frysinger <vapier@gentoo.org>.
59193         Ensure that <features.h> is included before __GLIBC__ is tested.
59194         * lib/arpa_inet.in.h: Include <features.h>.
59195         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
59196         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
59197         Reported by Mike Frysinger <vapier@gentoo.org>.
59199         Ensure that <features.h> is included before __GLIBC__ is tested.
59200         * build-aux/link-warning.h: Include <features.h>.
59201         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
59202         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
59203         Reported by Mike Frysinger <vapier@gentoo.org>.
59205         Ensure that <features.h> is included before __GLIBC__ is tested.
59206         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
59207         Reported by Mike Frysinger <vapier@gentoo.org>.
59209 2010-11-20  Bruno Haible  <bruno@clisp.org>
59211         memmem: Fix autoconf test.
59212         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
59214 2010-11-20  Bruno Haible  <bruno@clisp.org>
59216         Port to uClibc.
59217         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
59218         * lib/fcntl.in.h: Likewise.
59219         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
59220         * lib/mbrtowc.c (mbrtowc): Likewise.
59221         * lib/relocatable.c (find_shared_library_fullname): Likewise.
59222         * lib/strerror_r.c: Likewise.
59223         * lib/unistr/u8-strnlen.c: Likewise.
59224         * lib/vasnprintf.c (decimal_point_char): Likewise.
59225         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
59226         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
59227         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
59228         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
59229         * tests/test-sigaction.c (handler, main): Likewise.
59230         * lib/freading.h: Treat uClibc like a non-glibc platform.
59231         * lib/freading.c: Likewise.
59232         * lib/gettext.h: Likewise.
59233         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
59234         Likewise.
59235         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
59236         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59237         * lib/propername.c (proper_name_utf8): Likewise.
59238         * lib/spawn.in.h: Likewise.
59239         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
59240         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
59241         mem_cd_iconveh_internal): Likewise.
59242         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
59243         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
59244         strstr, strcasestr): Likewise.
59245         * lib/unicodeio.c (unicode_to_mb): Likewise.
59246         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
59247         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
59248         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
59249         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
59250         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
59251         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
59252         * lib/unistr/u8-stpncpy.c: Likewise.
59253         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59254         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
59255         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59256         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59257         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
59258         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
59259         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
59260         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
59261         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
59262         Likewise.
59263         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
59264         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59265         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
59266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59267         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59268         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59269         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59270         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59271         * tests/test-getopt.h (OPTIND_MIN): Likewise.
59272         * tests/test-striconveha.c (main): Likewise.
59273         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59274         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
59275         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
59276         * doc/posix-functions/getline.texi: Likewise.
59277         Reported by Mike Frysinger <vapier@gentoo.org>.
59279 2010-11-20  Bruno Haible  <bruno@clisp.org>
59281         nproc: Fix condition.
59282         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
59283         HAVE_PTHREAD_AFFINITY_NP.
59285 2010-11-20  Bruno Haible  <bruno@clisp.org>
59287         Fix a comment.
59288         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
59290 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
59292         ftoastr: don't assume snprintf
59293         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
59294         Implement a subset of snprintf here, by using sprintf safely.
59295         * modules/ftoastr (Depends-on): Remove snprintf.
59297 2010-11-19  Jim Meyering  <meyering@redhat.com>
59299         test-rename.h: fix compilation failure
59300         * tests/test-rename.h (test_rename): Add omitted "}".
59302 2010-11-17  Jim Meyering  <meyering@redhat.com>
59304         maint.mk: add a URL discussing the no-@acronym policy
59305         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
59307 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
59309         ftoastr: depend on snprintf, improve comments
59310         * lib/ftoastr.c: Also mention Loitsch's draft.
59311         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
59312         needed in the current implementation, but it might simplify
59313         speeding up the code later.
59314         * modules/ftoastr: Depend on snprintf; this improves portability.
59315         Suggested by Bruno Haible in the same email.
59317         ftoastr: port to hosts lacking strtof and strtold
59318         Problem reported by Bruno Haible in
59319         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
59320         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
59321         environment and strtold (and presumably strtof) are not available.
59322         * modules/ftoastr (Files): Add m4/c-strtod.m4.
59323         (configure.ac): Require gl_C99_STRTOLD.
59325 2010-11-18  Bruno Haible  <bruno@clisp.org>
59327         c-strtold: Avoid link error on AIX 7.
59328         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
59329         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
59330         (gl_C_STRTOLD): Test whether strtold_l exists.
59331         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59333 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59335         intprops: new macro INT_BITS_STRLEN_BOUND
59336         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
59337         ftoastr.h.  This exposes an internal of intprops.h that was formerly
59338         not exposed.  Also, it uses a slightly tighter bound than before;
59339         though this makes no practical difference, we might as well be as
59340         tight as we easily can.
59342         ftoastr: new module, for lossless conversion of floats to short strings
59343         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
59344         * modules/ftoastr: New files.
59346 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59348         bootstrap: port to Solaris sed
59349         * build-aux/bootstrap (get_version): Port to Solaris sed.
59350         See Ralf Wildenhues's note in
59351         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
59353 2010-11-14  Jim Meyering  <meyering@redhat.com>
59355         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
59356         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
59357         and move definition closer to sole use.
59359 2010-11-13  Jim Meyering  <meyering@redhat.com>
59361         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
59362         Now we require at least autoconf-2.59, which means the work-around
59363         is no longer needed.
59364         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
59365         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
59366         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59367         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59368         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59370 2010-11-13  Bruno Haible  <bruno@clisp.org>
59372         rename, renameat: Avoid test failures at NFS mounted locations.
59373         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
59374         functions.
59375         (test_rename): Use assert_nonexistent.
59376         * tests/test-rename.c: Include <dirent.h>.
59377         * tests/test-renameat.c: Likewise.
59378         Reported by Gary V. Vaughan <gary@gnu.org>.
59380         rename, renameat: Document Linux bug with NFS
59381         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
59382         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
59383         * doc/posix-functions/renameat.texi: Likewise.
59384         Suggested by Eric Blake.
59386 2010-11-13  Bruno Haible  <bruno@clisp.org>
59388         rename test: Add comments.
59389         * tests/test-rename.h (test_rename): Add structure and comments.
59391 2010-11-13  Eric Blake  <eblake@redhat.com>
59393         maintainer-makefile: cover a few more files
59394         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
59395         scripts generated within C files, for libvirt.
59397 2010-11-13  Bruno Haible  <bruno@clisp.org>
59399         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
59400         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
59401         character, return the number of bytes that belong together, not always
59402         1.
59403         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
59404         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
59405         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
59406         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
59407         number of bytes of an invalid character.
59408         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
59409         (main): Invoke it.
59410         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
59411         results.
59412         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
59413         malformed byte sequences.
59414         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
59415         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
59416         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
59417         Reported by Ben Pfaff and Paolo Bonzini.
59419 2010-11-13  Bruno Haible  <bruno@clisp.org>
59421         openat: Work around glibc bug with fchownat() and empty file names.
59422         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
59423         (gl_FUNC_FCHOWNAT): Invoke it.
59424         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
59425         * doc/posix-functions/fchownat.texi: Document the glibc bug.
59426         Reported by Gary V. Vaughan <gary@gnu.org>.
59428 2010-11-13  Bruno Haible  <bruno@clisp.org>
59430         openat: Ensure autoconf macro ordering.
59431         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
59432         gl_USE_SYSTEM_EXTENSIONS.
59433         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
59435 2010-11-13  Bruno Haible  <bruno@clisp.org>
59437         Update comments.
59438         * lib/unistr/u8-check.c: Update file name in comments.
59439         * lib/unistr/u8-mblen.c: Likewise.
59440         * lib/unistr/u8-prev.c: Likewise.
59441         * lib/unistr/u8-strmblen.c: Likewise.
59442         * lib/unistr/u8-strmbtouc.c: Likewise.
59444 2010-11-13  Jim Meyering  <meyering@redhat.com>
59446         tests: avoid test failure on Solaris 10 due to lack of PATH export
59447         * tests/test-update-copyright.sh: Don't forget to export PATH.
59449         init.sh: ensure that IFS is defined, just in case...
59450         * tests/init.sh (setup_): Ensure that IFS is defined,
59451         so that saving and restoring it works as expected.  This
59452         appears to be useful at least for an old version of dash
59453         from a long time ago (RH 6).  See here for details:
59454         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
59456         maint.mk: tighten "test a == b" check
59457         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
59458         test to files that contain something like #!/bin/sh.
59459         Without this, coreutils would get two false positives in
59460         the comments of C source files.
59462 2010-11-12  Eric Blake  <eblake@redhat.com>
59464         bootstrap: fix typo in previous attempt
59465         * build-aux/bootstrap (buildreq): Correct the grouping.
59466         Reported by Paul Eggert.
59468         maintainer-makefile: prohibit test x == x
59469         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
59470         Based on a report by Matthias Bolte.
59472         bootstrap: allow FreeBSD gzip
59473         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
59474         which has no '.' and goes to stderr.
59475         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
59476         Reported by Matthias Bolte.
59478         maintainer-makefile: check for i18n setup
59479         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
59480         will likely work.
59482 2010-11-12  Bruno Haible  <bruno@clisp.org>
59484         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
59485         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
59486         * lib/nanosleep.c (nanosleep): Likewise.
59488 2010-11-11  Bruno Haible  <bruno@clisp.org>
59490         fcntl-h: Fix for use of C++ on glibc systems.
59491         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
59492         also on glibc systems in C++ mode.
59493         Reported by Gary V. Vaughan <gary@gnu.org>.
59495 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59497         mknod: avoid false failure with dash
59498         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
59500 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59502         unlink: Fix "is it should" typo in diagnostic.
59503         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
59504         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
59506 2010-11-11  Bruno Haible  <bruno@clisp.org>
59508         Tests for module 'strerror_r-posix'.
59509         * modules/strerror_r-posix-tests: New file.
59510         * tests/test-strerror_r.c: New file.
59511         * tests/test-string-c++.cc: Check the signature of strerror_r.
59513         New module 'strerror_r-posix'.
59514         * lib/string.in.h (strerror_r): New declaration.
59515         * lib/strerror_r.c: New file.
59516         * m4/strerror_r.m4: New file.
59517         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
59518         of strerror_r.
59519         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
59520         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59521         * modules/strerror_r-posix: New file.
59522         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
59523         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
59524         * doc/posix-functions/strerror_r.texi: Mention the new module and the
59525         portability problems.
59527 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
59529         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
59530         line is also considered for output. Quoted function name in shell
59531         command, so temporary files for functions like MyClass::operator()
59532         are removed correctly without errors.
59534 2010-11-09  Bruno Haible  <bruno@clisp.org>
59536         * doc/posix-functions/strerror.texi: List more failing platforms.
59538         * doc/posix-functions/strerror.texi: Add a comment.
59540 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
59542         fdopendir: fix bug on MacOS X when low on file descriptors
59544         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
59545         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
59546         All callers changed.
59547         (fdopendir): Invoke save_cwd at the top level, not after using
59548         multiple dup() calls to use up file descriptors.  Then retry
59549         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
59550         less than the maximum number of open file descriptors, because
59551         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
59552         on Mac OS X 10.6.4 for tar 1.24
59553         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
59554         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
59555         and for tar 1.25
59556         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
59558 2010-11-07  Bruno Haible  <bruno@clisp.org>
59560         vasnprintf: Support I flag on glibc systems.
59561         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
59562         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
59563         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
59564         snprintf function.
59565         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
59566         glibc systems.
59567         * tests/test-vasnprintf-posix3.c: New file.
59568         * modules/vasnprintf-posix-tests (Files): Add it.
59569         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
59571 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59573         [html] Fix copy/paste bug: Use unique name for compiler warnings.
59574         * MODULES.html.sh: For compiler warnings, use name
59575         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
59577 2010-11-05  Eric Blake  <eblake@redhat.com>
59579         ceil, floor: avoid spurious failure with icc
59580         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
59581         [denormals-as-zero] when optimizing without -mieee-fp option.
59582         * tests/test-floorf2.c (floorf_reference): Likewise.
59583         * tests/test-ceilf1.c (dummy): New function.
59584         (main): Use it to outsmart icc's optimization.
59585         * tests/test-floorf1.c (dummy, main): Likewise.
59587         tests: require working signbit
59588         * modules/ceilf-tests (Depends-on): Add signbit.
59589         * modules/ceill-tests (Depends-on): Likewise.
59590         * modules/floorf-tests (Depends-on): Likewise.
59591         * modules/floorl-tests (Depends-on): Likewise.
59592         * modules/round-tests (Depends-on): Likewise.
59593         * modules/roundf-tests (Depends-on): Likewise.
59594         * modules/roundl-tests (Depends-on): Likewise.
59595         * modules/trunc-tests (Depends-on): Likewise.
59596         * modules/truncf-tests (Depends-on): Likewise.
59597         * modules/truncl-tests (Depends-on): Likewise.
59599         strtod: work around icc bug
59600         * lib/strtod.c (minus_zero): Define to working value.
59601         (strtod): Use it to avoid icc bug.
59603         copysign: enhance tests
59604         * modules/copysign-tests (Files): Add minus-zero.h.
59605         * tests/test-copysign.c (main): Also test zeros.
59607 2010-11-04  Eric Blake  <eblake@redhat.com>
59609         ceil, floor, round, trunc: enhance tests of -0
59610         * tests/test-ceilf1.c (main): Ensure correct sign of result.
59611         * tests/test-ceill.c (main): Likewise.
59612         * tests/test-floorf1.c (main): Likewise.
59613         * tests/test-floorl.c (main): Likewise.
59614         * tests/test-round1.c (main): Likewise.
59615         * tests/test-roundf1.c (main): Likewise.
59616         * tests/test-roundl.c (main): Likewise.
59617         * tests/test-trunc1.c (main): Likewise.
59618         * tests/test-truncf1.c (main): Likewise.
59619         * tests/test-truncl.c (main): Likewise.
59621 2010-11-04  Eric Blake  <eblake@redhat.com>
59623         frexp, tests: work around ICC bug with -zero
59624         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
59625         works with more compilers.
59626         * tests/minus-zero.h: New file.
59627         * modules/ceilf-tests (Files): Include it.
59628         * modules/ceill-tests (Files): Likewise.
59629         * modules/floorf-tests (Files): Likewise.
59630         * modules/floorl-tests (Files): Likewise.
59631         * modules/frexp-nolibm-tests (Files): Likewise.
59632         * modules/frexp-tests (Files): Likewise.
59633         * modules/frexpl-nolibm-tests (Files): Likewise.
59634         * modules/frexpl-tests (Files): Likewise.
59635         * modules/isnan-tests (Files): Likewise.
59636         * modules/isnand-nolibm-tests (Files): Likewise.
59637         * modules/isnand-tests (Files): Likewise.
59638         * modules/isnanf-nolibm-tests (Files): Likewise.
59639         * modules/isnanf-tests (Files): Likewise.
59640         * modules/isnanl-nolibm-tests (Files): Likewise.
59641         * modules/isnanl-tests (Files): Likewise.
59642         * modules/round-tests (Files): Likewise.
59643         * modules/roundf-tests (Files): Likewise.
59644         * modules/roundl-tests (Files): Likewise.
59645         * modules/ldexpl-tests (Files): Likewise.
59646         * modules/signbit-tests (Files): Likewise.
59647         * modules/snprintf-posix-tests (Files): Likewise.
59648         * modules/sprintf-posix-tests (Files): Likewise.
59649         * modules/strtod-tests (Files): Likewise.
59650         * modules/trunc-tests (Files): Likewise.
59651         * modules/truncf-tests (Files): Likewise.
59652         * modules/truncl-tests (Files): Likewise.
59653         * modules/vsnprintf-posix-tests (Files): Likewise.
59654         * modules/vsprintf-posix-tests (Files): Likewise.
59655         * modules/vasnprintf-posix-tests (Files): Likewise.
59656         * modules/vasprintf-posix-tests (Files): Likewise.
59657         * tests/test-ceilf1.c (main): Use it.
59658         * tests/test-ceill.c (main): Likewise.
59659         * tests/test-floorf1.c (main): Likewise.
59660         * tests/test-floorl.c (main): Likewise.
59661         * tests/test-frexp.c (main): Likewise.
59662         * tests/test-frexpl.c (main): Likewise.
59663         * tests/test-isnan.c (main): Likewise.
59664         * tests/test-isnand.h (main): Likewise.
59665         * tests/test-isnanf.h (main): Likewise.
59666         * tests/test-isnanl.h (main): Likewise.
59667         * tests/test-ldexpl.c (main): Likewise.
59668         * tests/test-round.c (main): Likewise.
59669         * tests/test-roundf.c (main): Likewise.
59670         * tests/test-roundl.c (main): Likewise.
59671         * tests/test-signbit.c (test_signbitf, test_signbitd)
59672         (test_signbitl): Likewise.
59673         * tests/test-snprintf-posix.h (test_function): Likewise.
59674         * tests/test-sprintf-posix.h (test_function): Likewise.
59675         * tests/test-strtod.c (main): Likewise.
59676         * tests/test-trunc1.c (main): Likewise.
59677         * tests/test-truncf1.c (main): Likewise.
59678         * tests/test-truncl.c (main): Likewise.
59680         isnanl: work around icc bug
59681         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
59683 2010-11-03  Eric Blake  <eblake@redhat.com>
59685         tests: fix compiler warnings
59686         * tests/test-getopt.h (test_getopt): Fix condition.
59687         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59688         * tests/test-pipe2.c (main): Likewise.
59689         * tests/test-quotearg-simple.c (main): Avoid icc warning.
59691         utimens: fix broken m4 test
59692         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
59694 2010-10-28  Bruno Haible  <bruno@clisp.org>
59696         posix_spawn*, getdtablesize: Relax license.
59697         * modules/posix_spawn (License): Change to LGPLv2+.
59698         * modules/posix_spawnp (License): Likewise.
59699         * modules/posix_spawn-internal (License): Likewise.
59700         * modules/posix_spawnattr_init (License): Likewise.
59701         * modules/posix_spawnattr_getflags (License): Likewise.
59702         * modules/posix_spawnattr_setflags (License): Likewise.
59703         * modules/posix_spawnattr_getpgroup (License): Likewise.
59704         * modules/posix_spawnattr_setpgroup (License): Likewise.
59705         * modules/posix_spawnattr_getschedparam (License): Likewise.
59706         * modules/posix_spawnattr_setschedparam (License): Likewise.
59707         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
59708         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
59709         * modules/posix_spawnattr_getsigdefault (License): Likewise.
59710         * modules/posix_spawnattr_setsigdefault (License): Likewise.
59711         * modules/posix_spawnattr_getsigmask (License): Likewise.
59712         * modules/posix_spawnattr_setsigmask (License): Likewise.
59713         * modules/posix_spawnattr_destroy (License): Likewise.
59714         * modules/posix_spawn_file_actions_init (License): Likewise.
59715         * modules/posix_spawn_file_actions_addclose (License): Likewise.
59716         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
59717         * modules/posix_spawn_file_actions_addopen (License): Likewise.
59718         * modules/posix_spawn_file_actions_destroy (License): Likewise.
59719         * modules/getdtablesize (License): Likewise.
59720         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
59722 2010-10-26  Bruno Haible  <bruno@clisp.org>
59724         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
59725         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
59726         Cygwin and mingw.
59727         Suggested by Eric Blake.
59729 2010-10-26  Bruno Haible  <bruno@clisp.org>
59731         stdio: Work around compilation error due to renameat() on Solaris 10.
59732         * lib/stdio.in.h: Include <unistd.h> on Solaris.
59733         * lib/renameat.c: Don't include <unistd.h> here.
59734         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
59735         Reported by Paul Eggert and Eric Blake.
59737 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59739         renameat: port to Solaris 10, which declares renameat in unistd.h
59741         * lib/renameat.c: Include unistd.h before stdio.h, because
59742         Solaris 10 declares renameat in unistd.h.  Problem encountered
59743         when building GNU tar 1.24 on Solaris 10.
59745 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
59747         fdopendir: fix C89 compilation
59748         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
59749         compilers.
59751 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
59753         inttostr: simplify by removing unnecessary redundancy
59754         * lib/anytostr.c: Don't include verify.h.
59755         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
59756         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
59757         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
59758         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
59759         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
59760         Likewise.
59761         * modules/inttostr (Depends-on): Remove 'verify'.
59763 2010-10-23  Bruno Haible  <bruno@clisp.org>
59765         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
59766         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
59767         Reported by Eric Blake.
59769 2010-10-23  Bruno Haible  <bruno@clisp.org>
59771         Tests: Fix LOCALE_JA on MirBSD 10.
59772         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
59773         to an UTF-8 locale.
59774         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
59775         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59776         Reported by Eric Blake.
59778 2010-10-21  Bruno Haible  <bruno@clisp.org>
59780         nl_langinfo test: Avoid test failure on NetBSD 5.
59781         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
59782         Reported by Eric Blake.
59784 2010-10-21  Eric Blake  <eblake@redhat.com>
59786         c-stack: work around libsigsegv 2.8 bug
59787         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
59788         overflow on at least PowerPC64.
59790 2010-10-17  Bruno Haible  <bruno@clisp.org>
59792         userspec: Drop redundant file.
59793         * modules/userspec (Files): Remove lib/inttostr.h.
59795 2010-10-17  Bruno Haible  <bruno@clisp.org>
59797         nl_langinfo tests: Silence some warnings.
59798         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
59799         Reported by Jim Meyering.
59801 2010-10-17  Bruno Haible  <bruno@clisp.org>
59803         Make use of GCC's attribute __alloc_size__.
59804         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
59805         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
59806         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
59807         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
59808         __alloc_size__.
59809         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59810         Suggested by Jim Meyering.
59812 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
59814         bootstrap: anchor .gitignore entries.
59815         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
59816         with...
59817         (insert_vc_ignore): ... this new function, which prepends `/' to
59818         all .gitignore entries before passing them to
59819         insert_sorted_if_absent.
59821 2010-10-16  Bruno Haible  <bruno@clisp.org>
59823         nextafter: Fix configure check.
59824         * modules/nextafter (configure.ac): Correct expected prototype.
59826 2010-10-16  Bruno Haible  <bruno@clisp.org>
59828         termios: Update documentation.
59829         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
59831 2010-10-16  Bruno Haible  <bruno@clisp.org>
59833         tests: Make them compile with TinyCC.
59834         * tests/test-strstr.c (main): Remove parentheses around array
59835         initializer.
59837 2010-10-15  Eric Blake  <eblake@redhat.com>
59839         ignore-value: make header idempotent
59840         * lib/ignore-value.h: Add double-inclusion guards.
59841         Reported by Stefan Berger.
59843 2010-10-15  Jim Meyering  <meyering@redhat.com>
59845         GNUmakefile: handle "stable" target, not "major"
59846         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
59847         lists in maint.mk and announce-gen.  Without this, "make stable"
59848         would fail to ensure that $(VERSION) is up to date.
59850 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
59852         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
59853         & co.
59855 2010-10-14  Bruno Haible  <bruno@clisp.org>
59857         vasnprintf: Don't set errno to 0.
59858         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
59859         block that sets it to 0.
59860         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
59862 2010-10-14  Bruno Haible  <bruno@clisp.org>
59864         socketlib: Fix.
59865         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
59866         gl_PREREQ_SYS_H_WINSOCK2.
59867         Reported by Ian Beckwith <ianb@erislabs.net>.
59869 2010-10-13  Jim Meyering  <meyering@redhat.com>
59871         test-select-stdin.c: avoid warn_unused_result warnings
59872         * tests/test-select-stdin.c: Include "macros.h".
59873         ASSERT that read and fflush succeed.
59875 2010-10-13  Jim Meyering  <meyering@redhat.com>
59877         git-version-gen: do require git-VC'd files in cwd
59878         * build-aux/git-version-gen: Reject a git version string
59879         if there are no commits associated with the current directory.
59880         This avoids an unlikely false-positive (unrelated dir whose parent
59881         repository also contains a tag matching v*), as pointed out
59882         by Giuseppe Scrivano in
59883         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
59885 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
59887         argv-iter: omit nonconforming declaration
59888         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
59889         enum arg_iter_err declaration, which doesn't conform to C99.
59890         Solaris 10 cc warns about this.
59892 2010-10-13  Eric Blake  <eblake@redhat.com>
59894         termios: fix compilation on mingw
59895         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
59896         (gl_TERMIOS_H): Adjust it on mingw.
59897         * modules/termios (Makefile.am): Substitute new key.
59898         * lib/termios.in.h (includes): Make include_next conditional.
59899         * doc/posix-headers/termios.texi (termios.h): Update
59900         documentation.
59901         Reported by Daniel P. Berrange.
59903 2010-10-13  Jim Meyering  <meyering@redhat.com>
59905         git-version-gen: don't require that .git/ be in the current dir
59906         * build-aux/git-version-gen: Adjust this script so that it works
59907         when run from any working directory beneath the top-level .git/-
59908         containing directory.  Inspired by a patch from Giuseppe Scrivano,
59909         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
59911         test-select: avoid warn_unused_result warnings
59912         * tests/test-select.c: Include "macros.h".
59913         ASSERT that each call to read, write, and pipe succeeds.
59914         While not technically required, also check each "close".
59915         * modules/select-tests (Files): Add tests/macros.h.
59917         test-symlinkat: remove declaration of unused local
59918         * tests/test-symlinkat.c (main): Remove unused local, "buf".
59920         test-inttostr: avoid shadowing warnings
59921         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
59922         and use malloc rather than the stack for the same reason as
59923         mentioned in the comment justifying the other allocation.
59925 2010-10-11  Bruno Haible  <bruno@clisp.org>
59927         stdlib: Allow multiple gnulib generated replacements to coexist.
59928         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
59929         Reported by Sam Steingold <sds@gnu.org>.
59931 2010-10-11  Jim Meyering  <meyering@redhat.com>
59933         fix a documentation typo
59934         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
59936 2010-10-11  Eric Blake  <eblake@redhat.com>
59938         futimens: work around Solaris 11 bug
59939         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
59940         * tests/test-futimens.h (test_futimens): Enhance, rather than
59941         weaken test.
59942         * doc/posix-functions/futimens.texi (futimens): Document the bug.
59944 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59946         Indentation.
59947         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
59948         higher-level operators more to the left.
59950 2010-10-11  Jim Meyering  <meyering@redhat.com>
59952         test-futimens: avoid unwarranted test failure on Solaris 5.11
59953         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
59954         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
59955         because it tries to dereference the NULL name argument.
59957 2010-10-11  Bruno Haible  <bruno@clisp.org>
59959         Indentation.
59960         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
59961         indentation.
59963 2010-10-11  Jim Meyering  <meyering@redhat.com>
59965         spawn.in.h: make indentation consistent with parentheses
59966         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
59967         Make indentation consistent with parentheses.
59969 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
59971         Fix mismatched parens in previous commit
59972         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
59973         parens.
59975 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59977         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
59979         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
59980         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
59981         * lib/malloca.c: Include "verify.h".
59982         (verify1): Remove, replacing with a verify call.
59983         * lib/relocwrapper.c (verify1): Likewise.
59984         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
59985         Likewise.
59986         * modules/malloca (Depends-on): Add 'verify'.
59987         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
59988         * modules/vasnprintf (Depends-on): Add 'verify'.
59989         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59990         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59991         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59992         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59993         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59994         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59995         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59997         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
59999         Formerly the style was sometimes 2*X - 1, because the C standard
60000         was wrongly thought to disallow ?: in integral constant expressions.
60001         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
60002         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
60003         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60004         * lib/stdint.in.h (_verify_intmax_size): Likewise.
60005         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
60006         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
60007         verify that time_t cannot be floating.
60009 2010-10-08  Eric Blake  <eblake@redhat.com>
60011         time: enforce recent POSIX ruling that time_t is integral
60012         * lib/time.in.h (__time_t_must_be_integral): Detect any
60013         problematic systems, allowing the rest of gnulib to assume POSIX.
60015 2010-10-08  Jim Meyering  <meyering@redhat.com>
60017         fdopendir: fix a bug on systems lacking openat and /proc support
60018         OpenBSD 4.7 is one such system.  The most noticeable effect was
60019         failure of any application making nontrivial use of fts: rm, du,
60020         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
60021           ./rm: traversal failed: `a': Bad file descriptor
60022         Debugging that, you see that even though FD 6 was closed just
60023         prior to the opendir call in fd_clone_opendir, its resulting
60024         dir->dd_fd was 8, rather than the expected value of 6:
60026         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
60027         93                close (fd);
60028         (gdb) n
60029         94                dir = fd_clone_opendir (dupfd);
60030         (gdb) n
60031         95                saved_errno = errno;
60032         (gdb) p dir->dd_fd
60033         $11 = 8
60035         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
60036         The problem is that on OpenBSD, fd_clone_opendir has to resort
60037         to using the old-style save/restore CWD mechanism, due to its
60038         lack of openat/proc support, and *that* would steal the FD (6)
60039         that opendir was supposed to use.
60041         The fix is to squirrel away the desired FD so that save_cwd uses a
60042         different one, and then free the dest FD right before calling opendir.
60043         That guarantees opendir will use the required file descriptor.
60045         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
60047 2010-10-08  Bruno Haible  <bruno@clisp.org>
60049         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
60050         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
60052 2010-10-08  Bruno Haible  <bruno@clisp.org>
60054         nanosleep: Make replacement POSIX compliant.
60055         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
60056         is out of range.
60057         Reported by Jim Meyering.
60059 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60061         bootstrap: add hook for altering gnulib.mk, for Bison
60062         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
60063         the Bison bootstrapping process can rewrite file names and variables
60064         in this file before later parts of 'bootstrap' use the file.
60065         Bison wants to include lib/gnulib.mk from the top-level makefile,
60066         so it needs the file names in this file to be relative to the top
60067         level, not relative to lib; plus it needs variable names to be
60068         rewritten.
60069         (slurp): Use the new function.
60071         bootstrap: reformat for readability
60072         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
60074 2010-10-08  Eric Blake  <eblake@redhat.com>
60076         docs: update cygwin progress
60077         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
60078         1.7.7.
60079         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
60080         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
60081         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
60082         * doc/posix-functions/carg.texi (carg): Likewise.
60083         * doc/posix-functions/cargf.texi (cargf): Likewise.
60084         * doc/posix-functions/casin.texi (casin): Likewise.
60085         * doc/posix-functions/casinf.texi (casinf): Likewise.
60086         * doc/posix-functions/casinh.texi (casinh): Likewise.
60087         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
60088         * doc/posix-functions/catan.texi (catan): Likewise.
60089         * doc/posix-functions/catanf.texi (catanf): Likewise.
60090         * doc/posix-functions/catanh.texi (catanh): Likewise.
60091         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
60092         * doc/posix-functions/ccos.texi (ccos): Likewise.
60093         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
60094         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
60095         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
60096         * doc/posix-functions/cexp.texi (cexp): Likewise.
60097         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
60098         * doc/posix-functions/cimag.texi (cimag): Likewise.
60099         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
60100         * doc/posix-functions/clog.texi (clog): Likewise.
60101         * doc/posix-functions/clogf.texi (clogf): Likewise.
60102         * doc/posix-functions/conj.texi (conj): Likewise.
60103         * doc/posix-functions/conjf.texi (conjf): Likewise.
60104         * doc/posix-functions/cpow.texi (cpow): Likewise.
60105         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
60106         * doc/posix-functions/cproj.texi (cproj): Likewise.
60107         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
60108         * doc/posix-functions/creal.texi (creal): Likewise.
60109         * doc/posix-functions/crealf.texi (crealf): Likewise.
60110         * doc/posix-functions/csin.texi (csin): Likewise.
60111         * doc/posix-functions/csinf.texi (csinf): Likewise.
60112         * doc/posix-functions/csinh.texi (csinh): Likewise.
60113         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
60114         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
60115         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
60116         * doc/posix-functions/ctan.texi (ctan): Likewise.
60117         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
60118         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
60119         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
60120         * doc/posix-headers/complex.texi (complex.h): Likewise.
60122 2010-10-07  Jim Meyering  <meyering@redhat.com>
60124         parse-datetime: avoid compilation failure on OpenBSD 4.7
60125         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
60126         This works around a compilation failure on OpenBSD 4.7:
60127         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
60129 2010-10-07  Eric Blake  <eblake@redhat.com>
60131         docs: update cygwin progress
60132         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
60133         1.7.6.
60134         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60135         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
60136         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
60137         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
60138         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
60139         Likewise.
60140         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
60141         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
60142         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
60143         Likewise.
60144         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
60145         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
60146         Likewise.
60147         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
60148         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
60149         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
60150         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
60151         Likewise.
60152         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
60153         Likewise.
60154         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
60156         docs: update parse-datetime history
60157         * doc/parse-datetime.texi (Authors of parse_datetime): Better
60158         documentation of this function's history and alternatives.
60160         cygwin: use more robust version check
60161         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
60162         exclude an eventual cygwin 1.9.1.
60163         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60165         (gl_FUNC_STRCASESTR): Likewise.
60166         Reported by Bruno Haible.
60168 2010-10-06  Bruno Haible  <bruno@clisp.org>
60170         string, sys_select: Avoid #including large headers unless necessary.
60171         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
60172         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
60173         OSF/1, BeOS, Haiku.
60174         Reported by Jim Meyering.
60176 2010-10-05  Eric Blake  <eblake@redhat.com>
60178         memmem, strstr, strcasestr: fix bug with long periodic needle
60179         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
60180         periodic needle having false positive.
60181         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
60182         and cygwin 1.7.7.
60183         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
60184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
60185         (gl_FUNC_STRCASESTR): Likewise.
60186         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60187         * tests/test-memmem.c (main): Expose the bug.
60188         * tests/test-strcasestr.c (main): Likewise.
60189         * tests/test-strstr.c (main): Likewise.
60190         * tests/test-c-strcasestr.c (main): Likewise.
60191         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
60192         * doc/posix-functions/strstr.texi (strstr): Likewise.
60193         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60194         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
60196 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60198         parse-datetime: do some more renaming
60199         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
60200         parse_datetime, not get_date.  Mention the renaming.
60201         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
60202         in comments.
60203         * m4/bison.m4: Likewise.
60205 2010-10-05  Eric Blake  <eblake@redhat.com>
60207         parse-datetime: better name than get_date
60208         * NEWS: Reword the deprecation notice.
60209         * modules/get_date: Rename to modules/parse-datetime.
60210         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
60211         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
60212         * lib/get_date.y: Rename to lib/parse-datetime.y.
60213         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
60214         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
60215         * doc/getdate.texi: Provide fallback wrapper.
60216         * lib/getdate.h: Move guts, and wrap...
60217         * lib/parse-datetime.h: ...new file.
60218         * lib/parse-datetime.y (get_date): Rename...
60219         (parse_datetime): ...to this.
60220         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
60221         (gl_PARSE_DATETIME): ...to this.
60222         * doc/posix-functions/getdate.texi (get_date): Provide fallback
60223         documentation.
60224         * modules/getdate (Files): Provide fallback docs and header.
60225         (Notice, Depends-on): Update references.
60226         * tests/test-parse-datetime.c: Likewise.
60227         * DEPENDENCIES: Likewise.
60228         * MODULES.html.sh (Date and time <time.h>): Likewise.
60229         * doc/parse-datetime.texi (Date input formats)
60230         (Authors of parse_datetime): Likewise.
60231         * modules/parse-datetime (Files, configure.ac, Makefile.am)
60232         (Include): Likewise.
60233         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
60234         * gnulib-tool: Likewise.
60235         * m4/bison.m4 (gl_BISON): Likewise.
60236         Suggested by Bruno Haible.
60238 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60240         more ports to Solaris tr, which needs [] around ranges
60241         * gnulib-tool: Solaris tr needs [] around ranges.
60242         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
60243         * tests/test-pipe-filter-gi1.c (main): Likewise.
60244         * tests/test-pipe-filter-ii1.c (main): Likewise.
60246 2010-10-05  Eric Blake  <eblake@redhat.com>
60248         bootstrap: fix Solaris regression
60249         * build-aux/bootstrap (check_versions): Solaris tr still needs []
60250         around ranges.
60251         Reported by Pádraig Brady.
60253         bootstrap: work with pkg-config
60254         * build-aux/bootstrap (check_versions): Also transliterate - in
60255         prerequisite name.
60256         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
60257         prerequisites that were already found, to avoid confusion.
60258         Reported by Justin Clift.
60260         faccessat: remove unused wrappers
60261         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
60262         presence of these wrappers dragged in -lgen on Solaris.
60263         Reported by Clemens Brogi; fix suggested by Paul Eggert.
60265 2010-10-05  Jim Meyering  <meyering@redhat.com>
60267         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
60268         * Makefile (sc_pragma_columns): New syntax-check rule.
60270 2010-10-04  Bruno Haible  <bruno@clisp.org>
60272         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
60273         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
60274         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
60275         Reported by Bruce Korb and Eric Blake.
60277 2010-10-04  Bruno Haible  <bruno@clisp.org>
60279         threadlib: Make option --with-libpth-prefix work.
60280         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
60281         use $LIBPTH, not just -lpth.
60283 2010-10-04  Bruno Haible  <bruno@clisp.org>
60285         Avoid line length limitation from HP NonStop system header files.
60286         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
60287         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
60288         * lib/ctype.in.h: Likewise.
60289         * lib/dirent.in.h: Likewise.
60290         * lib/errno.in.h: Likewise.
60291         * lib/fcntl.in.h: Likewise.
60292         * lib/float.in.h: Likewise.
60293         * lib/getopt.in.h: Likewise.
60294         * lib/iconv.in.h: Likewise.
60295         * lib/inttypes.in.h: Likewise.
60296         * lib/langinfo.in.h: Likewise.
60297         * lib/locale.in.h: Likewise.
60298         * lib/math.in.h: Likewise.
60299         * lib/netdb.in.h: Likewise.
60300         * lib/netinet_in.in.h: Likewise.
60301         * lib/poll.in.h: Likewise.
60302         * lib/pthread.in.h: Likewise.
60303         * lib/pty.in.h: Likewise.
60304         * lib/sched.in.h: Likewise.
60305         * lib/se-selinux.in.h: Likewise.
60306         * lib/search.in.h: Likewise.
60307         * lib/signal.in.h: Likewise.
60308         * lib/spawn.in.h: Likewise.
60309         * lib/stdarg.in.h: Likewise.
60310         * lib/stddef.in.h: Likewise.
60311         * lib/stdint.in.h: Likewise.
60312         * lib/stdio.in.h: Likewise.
60313         * lib/stdlib.in.h: Likewise.
60314         * lib/string.in.h: Likewise.
60315         * lib/strings.in.h: Likewise.
60316         * lib/sys_file.in.h: Likewise.
60317         * lib/sys_ioctl.in.h: Likewise.
60318         * lib/sys_select.in.h: Likewise.
60319         * lib/sys_socket.in.h: Likewise.
60320         * lib/sys_stat.in.h: Likewise.
60321         * lib/sys_time.in.h: Likewise.
60322         * lib/sys_times.in.h: Likewise.
60323         * lib/sys_utsname.in.h: Likewise.
60324         * lib/sys_wait.in.h: Likewise.
60325         * lib/sysexits.in.h: Likewise.
60326         * lib/termios.in.h: Likewise.
60327         * lib/time.in.h: Likewise.
60328         * lib/unistd.in.h: Likewise.
60329         * lib/wchar.in.h: Likewise.
60330         * lib/wctype.in.h: Likewise.
60331         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
60332         * modules/ctype (Makefile.am): Likewise.
60333         * modules/dirent (Makefile.am): Likewise.
60334         * modules/errno (Makefile.am): Likewise.
60335         * modules/fcntl-h (Makefile.am): Likewise.
60336         * modules/float (Makefile.am): Likewise.
60337         * modules/getopt-posix (Makefile.am): Likewise.
60338         * modules/iconv-h (Makefile.am): Likewise.
60339         * modules/inttypes (Makefile.am): Likewise.
60340         * modules/langinfo (Makefile.am): Likewise.
60341         * modules/locale (Makefile.am): Likewise.
60342         * modules/math (Makefile.am): Likewise.
60343         * modules/netdb (Makefile.am): Likewise.
60344         * modules/netinet_in (Makefile.am): Likewise.
60345         * modules/poll-h (Makefile.am): Likewise.
60346         * modules/pthread (Makefile.am): Likewise.
60347         * modules/pty (Makefile.am): Likewise.
60348         * modules/sched (Makefile.am): Likewise.
60349         * modules/search (Makefile.am): Likewise.
60350         * modules/selinux-h (Makefile.am): Likewise.
60351         * modules/signal (Makefile.am): Likewise.
60352         * modules/spawn (Makefile.am): Likewise.
60353         * modules/stdarg (Makefile.am): Likewise.
60354         * modules/stddef (Makefile.am): Likewise.
60355         * modules/stdint (Makefile.am): Likewise.
60356         * modules/stdio (Makefile.am): Likewise.
60357         * modules/stdlib (Makefile.am): Likewise.
60358         * modules/string (Makefile.am): Likewise.
60359         * modules/strings (Makefile.am): Likewise.
60360         * modules/sys_file (Makefile.am): Likewise.
60361         * modules/sys_ioctl (Makefile.am): Likewise.
60362         * modules/sys_select (Makefile.am): Likewise.
60363         * modules/sys_socket (Makefile.am): Likewise.
60364         * modules/sys_stat (Makefile.am): Likewise.
60365         * modules/sys_time (Makefile.am): Likewise.
60366         * modules/sys_times (Makefile.am): Likewise.
60367         * modules/sys_utsname (Makefile.am): Likewise.
60368         * modules/sys_wait (Makefile.am): Likewise.
60369         * modules/sysexits (Makefile.am): Likewise.
60370         * modules/termios (Makefile.am): Likewise.
60371         * modules/time (Makefile.am): Likewise.
60372         * modules/unistd (Makefile.am): Likewise.
60373         * modules/wchar (Makefile.am): Likewise.
60374         * modules/wctype (Makefile.am): Likewise.
60376 2010-10-04  Bruno Haible  <bruno@clisp.org>
60378         read-file tests: Avoid a test failure on NonStop Kernel.
60379         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
60380         a regular file.
60381         Reported by Joachim Schmitz <schmitz@hp.com>.
60383 2010-10-03  Bruno Haible  <bruno@clisp.org>
60385         gnulib-tool: Fixes for --create-testdir with --libtool.
60386         * gnulib-tool (func_get_automake_snippet): Don't augment
60387         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
60388         an executable.
60389         (func_create_testdir): Handle module 'alloca' like func_import.
60390         Reported by Bruce Korb <bruce.korb@gmail.com>.
60392 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
60394         Avoid some lines longer than 80 characters.
60395         * lib/stdint.in.h: Break long comment lines.
60396         * lib/math.in.h: Likewise.
60397         (_GL_NUM_UINT_WORDS): New macro, for readability.
60398         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
60399         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
60400         * lib/stdlib.in.h: Likewise.
60401         * lib/spawn.in.h: Likewise.
60402         * lib/sys_socket.in.h: Update an URL.
60403         * lib/sys_stat.in.h: Break long line.
60405 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
60407         Improve pmccabe2html.
60408         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
60409         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
60410         when the sources change. Remove the line in the HTML about "Used
60411         ranges" (which implied that there might be other unused ranges),
60412         rename "Resume" to "Summary" (easier to understand for more users).
60413         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
60414         styles, and some unnecessary blank lines.
60416 2010-10-03  Bruno Haible  <bruno@clisp.org>
60417             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
60419         acl: Add support for ACLs on NonStop Kernel.
60420         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
60421         Check whether the function aclsort() exists.
60422         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
60423         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
60424         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60425         (acl_nontrivial [HAVE_ACLSORT]: New function.
60426         (file_has_acl): Implement for NonStop Kernel.
60427         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60428         (qset_acl): Implement for NonStop Kernel.
60429         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
60430         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
60431         (main): Implement for NonStop Kernel.
60432         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
60433         Kernel. Handle this flavor.
60434         * tests/test-set-mode-acl.sh: Likewise.
60435         * tests/test-copy-acl.sh: Likewise.
60436         * tests/test-copy-file.sh: Likewise.
60438 2010-10-03  Bruno Haible  <bruno@clisp.org>
60440         Info about ACLs on NonStop Kernel.
60441         * doc/acl-resources.txt: Add info about NonStop Kernel.
60442         References by Joachim Schmitz <schmitz@hp.com>.
60444 2010-10-02  Bruno Haible  <bruno@clisp.org>
60446         Define missing EDQUOT on NonStop Kernel.
60447         * lib/errno.in.h (EDQUOT): Assign a value if missing.
60448         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
60449         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
60450         missing.
60451         * doc/posix-headers/errno.texi: Mention the NSK bug.
60452         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
60453         Reported by Joachim Schmitz <schmitz@hp.com>.
60455 2010-10-02  Bruno Haible  <bruno@clisp.org>
60457         Update doc for POSIX:2008.
60458         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
60459         Update URL of POSIX specification.
60461 2010-10-02  Bruno Haible  <bruno@clisp.org>
60463         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
60464         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
60465         from gnulib, not from Automake.
60467 2010-10-02  Bruno Haible  <bruno@clisp.org>
60469         New module 'system-posix'.
60470         * modules/system-posix: New file.
60471         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
60472         module is present.
60473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
60474         GNULIB_SYSTEM_POSIX.
60475         * modules/stdlib (Depends-on): Remove sys_wait.
60476         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
60477         * doc/posix-functions/system.texi: Mention the new module.
60478         * doc/posix-headers/stdlib.texi: Likewise.
60479         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
60480         define test_sys_wait_macros to a no-op.
60481         Reported by Sam Steingold <sds@gnu.org>.
60483 2010-09-30  Bruno Haible  <bruno@clisp.org>
60485         More renaming from 'getdate' to 'get_date'.
60486         * doc/get_date.texi: Renamed from doc/getdate.texi.
60487         * modules/get_date (Files): Update.
60488         * MODULES.html.sh (Date and time <time.h>): Update.
60489         * DEPENDENCIES: Update.
60490         * gnulib-tool: Update comment.
60491         * m4/bison.m4 (gl_BISON): Likewise.
60492         * m4/get_date.m4 (gl_GET_DATE): Likewise.
60494 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
60496         bootstrap: support ACLOCAL_FLAGS during aclocal
60497         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
60498         can add additional -I dir for third-party .m4 files.
60500 2010-09-30  Eric Blake  <eblake@redhat.com>
60502         bootstrap: use glibtoolize on MacOS
60503         * build-aux/bootstrap (check_versions): Convert libtool into
60504         libtoolize.
60505         (tool search): Move libtool check earlier, and look for
60506         glibtoolize for MacOS.
60507         (gnulib_tool_options): Auto-add --libtool when appropriate.
60508         Reported by Justin Clift.
60510         poll: fix typo that broke test on MacOS
60511         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
60512         Reported by Justin Clift.
60514         getdate: rename to get_date
60515         Note: getdate.h is not renamed, to minimize client impact.
60516         * modules/getdate: Mark obsolete.  Move old contents...
60517         * modules/get_date: ...to new module name.
60518         * modules/getdate-tests: Move...
60519         * modules/get_date-tests: ...here.
60520         * m4/getdate.m4: Move...
60521         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
60522         * lib/getdate.y: Move...
60523         * lib/get_date.y: ...here.
60524         * tests/test-getdate.c: Move...
60525         * tests/test-get_date.c: ...here.
60526         * doc/posix-functions/getdate.texi (getdate): Update name.
60527         * NEWS: Mention the change.
60529 2010-09-29  Bruno Haible  <bruno@clisp.org>
60531         Separate the module 'waitpid' from the module 'sys_wait'.
60532         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
60533         present.
60534         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
60535         gl_MODULE_INDICATOR_FOR_TESTS.
60536         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
60537         * modules/sys_wait (Depends-on): Remove waitpid.
60538         (Makefile.am): Substitute GNULIB_WAITPID.
60539         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
60540         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
60541         signature only if the 'waitpid' module is present.
60542         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
60543         * NEWS: Mention the change.
60544         * modules/grantpt (Depends-on): Add waitpid.
60545         * modules/wait-process (Depends-on): Likewise.
60547 2010-09-29  Bruno Haible  <bruno@clisp.org>
60549         More tests for module 'sys_wait'.
60550         * modules/sys_wait-c++-tests: New file.
60551         * tests/test-sys_wait-c++.cc: New file.
60552         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
60553         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60555 2010-09-29  Bruno Haible  <bruno@clisp.org>
60557         New module 'waitpid'.
60558         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
60559         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
60560         Don't include <process.h>.
60561         (waitpid): Declare only, using modern idiom.
60562         * m4/waitpid.m4: New file.
60563         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
60564         * modules/waitpid: New file.
60565         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
60566         (Makefile.am): Update.
60567         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
60569 2010-09-28  Bruno Haible  <bruno@clisp.org>
60571         poll: Assume ANSI C.
60572         * lib/poll.c (poll): Use an ANSI C declaration.
60574 2010-09-28  Bruno Haible  <bruno@clisp.org>
60576         poll-h: Create poll.h on all platforms.
60577         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
60578         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
60579         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
60580         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
60581         (gl_REPLACE_POLL_H): Don't set POLL_H.
60582         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
60583         * modules/poll-h (Depends-on): Add include_next.
60584         (Makefile.am): Create poll.h unconditionally. Substitute also
60585         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
60587 2010-09-28  Bruno Haible  <bruno@clisp.org>
60589         Tests for module 'poll-h'.
60590         * modules/poll-h-c++-tests: New file.
60591         * tests/test-poll-h-c++.cc: New file.
60593         Tests for module 'poll-h'.
60594         * modules/poll-h-tests: New file.
60595         * tests/test-poll-h.c: New file.
60597 2010-09-28  Bruno Haible  <bruno@clisp.org>
60599         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
60600         * modules/poll-h (Depends-on): Add 'extensions'.
60602 2010-09-28  Bruno Haible  <bruno@clisp.org>
60604         New module 'poll-h'.
60605         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
60606         (poll): Use modern idiom.
60607         * modules/poll-h: New file.
60608         * modules/poll (Files): Remove lib/poll.in.h.
60609         (Depends-on): Add poll-h.
60610         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
60611         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
60612         * m4/poll_h.m4: New file.
60613         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
60614         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
60615         and invoke gl_REPLACE_POLL_H.
60616         * lib/poll.c: Use common idiom.
60617         * tests/test-poll.c: Likewise.
60618         * doc/posix-headers/poll.texi: Mention the poll-h module.
60619         Suggested by Eric Blake.
60621 2010-09-26  Bruno Haible  <bruno@clisp.org>
60623         sys_wait: Implement WSTOPSIG.
60624         * lib/sys_wait.in.h (WSTOPSIG): New macro.
60625         Reported by Simon Josefsson.
60627 2010-09-26  Simon Josefsson  <simon@josefsson.org>
60629         stdlib, sys_wait: Avoid compilation error on mingw.
60630         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
60632 2010-09-26  Bruno Haible  <bruno@clisp.org>
60634         stdlib tests: Avoid code duplication.
60635         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
60636         * modules/sys_wait-tests (Files): Likewise.
60637         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
60638         * tests/test-stdlib.c: Include test-sys_wait.h.
60639         (main): Invoke test_sys_wait_macros.
60640         * tests/test-sys_wait.c: Include test-sys_wait.h.
60641         (main): Invoke test_sys_wait_macros.
60643 2010-09-25  Simon Josefsson  <simon@josefsson.org>
60645         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
60646         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
60647         sure Windows sockets are working before calling getaddrinfo.
60648         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
60649         * doc/gnulib.texi (Windows sockets): Fix typo.
60651 2010-09-25  Bruno Haible  <bruno@clisp.org>
60653         Tests for module 'regex-quote'.
60654         * modules/regex-quote-tests: New file.
60655         * tests/test-regex-quote.c: New file.
60657         New module 'regex-quote'.
60658         * lib/regex-quote.h: New file.
60659         * lib/regex-quote.c: New file.
60660         * modules/regex-quote: New file.
60661         Suggested by Reuben Thomas <rrt@sc3d.org>.
60663 2010-09-24  Bruno Haible  <bruno@clisp.org>
60665         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
60666         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
60668 2010-09-23  Bruno Haible  <bruno@clisp.org>
60670         setenv: Relax license.
60671         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
60672         Blake.
60673         Requested by Eric Blake.
60675 2010-09-22  Bruno Haible  <bruno@clisp.org>
60677         termios: Relax license.
60678         * modules/termios (License): Change to LGPLv2+.
60679         Requested by Eric Blake.
60681 2010-09-22  Bruno Haible  <bruno@clisp.org>
60683         threadlib: Allow the package to change the default to 'no'.
60684         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
60685         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
60686         Reported by Paul Eggert.
60688 2010-09-22  Pádraig Brady  <P@draigbrady.com>
60689             Bruno Haible  <bruno@clisp.org>
60691         Fix endless loop in mbmemcasecoll.
60692         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
60693         byte.
60694         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
60696 2010-09-22  Bruno Haible  <bruno@clisp.org>
60698         Tests for module 'memcoll'.
60699         * modules/memcoll-tests: New file.
60700         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
60702         memcoll, xmemcoll: Clarify size vs. length.
60703         * modules/memcoll.c (memcoll0): Clarify specification.
60704         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
60705         passed to collate_error.
60707 2010-09-22  Bruno Haible  <bruno@clisp.org>
60709         Tests for module 'memcasecmp'.
60710         * modules/memcasecmp-tests: New file.
60711         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
60713 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
60715         * lib/pthread.in.h: Add split double-inclusion guard, and include
60716         system <pthread.h> if there is one.  Use @@-style as in other
60717         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
60718         pthread.h doesn't.
60719         (pthread_mutexattr_destroy, pthread_mutexattr_init):
60720         (pthread_mutexattr_settype, pthread_mutex_trylock):
60721         New static inline functions, if there's no system <pthread.h>.
60722         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
60723         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
60724         Approximate with mutexes if the system lacks spinlocks, as in
60725         MacOS.
60726         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
60727         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
60728         @@-style.  Check for spinlocks separately.
60729         (gl_PTHREAD_DEFAULTS): New macro.
60730         * modules/pthread: Redo to use a more typical style for in.h files.
60732 2010-09-21  Eric Blake  <eblake@redhat.com>
60734         net_if: enhance tests
60735         * tests/test-net_if.c (main): Move signature checks earlier.
60736         Print failures to stderr.
60737         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
60738         Document the bug that we do not yet fix.
60740 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60742         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
60743         about gnulib, not GSS.
60745 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
60747         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
60748         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
60749         for Emacs.
60750         * build-aux/pmccabe2html: Make Makefile.am example code more
60751         cut-and-paste friendly.
60753 2010-09-21  Simon Josefsson  <simon@josefsson.org>
60755         * tests/test-net_if.c: New file.
60756         * modules/net_if-tests: New file.
60758 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60760         pthread: add pthread_spin_destroy
60761         * lib/pthread.in.h (pthread_spin_destroy): New function.
60763 2010-09-19  Bruno Haible  <bruno@clisp.org>
60765         gnulib-tool: Fix --help output.
60766         * gnulib-tool (func_usage): Fix help message.
60767         Reported by Reuben Thomas <rrt@sc3d.org>.
60769 2010-09-18  Jim Meyering  <meyering@redhat.com>
60771         maint.mk: avoid unexpanded \n in two diagnostics
60772         * top/maint.mk (sc_prohibit_always_true_header_tests):
60773         Don't use a literal \n in a halt=... assignment.  It would not be
60774         expanded, and the two \n bytes would appear in the diagnostic output
60775         rather than the desired newline.  Use halt=$$(printf ... instead.
60776         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
60778 2010-09-18  Bruno Haible  <bruno@clisp.org>
60780         netinet_in: Doc tweak.
60781         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
60782         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60784 2010-09-18  Jim Meyering  <meyering@redhat.com>
60786         init.sh: correct an outdated comment
60787         * tests/init.sh (create_exe_shims_):  s/function/alias/
60789         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
60790         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
60791         a file named "*.exe" is removed between the glob expansion and the
60792         processing of that oddly named file.
60794 2010-09-17  Eric Blake  <eblake@redhat.com>
60796         mirbsd: add some more support
60797         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
60798         in BSD family.
60799         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
60800         devices as OpenBSD.
60801         * m4/host-os.m4 (mirbsd): Add MirBSD.
60803         tests: fix unportable assumption on sys/wait.h
60804         * tests/test-sys_wait.c (main): Relax test.
60805         * tests/test-stdlib.c (main): Likewise.
60807         init.sh: accommodate directory with no .exes
60808         * tests/init.sh: Accomodate directory containing only scripts.
60810         tests: avoid compiler warning
60811         * tests/test-stdlib.c (main): Use the variable.
60813         fdutimens, fdutimensat: update signature, again
60814         * lib/utimens.h (gl_futimens): Delete, and move signature...
60815         (fdutimens): ...here.
60816         (fdutimensat): Rearrange signature.
60817         (lutimensat): Rename variable for clarity.
60818         * lib/fdutimensat.c (fdutimensat): Update signature.
60819         * lib/utimens.c (fdutimens): Likewise.
60820         (gl_futimens): Delete.
60821         (utimens, lutimens): Update callers.
60822         * lib/futimens.c (futimens): Likewise.
60823         * tests/test-fdutimensat.c: Likewise.
60824         * tests/test-utimens.c: Likewise.
60825         * tests/test-futimens.h: Update comment.
60826         * NEWS: Mention this.
60827         Suggested by Paul Eggert.
60829 2010-09-17  Bruno Haible  <bruno@clisp.org>
60831         Take over the maintenance of some older macros from Autoconf.
60832         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
60833         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
60834         GNU Autoconf.
60835         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
60836         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
60838 2010-09-17  Eric Blake  <eblake@redhat.com>
60840         fdutimensat: drop atflag validation
60841         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
60842         with valid fd, to close a race scenario where futimens is
60843         unsupported and FILE was replaced by a symlink.
60844         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
60845         accordingly.
60846         Suggested by Paul Eggert.
60848 2010-09-16  Bruno Haible  <bruno@clisp.org>
60850         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
60851         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
60853 2010-09-16  Bruno Haible  <bruno@clisp.org>
60855         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
60856         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
60857         login_tty exists.
60858         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60860 2010-09-16  Bruno Haible  <bruno@clisp.org>
60862         login_tty: Make the replacement code work on BSD systems.
60863         * lib/login_tty.c: Include <sys/ioctl.h>.
60864         (login_tty): Use ioctl TIOCSCTTY when available.
60865         * modules/login_tty (Depends-on): Add sys_ioctl.
60866         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60868 2010-09-16  Bruno Haible  <bruno@clisp.org>
60870         login_tty: Stricter unit test.
60871         * modules/login_tty-tests (Depends-on): Add tcgetsid.
60872         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
60873         and tcgetsid() after login_tty.
60874         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
60876 2010-09-16  Bruno Haible  <bruno@clisp.org>
60878         New module 'tcgetsid'.
60879         * lib/tcgetsid.c: New file.
60880         * m4/tcgetsid.m4: New file.
60881         * modules/tcgetsid: New file.
60882         * modules/termios (Depends-on): Add c++defs, warn-on-use.
60883         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
60884         GNULIB_TCGETSID, HAVE_TCGETSID.
60885         * lib/termios.in.h: Include <sys/types.h>.
60886         (tcgetsid): New declaration.
60887         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
60888         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
60889         * doc/posix-functions/tcgetsid.texi: Mention the new module.
60890         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
60892 2010-09-16  Bruno Haible  <bruno@clisp.org>
60894         Tests for module 'termios'.
60895         * modules/termios-c++-tests: New file.
60896         * modules/termios-tests: New file.
60897         * tests/test-termios-c++.cc: New file.
60898         * tests/test-termios.c: New file.
60900         New module 'termios'.
60901         * modules/termios: New file.
60902         * lib/termios.in.h: New file.
60903         * m4/termios_h.m4: New file.
60904         * doc/posix-headers/termios.texi: Mention the new module.
60906 2010-09-16  Eric Blake  <eblake@redhat.com>
60908         fdutimensat: add an atflag parameter
60909         * lib/fdutimensat.c (fdutimensat): Add new parameter.
60910         * lib/utimens.h (fdutimensat): Update prototype.
60911         * tests/test-fdutimensat.c: Adjust test to match.
60912         * NEWS: Document the change.
60913         Suggested by Paul Eggert.
60915 2010-09-16  Bruno Haible  <bruno@clisp.org>
60917         Fix typos in comments.
60918         * lib/striconveh.h: Fix typo in comment.
60919         * lib/login_tty.c (login_tty): Likewise.
60921 2010-09-15  Bruno Haible  <bruno@clisp.org>
60923         stdlib: clarify MirBSD WEXITSTATUS bug
60924         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
60925         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60927 2010-09-15  Eric Blake  <eblake@redhat.com>
60929         stdlib: work around MirBSD WEXITSTATUS bug
60930         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
60931         * modules/stdlib (Depends-on): Add sys_wait.
60932         * tests/test-sys_wait.c (main): Enhance test.
60933         * tests/test-stdlib.c (main): Likewise.
60934         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
60936         docs: mention MacOS issue with WEXITSTATUS(constant)
60937         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
60938         issue.
60939         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
60941         strnlen: add tests
60942         * modules/strnlen-tests: New file.
60943         * tests/test-strnlen.c: Likewise.
60945 2010-09-14  Bruno Haible  <bruno@clisp.org>
60947         unistr/base: Avoid link errors when module 'libunistring' is also used.
60948         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
60949         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
60950         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
60951         Declare also when HAVE_LIBUNISTRING is set.
60952         Reported by Pádraig Brady <P@draigbrady.com>.
60954 2010-09-14  Eric Blake  <eblake@redhat.com>
60956         test-rawmemchr: make more robust
60957         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
60958         (Depends-on, configure.ac): Add needed prerequisites to use it.
60959         * modules/memchr-tests (Files, Depends-on, configure.ac):
60960         Likewise, to avoid implicit reliance on memchr module prereqs.
60961         * tests/test-memchr.c (main): Ensure proper masking.
60962         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
60963         reads.
60965         memchr: detect glibc Alpha bug
60966         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
60967         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
60968         Alpha.
60969         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
60970         * tests/test-memchr.c (main): Enhance test.
60971         Reported by Nelson H. F. Beebe.
60973 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60975         fts, getcwd, glob: audit for dirfd returning -1
60976         * lib/fts.c (opendir): Remove #define; no longer used.
60977         (opendirat): New arg PDIR_FD.  All callers changed.
60978         (fts_build, _opendir2): Use new opendirat to avoid the need for
60979         dirfd, or for checking whether dirfd returns a negative value.
60980         Don't use opendir; always use openat followed by fdopendir.
60981         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
60982         it.
60983         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
60984         returns -1 here.
60985         * modules/fts (Depends-on): Remove dirfd.
60986         * modules/getcwd (Depends-on): Likewise.
60988 2010-09-13  Eric Blake  <eblake@redhat.com>
60990         float: fix broken MirBSD header
60991         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
60992         * doc/posix-headers/float.texi (float.h): Document it.
60994 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60996         fts: use O_NOFOLLOW to avoid race condition when opening a directory
60997         * lib/fts.c (opendirat): New arg extra_flags.
60998         (__opendir2): Use it to avoid following symlinks when opening
60999         a directory, if symlinks are not supposed to be followed.  See
61000         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
61002         fdopendir: preserve argument fd before returning
61003         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
61004         (fdopendir_with_dup, fd_clone_opendir): New static functions.
61005         (fdopendir): Use them, arranging for FD to be open to the same
61006         directory that it was when it started.  (It might be temporarily
61007         closed while fdopendir is running, so this not thread- or
61008         signal-safe.)  Be careful to do the right thing even when file
61009         descriptors are scarce and dup fails with errno == EMFILE.  See
61010         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
61012 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
61014         regex: Pass the system regex if its only problem is 32-bit regoff_t.
61015         * NEWS: Document change.
61016         * m4/regex.m4: Disable test for regoff_t size.
61018 2010-09-13  Jim Meyering  <meyering@redhat.com>
61020         fts: don't operate on an invalid file descriptor after failed dup
61021         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
61022         negative file descriptor.
61024 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
61026         savedir: add streamsavedir, deprecate fdsavedir
61027         * NEWS: Mention deprecation of fdsavedir.
61028         * lib/savedir.c (streamsavedir): New extern function, whose name
61029         ends in "savedir" to be consistent with the others.  This differs
61030         from savedirstream in that it doesn't close its argument.  The
61031         next version of GNU tar will use this instead of fdsavedir, to
61032         avoid some race conditions and conserve file descriptors.
61033         (savedirstream): Reimplement as a wrapper around streamsavedir.
61034         (fdsavedir): Add a comment deprecating this function.  As far as
61035         I know, only GNU tar used it, and GNU tar doesn't need it any more.
61036         * lib/savedir.h (streamsavedir): New decl.
61037         (fdsavedir): Add a comment deprecating this.
61039 2010-09-10  Bruno Haible  <bruno@clisp.org>
61041         langinfo: Fix last commit.
61042         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
61043         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
61044         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61046 2010-09-10  Bruno Haible  <bruno@clisp.org>
61048         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
61049         * lib/progreloc.c (O_EXEC): Define fallback.
61051 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
61053         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
61054         * NEWS: Document recent changes to fcntl-h.
61055         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
61056         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
61057         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
61058         Similarly for O_SEARCH; this last was already true, but not documented.
61059         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
61060         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
61061         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
61062         Likewise.
61063         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
61064         is zero, not whether it is defined.
61065         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
61066         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
61067         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
61069 2010-09-10  Bruno Haible  <bruno@clisp.org>
61071         langinfo, nl_langinfo: Fix for IRIX 5.3.
61072         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
61073         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
61074         HAVE_LANGINFO_YESEXPR.
61075         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
61076         HAVE_LANGINFO_YESEXPR.
61077         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
61078         HAVE_LANGINFO_T_FMT_AMPM is 0.
61079         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
61080         HAVE_LANGINFO_YESEXPR is 0.
61081         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
61082         NOEXPR.
61083         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
61084         * doc/posix-functions/nl_langinfo.texi: Likewise.
61085         Reported by Eric Blake.
61087 2010-09-10  Bruno Haible  <bruno@clisp.org>
61089         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
61090         * doc/glibc-functions/login_tty.texi: Mention the include file problem
61091         on FreeBSD 8.0 and OpenBSD 4.6.
61092         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
61093         * m4/pty_h.m4 (gl_PTY_H): Likewise.
61094         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
61095         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
61096         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
61097         ac_includes_default.
61098         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61100 2010-09-09  Eric Blake  <eblake@redhat.com>
61102         strsignal: work around NetBSD bug
61103         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
61104         * lib/string.in.h (includes): Likewise.
61105         * doc/posix-functions/strsignal.texi (strsignal): Document the
61106         bug.
61107         Reported by Nelson H. F. Beebe.
61109         gnulib-tool: work with NetBSD /bin/sh
61110         * gnulib-tool (func_cache_var, func_cache_lookup_module)
61111         (func_get_description, func_get_comment, func_get_status)
61112         (func_get_notice, func_get_applicability, func_get_filelist)
61113         (func_get_dependencies, func_get_autoconf_early_snippet)
61114         (func_get_autoconf_snippet, func_get_automake_snippet)
61115         (func_get_include_directive, func_get_link_directive)
61116         (func_get_license, func_get_maintainer, func_import): Avoid
61117         shell syntax errors from parsing syntax extensions.
61119 2010-09-09  Bruno Haible  <bruno@clisp.org>
61121         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61122         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
61123         a reliable way to determine whether the 'alias' command works.
61125 2010-09-08  Jim Meyering  <meyering@redhat.com>
61127         init.sh: penalize a set-x-impaired shell; don't disqualify it
61128         * tests/init.sh: Too many shells corrupt application stderr when
61129         you set -x, so we can't afford to disqualify them, since at least
61130         on Irix-6.5, that would disqualify all bourne shells.
61131         Instead, use a two-pass approach.
61132         On the first pass, try to find a shell that meets the stricter
61133         condition that set -x does not corrupt stderr.
61134         If no shell meets the stricter condition, retest each candidate
61135         shell, but without that extra condition.  Finally, when
61136         VERBOSE=yes is requested and set -x might cause trouble, simply
61137         issue a warning and refrain from enabling debug output.
61139 2010-09-08  Eric Blake  <eblake@redhat.com>
61141         unsetenv: fix OpenBSD bug
61142         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
61143         * doc/posix-functions/unsetenv.texi (unsetenv): Update
61144         documentation.
61145         Reported by Jim Meyering.
61147         strtod: work around IRIX 6.5 bug
61148         * lib/strtod.c (strtod): Reparse number on shorter string if
61149         exponent parse was invalid.
61150         * tests/test-strtod.c (main): Add check for "0x1p 2".
61151         Reported by Tom G. Christensen.
61153         getopt: optimize previous patch
61154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
61155         empty variable.  Speed up awk script.
61156         Reported by Paolo Bonzini.
61158 2010-09-08  Jim Meyering  <meyering@redhat.com>
61160         test.sh: disqualify shells for which set -x corrupts stderr
61161         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
61162         and OpenBSD 4.7.  They make it so with "set -x", environment settings
61163         appear in stderr output.  For example, this command:
61164             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
61165         prints "P=1" on those two systems:
61167 2010-09-08  Bruno Haible  <bruno@clisp.org>
61169         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
61170         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
61171         commands, because some shells ignore redirections when there is an
61172         error in the command lookup.
61173         Reported by Eric Blake.
61175 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
61177         * lib/regex.h: Fix a mention of `regex_compile' (should be
61178         `re_compile_pattern').
61179         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
61180         (re_set_registers): Correct name of parameter in comment.
61182         * doc/regex.texi: Add documentation for missing syntax flags.
61183         Remove commented-out documentation of defunct syntax option
61184         RE_NO_EMPTY_ALTS.
61185         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
61186         Add documentation of re_set_registers.
61187         Document trick to re-use a pattern buffer by setting fastmap manually.
61188         Update documentation of struct re_pattern_buffer per public members.
61189         Uncomment documentation of equivalence class operators and
61190         collating symbol operators, since they are now implemented,
61191         Explain leftmost-longest matching in relation to alternatives.
61192         Tidy documentation of substring matching.
61193         Remove POSIX documentation, which is done better in
61194         glibc, and refer the reader there. Keep BSD API documentation, as
61195         that is not readily available elsewhere.
61197 2010-09-07  Eric Blake  <eblake@redhat.com>
61199         getopt: handle POSIXLY_CORRECT set but not exported
61200         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
61201         export state of POSIXLY_CORRECT, due to bash set -o posix.
61202         Reported by Dustin J. Mitchell.
61204 2010-09-05  Bruno Haible  <bruno@clisp.org>
61206         gnulib-tool: Highlight the changed options.
61207         * gnulib-tool (func_usage): Display the --import, --add-import,
61208         --remove-import explanations in bold font.
61210 2010-09-06  Karl Berry  <karl@gnu.org>
61212         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
61214 2010-09-05  Bruno Haible  <bruno@clisp.org>
61216         uniwidth/width: Update comment.
61217         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
61218         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
61220 2010-09-05  Bruno Haible  <bruno@clisp.org>
61222         isinf, isnan: Relax license.
61223         * modules/isinf (License): Change from GPL to LGPL, with consent from
61224         Ben Pfaff.
61225         * modules/isnan (License): Likewise.
61226         Requested by Ludovic Courtès.
61228 2010-09-04  Bruno Haible  <bruno@clisp.org>
61230         gnulib-tool: Help migration from --import to --add-import or --update.
61231         * gnulib-tool: Emit a verbose error message when --import is used
61232         without any module name.
61234 2010-09-04  Bruno Haible  <bruno@clisp.org>
61236         Update doc about gnulib-tool.
61237         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
61238         'gnulib-tool --update' in more detail.
61239         Reported by Eric Blake.
61241 2010-09-04  Bruno Haible  <bruno@clisp.org>
61243         gnulib-tool: Change --import. New options --add/remove-import.
61244         * gnulib-tool: New options --add-import, --remove-import.
61245         (func_usage): Document them.
61246         (have_associative): Define always.
61247         (func_import): In import mode, don't merge the specified settings with
61248         the cached settings. Implement remove-import mode.
61249         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
61250         Explain when to use them versus --import.
61251         (Simple update): Use --add-import instead of --import.
61252         * NEWS: Mention the change.
61254 2010-09-04  Bruno Haible  <bruno@clisp.org>
61256         * doc/gnulib-tool.texi (Initial import): Update paragraph about
61257         separate gnulib.mk.
61259 2010-09-04  Bruno Haible  <bruno@clisp.org>
61261         gnulib-tool: Don't talk about CVS any more.
61262         * gnulib-tool (func_usage, func_import): Write "version control"
61263         instead of CVS.
61265 2010-09-04  Jim Meyering  <meyering@redhat.com>
61267         maint.mk: avoid obscure sc_copyright_check failure in coreutils
61268         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
61269         false positives (whose names may be ill-chosen) when searching
61270         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
61271         would cause a false-positive.
61273         avoid coreutils "make distcheck" failure
61274         Coreutils tests with an absolute build directory name that contains
61275         a space.  Not quoting this directory name caused a failure.
61276         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
61277         * tests/test-vc-list-files-cvs.sh: Likewise.
61279 2010-09-04  Bruno Haible  <bruno@clisp.org>
61281         gnulib-tool: Avoid error when run in a package without Makefile.am.
61282         * gnulib-tool: When collecting the m4dirs in a package that does not
61283         have a Makefile.am, eliminate those directories that contain no
61284         gnulib-cache.m4. Fix expression that counts these directories.
61286 2010-09-04  Bruno Haible  <bruno@clisp.org>
61288         update-copyright test: Improve output when perl is missing or too old.
61289         * tests/test-update-copyright.sh: Move test of Perl version down after
61290         the test whether Perl exists. Provide an explanation relating Perl's
61291         error message to Automake's SKIP: message.
61293 2010-09-04  Bruno Haible  <bruno@clisp.org>
61295         Don't augment PATH in TESTS_ENVIRONMENT.
61296         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
61297         set abs_aux_dir instead of augmenting PATH.
61298         * modules/vc-list-files-tests (Makefile.am): Likewise.
61299         * tests/test-update-copyright.sh: Augment PATH here.
61300         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
61301         path_prepend_.
61302         * tests/test-vc-list-files-git.sh: Likewise.
61304 2010-09-04  Jim Meyering  <meyering@redhat.com>
61306         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
61307         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
61309 2010-09-04  Bruno Haible  <bruno@clisp.org>
61311         strdup: Fix compilation error in C++ mode.
61312         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
61313         the macro.
61315 2010-09-04  Bruno Haible  <bruno@clisp.org>
61317         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
61318         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
61319         macro into a function.
61320         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
61322 2010-09-04  Bruno Haible  <bruno@clisp.org>
61324         Set PATH_SEPARATOR the same way autoconf does.
61325         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
61326         the value of PATH_SEPARATOR the same way autoconf-generated configure
61327         scripts do.
61328         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
61329         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
61331 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
61333         Set PATH_SEPARATOR the same way autoconf does.
61334         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
61335         the same way autoconf-generated configure scripts do.
61336         * posix-modules: Likewise.
61338 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
61340         hash: fix safe_hasher const typo
61341         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
61342         const; otherwise, there is a type error later.
61344 2010-09-02  Jim Meyering  <meyering@redhat.com>
61346         test-update-copyright.sh: require perl 5.8.0
61347         * tests/test-update-copyright.sh: Require 5.8.0,
61348         which Tom G. Christensen has confirmed is adequate,
61349         while 5.6.1 is not.
61351 2010-09-02  Eric Blake  <eblake@redhat.com>
61353         tests: init.sh improvements for re-exec'ing with zsh
61354         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
61355         -vx through shell re-exec.
61356         Reported by Tom G. Christensen.
61358         wctype: fix typo in previous commit
61359         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
61360         Reported by Ludovic Courtès.
61362 2010-09-02  Jim Meyering  <meyering@redhat.com>
61364         test-update-copyright.sh: skip test if Perl is too old
61365         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
61366         Reported by Tom G. Christensen.
61368 2010-09-02  Bruno Haible  <bruno@clisp.org>
61370         wctype: Avoid compilation error on IRIX 6.5.30.
61371         * lib/wctype.in.h (iswblank): Declare with a replacement if
61372         REPLACE_ISWBLANK is set.
61373         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
61374         declared. Set REPLACE_ISWBLANK.
61375         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
61376         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
61377         * doc/posix-headers/wctype.texi: Likewise.
61378         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61380 2010-09-01  Bruno Haible  <bruno@clisp.org>
61382         New module 'socketlib'.
61383         * modules/socketlib: New file.
61384         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
61385         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
61386         * modules/sockets (Depends-on): Add socketlib.
61387         Suggested by Sam Steingold <sds@gnu.org>.
61389 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61391         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
61393         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
61394         when one needs search access to a directory but not read access.
61395         On systems where it is available, it works in some cases where
61396         O_RDONLY does not, namely on directories that are searchable but
61397         not readable, and which need only to be searchable.  If O_SEARCH
61398         is not available, fall back to the traditional method of using
61399         O_RDONLY.
61401         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
61402         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
61403         when opening a directory that needs only to be searchable.
61404         * lib/chdir-safer.c (chdir_no_follow): Likewise.
61405         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
61406         * lib/openat-proc.c (openat_proc_name): Likewise.
61407         * lib/openat.c (openat_needs_fchdir): Likewise.
61408         * lib/save-cwd.c (save_cwd): Likewise.
61409         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
61411 2010-08-28  Bruno Haible  <bruno@clisp.org>
61413         New module 'host-cpu-c-abi'.
61414         * modules/host-cpu-c-abi: New file.
61415         * m4/host-cpu-c-abi.m4: New file, based on part of
61416         clisp/src/m4/general.m4.
61417         Requested by Sam Steingold <sds@gnu.org>.
61419 2010-08-31  Eric Blake  <eblake@redhat.com>
61420         and Jim Meyering  <meyering@redhat.com>
61422         hash: factor, and guard against misbehaving hasher function
61423         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
61424         of table->hasher's return value.  Also protect against a hash value
61425         so large that adding it to table->bucket results in a NULL pointer.
61426         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
61427         Use it in place of open-coded check-and-abort.
61429 2010-08-30  Bruno Haible  <bruno@clisp.org>
61431         hash: silence spurious clang warning
61432         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
61433         Reported by Eric Blake.
61435 2010-08-30  Eric Blake  <eblake@redhat.com>
61437         strstr, memmem, strcasestr: avoid leaked shell message
61438         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
61439         FreeBSD.
61440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61441         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61443         tests: silence clang warning
61444         * tests/test-malloca.c (do_allocation): Avoid dead store.
61446 2010-08-29  Bruno Haible  <bruno@clisp.org>
61448         gettext: Fix recent mistake.
61449         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
61451 2010-08-29  Bruno Haible  <bruno@clisp.org>
61453         selinux-h: Offer a --without-selinux option.
61454         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
61455         --without-selinux was specified, skip all tests and define
61456         HAVE_SELINUX_SELINUX_H to 0.
61457         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
61458         set LIB_SELINUX to empty.
61459         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
61460         gl_LIBSELINUX. If --without-selinux was specified, replace
61461         selinux/context.h.
61462         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
61464 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61465             Bruno Haible  <bruno@clisp.org>
61467         Make the module 'realloc-gnu' work again on AIX and OSF/1.
61468         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
61469         of HAVE_REALLOC.
61470         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
61471         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
61472         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
61473         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61475 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61476             Bruno Haible  <bruno@clisp.org>
61478         Make the module 'calloc-gnu' work again on AIX and OSF/1.
61479         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
61480         HAVE_CALLOC.
61481         * lib/xmalloc.c: Update accordingly.
61482         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
61483         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
61484         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
61486 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61487             Bruno Haible  <bruno@clisp.org>
61489         Make the module 'malloc-gnu' work again on AIX and OSF/1.
61490         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
61491         HAVE_MALLOC.
61492         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
61493         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
61494         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
61496 2010-08-29  Bruno Haible  <bruno@clisp.org>
61498         Update modules list.
61499         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
61500         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
61501         (String handling <string.h>): Add astrxfrm.
61502         (File system functions): Add readlinkat.
61504 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61506         Tests for module 'realloc-gnu'.
61507         * modules/realloc-gnu-tests: New file.
61508         * tests/test-realloc-gnu.c: New file.
61510         Tests for module 'calloc-gnu'.
61511         * modules/calloc-gnu-tests: New file.
61512         * tests/test-calloc-gnu.c: New file.
61514         Tests for module 'malloc-gnu'.
61515         * modules/malloc-gnu-tests: New file.
61516         * tests/test-malloc-gnu.c: New file.
61518 2010-08-28  Bruno Haible  <bruno@clisp.org>
61520         Rename module 'realloc' -> 'realloc-gnu'.
61521         * modules/realloc-gnu: New file, copied from modules/realloc.
61522         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
61523         obsolete.
61524         * modules/mgetgroups (Depends-on): Update.
61525         * doc/posix-functions/realloc.texi: Update.
61526         * NEWS: Mention the change.
61528         Rename module 'calloc' -> 'calloc-gnu'.
61529         * modules/calloc-gnu: New file, copied from modules/calloc.
61530         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
61531         obsolete.
61532         * doc/posix-functions/calloc.texi: Update.
61533         * NEWS: Mention the change.
61535         Rename module 'malloc' -> 'malloc-gnu'.
61536         * modules/malloc-gnu: New file, copied from modules/malloc.
61537         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
61538         obsolete.
61539         * modules/argp (Depends-on): Update.
61540         * modules/regex (Depends-on): Update.
61541         * doc/posix-functions/malloc.texi: Update.
61542         * NEWS: Mention the change.
61544 2010-08-28  Eric Blake  <eblake@redhat.com>
61546         pread, pwrite: add missing dependency
61547         * modules/pread (Depends-on): Add extensions.
61548         * modules/pwrite (Depends-on): Likewise.
61550 2010-08-28  Bruno Haible  <bruno@clisp.org>
61552         unistr/u*-strchr: Fix tests dependencies.
61553         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
61554         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
61555         Reported by Ian Beckwith <ianb@erislabs.net>.
61557 2010-08-28  Bruno Haible  <bruno@clisp.org>
61559         read-file: Don't occupy too much unused memory.
61560         * lib/read-file.c (fread_file): Shrink the buffer at the end.
61562 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
61563             Eric Blake  <eblake@redhat.com>
61564             Bruno Haible  <bruno@clisp.org>
61566         read-file: Avoid memory reallocations with regular files.
61567         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
61568         (fread_file): With regular files, use the remaining length as the
61569         initial buffer size.  Check against overflow.
61570         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
61571         sys_stat.
61573 2010-08-28  Bruno Haible  <bruno@clisp.org>
61575         ftello: Relax license.
61576         * modules/ftello (License): Relax to LGPLv2+.
61577         Reported by Eric Blake.
61579 2010-08-28  Bruno Haible  <bruno@clisp.org>
61581         Avoid relocwrapper link errors due to gnulib replacement functions.
61582         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
61583         function.
61584         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61586 2010-08-28  Bruno Haible  <bruno@clisp.org>
61588         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
61589         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
61590         defined.
61591         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
61592         Suggested by Eric Blake.
61594 2010-08-28  Bruno Haible  <bruno@clisp.org>
61596         sys_socket, netdb: Ensure socklen_t gets defined.
61597         * modules/sys_socket (Depends-on): Add socklen.
61598         * modules/netdb (Depends-on): Likewise.
61599         * modules/getaddrinfo (Depends-on): Remove socklen.
61600         * modules/getsockopt (Depends-on): Likewise.
61601         * modules/setsockopt (Depends-on): Likewise.
61602         * tests/test-sys_socket.c: Check that socklen_t is defined.
61603         * tests/test-netdb.c: Likewise.
61604         * m4/socklen.m4: Update comments.
61605         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61607 2010-08-27  Eric Blake  <eblake@redhat.com>
61609         login_tty: add missing dependency
61610         * modules/login_tty (Depends-on): Add pty.
61612 2010-08-26  Eric Blake  <eblake@redhat.com>
61614         lib-symbol-versions: fix m4 quoting
61615         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
61616         format for AC_LINK_IFELSE.
61618         glob: fix compile test
61619         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
61621         btowc: fix missing file
61622         * modules/btowc (Files): Also ship locale-fr.m4.
61624         lseek: fix link test
61625         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
61626         AC_LINK_IFELSE.
61628         include_next: silence autoconf 2.68 warning
61629         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
61630         AC_COMPILE_IFELSE as special.
61631         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
61632         autoconf < 2.68.
61634         acl: fix compilation test
61635         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
61636         AC_COMPILE_IFELSE.
61638 2010-08-26  Bruno Haible  <bruno@clisp.org>
61640         Modernize AC_TRY_RUN invocations.
61641         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
61642         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
61643         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
61644         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
61645         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
61646         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
61647         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61648         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61649         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61650         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61651         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
61652         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61653         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
61654         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
61655         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
61656         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61657         gl_MBRLEN_NUL_RETVAL): Likewise.
61658         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61659         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
61660         Likewise.
61661         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61662         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61663         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
61664         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
61665         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
61666         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
61667         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
61668         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
61669         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
61670         Likewise.
61671         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
61672         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
61673         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61674         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61675         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61676         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
61677         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61678         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
61679         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61680         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61682 2010-08-26  Bruno Haible  <bruno@clisp.org>
61684         Modernize AC_TRY_LINK invocations.
61685         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
61686         AC_TRY_LINK.
61687         * m4/argp.m4 (gl_ARGP): Likewise.
61688         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
61689         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
61690         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61691         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61692         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61693         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
61694         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
61695         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
61696         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61697         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
61698         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61699         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
61700         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
61701         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
61702         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
61703         * m4/hostent.m4 (gl_HOSTENT): Likewise.
61704         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
61705         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
61706         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
61707         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
61708         Likewise.
61709         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
61710         Likewise.
61711         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
61712         Likewise.
61713         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
61714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
61715         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
61716         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
61717         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
61718         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
61719         * m4/servent.m4 (gl_SERVENT): Likewise.
61720         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
61721         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
61722         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
61723         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
61724         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
61725         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
61726         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
61727         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
61728         * modules/tsearch-tests (configure.ac): Likewise.
61730 2010-08-26  Bruno Haible  <bruno@clisp.org>
61732         Modernize AC_TRY_COMPILE invocations.
61733         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
61734         AC_TRY_COMPILE.
61735         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
61736         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
61737         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
61738         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61739         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
61740         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61741         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
61742         * m4/lock.m4 (gl_LOCK): Likewise.
61743         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
61744         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61745         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
61746         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
61747         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
61748         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
61749         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
61750         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
61751         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
61752         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
61753         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
61754         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61755         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
61756         extraneous semicolon.
61758 2010-08-26  Jim Meyering  <meyering@redhat.com>
61760         stat-time: relax license LGPL
61761         * modules/stat-time (License): Change from GPL to LGPL,
61762         with consent from all contributors, for use in libguile.
61763         Requested by Ludovic Courtès.
61765 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
61767         poll: return immediately on POLLHUP.
61768         * lib/poll.c (poll): Always set timeout before wait_timeout is
61769         computed.
61771 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61773         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
61774         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
61775         rmdir ("dir/.//"), unlinkat.
61777 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61779         stdbool: avoid spurious failure with modern xlc
61780         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61782 2010-08-24  Bruno Haible  <bruno@clisp.org>
61784         getloadavg: simplify code
61785         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
61786         gl_have_func. Update comments.
61788 2010-08-24  Eric Blake  <eblake@redhat.com>
61790         getloadavg: don't define SVR4 on cygwin
61791         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
61792         only define SVR4 when -lkvm is required.
61793         Reported by Yaakov Selkowitz.
61795 2010-08-24  Bruno Haible  <bruno@clisp.org>
61797         priv-set: fix comment
61798         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
61800 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61802         priv-set: fix comments
61803         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
61804         to match code, as suggested by David Bartley in:
61805         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
61807 2010-08-23  Eric Blake  <eblake@redhat.com>
61809         stdbool: avoid rejecting clang
61810         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
61811         * tests/test-stdbool.c: Enable more tests if using the system
61812         <stdbool.h> instead of the gnulib replacement.
61813         (main): Move xlc bug test to a runtime test for all compilers.
61814         Reported by Anders Kaseorg.
61816         argz: fix shell quoting issue
61817         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
61818         Reported by Charles Wilson.
61820 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
61821             Erik Faye-Lund <kusmabite@gmail.com>
61823         poll, select: handle ERROR_BROKEN_PIPE.
61824         * lib/poll.c (win32_compute_revents): Return POLLHUP when
61825         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61826         * lib/select.c (win32_compute_revents): Do not mark a pipe
61827         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
61829 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
61831         fts: allow compilation with C++
61832         * lib/fts_.h: Specify extern "C" linkage with C++.
61834 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61836         Fix gnulib-tool sed script de-commentation for AIX sed.
61837         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
61838         sed.
61840 2010-08-17  Eric Blake  <eblake@redhat.com>
61842         test-stddef: test for (some) offsetof bugs
61843         * tests/test-stddef.c: Enhance test to ensure correct type of
61844         offsetof.
61845         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
61846         that we are not fixing at this time.
61848 2010-08-15  Bruno Haible  <bruno@clisp.org>
61850         stpncpy: Allow stpncpy to be defined as a macro.
61851         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
61852         if it's already correctly declared.
61853         * lib/string.in.h (stpncpy): Undefine before redefining.
61854         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
61856 2010-08-14  Bruno Haible  <bruno@clisp.org>
61858         Rename module 'memxfrm' to 'amemxfrm'.
61859         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
61860         (amemxfrm): Renamed from memxfrm.
61861         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
61862         (amemxfrm): Renamed from memxfrm.
61863         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
61864         * NEWS: Mention the change.
61865         * MODULES.html.sh (String handling <string.h>): Update.
61866         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
61867         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
61868         * lib/unicase/u16-casexfrm.c: Likewise.
61869         * lib/unicase/u32-casexfrm.c: Likewise.
61870         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
61871         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
61872         * lib/uninorm/u16-normxfrm.c: Likewise.
61873         * lib/uninorm/u32-normxfrm.c: Likewise.
61874         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
61875         memxfrm.
61876         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
61877         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
61878         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
61879         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
61880         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
61881         Suggested by Paul Eggert.
61883 2010-08-14  Bruno Haible  <bruno@clisp.org>
61885         Tests for module 'astrxfrm'.
61886         * modules/astrxfrm-tests: New file.
61887         * tests/test-astrxfrm.c: New file.
61889         New module 'astrxfrm'.
61890         * lib/astrxfrm.h: New file.
61891         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
61892         * modules/astrxfrm: New file.
61894 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
61896         regex: Tweak doc.
61897         * doc/regex.texi (Overview): Don't mention regex.c.
61898         (GNU Regular Expression Compiling): Likewise.
61899         (Match-end-of-line Operator): Mention 'not_eol'.
61901 2010-08-14  Brian Gough  <bjg@gnu.org>
61902             Bruno Haible  <bruno@clisp.org>
61904         git-merge-changelog: add doc relating to use with bzr and hg.
61905         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
61907 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
61909         pthread: fix pthread.h creation for srcdir != builddir
61910         * modules/pthread (Makefile.am): Fix the rule to work also in a
61911         non-srcdir build.
61913 2010-08-13  Karl Berry  <karl@gnu.org>
61915         * doc/regex.texi (Predefined Syntaxes): @smallexample.
61916         * doc/posix-*/*: force line break before @url of POSIX
61917         specifications.
61918         Suggested by Werner Lemberg.
61920 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61922         strtod: fix const diagnostic
61923         * lib/strtod.c (strtod): Don't assign const char * to char *,
61924         as this elicits a warning from GCC when warnings are enabled.
61926 2010-08-10  Pádraig Brady  <P@draigbrady.com>
61927         and Eric Blake  <eblake@redhat.com>
61929         copy-acl: ignore ENOTSUP on HP-UX
61930         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
61931         so that it is available for HP-UX.
61932         * lib/copy-acl.c (qcopy_acl): Use it.
61933         Reported by Patrick M. Callahan.
61935 2010-08-10  Eric Blake  <eblake@redhat.com>
61937         open, chown: relax license
61938         * modules/open (License): Change to LGPLv2+, with consent by all
61939         authors, for use in augeas.
61940         * modules/chown (License): Likewise.
61941         * modules/lchown (Likewise): Likewise.
61942         Requested by Adam Stokes.
61944 2010-08-09  Karl Berry  <karl@gnu.org>
61946         * build-aux/ar-lib: new file, import from Automake.
61947         * config/srclist.txt: autocheck for updates.
61949 2010-08-09  Eric Blake  <eblake@redhat.com>
61951         readlinkat: adjust client modules
61952         * modules/areadlinkat (Depends-on): Use readlinkat, not
61953         symlinkat.
61954         * modules/areadlinkat-with-size (Depends-on): Likewise.
61956         mknod: be more vocal about danger of running tests as root
61957         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
61958         root, since that is just asking for problems.
61959         Suggested by Bruno Haible, based on a report by Rainer Tammer.
61961         readlinkat: split into its own module
61962         * modules/symlinkat: Split readlinkat...
61963         * modules/readlinkat: ...into separate module.
61964         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
61965         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
61966         * lib/symlinkat.c (readlinkat): Move...
61967         * lib/readlinkat.c: ...into new file.
61968         * modules/symlinkat-tests: Split readlinkat test...
61969         * modules/readlinkat-tests: ...into separate module.
61970         * tests/test-symlinkat.c: Split...
61971         * tests/test-readlinkat.c: ...into new file.
61972         * NEWS: Document the split.
61973         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61974         * lib/unistd.in.h (readlinkat): Likewise.
61975         Suggested by Bruno Haible.
61977 2010-08-08  Bruno Haible  <bruno@clisp.org>
61979         memxfrm: Speed up.
61980         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
61981         that usually only one call to strxfrm is necessary for each string
61982         part.
61983         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61985 2010-08-07  Karl Berry  <karl@gnu.org>
61987         * doc/posix-headers/limits.texi,
61988         * doc/posix-functions/malloc.texi,
61989         * doc/posix-functions/strsignal.texi: missing @item.
61990         * doc/ld-version-script.texi: spurious leading i.
61991         * doc/regex.texi (Interval Operators): no commas inside @var.
61993 2010-08-01  Bruno Haible  <bruno@clisp.org>
61995         Integrate the regex documentation.
61996         * doc/gnulib.texi: Define 'cn' index.
61997         (Regular expressions): New a chapter that includes regex.texi and
61998         regexprops-generic.texi.
61999         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
62000         syntax.
62002         Whitespace cleanup.
62003         * doc/regex.texi: Remove trailing spaces.
62005         Add regex documentation.
62006         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
62007         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
62008         Written by Kathy A. Hargreaves and Karl Berry.
62010 2010-08-01  Bruno Haible  <bruno@clisp.org>
62012         link: Update documentation.
62013         * doc/posix-functions/link.texi: Update regarding Solaris.
62015 2010-07-31  Bruno Haible  <bruno@clisp.org>
62017         Update modules list.
62018         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
62019         (String handling <string.h>): Add memcmp2, memxfrm.
62020         (Container data structures): Add xlist, xsublist, xoset.
62021         (Core language properties): Add alignof, unused-parameter.
62022         (Process control, Numeric conversion functions <stdlib.h>): Renamed
62023         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
62024         (Unibyte characters <ctype.h>): New section.
62025         (String handling <string.h>): New section.
62026         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
62027         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
62028         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
62029         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
62030         tan, tanh, tanl, y0, y1, yn.
62031         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
62032         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
62033         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
62034         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
62035         unlockpt, vdprintf, vdprintf-posix.
62036         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
62037         (File system functions): Add concat-filename, sys_file, sys_ioctl,
62038         xconcat-filename.
62039         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
62040         getdtablesize, pipe2, pipe2-safer.
62041         (Security): New section.
62042         (Networking functions): Add accept4.
62043         (Signal handling): Add sigpipe.
62044         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
62045         mbmemcasecoll.
62046         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
62047         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
62048         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
62049         pipe-filter-ii.
62050         (Misc): Add argp-version-etc, login_tty, parse-duration.
62052 2010-07-31  Bruno Haible  <bruno@clisp.org>
62054         Improve doc in MODULES.html.
62055         * modules/linkat (Description): Add the word "function".
62056         * modules/mkfifo (Description): Likewise.
62057         * modules/mknod (Description): Likewise.
62058         * modules/remove (Description): Likewise.
62059         * modules/renameat (Description): Likewise.
62060         * modules/stat (Description): Likewise.
62061         * modules/symlink (Description): Likewise.
62062         * modules/unlink (Description): Likewise.
62064 2010-07-31  Bruno Haible  <bruno@clisp.org>
62066         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
62067         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
62068         option --enable/disable-c++ instead of --enable/disable-cxx.
62069         * NEWS: Mention the change.
62071 2010-07-31  Bruno Haible  <bruno@clisp.org>
62073         readlink, areadlink: Relax test a bit.
62074         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
62075         alternative to ENOTDIR.
62076         * tests/test-areadlink.h (test_areadlink): Likewise.
62077         Reported by Rainer Tammer.
62079 2010-07-31  Bruno Haible  <bruno@clisp.org>
62081         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
62082         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
62083         character, perform the search using U_STRCHR.
62084         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
62085         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
62086         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
62087         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
62088         Suggested by Paolo Bonzini.
62090 2010-07-31  Bruno Haible  <bruno@clisp.org>
62092         unistr/u*-strstr: Fix dependencies.
62093         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
62094         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
62095         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
62097 2010-07-31  Bruno Haible  <bruno@clisp.org>
62099         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
62100         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
62101         the beginning of the loop.
62102         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
62103         cases in 'switch' statement.
62105         unistr/u8-strchr: Fix several bugs.
62106         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
62107         the string. When not found, return NULL, not a pointer near the end.
62109         More tests for unistr/u8-strchr.
62110         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
62111         that the function does not read past the first occurrence of the byte
62112         being searched.
62113         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
62114         * tests/unistr/test-u16-strchr.c (main): New function.
62115         * tests/unistr/test-u32-strchr.c (main): New function.
62117 2010-07-31  Bruno Haible  <bruno@clisp.org>
62119         posix-modules: Ignore backup files of documentation files.
62120         * posix-modules: grep only through files named *.texi.
62122 2010-07-31  Bruno Haible  <bruno@clisp.org>
62124         symlinkat: Fix documentation.
62125         * doc/posix-functions/readlinkat.texi: Fix module name.
62127 2010-07-31  Bruno Haible  <bruno@clisp.org>
62129         fchownat: Replace also when chown has the trailing slash bug.
62130         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
62131         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
62132         introduced on 2010-04-10.
62133         Reported by Rainer Tammer.
62135 2010-07-31  Bruno Haible  <bruno@clisp.org>
62137         linkat: Work around AIX 7.1 bug.
62138         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
62139         whether linkat handles trailing slash correctly. If not, replace linkat
62140         and define LINKAT_TRAILING_SLASH_BUG.
62141         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
62142         check whether (fd1,file1) points to a directory if file1 or file2 ends
62143         in a slash. Code taken from lib/link.c.
62144         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
62145         Reported by Rainer Tammer.
62147 2010-07-31  Bruno Haible  <bruno@clisp.org>
62149         Correctly determine whether pow is available in libc on AIX 7 with xlc.
62150         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
62151         This disables an xlc optimization that was causing wrong test results.
62152         Reported by Rainer Tammer.
62154 2010-07-31  Bruno Haible  <bruno@clisp.org>
62156         iconv: Work around AIX 6.1..7.1 bug.
62157         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
62158         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
62159         cross-compiling, guess no on all versions of AIX.
62160         Reported by Rainer Tammer.
62162 2010-07-31  Bruno Haible  <bruno@clisp.org>
62164         readlink: Relax test a bit.
62165         * tests/test-readlink.h (test_readlink): Allow different errno value
62166         when readlink is called with a file name that ends in / and refers to
62167         a file.
62168         Suggested by Eric Blake.
62169         Reported by Rainer Tammer.
62171 2010-07-31  Bruno Haible  <bruno@clisp.org>
62173         copysign: Does not require -lm on glibc systems.
62174         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
62175         gl_COMMON_DOUBLE_MATHFUNC.
62176         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
62178 2010-07-31  Bruno Haible  <bruno@clisp.org>
62180         duplocale: Work around AIX 7.1 bug.
62181         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
62182         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
62183         * lib/duplocale.c (rpl_duplocale): Update comment.
62184         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
62185         Reported by Rainer Tammer.
62187 2010-07-30  Bruno Haible  <bruno@clisp.org>
62189         dirfd: Avoid link error on AIX 7.1.
62190         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
62191         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
62192         exist, set REPLACE_DIRFD.
62193         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
62194         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
62195         * doc/posix-functions/dirfd.texi: Update.
62196         Reported by Rainer Tammer.
62198 2010-07-30  Eric Blake  <eblake@redhat.com>
62200         strtod: next round of AIX fixes
62201         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
62202         exponent.
62203         * tests/test-strtod.c (main): Enhance tests.
62204         * doc/posix-functions/strtod.texi (strtod): Document next bug.
62205         Reported by Rainer Tammer.
62207         futimens: fix configure check
62208         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
62209         Reported by Bruno Haible.
62211 2010-07-30  Bruno Haible  <bruno@clisp.org>
62213         getline: Update regarding AIX.
62214         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
62215         Reported by Rainer Tammer.
62217 2010-07-30  Bruno Haible  <bruno@clisp.org>
62219         wcwidth: Drop replacement on AIX 7.
62220         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
62221         AIX 7.
62222         Reported by Rainer Tammer.
62224 2010-07-30  Bruno Haible  <bruno@clisp.org>
62226         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
62227         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
62228         a 'char *'.
62229         Reported by Rainer Tammer.
62231 2010-07-30  Bruno Haible  <bruno@clisp.org>
62233         unlink: Update regarding AIX.
62234         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
62235         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
62236         Reported by Rainer Tammer.
62238 2010-07-30  Bruno Haible  <bruno@clisp.org>
62240         symlink: Update regarding AIX.
62241         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
62242         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
62243         Reported by Rainer Tammer.
62245 2010-07-30  Bruno Haible  <bruno@clisp.org>
62247         strndup: Update regarding AIX.
62248         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
62249         AIX 7.
62250         Reported by Rainer Tammer.
62252 2010-07-30  Bruno Haible  <bruno@clisp.org>
62254         stat: Update regarding AIX.
62255         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
62256         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
62257         Reported by Rainer Tammer.
62259 2010-07-30  Bruno Haible  <bruno@clisp.org>
62261         truncl: Fix autoconf test.
62262         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
62263         whether truncl works.
62264         Reported by Rainer Tammer.
62266 2010-07-30  Bruno Haible  <bruno@clisp.org>
62268         round: Update regarding AIX.
62269         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
62270         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
62271         Reported by Rainer Tammer.
62273 2010-07-30  Bruno Haible  <bruno@clisp.org>
62275         rename: Update regarding AIX.
62276         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
62277         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
62278         Reported by Rainer Tammer.
62280 2010-07-30  Bruno Haible  <bruno@clisp.org>
62282         printf.m4: Update regarding AIX.
62283         * m4/printf.m4: Update comments regarding AIX.
62284         Reported by Rainer Tammer.
62286 2010-07-30  Bruno Haible  <bruno@clisp.org>
62288         iconv: Update regarding AIX.
62289         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
62290         AIX 7.
62291         Reported by Rainer Tammer.
62293 2010-07-30  Bruno Haible  <bruno@clisp.org>
62295         getopt: Update regarding AIX.
62296         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
62297         no on AIX.
62298         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
62299         Reported by Rainer Tammer.
62301 2010-07-30  Bruno Haible  <bruno@clisp.org>
62303         ldexpl; Update regarding AIX.
62304         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
62305         on AIX 7.
62306         Reported by Rainer Tammer.
62308 2010-07-30  Bruno Haible  <bruno@clisp.org>
62310         frexpl: Update regarding AIX.
62311         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
62312         on AIX 7.
62313         Reported by Rainer Tammer.
62315 2010-07-30  Bruno Haible  <bruno@clisp.org>
62317         open, fopen: Update regarding AIX.
62318         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
62319         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62320         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
62321         * doc/posix-functions/fopen.texi: Likewise.
62322         Reported by Rainer Tammer.
62324 2010-07-30  Bruno Haible  <bruno@clisp.org>
62326         chown: Update doc regarding AIX.
62327         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
62328         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
62329         Reported by Rainer Tammer.
62331 2010-07-30  Eric Blake  <eblake@redhat.com>
62333         strtod: fix bug in replacement function on AIX
62334         * lib/strtod.c (strtod): Special case broken "0x" parse in
62335         underlying strtod.
62336         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
62337         * doc/posix-functions/strtod.texi (strtod): Likewise.
62338         Reported by Rainer Tammer.
62340 2010-07-30  Bruno Haible  <bruno@clisp.org>
62342         mbrlen: Fix cross-compilation guess for AIX.
62343         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
62344         guess. Leftover from 2008-12-22.
62346 2010-07-30  Bruno Haible  <bruno@clisp.org>
62348         mbrtowc: Fix cross-compilation guess for AIX.
62349         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
62350         guess. Leftover from 2008-12-21.
62352 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
62354         init.sh: work around trap limitation of some shells
62355         * tests/init.sh (setup_): Move exit trap outside of shell function.
62357 2010-07-29  Eric Blake  <eblake@redhat.com>
62359         strtod: aid debugging
62360         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
62361         understanding why strtod is rejected.
62363 2010-07-28  Bruno Haible  <bruno@clisp.org>
62365         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
62366         * lib/unistr/u8-chr.c: Include <string.h>.
62367         * tests/unistr/test-u8-chr.c: Likewise.
62368         * tests/unistr/test-u16-chr.c: Likewise.
62369         * tests/unistr/test-u32-chr.c: Likewise.
62370         * tests/unistr/test-u8-strchr.c: Likewise.
62371         * tests/unistr/test-u16-strchr.c: Likewise.
62372         * tests/unistr/test-u32-strchr.c: Likewise.
62373         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
62374         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
62375         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
62376         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
62378 2010-07-28  Bruno Haible  <bruno@clisp.org>
62380         Use spaces for indentation, not tabs.
62381         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
62383 2010-07-27  Bruno Haible  <bruno@clisp.org>
62385         mbspcasecmp: Fix function specification.
62386         * lib/string.in.h (mbspcasecmp): Fix specification comment.
62387         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
62388         Reported by Eric Blake <eblake@redhat.com>.
62390 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
62392         timespec: use cast and not conditional, as truncation isn't possible
62393         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
62394         instead of a conditional.  Comment about the situation in more detail.
62395         This undoes most of the 2009-10-29 patch.
62397 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
62399         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
62400         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
62401         * lib/unistr/u8-strchr.c: Likewise.
62402         * modules/unistr/u8-chr: Depend on memchr.
62404         unistr/u*-strchr: add tests
62405         * modules/unistr/u8-strchr-tests: New file.
62406         * modules/unistr/u16-strchr-tests: New file.
62407         * modules/unistr/u32-strchr-tests: New file.
62408         * tests/unistr/test-strchr.h: New file.
62409         * tests/unistr/test-u8-strchr.c: New file.
62410         * tests/unistr/test-u16-strchr.c: New file.
62411         * tests/unistr/test-u32-strchr.c: New file.
62413         unistr/u*-chr: test multibyte sequences more
62414         * tests/unistr/test-chr.h: Do complete testing of the characters in the
62415         test vector.
62416         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
62417         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
62418         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
62420         unistr/u*-chr: test multibyte sequences
62421         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
62423         unistr/u*-chr: prepare for multibyte tests
62424         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
62425         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
62426         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
62427         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
62428         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
62429         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
62431 2010-07-18  Bruno Haible  <bruno@clisp.org>
62433         unistr/u8-strchr: Optimize non-ASCII argument case.
62434         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
62435         because the first byte often matches anyway.
62436         Reported by Pádraig Brady <P@draigbrady.com>.
62438 2010-07-15  Karl Berry  <karl@gnu.org>
62440         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
62442 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
62444         getcwd: on Solaris, work better if ancestors are inaccessible
62445         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
62446         buffer and size, try again with a large buffer.  This works better
62447         on Solaris, since its getcwd succeeds even if the path to the root
62448         is inaccessible, and this is helpful in common cases such as .zfs
62449         hidden directories.  Problem reported by J Chapman Flack in
62450         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
62451         Use system getcwd if it's declared, not merely if it's partly
62452         working; use the partly-working test only to avoid needless effort
62453         if the system getcwd fails.
62454         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
62455         comment that was already obsolete and is now even more obsolete.
62456         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
62457         now might call strdup.
62459 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
62461         pthread: Add enough so that coreutils/src/sort.c compiles.
62462         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
62463         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
62464         gnulib. Include <sched.h> and <time.h>, as per POSIX.
62465         Include <sys/types.h>, in case it defines pthread_t.
62466         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
62467         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
62468         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
62469         (pthread_rwlockattr_t, pthread_spinlock_t):
62470         New typedefs, if HAVE_PTHREAD_T is not defined.
62471         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
62472         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
62473         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
62474         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
62475         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
62476         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
62477         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
62478         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
62479         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
62480         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
62481         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
62482         New macros.
62483         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
62484         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
62485         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
62486         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
62487         (pthread_spin_unlock): New dummy functions.
62488         (pthread_create): Return EAGAIN; don't set errno.
62489         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
62490         require AC_C_INLINE.
62491         * modules/pthread (Depends-on): Add sched, time.
62492         (pthread.h): Use AM_V_GEN.
62494 2010-07-13  Bruno Haible  <bruno@clisp.org>
62496         striconveh: Don't malloc memory if the result buffer is sufficient.
62497         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
62498         buffer if its size is sufficient.
62499         Reported by Ludovic Courtès <ludo@gnu.org>.
62501 2010-07-13  Bruno Haible  <bruno@clisp.org>
62503         strtod: Add safety check.
62504         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
62506 2010-07-12  Bruno Haible  <bruno@clisp.org>
62508         Unify tests that set gl_cv_func_ldexpl_no_libm.
62509         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
62510         gl_FUNC_LDEXPL.
62511         (gl_FUNC_LDEXPL): Invoke it.
62512         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62514 2010-07-12  Bruno Haible  <bruno@clisp.org>
62516         Unify tests that set gl_cv_func_ldexp_no_libm.
62517         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
62518         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
62519         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
62520         (configure.ac): Simply invoke gl_FUNC_LDEXP.
62521         * modules/strtod (Files): Add m4/ldexp.m4.
62523 2010-07-12  Bruno Haible  <bruno@clisp.org>
62525         Unify tests that set gl_cv_func_frexpl_no_libm.
62526         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
62527         gl_FUNC_FREXPL_NO_LIBM.
62528         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
62529         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
62531 2010-07-12  Bruno Haible  <bruno@clisp.org>
62533         Unify tests that set gl_cv_func_frexp_no_libm.
62534         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
62535         gl_FUNC_FREXP_NO_LIBM.
62536         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
62537         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62539 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62541         memcoll: clarify sizes versus lengths, document better, and tweak perf
62542         * lib/memcoll.c (strcoll_loop, memcoll0):
62543         Improve quality of descriptive comments.  Name variables
62544         consistently as to whether they are lengths (which do not include
62545         terminating null) versus sizes (which do).
62546         * lib/xmemcoll.c (xmemcoll0): Likewise.
62547         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
62548         returned when s1size == 0; this is easier to compile and saves
62549         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
62551 2010-07-12  Bruno Haible  <bruno@clisp.org>
62553         Tests for module '_Exit'.
62554         * modules/_Exit-tests: New file.
62555         * tests/test-_Exit.sh: New file.
62556         * tests/test-_Exit.c: New file.
62558         New module '_Exit'.
62559         * lib/stdlib.in.h (__attribute__): New macro.
62560         (_Exit): New declaration.
62561         * lib/_Exit.c: New file.
62562         * m4/_Exit.m4: New file.
62563         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
62564         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
62565         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
62566         * modules/_Exit: New file.
62567         * tests/test-stdlib-c++.cc (_Exit): Check signature.
62568         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
62570 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
62572         strtod: make it more-accurate typically, and don't require libm
62573         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
62574         Include limits.h.  Don't include string.h.
62575         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
62576         (locale_isspace): New function, so that no casts are needed to
62577         check whether *s is a space.
62578         (ldexp): Provide an unused dummy if not available.
62579         (scale_radix_exp, parse_number, underlying_strtod): New functions.
62580         (strtod): Use them.  This implementation prefers to use the
62581         underlying strtod if available, falling back on our own code
62582         only to fix known bugs.  This is more likely to produce an
62583         accurate result.  Also, it avoids the use of libm functions.
62584         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
62585         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
62586         was absent, but it caused a test failure with coreutils.
62587         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
62588         with libm.
62589         * modules/strtod (Makefile.am, Link): libm is no longer needed.
62590         * modules/strtod-tests (Makefile.am): Likewise.
62592 2010-07-11  Pádraig Brady  <P@draigBrady.com>
62593             Bruno Haible  <bruno@clisp.org>
62595         unistr/u8-strchr: Optimize ASCII argument case.
62596         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
62598 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
62600         (x)memcoll: minor tweaks
62601         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
62602         is after the type that it qualifies.
62603         (memcoll0): Likewise.
62604         * lib/memcoll.h (memcoll0): Likewise.
62605         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
62606         * lib/xmemcoll.h (xmemcoll0): Likewise.
62607         * lib/memcoll.c (memcoll0): Correct the comment.  This function
62608         differs from memcoll in that the NUL byte is part of the argument.
62609         Omit the abort-checks, as performance is a real issue here.  Plus,
62610         the checks were wrong anyway (an off-by-one error).  Omit local
62611         variable 'diff', as it's a bit clearer that way.
62612         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
62613         no longer needed.
62615 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
62617         (x)memcoll: speedup when input is known to be NUL delimited
62618         * lib/memcoll.c: Include stdlib.
62619         (memcoll0): New function.
62620         (strcoll_loop): New function, refactored for use in both memcoll
62621         and memcoll0.
62622         * lib/memcoll.h (memcoll0): Add prototype.
62623         * lib/xmemcoll.c (xmemcoll0): New function.
62624         (collate_error): New function, refactored for use in both xmemcoll
62625         and xmemcoll0.
62626         * lib/xmemcoll.h (xmemcoll0): Add prototype.
62627         * m4/memcoll.m4: add inline invocation.
62629 2010-07-06  Pádraig Brady  <P@draigBrady.com>
62631         * build-aux/bootstrap: Remove any local translations
62632         from the translation project synchronization directory,
62633         so that local only translations are not distributed.
62635 2010-07-04  Bruno Haible  <bruno@clisp.org>
62637         fsusage: Clarify which code applies to which platforms.
62638         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
62639         platform.
62640         * lib/fsusage.c (get_fs_usage): Likewise.
62642 2010-07-04  Bruno Haible  <bruno@clisp.org>
62644         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
62645         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
62646         Reported by Martin Lambers <marlam@marlam.de>.
62648 2010-07-04  Jim Meyering  <meyering@redhat.com>
62650         hash: once again explicitly disallow insertion of NULL
62651         * lib/hash.c (hash_insert0): Reinstate just-removed test:
62652         inserting a NULL pointer cannot work with these functions.
62653         Add a comment with details.
62654         This reverts part of the 2010-07-01 commit, 5bef1a35
62655         "hash: extend module to deal with non-pointer keys".
62657 2010-07-01  Bruno Haible  <bruno@clisp.org>
62659         stdbool: Update doc.
62660         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
62661         Info from Christian Weisgerber <naddy@mips.inka.de>.
62663 2010-07-01  Jim Meyering  <meyering@redhat.com>
62665         hash: extend module to deal with non-pointer keys
62666         * lib/hash.c (hash_insert0): New interface, much like hash_insert
62667         but that allows insertion of non-pointer entries.
62668         Do not disallow an ENTRY value of NULL.
62669         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
62670         * lib/hash.h (hash_insert0): Declare.
62672 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62674         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
62675         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
62676         not present (i.e. with autoconf 2.59 and when using gettextize, not
62677         gnulib), require AC_GNU_SOURCE instead.
62679 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
62681         idpriv-drop: Fix tests.
62682         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
62683         not to the test-idpriv-droptemp program.
62685 2010-06-29  Bruno Haible  <bruno@clisp.org>
62687         string: Fix syntax error with g++ 2.96.
62688         * lib/string.in.h (__pure__): Remove definition.
62689         (_GL_ATTRIBUTE_PURE): New macro.
62690         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
62691         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
62692         Reported by Christian Weisgerber <naddy@mips.inka.de>.
62694 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
62696         unitypes: Fix bug introduced on 2010-05-18.
62697         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
62699 2010-06-22  Eric Blake  <eblake@redhat.com>
62701         memmem: slight optimization
62702         * lib/str-two-way.h (critical_factorization): Update comments.
62703         Reduce work during factorization phase.
62704         Reported by Carlos Bueno <carlos@bueno.org>.
62706 2010-06-21  Bruno Haible  <bruno@clisp.org>
62708         Fix HAVE_CALLOC_POSIX misnomer.
62709         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
62710         !HAVE_CALLOC_POSIX.
62711         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
62712         HAVE_CALLOC_POSIX.
62713         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
62714         instead of HAVE_CALLOC_POSIX.
62715         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
62716         HAVE_CALLOC_POSIX.
62718         Use modern idiom for calloc() replacement.
62719         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
62720         AC_FUNC_CALLOC.
62721         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
62722         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
62723         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62724         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
62725         (gl_REPLACE_CALLOC): New macro.
62727 2010-06-21  Bruno Haible  <bruno@clisp.org>
62729         Fix HAVE_REALLOC_POSIX misnomer.
62730         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
62731         !HAVE_REALLOC_POSIX.
62732         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
62733         HAVE_REALLOC_POSIX.
62734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
62735         instead of HAVE_REALLOC_POSIX.
62736         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
62737         HAVE_REALLOC_POSIX.
62739         Use modern idiom for realloc() replacement.
62740         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
62741         AC_FUNC_REALLOC.
62742         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
62743         Autoconf's AC_FUNC_REALLOC.
62744         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62745         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
62746         (gl_REPLACE_REALLOC): New macro.
62747         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62749 2010-06-21  Bruno Haible  <bruno@clisp.org>
62751         Fix HAVE_MALLOC_POSIX misnomer.
62752         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
62753         !HAVE_MALLOC_POSIX.
62754         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
62755         HAVE_MALLOC_POSIX.
62756         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
62757         instead of HAVE_MALLOC_POSIX.
62758         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
62759         HAVE_MALLOC_POSIX.
62761         Use modern idiom for malloc() replacement.
62762         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
62763         AC_FUNC_MALLOC.
62764         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
62765         Autoconf's AC_FUNC_MALLOC.
62766         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
62767         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
62768         (gl_REPLACE_MALLOC): New macro.
62769         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
62771 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
62773         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
62774         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
62775         This macro takes 3 arguments, not 4.
62777 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
62779         ipv6: fix detection under mingw
62780         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
62781         in6_addr.
62783 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
62785         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
62786         that strtod() works when cross-compiling to a glibc version known
62787         to work.
62789 2010-06-15  Bruno Haible  <bruno@clisp.org>
62791         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
62793 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
62795         select: Correct timeout.
62796         * lib/select.c (rpl_select): Compute wait_timeout correctly.
62798 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62800         git-version-gen: init shell var to avoid env var influence
62801         * build-aux/git-version-gen (v): Init shell var to empty.
62803 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
62805         priv-set: Don't assume that priv.h exists merely because getppriv does.
62806         See Jan Andersen's bug report about AIX 5L in
62807         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
62808         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
62809         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
62810         * lib/priv-set.h: Likewise.
62811         * tests/test-priv-set.c: Likewise.
62813 2010-06-13  Bruno Haible  <bruno@clisp.org>
62815         relocatable: Make it easier to test whether to install wrappers.
62816         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
62817         RELOCATABLE_VIA_WRAPPER.
62819 2010-06-13  Bruno Haible  <bruno@clisp.org>
62821         gnulib-tool: Display specified modules and dependencies differently.
62822         * gnulib-tool (func_show_module_list): New function.
62823         (func_import, func_create_testdir): Invoke it.
62824         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62826 2010-06-13  Bruno Haible  <bruno@clisp.org>
62828         gnulib-tool: Align code of func_import and func_create_testdir.
62829         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
62830         specified_modules.
62832 2010-06-12  Jim Meyering  <meyering@redhat.com>
62834         test-inttostr: avoid spurious failure on Solaris 9
62835         * tests/test-inttostr.c (main): Skip the test when snprintf fails
62836         to accept "%ju".  Reported by Bruno Haible.
62838 2010-06-11  Jim Meyering  <meyering@redhat.com>
62840         test-sys_socket: mark variables as used more readably
62841         * tests/test-sys_socket.c (main): Mark otherwise unused variables
62842         as "used" explicitly via (void) statement casts.  This is more
62843         readable than using them in an artificial return expression.
62844         Suggestion from Bruno Haible.
62846 2010-06-11  Bruno Haible  <bruno@clisp.org>
62848         Avoid some more warnings from "gcc -Wwrite-strings".
62849         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
62850         to 'const char *'.
62851         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
62852         * tests/test-c-strcasestr.c (main): Likewise.
62853         * tests/test-mbscasestr1.c (main): Likewise.
62854         * tests/test-mbscasestr2.c (main): Likewise.
62855         * tests/test-memmem.c (main): Likewise.
62856         * tests/test-strstr.c (main): Likewise.
62857         * tests/test-strcasestr.c (main): Likewise.
62859 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62861         init.sh: change framework_failure_ to fail with status 99, not 1
62862         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
62863         automake's parallel-tests rule that this is an unexpected failure,
62864         even if the test is listed in XFAIL_TESTS.
62866 2010-06-11  Jim Meyering  <meyering@redhat.com>
62868         test-inttostr: avoid warnings about 4-6KB literal strings
62869         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
62870         Include "macros.h", for its definition of ASSERT.
62871         (CK): s/assert/ASSERT/
62872         * modules/inttostr-tests (Files): Add macros.h.
62874         init.sh: don't use $ME_ or skip_ before they are defined
62875         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
62876         their first uses.  Also hoist their companions: warn_, fail_,
62877         framework_failure_, $stderr_fileno.  Prompted by a patch from
62878         Stefano Lattarini.
62880         test-sys_socket: avoid set-but-not-used warnings from gcc
62881         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
62882         avoid warning about set-but-not-used variables.
62884         test-xvasprintf: avoid 'const' discard warnings
62885         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
62886         "const" when assigning from literal strings.
62887         (test_xasprintf): Add "void" in function argument list to placate
62888         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
62890         tests: avoid compilation warnings in argmatch and exclude tests...
62891         in packages that define ARGMATCH_DIE_DECL, like coreutils.
62892         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
62893         Since it always exits, declare with the "noreturn" attribute.
62894         * tests/test-argmatch.c: Likewise.
62896         tests: avoid 'const' discard warnings in mbsstr tests
62897         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
62898         * tests/test-mbsstr2.c (main): Likewise.
62900         test-verify: avoid warning from gcc's -Wmissing-declarations
62901         * tests/test-verify.c (function): Declare to be static.
62903         test-inttostr.c: include <string.h> for use of strcmp
62904         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
62906         test-linkat: avoid failed assertion on "other" architectures
62907         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
62908         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
62909         sparc: https://bugs.launchpad.net/bugs/591968
62911 2010-06-11  Jim Meyering  <meyering@redhat.com>
62913         printf.m4: avoid autoconf's "Expanded Before Required" warning
62914         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
62915         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
62916         autoconf warning.
62918 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
62920         Replacement header templates are now named with ".in", not "_".
62921         * doc/gnulib-intro.texi: Correct.
62923 2010-06-10  Jim Meyering  <meyering@redhat.com>
62925         inttostr-tests: depend on snprintf, not snprintf-posix
62926         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
62927         snprintf-posix, to avoid this aclocal failure:
62928           missing file gnulib-tests/vasnprintf.c
62929           configure.ac:45: error: expected source file, required through \
62930           AC_LIBSOURCES, not found
62932 2010-06-10  Jim Meyering  <meyering@redhat.com>
62934         inttostr: add a new function, inttostr, and tests
62935         The namesake function was not available.  The existence of the
62936         template file, inttostr.c makes its addition nontrivial.
62937         * lib/anytostr.c: Rename from inttostr.c.
62938         (anytostr): Rename from inttostr.
62939         * lib/inttostr.c: New file.
62940         * modules/inttostr (Files): Add anytostr.c.
62941         (Makefile.am): Set lib_SOURCES instead of ...
62942         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
62943         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
62944         * lib/offtostr.c: Likewise.
62945         * lib/uinttostr.c: Likewise.
62946         * lib/umaxtostr.c: Likewise.
62947         * modules/inttostr-tests: New file.
62948         * tests/test-inttostr.c: New file.  Test these functions.
62950 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
62951             Bruno Haible  <bruno@clisp.org>
62953         Add "Extending Gnulib" chapter to manual.
62954         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
62955         chapter.
62956         (Extending Gnulib): New chapter.
62957         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
62958         chapter.
62960 2010-06-09  Bruno Haible  <bruno@clisp.org>
62962         Avoid relocwrapper link errors due to gnulib replacement functions.
62963         * lib/areadlink.c: Use the system's malloc, realloc functions.
62964         (areadlink): Set errno to ENOMEM explicitly.
62965         * modules/areadlink (Depends-on): Remove malloc-posix.
62966         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62968 2010-06-09  Bruno Haible  <bruno@clisp.org>
62970         Avoid relocwrapper link errors due to gnulib replacement functions.
62971         * lib/canonicalize-lgpl.c: Use the system's malloc function.
62972         * lib/malloca.c: Likewise.
62973         * lib/relocatable.c: Likewise.
62974         * lib/progreloc.c: Use the system's malloc, sprintf functions.
62975         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
62976         * lib/setenv.c: Use the system's malloc, realloc functions.
62977         * lib/strerror.c: Use the system's sprintf function.
62978         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62980 2010-06-04  Bruno Haible  <bruno@clisp.org>
62982         Prefer documented low-level autoconf macro names.
62983         * m4/lib-link.m4: Use m4_translit instead of translit.
62984         * m4/environ.m4: Likewise.
62985         * m4/mathfunc.m4: Likewise.
62986         * m4/onceonly.m4: Likewise.
62987         * m4/stdint.m4: Likewise.
62988         Suggested by Eric Blake.
62990 2010-06-04  Martin Lambers  <marlam@marlam.de>
62991             Bruno Haible  <bruno@clisp.org>
62993         havelib: Allow library names with '+' characters.
62994         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62995         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
62997 2010-06-09  Bruno Haible  <bruno@clisp.org>
62999         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
63000         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
63001         realloc failed.
63003 2010-06-08  Peter Simons  <simons@cryp.to>
63005         maint.mk: make the news-check rule more configurable
63006         * top/maint.mk (news-check-lines-spec): New variable.
63007         (news-check): Use "sed -n 1,10p" in place of "head".
63009 2010-06-07  Jim Meyering  <meyering@redhat.com>
63011         do-release-commit-and-tag: fix typo in --help
63012         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
63014         regex: avoid new dead-code warning with gcc-4.6.0
63015         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
63016         if-block containing a while-loop.  It's been unused for at least
63017         5 years.
63019 2010-06-05  Bruno Haible  <bruno@clisp.org>
63021         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
63022         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
63024 2010-06-04  Bruno Haible  <bruno@clisp.org>
63026         Update to GNU gettext 0.18.1.
63027         * modules/gettext (configure.ac): Require gettext infrastructure from
63028         version 0.18.1.
63030 2010-06-03  Bruno Haible  <bruno@clisp.org>
63032         Don't use AC_LIBOBJ with file names in subdirectories.
63033         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
63034         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
63035         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
63036         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
63037         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
63038         gl_LIBUNISTRING_LIBSOURCE.
63039         (Makefile.am): Augment lib_SOURCES here, conditionally.
63040         * NEWS: Drop requirement for Automake option 'subdir-objects'.
63042 2010-06-03  Bruno Haible  <bruno@clisp.org>
63044         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
63045         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
63046         expansion does not end with a newline.
63047         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
63048         unnecessary newline.
63050 2010-06-03  Bruno Haible  <bruno@clisp.org>
63052         Reduce dependencies.
63053         * tests/test-quotearg.h: New file, extracted from
63054         tests/test-quotearg.c.
63055         * tests/test-quotearg-simple.c: New file, extracted from
63056         tests/test-quotearg.c.
63057         * tests/test-quotearg.c: Don't include <ctype.h>.
63058         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
63059         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
63060         use_quote_double_quotes, use_quotearg_colon): Moved to
63061         tests/test-quotearg.h.
63062         (results_g, flag_results, custom_quotes, custom_results): Moved
63063         to tests/test-quotearg-simple.c.
63064         (main): Moved the part that does not depend on gettext to
63065         tests/test-quotearg-simple.c. Return 77 if the test cannot be
63066         performed.
63067         * modules/quotearg-simple: New file.
63068         * modules/quotearg-simple-tests: New file.
63069         * modules/quotearg (Depends-on): Add quotearg-simple.
63070         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
63071         (Files): Add tests/test-quotearg.h.
63072         Reported by Paolo Bonzini.
63074 2010-06-03  Bruno Haible  <bruno@clisp.org>
63076         Reduce dependencies.
63077         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
63079 2010-06-03  Bruno Haible  <bruno@clisp.org>
63081         time: Undefine more broken macros.
63082         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
63083         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
63084         Reported by Eric Blake.
63086 2010-06-03  Bruno Haible  <bruno@clisp.org>
63088         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
63089         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
63090         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
63091         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
63092         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
63093         Reported by Ludovic Courtès <ludo@gnu.org>.
63095 2010-06-02  Eric Blake  <eblake@redhat.com>
63097         time: work with mingw + pthreads-win32 library
63098         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
63099         if timespec is defined only in pthread.h.
63100         * modules/time (Makefile.am): Substitute it.
63101         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
63102         <pthread.h>, when needed.
63103         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
63104         from the library.
63106 2010-05-31  Bruno Haible  <bruno@clisp.org>
63108         Avoid expanding two macros in the wrong order.
63109         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
63110         gl_LIBUNISTRING if it is defined.
63111         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
63112         autoconf >= 2.64.
63113         Reported by Ludovic Courtès <ludo@gnu.org>.
63115 2010-05-27  Jim Meyering  <meyering@redhat.com>
63117         maint.mk: also prohibit "#undef" of always-defined symbols
63118         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
63119         Allow more than one space before the symbol name.
63120         (sc_prohibit_always-defined_macros): Use grep's -E, now that
63121         the regexp uses alternation.
63123 2010-05-26  Eric Blake  <eblake@redhat.com>
63125         maint.mk: avoid echo -e
63126         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
63127         Convert all uses of echo -* to printf.
63128         Reported by Matthias Bolte.
63130 2010-05-25  Bruno Haible  <bruno@clisp.org>
63132         Update to GNU gettext 0.18, part 2.
63133         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
63134         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
63136 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63138         Add missing include in test-pwrite.c.
63139         * tests/test-pwrite.c: Include string.h, for strcmp.
63141 2010-05-24  Bruno Haible  <bruno@clisp.org>
63143         * NEWS: Mention requirement for Automake option 'subdir-objects'.
63145 2010-05-24  Bruno Haible  <bruno@clisp.org>
63147         Don't use conversion with transliteration in u{8,16,32}_strcoll.
63148         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
63149         iconveh_error argument.
63150         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
63151         U_STRCONV_TO_LOCALE.
63152         * lib/unistr/u16-strcoll.c: Likewise.
63153         * lib/unistr/u32-strcoll.c: Likewise.
63154         * modules/unistr/u8-strcoll (Depends-on): Add
63155         uniconv/u8-strconv-to-enc, localcharset. Remove
63156         uniconv/u8-strconv-to-locale.
63157         (configure.ac): Bump version number.
63158         * modules/unistr/u16-strcoll (Depends-on): Add
63159         uniconv/u16-strconv-to-enc, localcharset. Remove
63160         uniconv/u16-strconv-to-locale.
63161         (configure.ac): Bump version number.
63162         * modules/unistr/u32-strcoll (Depends-on): Add
63163         uniconv/u32-strconv-to-enc, localcharset. Remove
63164         uniconv/u32-strconv-to-locale.
63165         (configure.ac): Bump version number.
63167 2010-05-24  Bruno Haible  <bruno@clisp.org>
63169         Avoid a test failure on NetBSD 5.0.
63170         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
63171         an iconv() bug.
63173 2010-05-24  Bruno Haible  <bruno@clisp.org>
63175         Adjust #include directive style.
63176         * modules/regex (Includes): Recommend to write <regex.h>.
63178 2010-05-24  Bruno Haible  <bruno@clisp.org>
63180         regex: Don't require alloca.
63181         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
63182         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
63183         only inside if (0).
63185 2010-05-23  Jim Meyering  <meyering@redhat.com>
63187         test-renameat.c: include <sys/stat.h>
63188         * tests/test-renameat.c: Include <sys/stat.h>; required for
63189         definition of S_IS* macros.
63191 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
63193         Update maintainer documentation for 'relocatable-prog' module.
63194         * doc/relocatable-maint.texi: Update.
63195         Comments by Bruno Haible.
63197 2010-05-23  Bruno Haible  <bruno@clisp.org>
63199         git-merge-changelog: Enable --split-merged-entry by default.
63200         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
63201         (usage): Don't mention this option any more.
63202         Reported by Ralf Wildenhues.
63204 2010-05-23  Jim Meyering  <meyering@redhat.com>
63206         test-pwrite: do not leave behind a test file named "out"
63207         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
63208         The trivial-looking use of init.sh is really necessary.
63209         It ensures that the temporary file, "out", is created in
63210         a temporary directory, and removed upon termination.
63211         * tests/test-pwrite.sh: Re-add file.
63212         * modules/pwrite-tests: Reference it.
63214 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63216         Fix output redirection buglet in init.sh.
63217         * tests/init.sh: Fix redirection of stderr.
63219 2010-05-20  Simon Josefsson  <simon@josefsson.org>
63221         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
63223 2010-05-17  Simon Josefsson  <simon@josefsson.org>
63225         * modules/valgrind-tests: New file.
63226         * m4/valgrind-tests.m4: New file.
63227         * doc/valgrind-tests.texi: New file.
63228         * doc/gnulib.texi (Running self-tests under valgrind): New
63229         section.
63231 2010-05-19  Bruno Haible  <bruno@clisp.org>
63233         Clean up dead code in recent commit.
63234         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
63235         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
63236         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
63237         Suggested by Paolo Bonzini.
63239 2010-05-19  Bruno Haible  <bruno@clisp.org>
63241         Avoid valgrind error reports from libunistring.
63242         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
63243         * modules/libunistring (Files): Add it.
63244         * modules/libunistring-optional (Files): Likewise.
63246 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
63247             Bruno Haible  <bruno@clisp.org>
63249         New module 'libunistring-optional'.
63250         * modules/libunistring-optional: New file.
63251         * m4/libunistring-base.m4: New file.
63252         * m4/libunistring-optional.m4: New file.
63253         * lib/unicase.in.h: Renamed from lib/unicase.h.
63254         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
63255         * lib/unictype.in.h: Renamed from lib/unictype.h.
63256         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
63257         * lib/uniname.in.h: Renamed from lib/uniname.h.
63258         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
63259         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
63260         * lib/unistr.in.h: Renamed from lib/unistr.h.
63261         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
63262         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
63263         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
63264         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
63265         gl_LIBUNISTRING. If the library was found, determine the installed
63266         version and set LIBUNISTRING_VERSION.
63267         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
63268         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
63269         handle a configuration option --with-included-libunistring.
63270         * modules/libunistring (Files): Add m4/absolute-header.m4.
63271         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
63272         Add m4/libunistring-base.m4.
63273         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63274         (Makefile.am): Build unicase.h from unicase.in.h.
63275         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
63276         Add m4/libunistring-base.m4.
63277         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63278         (Makefile.am): Build uniconv.h from uniconv.in.h.
63279         * modules/unictype/base (Files): Use unictype.in.h instead of
63280         unictype.h. Add m4/libunistring-base.m4.
63281         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63282         (Makefile.am): Build unictype.h from unictype.in.h.
63283         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
63284         Add m4/libunistring-base.m4.
63285         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63286         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
63287         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
63288         Add m4/libunistring-base.m4.
63289         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63290         (Makefile.am): Build uniname.h from uniname.in.h.
63291         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
63292         Add m4/libunistring-base.m4.
63293         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63294         (Makefile.am): Build uninorm.h from uninorm.in.h.
63295         * modules/unistdio/base (Files): Use unistdio.in.h instead of
63296         unistdio.h. Add m4/libunistring-base.m4.
63297         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63298         (Makefile.am): Build unistdio.h from unistdio.in.h.
63299         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
63300         Add m4/libunistring-base.m4.
63301         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63302         (Makefile.am): Build unistr.h from unistr.in.h.
63303         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
63304         Add m4/libunistring-base.m4.
63305         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63306         (Makefile.am): Build unitypes.h from unitypes.in.h.
63307         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
63308         Add m4/libunistring-base.m4.
63309         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63310         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
63311         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
63312         uniwidth.h. Add m4/libunistring-base.m4.
63313         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
63314         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
63315         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
63316         instead of augmenting lib_SOURCES.
63317         * modules/unicase/empty-suffix-context: Likewise.
63318         * modules/unicase/locale-language: Likewise.
63319         * modules/unicase/tolower: Likewise.
63320         * modules/unicase/totitle: Likewise.
63321         * modules/unicase/toupper: Likewise.
63322         * modules/unicase/u8-casecmp: Likewise.
63323         * modules/unicase/u8-casecoll: Likewise.
63324         * modules/unicase/u8-casefold: Likewise.
63325         * modules/unicase/u8-casexfrm: Likewise.
63326         * modules/unicase/u8-ct-casefold: Likewise.
63327         * modules/unicase/u8-ct-tolower: Likewise.
63328         * modules/unicase/u8-ct-totitle: Likewise.
63329         * modules/unicase/u8-ct-toupper: Likewise.
63330         * modules/unicase/u8-is-cased: Likewise.
63331         * modules/unicase/u8-is-casefolded: Likewise.
63332         * modules/unicase/u8-is-lowercase: Likewise.
63333         * modules/unicase/u8-is-titlecase: Likewise.
63334         * modules/unicase/u8-is-uppercase: Likewise.
63335         * modules/unicase/u8-prefix-context: Likewise.
63336         * modules/unicase/u8-suffix-context: Likewise.
63337         * modules/unicase/u8-tolower: Likewise.
63338         * modules/unicase/u8-totitle: Likewise.
63339         * modules/unicase/u8-toupper: Likewise.
63340         * modules/unicase/u16-casecmp: Likewise.
63341         * modules/unicase/u16-casecoll: Likewise.
63342         * modules/unicase/u16-casefold: Likewise.
63343         * modules/unicase/u16-casexfrm: Likewise.
63344         * modules/unicase/u16-ct-casefold: Likewise.
63345         * modules/unicase/u16-ct-tolower: Likewise.
63346         * modules/unicase/u16-ct-totitle: Likewise.
63347         * modules/unicase/u16-ct-toupper: Likewise.
63348         * modules/unicase/u16-is-cased: Likewise.
63349         * modules/unicase/u16-is-casefolded: Likewise.
63350         * modules/unicase/u16-is-lowercase: Likewise.
63351         * modules/unicase/u16-is-titlecase: Likewise.
63352         * modules/unicase/u16-is-uppercase: Likewise.
63353         * modules/unicase/u16-prefix-context: Likewise.
63354         * modules/unicase/u16-suffix-context: Likewise.
63355         * modules/unicase/u16-tolower: Likewise.
63356         * modules/unicase/u16-totitle: Likewise.
63357         * modules/unicase/u16-toupper: Likewise.
63358         * modules/unicase/u32-casecmp: Likewise.
63359         * modules/unicase/u32-casecoll: Likewise.
63360         * modules/unicase/u32-casefold: Likewise.
63361         * modules/unicase/u32-casexfrm: Likewise.
63362         * modules/unicase/u32-ct-casefold: Likewise.
63363         * modules/unicase/u32-ct-tolower: Likewise.
63364         * modules/unicase/u32-ct-totitle: Likewise.
63365         * modules/unicase/u32-ct-toupper: Likewise.
63366         * modules/unicase/u32-is-cased: Likewise.
63367         * modules/unicase/u32-is-casefolded: Likewise.
63368         * modules/unicase/u32-is-lowercase: Likewise.
63369         * modules/unicase/u32-is-titlecase: Likewise.
63370         * modules/unicase/u32-is-uppercase: Likewise.
63371         * modules/unicase/u32-prefix-context: Likewise.
63372         * modules/unicase/u32-suffix-context: Likewise.
63373         * modules/unicase/u32-tolower: Likewise.
63374         * modules/unicase/u32-totitle: Likewise.
63375         * modules/unicase/u32-toupper: Likewise.
63376         * modules/unicase/ulc-casecmp: Likewise.
63377         * modules/unicase/ulc-casecoll: Likewise.
63378         * modules/unicase/ulc-casexfrm: Likewise.
63379         * modules/uniconv/u8-conv-from-enc: Likewise.
63380         * modules/uniconv/u8-conv-to-enc: Likewise.
63381         * modules/uniconv/u8-strconv-from-enc: Likewise.
63382         * modules/uniconv/u8-strconv-from-locale: Likewise.
63383         * modules/uniconv/u8-strconv-to-enc: Likewise.
63384         * modules/uniconv/u8-strconv-to-locale: Likewise.
63385         * modules/uniconv/u16-conv-from-enc: Likewise.
63386         * modules/uniconv/u16-conv-to-enc: Likewise.
63387         * modules/uniconv/u16-strconv-from-enc: Likewise.
63388         * modules/uniconv/u16-strconv-from-locale: Likewise.
63389         * modules/uniconv/u16-strconv-to-enc: Likewise.
63390         * modules/uniconv/u16-strconv-to-locale: Likewise.
63391         * modules/uniconv/u32-conv-from-enc: Likewise.
63392         * modules/uniconv/u32-conv-to-enc: Likewise.
63393         * modules/uniconv/u32-strconv-from-enc: Likewise.
63394         * modules/uniconv/u32-strconv-from-locale: Likewise.
63395         * modules/uniconv/u32-strconv-to-enc: Likewise.
63396         * modules/uniconv/u32-strconv-to-locale: Likewise.
63397         * modules/unictype/bidicategory-byname: Likewise.
63398         * modules/unictype/bidicategory-name: Likewise.
63399         * modules/unictype/bidicategory-of: Likewise.
63400         * modules/unictype/bidicategory-test: Likewise.
63401         * modules/unictype/block-list: Likewise.
63402         * modules/unictype/block-test: Likewise.
63403         * modules/unictype/category-C: Likewise.
63404         * modules/unictype/category-Cc: Likewise.
63405         * modules/unictype/category-Cf: Likewise.
63406         * modules/unictype/category-Cn: Likewise.
63407         * modules/unictype/category-Co: Likewise.
63408         * modules/unictype/category-Cs: Likewise.
63409         * modules/unictype/category-L: Likewise.
63410         * modules/unictype/category-Ll: Likewise.
63411         * modules/unictype/category-Lm: Likewise.
63412         * modules/unictype/category-Lo: Likewise.
63413         * modules/unictype/category-Lt: Likewise.
63414         * modules/unictype/category-Lu: Likewise.
63415         * modules/unictype/category-M: Likewise.
63416         * modules/unictype/category-Mc: Likewise.
63417         * modules/unictype/category-Me: Likewise.
63418         * modules/unictype/category-Mn: Likewise.
63419         * modules/unictype/category-N: Likewise.
63420         * modules/unictype/category-Nd: Likewise.
63421         * modules/unictype/category-Nl: Likewise.
63422         * modules/unictype/category-No: Likewise.
63423         * modules/unictype/category-P: Likewise.
63424         * modules/unictype/category-Pc: Likewise.
63425         * modules/unictype/category-Pd: Likewise.
63426         * modules/unictype/category-Pe: Likewise.
63427         * modules/unictype/category-Pf: Likewise.
63428         * modules/unictype/category-Pi: Likewise.
63429         * modules/unictype/category-Po: Likewise.
63430         * modules/unictype/category-Ps: Likewise.
63431         * modules/unictype/category-S: Likewise.
63432         * modules/unictype/category-Sc: Likewise.
63433         * modules/unictype/category-Sk: Likewise.
63434         * modules/unictype/category-Sm: Likewise.
63435         * modules/unictype/category-So: Likewise.
63436         * modules/unictype/category-Z: Likewise.
63437         * modules/unictype/category-Zl: Likewise.
63438         * modules/unictype/category-Zp: Likewise.
63439         * modules/unictype/category-Zs: Likewise.
63440         * modules/unictype/category-and: Likewise.
63441         * modules/unictype/category-and-not: Likewise.
63442         * modules/unictype/category-byname: Likewise.
63443         * modules/unictype/category-name: Likewise.
63444         * modules/unictype/category-none: Likewise.
63445         * modules/unictype/category-of: Likewise.
63446         * modules/unictype/category-or: Likewise.
63447         * modules/unictype/category-test: Likewise.
63448         * modules/unictype/combining-class: Likewise.
63449         * modules/unictype/ctype-alnum: Likewise.
63450         * modules/unictype/ctype-alpha: Likewise.
63451         * modules/unictype/ctype-blank: Likewise.
63452         * modules/unictype/ctype-cntrl: Likewise.
63453         * modules/unictype/ctype-digit: Likewise.
63454         * modules/unictype/ctype-graph: Likewise.
63455         * modules/unictype/ctype-lower: Likewise.
63456         * modules/unictype/ctype-print: Likewise.
63457         * modules/unictype/ctype-punct: Likewise.
63458         * modules/unictype/ctype-space: Likewise.
63459         * modules/unictype/ctype-upper: Likewise.
63460         * modules/unictype/ctype-xdigit: Likewise.
63461         * modules/unictype/decimal-digit: Likewise.
63462         * modules/unictype/digit: Likewise.
63463         * modules/unictype/mirror: Likewise.
63464         * modules/unictype/numeric: Likewise.
63465         * modules/unictype/property-alphabetic: Likewise.
63466         * modules/unictype/property-ascii-hex-digit: Likewise.
63467         * modules/unictype/property-bidi-arabic-digit: Likewise.
63468         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
63469         * modules/unictype/property-bidi-block-separator: Likewise.
63470         * modules/unictype/property-bidi-boundary-neutral: Likewise.
63471         * modules/unictype/property-bidi-common-separator: Likewise.
63472         * modules/unictype/property-bidi-control: Likewise.
63473         * modules/unictype/property-bidi-embedding-or-override: Likewise.
63474         * modules/unictype/property-bidi-eur-num-separator: Likewise.
63475         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
63476         * modules/unictype/property-bidi-european-digit: Likewise.
63477         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
63478         * modules/unictype/property-bidi-left-to-right: Likewise.
63479         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
63480         * modules/unictype/property-bidi-other-neutral: Likewise.
63481         * modules/unictype/property-bidi-pdf: Likewise.
63482         * modules/unictype/property-bidi-segment-separator: Likewise.
63483         * modules/unictype/property-bidi-whitespace: Likewise.
63484         * modules/unictype/property-byname: Likewise.
63485         * modules/unictype/property-combining: Likewise.
63486         * modules/unictype/property-composite: Likewise.
63487         * modules/unictype/property-currency-symbol: Likewise.
63488         * modules/unictype/property-dash: Likewise.
63489         * modules/unictype/property-decimal-digit: Likewise.
63490         * modules/unictype/property-default-ignorable-code-point: Likewise.
63491         * modules/unictype/property-deprecated: Likewise.
63492         * modules/unictype/property-diacritic: Likewise.
63493         * modules/unictype/property-extender: Likewise.
63494         * modules/unictype/property-format-control: Likewise.
63495         * modules/unictype/property-grapheme-base: Likewise.
63496         * modules/unictype/property-grapheme-extend: Likewise.
63497         * modules/unictype/property-grapheme-link: Likewise.
63498         * modules/unictype/property-hex-digit: Likewise.
63499         * modules/unictype/property-hyphen: Likewise.
63500         * modules/unictype/property-id-continue: Likewise.
63501         * modules/unictype/property-id-start: Likewise.
63502         * modules/unictype/property-ideographic: Likewise.
63503         * modules/unictype/property-ids-binary-operator: Likewise.
63504         * modules/unictype/property-ids-trinary-operator: Likewise.
63505         * modules/unictype/property-ignorable-control: Likewise.
63506         * modules/unictype/property-iso-control: Likewise.
63507         * modules/unictype/property-join-control: Likewise.
63508         * modules/unictype/property-left-of-pair: Likewise.
63509         * modules/unictype/property-line-separator: Likewise.
63510         * modules/unictype/property-logical-order-exception: Likewise.
63511         * modules/unictype/property-lowercase: Likewise.
63512         * modules/unictype/property-math: Likewise.
63513         * modules/unictype/property-non-break: Likewise.
63514         * modules/unictype/property-not-a-character: Likewise.
63515         * modules/unictype/property-numeric: Likewise.
63516         * modules/unictype/property-other-alphabetic: Likewise.
63517         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
63518         * modules/unictype/property-other-grapheme-extend: Likewise.
63519         * modules/unictype/property-other-id-continue: Likewise.
63520         * modules/unictype/property-other-id-start: Likewise.
63521         * modules/unictype/property-other-lowercase: Likewise.
63522         * modules/unictype/property-other-math: Likewise.
63523         * modules/unictype/property-other-uppercase: Likewise.
63524         * modules/unictype/property-paired-punctuation: Likewise.
63525         * modules/unictype/property-paragraph-separator: Likewise.
63526         * modules/unictype/property-pattern-syntax: Likewise.
63527         * modules/unictype/property-pattern-white-space: Likewise.
63528         * modules/unictype/property-private-use: Likewise.
63529         * modules/unictype/property-punctuation: Likewise.
63530         * modules/unictype/property-quotation-mark: Likewise.
63531         * modules/unictype/property-radical: Likewise.
63532         * modules/unictype/property-sentence-terminal: Likewise.
63533         * modules/unictype/property-soft-dotted: Likewise.
63534         * modules/unictype/property-space: Likewise.
63535         * modules/unictype/property-terminal-punctuation: Likewise.
63536         * modules/unictype/property-test: Likewise.
63537         * modules/unictype/property-titlecase: Likewise.
63538         * modules/unictype/property-unassigned-code-value: Likewise.
63539         * modules/unictype/property-unified-ideograph: Likewise.
63540         * modules/unictype/property-uppercase: Likewise.
63541         * modules/unictype/property-variation-selector: Likewise.
63542         * modules/unictype/property-white-space: Likewise.
63543         * modules/unictype/property-xid-continue: Likewise.
63544         * modules/unictype/property-xid-start: Likewise.
63545         * modules/unictype/property-zero-width: Likewise.
63546         * modules/unictype/scripts: Likewise.
63547         * modules/unictype/syntax-c-ident: Likewise.
63548         * modules/unictype/syntax-c-whitespace: Likewise.
63549         * modules/unictype/syntax-java-ident: Likewise.
63550         * modules/unictype/syntax-java-whitespace: Likewise.
63551         * modules/unilbrk/u8-possible-linebreaks: Likewise.
63552         * modules/unilbrk/u8-width-linebreaks: Likewise.
63553         * modules/unilbrk/u16-possible-linebreaks: Likewise.
63554         * modules/unilbrk/u16-width-linebreaks: Likewise.
63555         * modules/unilbrk/u32-possible-linebreaks: Likewise.
63556         * modules/unilbrk/u32-width-linebreaks: Likewise.
63557         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
63558         * modules/unilbrk/ulc-width-linebreaks: Likewise.
63559         * modules/uniname/uniname: Likewise.
63560         * modules/uninorm/canonical-decomposition: Likewise.
63561         * modules/uninorm/composition: Likewise.
63562         * modules/uninorm/decomposing-form: Likewise.
63563         * modules/uninorm/decomposition: Likewise.
63564         * modules/uninorm/filter: Likewise.
63565         * modules/uninorm/nfc: Likewise.
63566         * modules/uninorm/nfd: Likewise.
63567         * modules/uninorm/nfkc: Likewise.
63568         * modules/uninorm/nfkd: Likewise.
63569         * modules/uninorm/u8-normalize: Likewise.
63570         * modules/uninorm/u8-normcmp: Likewise.
63571         * modules/uninorm/u8-normcoll: Likewise.
63572         * modules/uninorm/u8-normxfrm: Likewise.
63573         * modules/uninorm/u16-normalize: Likewise.
63574         * modules/uninorm/u16-normcmp: Likewise.
63575         * modules/uninorm/u16-normcoll: Likewise.
63576         * modules/uninorm/u16-normxfrm: Likewise.
63577         * modules/uninorm/u32-normalize: Likewise.
63578         * modules/uninorm/u32-normcmp: Likewise.
63579         * modules/uninorm/u32-normcoll: Likewise.
63580         * modules/uninorm/u32-normxfrm: Likewise.
63581         * modules/unistdio/u8-asnprintf: Likewise.
63582         * modules/unistdio/u8-asprintf: Likewise.
63583         * modules/unistdio/u8-snprintf: Likewise.
63584         * modules/unistdio/u8-sprintf: Likewise.
63585         * modules/unistdio/u8-u8-asnprintf: Likewise.
63586         * modules/unistdio/u8-u8-asprintf: Likewise.
63587         * modules/unistdio/u8-u8-snprintf: Likewise.
63588         * modules/unistdio/u8-u8-sprintf: Likewise.
63589         * modules/unistdio/u8-u8-vasnprintf: Likewise.
63590         * modules/unistdio/u8-u8-vasprintf: Likewise.
63591         * modules/unistdio/u8-u8-vsnprintf: Likewise.
63592         * modules/unistdio/u8-u8-vsprintf: Likewise.
63593         * modules/unistdio/u8-vasnprintf: Likewise.
63594         * modules/unistdio/u8-vasprintf: Likewise.
63595         * modules/unistdio/u8-vsnprintf: Likewise.
63596         * modules/unistdio/u8-vsprintf: Likewise.
63597         * modules/unistdio/u16-asnprintf: Likewise.
63598         * modules/unistdio/u16-asprintf: Likewise.
63599         * modules/unistdio/u16-snprintf: Likewise.
63600         * modules/unistdio/u16-sprintf: Likewise.
63601         * modules/unistdio/u16-u16-asnprintf: Likewise.
63602         * modules/unistdio/u16-u16-asprintf: Likewise.
63603         * modules/unistdio/u16-u16-snprintf: Likewise.
63604         * modules/unistdio/u16-u16-sprintf: Likewise.
63605         * modules/unistdio/u16-u16-vasnprintf: Likewise.
63606         * modules/unistdio/u16-u16-vasprintf: Likewise.
63607         * modules/unistdio/u16-u16-vsnprintf: Likewise.
63608         * modules/unistdio/u16-u16-vsprintf: Likewise.
63609         * modules/unistdio/u16-vasnprintf: Likewise.
63610         * modules/unistdio/u16-vasprintf: Likewise.
63611         * modules/unistdio/u16-vsnprintf: Likewise.
63612         * modules/unistdio/u16-vsprintf: Likewise.
63613         * modules/unistdio/u32-asnprintf: Likewise.
63614         * modules/unistdio/u32-asprintf: Likewise.
63615         * modules/unistdio/u32-snprintf: Likewise.
63616         * modules/unistdio/u32-sprintf: Likewise.
63617         * modules/unistdio/u32-u32-asnprintf: Likewise.
63618         * modules/unistdio/u32-u32-asprintf: Likewise.
63619         * modules/unistdio/u32-u32-snprintf: Likewise.
63620         * modules/unistdio/u32-u32-sprintf: Likewise.
63621         * modules/unistdio/u32-u32-vasnprintf: Likewise.
63622         * modules/unistdio/u32-u32-vasprintf: Likewise.
63623         * modules/unistdio/u32-u32-vsnprintf: Likewise.
63624         * modules/unistdio/u32-u32-vsprintf: Likewise.
63625         * modules/unistdio/u32-vasnprintf: Likewise.
63626         * modules/unistdio/u32-vasprintf: Likewise.
63627         * modules/unistdio/u32-vsnprintf: Likewise.
63628         * modules/unistdio/u32-vsprintf: Likewise.
63629         * modules/unistdio/ulc-asnprintf: Likewise.
63630         * modules/unistdio/ulc-asprintf: Likewise.
63631         * modules/unistdio/ulc-fprintf: Likewise.
63632         * modules/unistdio/ulc-snprintf: Likewise.
63633         * modules/unistdio/ulc-sprintf: Likewise.
63634         * modules/unistdio/ulc-vasnprintf: Likewise.
63635         * modules/unistdio/ulc-vasprintf: Likewise.
63636         * modules/unistdio/ulc-vfprintf: Likewise.
63637         * modules/unistdio/ulc-vsnprintf: Likewise.
63638         * modules/unistdio/ulc-vsprintf: Likewise.
63639         * modules/unistr/u8-check: Likewise.
63640         * modules/unistr/u8-chr: Likewise.
63641         * modules/unistr/u8-cmp: Likewise.
63642         * modules/unistr/u8-cmp2: Likewise.
63643         * modules/unistr/u8-cpy: Likewise.
63644         * modules/unistr/u8-cpy-alloc: Likewise.
63645         * modules/unistr/u8-endswith: Likewise.
63646         * modules/unistr/u8-mblen: Likewise.
63647         * modules/unistr/u8-mbsnlen: Likewise.
63648         * modules/unistr/u8-mbtouc: Likewise.
63649         * modules/unistr/u8-mbtouc-unsafe: Likewise.
63650         * modules/unistr/u8-mbtoucr: Likewise.
63651         * modules/unistr/u8-move: Likewise.
63652         * modules/unistr/u8-next: Likewise.
63653         * modules/unistr/u8-prev: Likewise.
63654         * modules/unistr/u8-set: Likewise.
63655         * modules/unistr/u8-startswith: Likewise.
63656         * modules/unistr/u8-stpcpy: Likewise.
63657         * modules/unistr/u8-stpncpy: Likewise.
63658         * modules/unistr/u8-strcat: Likewise.
63659         * modules/unistr/u8-strchr: Likewise.
63660         * modules/unistr/u8-strcmp: Likewise.
63661         * modules/unistr/u8-strcoll: Likewise.
63662         * modules/unistr/u8-strcpy: Likewise.
63663         * modules/unistr/u8-strcspn: Likewise.
63664         * modules/unistr/u8-strdup: Likewise.
63665         * modules/unistr/u8-strlen: Likewise.
63666         * modules/unistr/u8-strmblen: Likewise.
63667         * modules/unistr/u8-strmbtouc: Likewise.
63668         * modules/unistr/u8-strncat: Likewise.
63669         * modules/unistr/u8-strncmp: Likewise.
63670         * modules/unistr/u8-strncpy: Likewise.
63671         * modules/unistr/u8-strnlen: Likewise.
63672         * modules/unistr/u8-strpbrk: Likewise.
63673         * modules/unistr/u8-strrchr: Likewise.
63674         * modules/unistr/u8-strspn: Likewise.
63675         * modules/unistr/u8-strstr: Likewise.
63676         * modules/unistr/u8-strtok: Likewise.
63677         * modules/unistr/u8-to-u16: Likewise.
63678         * modules/unistr/u8-to-u32: Likewise.
63679         * modules/unistr/u8-uctomb: Likewise.
63680         * modules/unistr/u16-check: Likewise.
63681         * modules/unistr/u16-chr: Likewise.
63682         * modules/unistr/u16-cmp: Likewise.
63683         * modules/unistr/u16-cmp2: Likewise.
63684         * modules/unistr/u16-cpy: Likewise.
63685         * modules/unistr/u16-cpy-alloc: Likewise.
63686         * modules/unistr/u16-endswith: Likewise.
63687         * modules/unistr/u16-mblen: Likewise.
63688         * modules/unistr/u16-mbsnlen: Likewise.
63689         * modules/unistr/u16-mbtouc: Likewise.
63690         * modules/unistr/u16-mbtouc-unsafe: Likewise.
63691         * modules/unistr/u16-mbtoucr: Likewise.
63692         * modules/unistr/u16-move: Likewise.
63693         * modules/unistr/u16-next: Likewise.
63694         * modules/unistr/u16-prev: Likewise.
63695         * modules/unistr/u16-set: Likewise.
63696         * modules/unistr/u16-startswith: Likewise.
63697         * modules/unistr/u16-stpcpy: Likewise.
63698         * modules/unistr/u16-stpncpy: Likewise.
63699         * modules/unistr/u16-strcat: Likewise.
63700         * modules/unistr/u16-strchr: Likewise.
63701         * modules/unistr/u16-strcmp: Likewise.
63702         * modules/unistr/u16-strcoll: Likewise.
63703         * modules/unistr/u16-strcpy: Likewise.
63704         * modules/unistr/u16-strcspn: Likewise.
63705         * modules/unistr/u16-strdup: Likewise.
63706         * modules/unistr/u16-strlen: Likewise.
63707         * modules/unistr/u16-strmblen: Likewise.
63708         * modules/unistr/u16-strmbtouc: Likewise.
63709         * modules/unistr/u16-strncat: Likewise.
63710         * modules/unistr/u16-strncmp: Likewise.
63711         * modules/unistr/u16-strncpy: Likewise.
63712         * modules/unistr/u16-strnlen: Likewise.
63713         * modules/unistr/u16-strpbrk: Likewise.
63714         * modules/unistr/u16-strrchr: Likewise.
63715         * modules/unistr/u16-strspn: Likewise.
63716         * modules/unistr/u16-strstr: Likewise.
63717         * modules/unistr/u16-strtok: Likewise.
63718         * modules/unistr/u16-to-u32: Likewise.
63719         * modules/unistr/u16-to-u8: Likewise.
63720         * modules/unistr/u16-uctomb: Likewise.
63721         * modules/unistr/u32-check: Likewise.
63722         * modules/unistr/u32-chr: Likewise.
63723         * modules/unistr/u32-cmp: Likewise.
63724         * modules/unistr/u32-cmp2: Likewise.
63725         * modules/unistr/u32-cpy: Likewise.
63726         * modules/unistr/u32-cpy-alloc: Likewise.
63727         * modules/unistr/u32-endswith: Likewise.
63728         * modules/unistr/u32-mblen: Likewise.
63729         * modules/unistr/u32-mbsnlen: Likewise.
63730         * modules/unistr/u32-mbtouc: Likewise.
63731         * modules/unistr/u32-mbtouc-unsafe: Likewise.
63732         * modules/unistr/u32-mbtoucr: Likewise.
63733         * modules/unistr/u32-move: Likewise.
63734         * modules/unistr/u32-next: Likewise.
63735         * modules/unistr/u32-prev: Likewise.
63736         * modules/unistr/u32-set: Likewise.
63737         * modules/unistr/u32-startswith: Likewise.
63738         * modules/unistr/u32-stpcpy: Likewise.
63739         * modules/unistr/u32-stpncpy: Likewise.
63740         * modules/unistr/u32-strcat: Likewise.
63741         * modules/unistr/u32-strchr: Likewise.
63742         * modules/unistr/u32-strcmp: Likewise.
63743         * modules/unistr/u32-strcoll: Likewise.
63744         * modules/unistr/u32-strcpy: Likewise.
63745         * modules/unistr/u32-strcspn: Likewise.
63746         * modules/unistr/u32-strdup: Likewise.
63747         * modules/unistr/u32-strlen: Likewise.
63748         * modules/unistr/u32-strmblen: Likewise.
63749         * modules/unistr/u32-strmbtouc: Likewise.
63750         * modules/unistr/u32-strncat: Likewise.
63751         * modules/unistr/u32-strncmp: Likewise.
63752         * modules/unistr/u32-strncpy: Likewise.
63753         * modules/unistr/u32-strnlen: Likewise.
63754         * modules/unistr/u32-strpbrk: Likewise.
63755         * modules/unistr/u32-strrchr: Likewise.
63756         * modules/unistr/u32-strspn: Likewise.
63757         * modules/unistr/u32-strstr: Likewise.
63758         * modules/unistr/u32-strtok: Likewise.
63759         * modules/unistr/u32-to-u16: Likewise.
63760         * modules/unistr/u32-to-u8: Likewise.
63761         * modules/unistr/u32-uctomb: Likewise.
63762         * modules/uniwbrk/u8-wordbreaks: Likewise.
63763         * modules/uniwbrk/u16-wordbreaks: Likewise.
63764         * modules/uniwbrk/u32-wordbreaks: Likewise.
63765         * modules/uniwbrk/ulc-wordbreaks: Likewise.
63766         * modules/uniwbrk/wordbreak-property: Likewise.
63767         * modules/uniwidth/u8-strwidth: Likewise.
63768         * modules/uniwidth/u8-width: Likewise.
63769         * modules/uniwidth/u16-strwidth: Likewise.
63770         * modules/uniwidth/u16-width: Likewise.
63771         * modules/uniwidth/u32-strwidth: Likewise.
63772         * modules/uniwidth/u32-width: Likewise.
63773         * modules/uniwidth/width: Likewise.
63774         * modules/unicase/cased-tests (Makefile.am): Link all test programs
63775         with $(LIBUNISTRING).
63776         * modules/unicase/ignorable-tests: Likewise.
63777         * modules/unicase/locale-language-tests: Likewise.
63778         * modules/unicase/tolower-tests: Likewise.
63779         * modules/unicase/totitle-tests: Likewise.
63780         * modules/unicase/toupper-tests: Likewise.
63781         * modules/unicase/u8-casecmp-tests: Likewise.
63782         * modules/unicase/u8-casecoll-tests: Likewise.
63783         * modules/unicase/u8-casefold-tests: Likewise.
63784         * modules/unicase/u8-is-cased-tests: Likewise.
63785         * modules/unicase/u8-is-casefolded-tests: Likewise.
63786         * modules/unicase/u8-is-lowercase-tests: Likewise.
63787         * modules/unicase/u8-is-titlecase-tests: Likewise.
63788         * modules/unicase/u8-is-uppercase-tests: Likewise.
63789         * modules/unicase/u8-tolower-tests: Likewise.
63790         * modules/unicase/u8-totitle-tests: Likewise.
63791         * modules/unicase/u8-toupper-tests: Likewise.
63792         * modules/unicase/u16-casecmp-tests: Likewise.
63793         * modules/unicase/u16-casecoll-tests: Likewise.
63794         * modules/unicase/u16-casefold-tests: Likewise.
63795         * modules/unicase/u16-is-cased-tests: Likewise.
63796         * modules/unicase/u16-is-casefolded-tests: Likewise.
63797         * modules/unicase/u16-is-lowercase-tests: Likewise.
63798         * modules/unicase/u16-is-titlecase-tests: Likewise.
63799         * modules/unicase/u16-is-uppercase-tests: Likewise.
63800         * modules/unicase/u16-tolower-tests: Likewise.
63801         * modules/unicase/u16-totitle-tests: Likewise.
63802         * modules/unicase/u16-toupper-tests: Likewise.
63803         * modules/unicase/u32-casecmp-tests: Likewise.
63804         * modules/unicase/u32-casecoll-tests: Likewise.
63805         * modules/unicase/u32-casefold-tests: Likewise.
63806         * modules/unicase/u32-is-cased-tests: Likewise.
63807         * modules/unicase/u32-is-casefolded-tests: Likewise.
63808         * modules/unicase/u32-is-lowercase-tests: Likewise.
63809         * modules/unicase/u32-is-titlecase-tests: Likewise.
63810         * modules/unicase/u32-is-uppercase-tests: Likewise.
63811         * modules/unicase/u32-tolower-tests: Likewise.
63812         * modules/unicase/u32-totitle-tests: Likewise.
63813         * modules/unicase/u32-toupper-tests: Likewise.
63814         * modules/unicase/ulc-casecmp-tests: Likewise.
63815         * modules/unicase/ulc-casecoll-tests: Likewise.
63816         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
63817         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
63818         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
63819         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
63820         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
63821         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
63822         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
63823         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
63824         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
63825         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
63826         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
63827         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
63828         * modules/unictype/bidicategory-byname-tests: Likewise.
63829         * modules/unictype/bidicategory-name-tests: Likewise.
63830         * modules/unictype/bidicategory-of-tests: Likewise.
63831         * modules/unictype/bidicategory-test-tests: Likewise.
63832         * modules/unictype/block-list-tests: Likewise.
63833         * modules/unictype/block-of-tests: Likewise.
63834         * modules/unictype/block-test-tests: Likewise.
63835         * modules/unictype/category-C-tests: Likewise.
63836         * modules/unictype/category-Cc-tests: Likewise.
63837         * modules/unictype/category-Cf-tests: Likewise.
63838         * modules/unictype/category-Cn-tests: Likewise.
63839         * modules/unictype/category-Co-tests: Likewise.
63840         * modules/unictype/category-Cs-tests: Likewise.
63841         * modules/unictype/category-L-tests: Likewise.
63842         * modules/unictype/category-Ll-tests: Likewise.
63843         * modules/unictype/category-Lm-tests: Likewise.
63844         * modules/unictype/category-Lo-tests: Likewise.
63845         * modules/unictype/category-Lt-tests: Likewise.
63846         * modules/unictype/category-Lu-tests: Likewise.
63847         * modules/unictype/category-M-tests: Likewise.
63848         * modules/unictype/category-Mc-tests: Likewise.
63849         * modules/unictype/category-Me-tests: Likewise.
63850         * modules/unictype/category-Mn-tests: Likewise.
63851         * modules/unictype/category-N-tests: Likewise.
63852         * modules/unictype/category-Nd-tests: Likewise.
63853         * modules/unictype/category-Nl-tests: Likewise.
63854         * modules/unictype/category-No-tests: Likewise.
63855         * modules/unictype/category-P-tests: Likewise.
63856         * modules/unictype/category-Pc-tests: Likewise.
63857         * modules/unictype/category-Pd-tests: Likewise.
63858         * modules/unictype/category-Pe-tests: Likewise.
63859         * modules/unictype/category-Pf-tests: Likewise.
63860         * modules/unictype/category-Pi-tests: Likewise.
63861         * modules/unictype/category-Po-tests: Likewise.
63862         * modules/unictype/category-Ps-tests: Likewise.
63863         * modules/unictype/category-S-tests: Likewise.
63864         * modules/unictype/category-Sc-tests: Likewise.
63865         * modules/unictype/category-Sk-tests: Likewise.
63866         * modules/unictype/category-Sm-tests: Likewise.
63867         * modules/unictype/category-So-tests: Likewise.
63868         * modules/unictype/category-Z-tests: Likewise.
63869         * modules/unictype/category-Zl-tests: Likewise.
63870         * modules/unictype/category-Zp-tests: Likewise.
63871         * modules/unictype/category-Zs-tests: Likewise.
63872         * modules/unictype/category-and-not-tests: Likewise.
63873         * modules/unictype/category-and-tests: Likewise.
63874         * modules/unictype/category-byname-tests: Likewise.
63875         * modules/unictype/category-name-tests: Likewise.
63876         * modules/unictype/category-none-tests: Likewise.
63877         * modules/unictype/category-of-tests: Likewise.
63878         * modules/unictype/category-or-tests: Likewise.
63879         * modules/unictype/category-test-withtable-tests: Likewise.
63880         * modules/unictype/combining-class-tests: Likewise.
63881         * modules/unictype/ctype-alnum-tests: Likewise.
63882         * modules/unictype/ctype-alpha-tests: Likewise.
63883         * modules/unictype/ctype-blank-tests: Likewise.
63884         * modules/unictype/ctype-cntrl-tests: Likewise.
63885         * modules/unictype/ctype-digit-tests: Likewise.
63886         * modules/unictype/ctype-graph-tests: Likewise.
63887         * modules/unictype/ctype-lower-tests: Likewise.
63888         * modules/unictype/ctype-print-tests: Likewise.
63889         * modules/unictype/ctype-punct-tests: Likewise.
63890         * modules/unictype/ctype-space-tests: Likewise.
63891         * modules/unictype/ctype-upper-tests: Likewise.
63892         * modules/unictype/ctype-xdigit-tests: Likewise.
63893         * modules/unictype/decimal-digit-tests: Likewise.
63894         * modules/unictype/digit-tests: Likewise.
63895         * modules/unictype/mirror-tests: Likewise.
63896         * modules/unictype/numeric-tests: Likewise.
63897         * modules/unictype/property-alphabetic-tests: Likewise.
63898         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
63899         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
63900         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
63901         * modules/unictype/property-bidi-block-separator-tests: Likewise.
63902         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
63903         * modules/unictype/property-bidi-common-separator-tests: Likewise.
63904         * modules/unictype/property-bidi-control-tests: Likewise.
63905         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
63906         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
63907         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
63908         * modules/unictype/property-bidi-european-digit-tests: Likewise.
63909         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
63910         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
63911         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
63912         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
63913         * modules/unictype/property-bidi-pdf-tests: Likewise.
63914         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
63915         * modules/unictype/property-bidi-whitespace-tests: Likewise.
63916         * modules/unictype/property-byname-tests: Likewise.
63917         * modules/unictype/property-combining-tests: Likewise.
63918         * modules/unictype/property-composite-tests: Likewise.
63919         * modules/unictype/property-currency-symbol-tests: Likewise.
63920         * modules/unictype/property-dash-tests: Likewise.
63921         * modules/unictype/property-decimal-digit-tests: Likewise.
63922         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
63923         * modules/unictype/property-deprecated-tests: Likewise.
63924         * modules/unictype/property-diacritic-tests: Likewise.
63925         * modules/unictype/property-extender-tests: Likewise.
63926         * modules/unictype/property-format-control-tests: Likewise.
63927         * modules/unictype/property-grapheme-base-tests: Likewise.
63928         * modules/unictype/property-grapheme-extend-tests: Likewise.
63929         * modules/unictype/property-grapheme-link-tests: Likewise.
63930         * modules/unictype/property-hex-digit-tests: Likewise.
63931         * modules/unictype/property-hyphen-tests: Likewise.
63932         * modules/unictype/property-id-continue-tests: Likewise.
63933         * modules/unictype/property-id-start-tests: Likewise.
63934         * modules/unictype/property-ideographic-tests: Likewise.
63935         * modules/unictype/property-ids-binary-operator-tests: Likewise.
63936         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
63937         * modules/unictype/property-ignorable-control-tests: Likewise.
63938         * modules/unictype/property-iso-control-tests: Likewise.
63939         * modules/unictype/property-join-control-tests: Likewise.
63940         * modules/unictype/property-left-of-pair-tests: Likewise.
63941         * modules/unictype/property-line-separator-tests: Likewise.
63942         * modules/unictype/property-logical-order-exception-tests: Likewise.
63943         * modules/unictype/property-lowercase-tests: Likewise.
63944         * modules/unictype/property-math-tests: Likewise.
63945         * modules/unictype/property-non-break-tests: Likewise.
63946         * modules/unictype/property-not-a-character-tests: Likewise.
63947         * modules/unictype/property-numeric-tests: Likewise.
63948         * modules/unictype/property-other-alphabetic-tests: Likewise.
63949         * modules/unictype/property-other-default-ignorable-code-point-tests:
63950         Likewise.
63951         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
63952         * modules/unictype/property-other-id-continue-tests: Likewise.
63953         * modules/unictype/property-other-id-start-tests: Likewise.
63954         * modules/unictype/property-other-lowercase-tests: Likewise.
63955         * modules/unictype/property-other-math-tests: Likewise.
63956         * modules/unictype/property-other-uppercase-tests: Likewise.
63957         * modules/unictype/property-paired-punctuation-tests: Likewise.
63958         * modules/unictype/property-paragraph-separator-tests: Likewise.
63959         * modules/unictype/property-pattern-syntax-tests: Likewise.
63960         * modules/unictype/property-pattern-white-space-tests: Likewise.
63961         * modules/unictype/property-private-use-tests: Likewise.
63962         * modules/unictype/property-punctuation-tests: Likewise.
63963         * modules/unictype/property-quotation-mark-tests: Likewise.
63964         * modules/unictype/property-radical-tests: Likewise.
63965         * modules/unictype/property-sentence-terminal-tests: Likewise.
63966         * modules/unictype/property-soft-dotted-tests: Likewise.
63967         * modules/unictype/property-space-tests: Likewise.
63968         * modules/unictype/property-terminal-punctuation-tests: Likewise.
63969         * modules/unictype/property-test-tests: Likewise.
63970         * modules/unictype/property-titlecase-tests: Likewise.
63971         * modules/unictype/property-unassigned-code-value-tests: Likewise.
63972         * modules/unictype/property-unified-ideograph-tests: Likewise.
63973         * modules/unictype/property-uppercase-tests: Likewise.
63974         * modules/unictype/property-variation-selector-tests: Likewise.
63975         * modules/unictype/property-white-space-tests: Likewise.
63976         * modules/unictype/property-xid-continue-tests: Likewise.
63977         * modules/unictype/property-xid-start-tests: Likewise.
63978         * modules/unictype/property-zero-width-tests: Likewise.
63979         * modules/unictype/scripts-tests: Likewise.
63980         * modules/unictype/syntax-c-ident-tests: Likewise.
63981         * modules/unictype/syntax-c-whitespace-tests: Likewise.
63982         * modules/unictype/syntax-java-ident-tests: Likewise.
63983         * modules/unictype/syntax-java-whitespace-tests: Likewise.
63984         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
63985         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
63986         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
63987         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
63988         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
63989         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
63990         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
63991         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
63992         * modules/uniname/uniname-tests: Likewise.
63993         * modules/uninorm/canonical-decomposition-tests: Likewise.
63994         * modules/uninorm/compat-decomposition-tests: Likewise.
63995         * modules/uninorm/composition-tests: Likewise.
63996         * modules/uninorm/decomposing-form-tests: Likewise.
63997         * modules/uninorm/decomposition-tests: Likewise.
63998         * modules/uninorm/filter-tests: Likewise.
63999         * modules/uninorm/nfc-tests: Likewise.
64000         * modules/uninorm/nfd-tests: Likewise.
64001         * modules/uninorm/nfkc-tests: Likewise.
64002         * modules/uninorm/nfkd-tests: Likewise.
64003         * modules/uninorm/u8-normcmp-tests: Likewise.
64004         * modules/uninorm/u8-normcoll-tests: Likewise.
64005         * modules/uninorm/u16-normcmp-tests: Likewise.
64006         * modules/uninorm/u16-normcoll-tests: Likewise.
64007         * modules/uninorm/u32-normcmp-tests: Likewise.
64008         * modules/uninorm/u32-normcoll-tests: Likewise.
64009         * modules/unistdio/u8-asnprintf-tests: Likewise.
64010         * modules/unistdio/u8-vasnprintf-tests: Likewise.
64011         * modules/unistdio/u8-vasprintf-tests: Likewise.
64012         * modules/unistdio/u8-vsnprintf-tests: Likewise.
64013         * modules/unistdio/u8-vsprintf-tests: Likewise.
64014         * modules/unistdio/u16-asnprintf-tests: Likewise.
64015         * modules/unistdio/u16-vasnprintf-tests: Likewise.
64016         * modules/unistdio/u16-vasprintf-tests: Likewise.
64017         * modules/unistdio/u16-vsnprintf-tests: Likewise.
64018         * modules/unistdio/u16-vsprintf-tests: Likewise.
64019         * modules/unistdio/u32-asnprintf-tests: Likewise.
64020         * modules/unistdio/u32-vasnprintf-tests: Likewise.
64021         * modules/unistdio/u32-vasprintf-tests: Likewise.
64022         * modules/unistdio/u32-vsnprintf-tests: Likewise.
64023         * modules/unistdio/u32-vsprintf-tests: Likewise.
64024         * modules/unistdio/ulc-asnprintf-tests: Likewise.
64025         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
64026         * modules/unistdio/ulc-vasprintf-tests: Likewise.
64027         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
64028         * modules/unistdio/ulc-vsprintf-tests: Likewise.
64029         * modules/unistr/u8-check-tests: Likewise.
64030         * modules/unistr/u8-chr-tests: Likewise.
64031         * modules/unistr/u8-cmp-tests: Likewise.
64032         * modules/unistr/u8-cmp2-tests: Likewise.
64033         * modules/unistr/u8-cpy-alloc-tests: Likewise.
64034         * modules/unistr/u8-cpy-tests: Likewise.
64035         * modules/unistr/u8-mblen-tests: Likewise.
64036         * modules/unistr/u8-mbsnlen-tests: Likewise.
64037         * modules/unistr/u8-mbtouc-tests: Likewise.
64038         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
64039         * modules/unistr/u8-mbtoucr-tests: Likewise.
64040         * modules/unistr/u8-move-tests: Likewise.
64041         * modules/unistr/u8-next-tests: Likewise.
64042         * modules/unistr/u8-prev-tests: Likewise.
64043         * modules/unistr/u8-set-tests: Likewise.
64044         * modules/unistr/u8-stpcpy-tests: Likewise.
64045         * modules/unistr/u8-stpncpy-tests: Likewise.
64046         * modules/unistr/u8-strcat-tests: Likewise.
64047         * modules/unistr/u8-strcmp-tests: Likewise.
64048         * modules/unistr/u8-strcoll-tests: Likewise.
64049         * modules/unistr/u8-strcpy-tests: Likewise.
64050         * modules/unistr/u8-strdup-tests: Likewise.
64051         * modules/unistr/u8-strlen-tests: Likewise.
64052         * modules/unistr/u8-strmblen-tests: Likewise.
64053         * modules/unistr/u8-strmbtouc-tests: Likewise.
64054         * modules/unistr/u8-strncat-tests: Likewise.
64055         * modules/unistr/u8-strncmp-tests: Likewise.
64056         * modules/unistr/u8-strncpy-tests: Likewise.
64057         * modules/unistr/u8-strnlen-tests: Likewise.
64058         * modules/unistr/u8-to-u16-tests: Likewise.
64059         * modules/unistr/u8-to-u32-tests: Likewise.
64060         * modules/unistr/u8-uctomb-tests: Likewise.
64061         * modules/unistr/u16-check-tests: Likewise.
64062         * modules/unistr/u16-chr-tests: Likewise.
64063         * modules/unistr/u16-cmp-tests: Likewise.
64064         * modules/unistr/u16-cmp2-tests: Likewise.
64065         * modules/unistr/u16-cpy-alloc-tests: Likewise.
64066         * modules/unistr/u16-cpy-tests: Likewise.
64067         * modules/unistr/u16-mblen-tests: Likewise.
64068         * modules/unistr/u16-mbsnlen-tests: Likewise.
64069         * modules/unistr/u16-mbtouc-tests: Likewise.
64070         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
64071         * modules/unistr/u16-mbtoucr-tests: Likewise.
64072         * modules/unistr/u16-move-tests: Likewise.
64073         * modules/unistr/u16-next-tests: Likewise.
64074         * modules/unistr/u16-prev-tests: Likewise.
64075         * modules/unistr/u16-set-tests: Likewise.
64076         * modules/unistr/u16-stpcpy-tests: Likewise.
64077         * modules/unistr/u16-stpncpy-tests: Likewise.
64078         * modules/unistr/u16-strcat-tests: Likewise.
64079         * modules/unistr/u16-strcmp-tests: Likewise.
64080         * modules/unistr/u16-strcoll-tests: Likewise.
64081         * modules/unistr/u16-strcpy-tests: Likewise.
64082         * modules/unistr/u16-strdup-tests: Likewise.
64083         * modules/unistr/u16-strlen-tests: Likewise.
64084         * modules/unistr/u16-strmblen-tests: Likewise.
64085         * modules/unistr/u16-strmbtouc-tests: Likewise.
64086         * modules/unistr/u16-strncat-tests: Likewise.
64087         * modules/unistr/u16-strncmp-tests: Likewise.
64088         * modules/unistr/u16-strncpy-tests: Likewise.
64089         * modules/unistr/u16-strnlen-tests: Likewise.
64090         * modules/unistr/u16-to-u32-tests: Likewise.
64091         * modules/unistr/u16-to-u8-tests: Likewise.
64092         * modules/unistr/u16-uctomb-tests: Likewise.
64093         * modules/unistr/u32-check-tests: Likewise.
64094         * modules/unistr/u32-chr-tests: Likewise.
64095         * modules/unistr/u32-cmp-tests: Likewise.
64096         * modules/unistr/u32-cmp2-tests: Likewise.
64097         * modules/unistr/u32-cpy-alloc-tests: Likewise.
64098         * modules/unistr/u32-cpy-tests: Likewise.
64099         * modules/unistr/u32-mblen-tests: Likewise.
64100         * modules/unistr/u32-mbsnlen-tests: Likewise.
64101         * modules/unistr/u32-mbtouc-tests: Likewise.
64102         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
64103         * modules/unistr/u32-mbtoucr-tests: Likewise.
64104         * modules/unistr/u32-move-tests: Likewise.
64105         * modules/unistr/u32-next-tests: Likewise.
64106         * modules/unistr/u32-prev-tests: Likewise.
64107         * modules/unistr/u32-set-tests: Likewise.
64108         * modules/unistr/u32-stpcpy-tests: Likewise.
64109         * modules/unistr/u32-stpncpy-tests: Likewise.
64110         * modules/unistr/u32-strcat-tests: Likewise.
64111         * modules/unistr/u32-strcmp-tests: Likewise.
64112         * modules/unistr/u32-strcoll-tests: Likewise.
64113         * modules/unistr/u32-strcpy-tests: Likewise.
64114         * modules/unistr/u32-strdup-tests: Likewise.
64115         * modules/unistr/u32-strlen-tests: Likewise.
64116         * modules/unistr/u32-strmblen-tests: Likewise.
64117         * modules/unistr/u32-strmbtouc-tests: Likewise.
64118         * modules/unistr/u32-strncat-tests: Likewise.
64119         * modules/unistr/u32-strncmp-tests: Likewise.
64120         * modules/unistr/u32-strncpy-tests: Likewise.
64121         * modules/unistr/u32-strnlen-tests: Likewise.
64122         * modules/unistr/u32-to-u16-tests: Likewise.
64123         * modules/unistr/u32-to-u8-tests: Likewise.
64124         * modules/unistr/u32-uctomb-tests: Likewise.
64125         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
64126         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
64127         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
64128         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
64129         * modules/uniwidth/u8-strwidth-tests: Likewise.
64130         * modules/uniwidth/u8-width-tests: Likewise.
64131         * modules/uniwidth/u16-strwidth-tests: Likewise.
64132         * modules/uniwidth/u16-width-tests: Likewise.
64133         * modules/uniwidth/u32-strwidth-tests: Likewise.
64134         * modules/uniwidth/u32-width-tests: Likewise.
64135         * modules/uniwidth/width-tests: Likewise.
64137 2010-05-18  Richard Jones  <rjones@redhat.com>
64139         doc: users.txt: list hivex
64140         * users.txt: Add hivex.
64142 2010-05-18  Richard Jones  <rjones@redhat.com>
64144         doc: users.txt: list febootstrap
64145         * users.txt: Add febootstrap.
64147 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
64149         bootstrap: fix an error when gnulib is not used as a git submodule
64150         * build-aux/bootstrap (gnulib_path): If its length is zero then
64151         assign "gnulib" to it.
64152         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
64154 2010-05-16  Bruno Haible  <bruno@clisp.org>
64156         Avoid autoconf warnings about AM_ICONV.
64157         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
64158         2.64.
64160 2010-05-16  Bruno Haible  <bruno@clisp.org>
64162         absolute-header: Make the macro usable in more situations.
64163         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
64164         from gl_ABSOLUTE_HEADER.
64165         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
64167 2010-05-16  James Youngman  <jay@gnu.org>
64169         doc: update users.txt
64170         * users.txt: Add CSSC.
64172 2010-05-16  Jim Meyering  <meyering@redhat.com>
64174         init.sh: fix an error in the previous change; add more comments
64175         * tests/init.sh: Compare exit code in loop against 9, not 2.
64176         Patch by Bruno Haible.
64177         Make the two tests more similar by adding an empty "then" clause.
64178         Add comments.
64180         init.sh: avoid unnecessary shell re-exec
64181         * tests/init.sh: Improve the re-exec-required check to first test the
64182         current shell.  If it passes the test, do not search for a shell that
64183         does pass, and do not re-exec.  This test is particularly contorted to
64184         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
64185         of $(...) evokes a syntax error and causes immediate shell exit with
64186         status 2.  Bruno Haible reported that the re-exec made it impossible
64187         to single-step through any init.sh-using script.
64189 2010-05-16  Bruno Haible  <bruno@clisp.org>
64191         Fix collision between gnulib's and libintl's printf replacements.
64192         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
64193         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
64194         (printf): When using GNU C, map the __printf__ function to rpl_printf
64195         via __asm__. When not using GNU C, define rpl_printf instead of
64196         __printf__.
64197         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
64198         commit.
64199         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
64200         commit.
64201         * m4/asm-underscore.m4: New file.
64202         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
64203         * modules/stdio (Files): Add m4/asm-underscore.m4.
64204         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
64205         Reported by Ben Pfaff.
64207 2010-05-16  Bruno Haible  <bruno@clisp.org>
64209         verify: Avoid skipping the test on openSUSE 11.0.
64210         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
64212 2010-05-13  Bruno Haible  <bruno@clisp.org>
64214         Avoid useless warnings from G++.
64215         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
64216         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
64217         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64219 2010-05-11  Jim Meyering  <meyering@redhat.com>
64221         maint.mk: tweak preceding change
64222         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
64223         regexps tighter by anchoring at EOL, and make the new group "shy"
64224         for slightly decreased overhead.
64226 2010-05-11  Eric Blake  <eblake@redhat.com>
64228         maint.mk: gnulib doesn't guarantee NSIG
64229         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
64231 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64233         test-pwrite.c: Remove unused variable declaration.
64234         * tests/test-pwrite.c (main): Remove read_buf declaration.
64236         Remove useless test-pwrite.sh file.
64237         * tests/test-pwrite.sh: Delete file.
64238         * modules/pwrite-tests: Remove references.
64239         Reported by Bruno Haible.
64241 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
64243         init.sh: fix a typo
64244         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
64246 2010-05-10  Jim Meyering  <meyering@redhat.com>
64248         maint.mk: avoid using a temporary file in the always-defined-macros check
64249         * top/maint.mk (.re-defmac): Remove rule.
64250         (gl_trap_): Remove definition.
64251         (sc_prohibit_always-defined_macros): Rewrite not to create and
64252         depend on a temporary file.  Instead, depend on GNU grep's ability
64253         to read a list of regular expressions from stdin when given "-f -".
64255 2010-05-09  Bruno Haible  <bruno@clisp.org>
64257         Update to GNU gettext 0.18, part 1.
64258         * m4/gettext.m4: Update to GNU gettext 0.18.
64259         * m4/intl.m4: Likewise.
64260         * m4/po.m4: Likewise.
64261         * modules/gettext (Files): Add m4/fcntl-o.m4.
64262         (configure.ac): Require gettext infrastructure from version 0.18.
64264 2010-05-09  Jim Meyering  <meyering@redhat.com>
64266         init.sh: enable MALLOC_PERTURB_
64267         * tests/init.sh: Enable glibc's malloc-perturbing option.
64269         maint.mk: improve sc_cross_check_PATH_usage_in_tests
64270         With my recent change in init.sh from the two-line form:
64271             -#   : ${srcdir=.}
64272             -#   . "$srcdir/init.sh"; path_prepend_ .
64273             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
64274         I noticed that using the one-line form would cause this test
64275         to fail with a false-positive, or to stop working altogether,
64276         depending on whether help-version changed or all the tests did.
64277         * top/maint.mk (_hv_regex): Remove this definition.
64278         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
64279         (_hv_regex_strong): Use a stronger regex to check for conformance.
64280         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
64281         Give a separate diagnostic for lack of conforming use.
64283         maint.mk: prohibit definition of symbols defined by gnulib
64284         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
64285         definition of symbols defined by gnulib.
64287 2010-05-09  Bruno Haible  <bruno@clisp.org>
64289         acl: Avoid test failure on Cygwin-hosted mingw.
64290         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
64292 2010-05-09  Bruno Haible  <bruno@clisp.org>
64294         error: Use system's fcntl function.
64295         * lib/error.c (fcntl): Undefine.
64297 2010-05-09  Jim Meyering  <meyering@redhat.com>
64299         verify: adjust formatting to be more consistent
64300         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
64301         argument-list '('s, and after one comma.
64303 2010-05-09  Bruno Haible  <bruno@clisp.org>
64305         error: More reliable output on mingw.
64306         * lib/error.c: Include <windows.h>.
64307         (is_open): New function.
64308         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
64309         defined.
64311 2010-05-09  Bruno Haible  <bruno@clisp.org>
64313         vasnprintf: Fix syntax errors in libintl build on mingw.
64314         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
64315         pad_ourselves and prec_ourselves after use.
64317 2010-05-08  Bruno Haible  <bruno@clisp.org>
64319         * lib/config.charset: Update comments for Cygwin 1.7.
64320         * lib/localcharset.c: Likewise.
64322 2010-05-07  Jim Meyering  <meyering@redhat.com>
64324         init.sh: improve comments
64325         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
64326         . "${srcdir=.}/init.sh"; path_prepend_ .
64327         Add a note about path_prepend_ and the alternative of using
64328         TESTS_ENVIRONMENT.
64330 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
64332         exclude: Unescape hashed patterns in wildcard mode.
64333         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
64334         to the hash list.
64335         * tests/test-exclude8.sh: New test case.
64336         * modules/exclude-tests: Add new test.
64338 2010-05-05  Eric Blake  <eblake@redhat.com>
64340         verify: automate tests
64341         * modules/verify-tests: New module.
64342         * tests/test-verify.sh: New file.
64343         * tests/test-verify.c: Guard each negative test with a unique id.
64344         Also avoid warning about unused left hand of comma expressions.
64346 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
64348         Further improvements to verify.h, suggested by Eric Blake.
64349         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
64350         the GL_* versions, to avoid collision with OpenGL.
64351         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
64352         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
64353         than testing merely whether it's defined.
64355         Modify verify.h to pacify gcc -Wredundant_decls.
64356         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
64357         These use the prefix "GL_" since they're likely to be useful elsewhere.
64358         We may need to break them out into a different .h file.
64359         (__COUNTER__): Define to 0 if the compiler doesn't support it.
64360         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
64361         of verify_function__.
64363 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64365         Tests for module pwrite.
64366         * modules/pwrite-tests: New file.
64367         * tests/test-pwrite.sh: New file.
64368         * tests/test-pwrite.c: New file.
64370         New module pwrite.
64371         * lib/unistd.in.h (pwrite): New declaration.
64372         * lib/pwrite.c: New file, from glibc with modifications.
64373         * m4/pwrite.m4: New file.
64374         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
64375         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
64376         REPLACE_PWRITE.
64377         * modules/pwrite: New file.
64378         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
64379         REPLACE_PWRITE.
64380         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
64381         * doc/posix-functions/pwrite.texi: Mention the new module.
64383 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
64385         pread: Update documentation.
64386         * doc/posix-functions/pread.texi: Mention the 'pread' module.
64388 2010-05-04  Eric Blake  <eblake@redhat.com>
64390         docs: update cygwin progress
64391         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
64392         this bug.
64393         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
64394         Added in cygwin 1.7.2.
64395         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
64396         Likewise.
64397         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
64398         Likewise.
64399         * doc/glibc-functions/dup3.texi (dup3): Likewise.
64400         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
64401         * doc/glibc-functions/accept4.texi (accept4): Likewise.
64402         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
64403         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
64404         Mention nproc module.
64405         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
64406         bug in cygwin 1.7.5 addition.
64407         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
64408         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
64409         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
64410         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
64411         1.7.5.
64412         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
64413         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
64414         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
64415         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
64416         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
64417         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
64418         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
64419         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
64420         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
64421         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
64422         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
64423         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
64424         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
64425         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
64426         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
64427         Likewise.
64428         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
64429         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
64430         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
64431         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
64432         Likewise.
64433         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
64434         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
64435         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
64436         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
64437         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
64438         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
64439         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
64440         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
64441         Likewise.
64442         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
64443         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
64444         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
64445         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
64446         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
64447         Likewise.
64448         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
64449         Likewise.
64450         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
64451         Likewise.
64452         * doc/glibc-functions/xdrrec_endofrecord.texi
64453         (xdrrec_endofrecord): Likewise.
64454         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
64455         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
64456         Likewise.
64457         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
64458         Likewise.
64460 2010-05-04  Jim Meyering  <meyering@redhat.com>
64462         gendocs.sh: make its "-s FILE" option more useful
64463         * build-aux/gendocs.sh: When honoring the -s FILE option, update
64464         $PACKAGE to reflect the probably-different basename of "FILE".
64466 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
64468         bootstrap: don't ignore download_po_files failure
64469         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
64470         failure.
64472 2010-05-03  Jim Meyering  <meyering@redhat.com>
64474         maint.mk: allow to pass options to gendocs.sh
64475         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
64476         (gendocs_options_): New overridable variable.
64478         gnu-web-doc-update: don't ignore configure or build failure
64479         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
64481         announce-gen: backslash-escape '@'s in --help output
64482         * build-aux/announce-gen: Fix syntax errors.
64484         maint.mk, announce-gen: allow project-specific announcement mail headers
64485         * top/maint.mk (translation_project_): Define default.
64486         (announcement_Cc_, announcement_mail_headers_): Likewise.
64487         (announcement): Invoke announce-gen with new --mail-headers option.
64488         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
64490         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
64491         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
64492         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
64493         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
64494         line in the "err2" output file when running "make check" in verbose
64495         mode (i.e., with set -x enabled).
64497 2010-05-03  Bruno Haible  <bruno@clisp.org>
64499         wctob: Fix for weird platforms.
64500         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
64501         argument value.
64503 2010-05-03  Jim Meyering  <meyering@redhat.com>
64505         maint.mk: prohibit unwarranted use of <strings.h>
64506         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
64507         strings.h in a file that does not also use strcasecmp, strncasecmp,
64508         ffs or ffsll.
64510         maint.mk: remove obsolete comments
64511         * top/maint.mk: Remove stale, commented-out rules.
64513 2010-05-02  Bruno Haible  <bruno@clisp.org>
64515         wcwidth: Declare also when it's aliased.
64516         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
64517         macro.
64519 2010-05-02  Bruno Haible  <bruno@clisp.org>
64521         Fix regression from 2010-04-25.
64522         * gnulib-tool (func_modules_transitive_closure): Check the status of
64523         all modules, not only of the tests that are of the form foo-tests where
64524         foo is a module.
64526 2010-05-02  Bruno Haible  <bruno@clisp.org>
64528         wctob: Work around nasty Cygwin 1.7.2 bug.
64529         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
64530         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
64532 2010-05-01  Bruno Haible  <bruno@clisp.org>
64534         fpurge: Sharper test.
64535         * tests/test-fpurge.c (main): Add one more ftell check.
64536         * modules/fpurge-tests (Depends-on): Add ftell.
64537         Suggested by Eric Blake.
64539 2010-05-01  Bruno Haible  <bruno@clisp.org>
64541         ftello: Another test.
64542         * tests/test-ftello3.c: New file.
64543         * modules/ftello-tests (Files): Add it.
64544         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64545         MOSTLYCLEANFILES.
64547         ftell: Another test.
64548         * tests/test-ftell3.c: New file.
64549         * modules/ftell-tests (Files): Add it.
64550         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
64551         MOSTLYCLEANFILES.
64553 2010-05-01  Bruno Haible  <bruno@clisp.org>
64555         ftell, ftello: Work around Solaris bug.
64556         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
64557         * lib/ftello.c: Include stdio-impl.h.
64558         (ftello): On Solaris, when _IOWRT is set, compute the result without
64559         looking at _IOREAD.
64560         * modules/ftello (Files): Add lib/stdio-impl.h.
64561         * doc/posix-functions/ftell.texi: Mention Solaris bug.
64562         * doc/posix-functions/ftello.texi: Likewise.
64563         Reported by Eric Blake.
64565 2010-05-01  Bruno Haible  <bruno@clisp.org>
64567         freading: Adapt to special meaning of _IOREAD flag on Solaris.
64568         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
64569         the _IOWRT flag is also set.
64571 2010-05-01  Bruno Haible  <bruno@clisp.org>
64573         Fix doc about a HP-UX stdio bug.
64574         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
64575         * doc/posix-functions/ftello.texi: Likewise.
64577 2010-05-01  Bruno Haible  <bruno@clisp.org>
64579         lseek test: Fix failure on Solaris.
64580         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
64581         output.
64583 2010-04-30  Jim Meyering  <meyering@redhat.com>
64585         bootstrap: don't ignore failure to generate po*/Makevars
64586         * build-aux/bootstrap (with_gettext): Don't ignore failure
64587         to create po/Makevars or runtime-po/Makevars.
64589 2010-04-29  Eric Blake  <eblake@redhat.com>
64591         headers: relax license to LGPLv2+
64592         * modules/fcntl-h (License): Relax license.
64593         * modules/getopt-posix (License): Likewise.
64594         * modules/locale (License): Likewise.
64595         * modules/math (License): Likewise.
64596         * modules/pty (License): Likewise.
64597         * modules/sched (License): Likewise.
64598         * modules/search (License): Likewise.
64599         * modules/spawn (License): Likewise.
64600         * modules/stdarg (License): Likewise.
64601         * modules/sysexits (License): Likewise.
64603 2010-04-29  Jim Meyering  <meyering@redhat.com>
64605         inttypes: relax license to LGPLv2+
64606         * modules/inttypes (License): Relax license.
64608 2010-04-29  Simon Josefsson  <simon@josefsson.org>
64610         * top/maint.mk (indent): Run twice to produce idempotent results.
64612 2010-04-28  Bruno Haible  <bruno@clisp.org>
64614         getdate: Generate getdate.c in the source directory.
64615         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
64616         MOSTLYCLEANFILES.
64617         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
64619 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
64621         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
64622         is not declared as a const *; avoid warnings in that case.
64624 2010-04-28  Eric Blake  <eblake@redhat.com>
64626         canonicalize-lgpl: avoid compiler warning
64627         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
64628         declaration' / 'extraneous semicolon' warning with some compilers.
64629         Reported by Andreas Gruenbacher.
64631 2010-04-28  Jim Meyering  <meyering@redhat.com>
64633         init.sh: ensure a more reliable exit status when exiting via trap
64634         * tests/init.sh (setup_): Don't rely on $? in signal handler.
64635         Inspired by patches from Dmitry V. Levin.
64636         Also trap on signal 3 (SIGQUIT).
64638 2010-04-27  Bruno Haible  <bruno@clisp.org>
64640         Update doc about utimes().
64641         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
64642         'utimens' module.
64643         Reported by Andreas Gruenbacher <agruen@suse.de>.
64645 2010-04-27  Eric Blake  <eblake@redhat.com>
64647         full-read, full-write: relax license
64648         * modules/full-read (License): Drop to LGPLv2+.
64649         * modules/full-write (License): Likewise.
64650         * modules/safe-read (License): Likewise.
64651         * modules/safe-write (License): Likewise.
64653         pthread: mention library for linking
64654         * modules/pthread (Link): Mention $(LIB_PTHREAD).
64656 2010-04-27  Jim Meyering  <meyering@redhat.com>
64658         maint.mk: fix a bug introduced in last change
64659         * top/maint.mk (gl_assured_headers_): Now that all names are on
64660         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
64661         is not anchored to end of word, it should be adequate.
64663         maint.mk: avoid side-effect in latest syntax-check
64664         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
64665         to run commands via $(shell...), and hence to incur cost only when
64666         the new rule is actually run.
64668         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
64669         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
64670         and use that to create a regexp used to detect all #if HAVE_..._H uses.
64671         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
64672         (gl_assured_headers_, az_, AZ_): Define.
64673         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
64675 2010-04-26  Jim Meyering  <jim@meyering.net>
64676             Bruno Haible  <bruno@clisp.org>
64678         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
64679         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
64680         Prompted by an exchange with Gilles Espinasse.
64682 2010-04-26  Jim Meyering  <meyering@redhat.com>
64684         git-version-gen: aesthetic tweak
64685         * build-aux/git-version-gen: Use "$nl" rather than a literal,
64686         so that the command remains on a single line.
64688 2010-04-26  Eric Blake  <eblake@redhat.com>
64690         git-version-gen: allow use on EBCDIC hosts
64691         * build-aux/git-version-gen (dirty): Use literal rather than tying
64692         ourselves to ascii.
64693         Reported by Steve Goetze.
64695 2010-04-25  Bruno Haible  <bruno@clisp.org>
64697         netdb: Add support for GNULIB_POSIXCHECK.
64698         * lib/netdb.in.h: Include warn-on-use.h.
64699         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
64700         functions are used when GNULIB_POSIXCHECK is defined and the
64701         getaddrinfo module is not in use.
64702         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
64703         freeaddrinfo, gai_strerror, getnameinfo are declared.
64704         * modules/netdb (Depends-on): Add warn-on-use.
64705         (Makefile.am): Include warn-on-use.h in netdb.h.
64707 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
64709         build: avoid "make check" failure without .git/ directory
64710         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
64711         there is no .git/ directory.
64713 2010-04-25  Bruno Haible  <bruno@clisp.org>
64715         ptsname: Fix misuse of ttyname_r.
64716         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
64717         of errno.
64719 2010-04-25  Bruno Haible  <bruno@clisp.org>
64721         ttyname_r: Make it work on Solaris 10.
64722         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
64723         if the system function has the POSIX declaration. Test whether the
64724         function fails if the buffer is less than 128 bytes large.
64725         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
64726         system's ttyname_r function. Provide a reasonably large buffer.
64727         * modules/ttyname_r (Depends-on): Add extensions.
64728         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
64730 2010-04-25  Bruno Haible  <bruno@clisp.org>
64732         Use the 'extensions' module for some more functions on Solaris.
64733         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
64734         module.
64735         * doc/posix-functions/ctime_r.texi: Likewise.
64736         * doc/posix-functions/getgrgid_r.texi: Likewise.
64737         * doc/posix-functions/getgrnam_r.texi: Likewise.
64738         * doc/posix-functions/getpwnam_r.texi: Likewise.
64739         * doc/posix-functions/getpwuid_r.texi: Likewise.
64740         * doc/posix-functions/readdir_r.texi: Likewise.
64741         * doc/posix-functions/sigwait.texi: Likewise.
64742         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
64743         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
64745 2010-04-25  Bruno Haible  <bruno@clisp.org>
64747         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
64748         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
64749         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
64750         * lib/ttyname_r.c: Include <limits.h>.
64751         (ttyname_r): Define using the system's ttyname_r function, if it exists
64752         and not on Solaris.
64753         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
64754         set.
64755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
64756         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
64757         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
64758         Reported by Simon Josefsson.
64760 2010-04-25  Bruno Haible  <bruno@clisp.org>
64762         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
64763         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
64764         * doc/posix-functions/ctime_r.texi: Likewise.
64765         * doc/posix-functions/getgrgid_r.texi: Likewise.
64766         * doc/posix-functions/getgrnam_r.texi: Likewise.
64767         * doc/posix-functions/getlogin_r.texi: Likewise.
64768         * doc/posix-functions/getpwnam_r.texi: Likewise.
64769         * doc/posix-functions/getpwuid_r.texi: Likewise.
64770         * doc/posix-functions/readdir_r.texi: Likewise.
64771         * doc/posix-functions/sigwait.texi: Likewise.
64772         * doc/posix-functions/ttyname_r.texi: Likewise.
64773         Reported by Simon Josefsson.
64775 2010-04-25  Bruno Haible  <bruno@clisp.org>
64777         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
64778         * gnulib-tool (func_usage): Document that --with-*-tests options apply
64779         also to --create-testdir.
64780         (func_acceptable): Don't consider the status of *-tests modules here.
64781         (func_modules_transitive_closure): Consider it here, before including a
64782         test module.
64783         (func_import, func_create_testdir): Set inc_all_direct_tests,
64784         inc_all_indirect_tests.
64785         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
64786         --create-testdir and --create-megatestdir.
64788 2010-04-25  Bruno Haible  <bruno@clisp.org>
64790         gnulib-tool: Add --without-*-tests options.
64791         * gnulib-tool (func_usage): Document the --without-*-tests options.
64792         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
64793         excl_unportable_tests): New variables.
64794         Fail if they are specified with --import or --update.
64795         (func_acceptable): Respect the excl_*_tests variables.
64796         (func_import): Set the excl_*_tests variables to empty.
64798 2010-04-25  Simon Josefsson  <simon@josefsson.org>
64799             Bruno Haible  <bruno@clisp.org>
64801         Work around a MacOS X 10.4 bug with openpty.
64802         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
64803         * tests/test-openpty.c (main): Close the master side explicitly.
64805 2010-04-25  Bruno Haible  <bruno@clisp.org>
64807         strnlen: Fix a C++ test error on MacOS X and Solaris.
64808         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
64809         the function is not declared.
64810         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
64811         Simon Josefsson.
64813 2010-04-24  Bruno Haible  <bruno@clisp.org>
64815         Avoid a gcc warning.
64816         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
64817         of correct type for %08lx directive.
64818         Reported by Eric Blake.
64820 2010-04-24  Bruno Haible  <bruno@clisp.org>
64822         vasnprintf: Correct errno value in case of out-of-memory.
64823         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
64824         or sprintf. Use the errno value from SNPRINTF or sprintf.
64825         Reported by Ian Beckwith <ianb@erislabs.net>.
64827 2010-04-24  Bruno Haible  <bruno@clisp.org>
64829         ansi-c++-opt: Find correct compiler when cross-compiling.
64830         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
64831         AC_CHECK_PROGS.
64832         Reported by Simon Josefsson.
64834 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
64836         vc-list-files: Add support for subversion
64837         * build-aux/vc-list-files: Use "svn list" to generate the list of
64838         files controlled by subversion.
64840 2010-04-23  Jim Meyering  <meyering@redhat.com>
64842         vc-list-files tests: convert to use init.sh
64843         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
64844         path_prepend_.
64845         Use Exit, not exit.
64846         Use skip_ rather than open coding it.
64847         Remove trap set-up and compare definitions.
64848         * tests/test-vc-list-files-git.sh: Likewise.
64849         * modules/vc-list-files-tests (Files): Add tests/init.sh.
64851 2010-04-22  Simon Josefsson  <simon@josefsson.org>
64853         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
64854         backup files.
64856 2010-04-21  Simon Josefsson  <simon@josefsson.org>
64858         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
64860 2010-04-20  Eric Blake  <eblake@redhat.com>
64862         tests: be robust to ignored SIGPIPE
64863         * tests/test-select-in.sh: Consume all output.
64864         * tests/test-lseek.sh: Check correct exit status, while avoiding
64865         EPIPE.
64867 2010-04-20  Simon Josefsson  <simon@josefsson.org>
64868             Bruno Haible  <bruno@clisp.org>
64870         visibility: Don't use -fvisibility if it leads to a warning.
64871         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
64872         yes, don't pretend that visibility works if it leads to a warning.
64873         Reported by Mike Gran <spk121@yahoo.com>.
64875 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
64877         * build-aux/bootstrap: Use "git -h" for testing for supported options
64878         instead of "git --help".  The short-form option only shows a summary,
64879         and doesn't layout the full man page.  Grep for the full option name
64880         in the summary, too.
64882 2010-04-19  Bruno Haible  <bruno@clisp.org>
64884         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
64885         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
64886         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
64887         mention of RELOCATABLE_STRIP.
64888         Reported by Sylvain Beucler <beuc@beuc.net>.
64890 2010-04-19  Bruno Haible  <bruno@clisp.org>
64892         * lib/diffseq.h: Fix typo in comment.
64893         Reported by Eric Blake.
64895 2010-04-19  Bruno Haible  <bruno@clisp.org>
64897         ioctl: Move autoconf macro to a .m4 file.
64898         * m4/ioctl.m4: New file, extracted from modules/ioctl.
64899         * modules/ioctl (Files): Add it.
64900         (configure.ac): Simply invoke gl_FUNC_IOCTL.
64901         Reported by Ian Beckwith <ianb@erislabs.net>.
64903 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
64904             Bruno Haible  <bruno@clisp.org>
64906         diffseq: Accommodate use-case with abstract arrays.
64907         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
64908         is not defined.
64909         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
64910         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
64912 2010-04-18  Bruno Haible  <bruno@clisp.org>
64914         * doc/posix-headers/stdbool.texi: More precise wording.
64916 2010-04-17  Jim Meyering  <meyering@redhat.com>
64918         maint.mk: use gnu-style indentation in an embedded perl script
64919         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
64920         Rename variable: s/two/last_two_bytes/
64922 2010-04-16  Eric Blake  <eblake@redhat.com>
64924         test-stdbool: skip test that fails with Solaris CC
64925         * tests/test-stdbool.c (f): Skip test that causes compilation
64926         error under buggy C++ compiler.
64927         * lib/stdbool.in.h: Document the limitation.
64928         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
64930         setenv: allow compilation with C++
64931         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
64932         register keyword.
64934         stdint: allow test to pass with C++
64935         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
64937         getopt: allow compilation with C++
64938         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
64939         struct.
64940         * lib/getopt.c (_getopt_internal_r): Use correct type.
64941         Reported by Dagobert Michelson, via Joel E. Denny.
64943 2010-04-16  Bruno Haible  <bruno@clisp.org>
64945         Override netdb.h always.
64946         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
64947         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
64948         Reported by Ludovic Courtès <ludo@gnu.org>.
64950 2010-04-15  Bruno Haible  <bruno@clisp.org>
64952         openpty: Fix mistake from 2010-03-21.
64953         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
64954         Reported by Simon Josefsson.
64956 2010-04-15  Eric Blake  <eblake@redhat.com>
64958         test-forkpty: fix expected signature
64959         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
64960         Reported by Simon Josefsson.
64962 2010-04-15  Jim Meyering  <meyering@redhat.com>
64964         maint.mk: texinfo_suffix_re_: correct the default regexp
64965         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
64967         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
64968         make it configurable via texinfo_suffix_re_.
64970 2010-04-14  Eric Blake  <eblake@redhat.com>
64972         strtok_r: relax license to LGPLv2+
64973         * modules/strtok_r (License): Relax license.
64974         Reported by Matthias Bolte.
64976 2010-04-14  Simon Josefsson  <simon@josefsson.org>
64978         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
64979         version 1.4.4 by default instead of requiring the libgcrypt
64980         version used during build.  This makes it possible to use the
64981         application with older but still binary compatible libgcrypt
64982         versions.
64984 2010-04-13  Eric Blake  <eblake@redhat.com>
64986         getopt-gnu: match recent glibc fixes and posix ruling
64987         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
64988         '+' handling, when requesting extensions.
64989         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
64990         'W;' handling.
64991         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
64992         * doc/posix-functions/getopt.texi (getopt): Document this.
64993         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
64994         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
64995         Likewise.
64997         getopt: merge bug fixes from glibc
64998         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
64999         diagnostics.  Honor '+:' correctly.  Reject ';'.
65001         getopt-posix: detect MacOS bug
65002         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
65003         optind when missing a required argument.
65004         * doc/posix-functions/getopt.texi (getopt): Document the bug.
65005         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
65006         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65007         Likewise.
65009         getopt-posix: avoid spurious failure on Solaris
65010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
65011         an indicator that setting optind=1 is sufficient for reset.
65013         getopt-posix: avoid spurious failure on FreeBSD
65014         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
65015         in POSIX mode, since the m4 test uses it.
65017         gnulib-tool: silence warning on BSD sh
65018         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
65020 2010-04-13  Jim Meyering  <meyering@redhat.com>
65022         doc: users.txt: GNU patch now uses gnulib
65023         * users.txt: Add patch.
65025 2010-04-12  Jim Meyering  <meyering@redhat.com>
65027         maint.mk: generate more concise timing data for syntax-check rules
65028         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
65029         " done" from each line that reports a syntax-check test duration.
65031 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
65033         git-version-gen: use "git update-index..." rather than "git status"
65034         * build-aux/git-version-gen: Use git update-index --refresh, not
65035         "git status".  With some versions of git, "git status" would fail
65036         to update the index and result in an unwarranted "-dirty" suffix.
65038 2010-04-11  Jim Meyering  <meyering@redhat.com>
65040         openat: correct formatting (no semantic change)
65041         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
65042         Suggested by Bruno Haible.
65044 2010-04-11  Bruno Haible  <bruno@clisp.org>
65046         Stricter declaration checking in testdirs.
65047         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65048         If for_tests is true, augment AM_CPPFLAGS to define
65049         GNULIB_STRICT_CHECKING.
65050         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
65051         GNULIB_STRICT_CHECKING is defined, verify that the function is
65052         declared.
65054 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
65055             Bruno Haible  <bruno@clisp.org>
65057         libunistring: Improve configure output.
65058         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
65059         Don't say "consider installing GNU libunistring" when checking again
65060         with libiconv.
65062 2010-04-11  Bruno Haible  <bruno@clisp.org>
65064         libunistring: Correct value of $LTLIBUNISTRING.
65065         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
65066         correct the value of $LTLIBUNISTRING.
65068 2010-04-11  Bruno Haible  <bruno@clisp.org>
65070         havelib: Add static libraries to LIBS in the right order.
65071         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
65072         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
65074 2010-04-11  Bruno Haible  <bruno@clisp.org>
65076         libunistring: Detect libunistring also when it depends on libiconv.
65077         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
65078         the second AC_LIB_HAVE_LINKFLAGS invocation.
65080 2010-04-11  James Youngman  <jay@gnu.org>
65082         close-stream: declare local scalars to be "const"
65083         * lib/close-stream.c (close_stream): Make boolean variables const
65084         to document the fact that we set but do not change them.
65086 2010-04-11  Bruno Haible  <bruno@clisp.org>
65088         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
65090 2010-04-11  Jim Meyering  <meyering@redhat.com>
65092         maint.mk: don't include dist-check.mk
65093         * top/maint.mk: Remove bogus include directive.
65095         maint.mk: improve empty-line-at-EOF check
65096         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
65097         solution, rather than tail+Perl-based one.  The latter would read
65098         a few kilobytes from the end of each file, and did not handle empty
65099         files properly.
65101         maint.mk: print the elapsed time for each syntax-check rule
65102         * top/maint.mk (sc_m_rules_): Save start time in a file.
65103         (sc_z_rules_): New rules: remove temp file and print elapsed time.
65104         (local-check): Interpose the .z rules
65106 2010-04-11  Jim Meyering  <meyering@redhat.com>
65108         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
65109         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
65110         empty file with one that ends in an empty line.
65112 2010-04-10  Bruno Haible  <bruno@clisp.org>
65114         mkdir: Make it work on mingw64.
65115         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
65116         * lib/mkdir.c: Update comment.
65117         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
65119 2010-04-10  Bruno Haible  <bruno@clisp.org>
65121         Don't override improved macro from newer autoconf.
65122         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
65123         autoconf >= 2.62.
65124         Reported by Joel E. Denny <jdenny@clemson.edu>.
65126 2010-04-10  Jim Meyering  <meyering@redhat.com>
65128         maint.mk: new syntax-check rule: prohibit empty lines at end of file
65129         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
65131         maint.mk: correct a diagnostic
65132         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
65133         in diagnostic; now use $prohibit.
65135 2010-04-10  Bruno Haible  <address@hidden>
65137         fchownat: Fix a C++ test error on Solaris 8.
65138         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
65139         the function does not exist.
65141 2010-04-10  Bruno Haible  <bruno@clisp.org>
65143         vasnprintf: Add more tests.
65144         * tests/test-vasnprintf-posix.c: Include <errno.h>.
65145         (test_function): Test converting an invalid wide string.
65147         vasnprintf: Correct handling of unconvertible wide string arguments.
65148         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
65149         VASNPRINTF.
65150         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
65151         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
65152         smaller than the expected maximum need for the directive. Set errno to
65153         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
65154         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
65155         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
65156         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
65157         * modules/vasnprintf (Files): Add m4/printf.m4.
65158         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65160 2010-04-10  Bruno Haible  <bruno@clisp.org>
65162         vasnprintf: Fix crash in %ls directive.
65163         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
65164         string is passed as argument to %ls, with no precision and no width.
65165         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65167 2010-04-10  Bruno Haible  <bruno@clisp.org>
65169         vasnprintf: Fix multiple test failures on mingw.
65170         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
65171         _snprintf, or snwprintf, not _snwprintf.
65173 2010-04-10  Bruno Haible  <bruno@clisp.org>
65175         write: Fix a C++ test error on mingw.
65176         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
65178 2010-04-10  Bruno Haible  <bruno@clisp.org>
65180         vasnprintf test: Reduce code duplication.
65181         * tests/test-vasnprintf.c (test_function): New function, extracted from
65182         test_vasnprintf.
65183         (test_vasnprintf, test_asnprintf): Invoke it.
65185 2010-04-10  Bruno Haible  <bruno@clisp.org>
65187         strnlen: Fix warning in C++ mode on MacOS X.
65188         * lib/string.in.h (strnlen): Use the modern idiom.
65189         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
65190         defining strnlen as a macro already in <config.h>.
65191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65192         REPLACE_STRNLEN.
65193         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
65194         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65196 2010-04-08  James Youngman  <jay@gnu.org>
65198         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
65199         the example.
65201 2010-04-09  Jim Meyering  <meyering@redhat.com>
65203         maint.mk: print better diagnostic when there is no $(_hv_file)
65204         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
65205         announce that when $(_hv_file) (aka help-version) does not exist.
65207         init.sh: run tr in the "C" locale to avoid multibyte interpretation
65208         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
65209         not try to interpret its random input bytes.  Jarno Rajahalme reported
65210         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
65211         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
65212         (mktempd_): Likewise, just in case.
65214         ftruncate: add two years to projected module removal date: 2012
65215         * m4/ftruncate.m4: Adjust comments.
65217         ftruncate: mark module as obsolete; even MinGW provides it, now
65218         * modules/ftruncate (Status): Obsolete.
65219         (Notice): Say that.
65220         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
65221         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
65223 2010-04-08  Bruno Haible  <bruno@clisp.org>
65225         Fix side effects from tests-related modules.
65226         * modules/dprintf-posix (Comment): New section.
65227         * modules/fprintf-posix (Comment): Likewise.
65228         * modules/obstack-printf-posix (Comment): Likewise.
65229         * modules/printf-posix (Comment): Likewise.
65230         * modules/snprintf-posix (Comment): Likewise.
65231         * modules/sprintf-posix (Comment): Likewise.
65232         * modules/vasnprintf-posix (Comment): Likewise.
65233         * modules/vasprintf-posix (Comment): Likewise.
65234         * modules/vdprintf-posix (Comment): Likewise.
65235         * modules/vfprintf-posix (Comment): Likewise.
65236         * modules/vprintf-posix (Comment): Likewise.
65237         * modules/vsnprintf-posix (Comment): Likewise.
65238         * modules/vsprintf-posix (Comment): Likewise.
65239         * modules/xprintf-posix (Comment): Likewise.
65240         * modules/xvasprintf-posix (Comment): Likewise.
65241         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
65242         * modules/floorf-tests (Depends-on): Likewise.
65243         * modules/round-tests (Depends-on): Likewise.
65244         * modules/roundf-tests (Depends-on): Likewise.
65245         * modules/trunc-tests (Depends-on): Likewise.
65246         * modules/truncf-tests (Depends-on): Likewise.
65247         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
65248         'fprintf-posix' module is not present.
65249         * tests/test-floorf2.c (check): Likewise.
65250         * tests/test-trunc2.c (check): Likewise.
65251         * tests/test-truncf2.c (check): Likewise.
65252         * tests/test-round2.c (equal): Likewise.
65253         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65255 2010-04-07  Karl Berry  <karl@gnu.org>
65257         * config/srclist.txt,
65258         * config/srclistvars.sh,
65259         * config/srclist-update: doc fixes.
65261 2010-04-07  Jim Meyering  <meyering@redhat.com>
65263         maint.mk: add a PATH crosschecking syntax-check rule
65264         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
65265         Useful if you use a test like the one in help-version (coreutils,
65266         diffutils, grep, gzip) that ensures $(VERSION) matches what is
65267         printed by prog --version.
65269 2010-04-06  Bruno Haible  <bruno@clisp.org>
65271         Fix link error on mingw.
65272         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
65273         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
65275 2010-04-06  Bruno Haible  <bruno@clisp.org>
65277         Assume rmdir exists.
65278         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
65280 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
65282         doc: update users.txt
65283         * users.txt: Add gcal.
65285 2010-04-06  Jim Meyering  <meyering@redhat.com>
65287         init.sh: simply unset TMPDIR rather than risking env -i
65288         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
65289         although it probably works fine on all Unix-based systems, some
65290         systems (Cygwin?) cannot tolerate a totally cleared environment.
65291         Suggestion from Eric Blake.
65293 2010-04-06  Jim Meyering  <meyering@redhat.com>
65295         init.sh: portability fix: use env's POSIX-specified -i option not -u
65296         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
65297         than unportable env -u.  Solaris 5.11's env lacks support for -u.
65299 2010-04-05  Bruno Haible  <bruno@clisp.org>
65301         btowc: Work around Cygwin 1.7.2 bug.
65302         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
65303         does not map NUL to 0.
65304         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
65306 2010-04-05  Bruno Haible  <bruno@clisp.org>
65308         Make the multithread modules work on Cygwin 1.7.2.
65309         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
65310         imported symbols can be declared weak, so that it returns "no" on
65311         Cygwin 1.7.2.
65313 2010-04-05  Bruno Haible  <bruno@clisp.org>
65315         Use the module 'strncat'.
65316         * modules/unistr/u8-strncat (Depends-on): Add strncat.
65318         Tests for module 'strncat'.
65319         * modules/strncat-tests: New file.
65320         * tests/test-strncat.c: New file.
65322         New module 'strncat'.
65323         * lib/string.in.h (strncat): New declaration.
65324         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
65325         * m4/strncat.m4: New file, based on m4/memchr.m4.
65326         * modules/strncat: New file.
65327         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
65328         is declared.
65329         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
65330         REPLACE_STRNCAT.
65331         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
65332         REPLACE_STRNCAT.
65333         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
65334         module.
65335         * tests/test-string-c++.cc: Check signature of strncat.
65337 2010-04-05  Jim Meyering  <meyering@redhat.com>
65339         xstrtoumax-tests: convert to use init.sh
65340         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
65341         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65342         Use Exit, not exit.
65343         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65345         xstrtoimax-tests: convert to use init.sh
65346         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
65347         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65348         Use Exit, not exit.
65349         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65351 2010-04-05  Bruno Haible  <bruno@clisp.org>
65353         sys_socket: Avoid #define replacements in C++ mode.
65354         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
65355         warning to the function if possible, rather than #defining the symbol
65356         to a dysfunctional alias.
65358 2010-04-05  Bruno Haible  <bruno@clisp.org>
65360         fseeko: Fix C++ test error on mingw.
65361         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
65362         gl_FUNC_FSEEKO.
65363         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
65364         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
65365         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
65366         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
65368 2010-04-05  Bruno Haible  <bruno@clisp.org>
65370         duplocale: Improve test output.
65371         * tests/test-duplocale.c (main): Print reason for skipped test.
65373 2010-04-05  Bruno Haible  <bruno@clisp.org>
65375         Assume rmdir exists.
65376         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
65377         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
65379 2010-04-05  Bruno Haible  <bruno@clisp.org>
65381         Fix link error on Solaris 8 with cc.
65382         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
65384 2010-04-05  Bruno Haible  <bruno@clisp.org>
65386         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65387         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
65389 2010-04-05  Bruno Haible  <bruno@clisp.org>
65391         vasprintf: Update documentation.
65392         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
65394 2010-04-05  Bruno Haible  <bruno@clisp.org>
65396         ptsname: Improve test.
65397         * tests/test-ptsname.c (main): Also try the various master names of BSD
65398         systems.
65400 2010-04-05  Bruno Haible  <bruno@clisp.org>
65402         memchr: Avoid a possible C++ test error.
65403         * lib/string.in.h (memchr): Provide declaration if function is missing.
65404         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
65405         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
65406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
65407         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
65409 2010-04-05  Bruno Haible  <bruno@clisp.org>
65411         strtok_r: Improve idiom.
65412         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
65413         AC_LIBOBJ is used.
65415 2010-04-05  Bruno Haible  <bruno@clisp.org>
65417         strdup: Improve idiom.
65418         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
65419         AC_LIBOBJ is used.
65420         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
65421         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
65422         when AC_LIBOBJ is used.
65424 2010-04-05  Bruno Haible  <bruno@clisp.org>
65426         mbsinit, mbrtowc, wcrtomb: Improve idioms.
65427         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
65428         don't set REPLACE_MBSINIT to 1.
65429         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
65430         don't set REPLACE_MBRTOWC to 1.
65431         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
65432         exist, don't set REPLACE_MBSRTOWCS to 1.
65433         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
65434         exist, don't set REPLACE_MBSNRTOWCS to 1.
65435         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
65436         don't set REPLACE_WCRTOMB to 1.
65437         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
65438         exist, don't set REPLACE_WCSRTOMBS to 1.
65439         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
65440         exist, don't set REPLACE_WCSNRTOMBS to 1.
65442 2010-04-05  Bruno Haible  <bruno@clisp.org>
65444         ldexpl: Improve idiom.
65445         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
65446         make sure to set HAVE_DECL_LDEXPL to 0.
65448 2010-04-05  Jim Meyering  <meyering@redhat.com>
65450         xstrtol-tests: convert to use init.sh
65451         * modules/xstrtol-tests (Files): Add tests/init.sh.
65452         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65453         Use Exit, not exit.
65454         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65456         atexit-tests: convert to use init.sh
65457         * modules/atexit-tests (Files): Add tests/init.sh.
65458         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
65459         Use Exit, not exit.
65460         Remove uses of $EXEEXT and "./" to run a program in the current dir.
65462         init.sh: fix typo
65463         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
65465         init.sh: make it easier for a test script to write to the tty, ...
65466         when using automake's parallel-tests mode.
65467         * tests/init.sh (stderr_fileno_): Define overridable variable.
65468         (warn_): New function, to use it.
65469         (fail_, skip_, framework_failure_): Use warn_.
65471 2010-04-04  Bruno Haible  <bruno@clisp.org>
65473         btowc: Avoid warning.
65474         * lib/btowc.c: Include <stdlib.h>.
65475         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
65477 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65478             Bruno Haible  <bruno@clisp.org>
65480         wchar: Port to NetBSD 1.5.
65481         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
65482         * lib/wctype.in.h (WEOF): Likewise.
65484 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
65485             Bruno Haible  <bruno@clisp.org>
65487         Port extended stdio to NetBSD 1.5.
65488         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
65489         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
65490         older.
65492 2010-04-04  Bruno Haible  <bruno@clisp.org>
65494         string: Remove unused substitution.
65495         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65496         HAVE_DECL_STRERROR.
65497         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
65499 2010-04-04  Bruno Haible  <bruno@clisp.org>
65501         strtod: Avoid a possible C++ test error.
65502         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
65503         set REPLACE_STRTOD.
65505 2010-04-04  Bruno Haible  <bruno@clisp.org>
65507         strerror: Update documentation.
65508         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
65510 2010-04-04  Bruno Haible  <bruno@clisp.org>
65512         stdio: Fix some C++ test errors on Solaris 8 with GCC.
65513         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
65514         _GL_CXXALIAS_SYS_CAST.
65516 2010-04-04  Bruno Haible  <bruno@clisp.org>
65518         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
65519         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
65520         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
65521         REPLACE_FREXPL to 1.
65522         * doc/posix-functions/frexpl.texi: Update documentation.
65524 2010-04-04  Bruno Haible  <bruno@clisp.org>
65526         math: Fix some C++ test errors on Solaris 8 and Cygwin.
65527         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
65529 2010-04-04  Bruno Haible  <bruno@clisp.org>
65531         Implement nanosleep for native Windows.
65532         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
65534 2010-04-04  Bruno Haible  <bruno@clisp.org>
65536         math: Fix some C++ test errors on Solaris 8.
65537         * lib/math.in.h (truncf, trunc): Use simpler idiom.
65539 2010-04-04  Bruno Haible  <bruno@clisp.org>
65541         math: Fix some C++ test errors on Cygwin.
65542         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
65543         truncl): Provide declaration if the system does not have it.
65544         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
65545         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
65546         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
65547         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
65548         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
65549         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
65550         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
65551         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
65552         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
65553         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
65554         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
65555         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
65556         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
65557         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
65558         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
65559         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
65560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
65561         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65562         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65563         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
65564         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
65565         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
65567 2010-04-04  Bruno Haible  <bruno@clisp.org>
65569         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
65570         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
65571         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
65572         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65573         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
65574         * m4/isinf.m4 (gl_ISINF): Likewise.
65575         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
65577 2010-04-04  Bruno Haible  <bruno@clisp.org>
65579         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
65580         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
65582 2010-04-04  Bruno Haible  <bruno@clisp.org>
65584         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
65585         * modules/tmpfile (configure.ac): Update.
65587         tmpfile: Fix C++ test error on mingw.
65588         * lib/stdio.in.h (tmpfile): New declaration.
65589         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
65590         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
65591         * modules/tmpfile (Depends-on): Add stdio.
65592         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65593         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
65594         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
65595         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
65596         REPLACE_TMPFILE.
65597         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
65599 2010-04-04  Bruno Haible  <bruno@clisp.org>
65601         ioctl: Fix C++ test error on mingw.
65602         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
65603         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
65604         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
65606 2010-04-03  Bruno Haible  <bruno@clisp.org>
65608         wcwidth: Fix C++ test error on mingw.
65609         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
65610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
65611         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
65613 2010-04-03  Bruno Haible  <bruno@clisp.org>
65615         nanosleep: Fix C++ test error on mingw.
65616         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
65617         * lib/time.in.h (nanosleep): Use modern idiom.
65618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
65619         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
65620         REPLACE_NANOSLEEP to 1.
65621         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
65622         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
65624 2010-04-03  Bruno Haible  <bruno@clisp.org>
65626         strptime: Fix C++ test error on mingw.
65627         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
65628         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
65629         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
65630         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
65631         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
65632         not REPLACE_STRPTIME.
65633         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
65634         REPLACE_STRPTIME.
65636 2010-04-03  Bruno Haible  <bruno@clisp.org>
65638         timegm: Fix C++ test error on mingw.
65639         * lib/time.in.h (timegm): Use modern idiom.
65640         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
65641         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
65642         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
65643         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
65645 2010-04-03  Bruno Haible  <bruno@clisp.org>
65647         timegm: Assume declaration if function exists.
65648         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
65649         if it exists. Don't clobber ac_cv_func_timegm.
65651 2010-04-03  Bruno Haible  <bruno@clisp.org>
65653         time_r: Fix C++ test error on mingw.
65654         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
65655         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
65656         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
65657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
65658         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
65660 2010-04-03  Bruno Haible  <bruno@clisp.org>
65662         time_r: Minor updates.
65663         * modules/time_r (Description): Mention the provided functions.
65664         * lib/time_r.c: Don't include <string.h>.
65665         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
65666         * doc/posix-functions/localtime_r.texi: Likewise.
65668 2010-04-03  Bruno Haible  <bruno@clisp.org>
65670         time: Fix regression introduced on 2010-03-08.
65671         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
65672         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
65674 2010-04-03  Jim Meyering  <meyering@redhat.com>
65676         maint.mk: don't silently disable project-specific syntax-check rules
65677         * top/maint.mk (_prohibit_regexp): Define, to help people realize
65678         that they need to convert their project-specific syntax-check rules
65679         to use the new _sc_search_regexp.
65681 2010-04-03  Bruno Haible  <bruno@clisp.org>
65683         fchdir: Fix regression introduced on 2010-03-08.
65684         * lib/unistd.in.h (fchdir): Fix declaration.
65685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
65686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
65687         REPLACE_FCHDIR.
65688         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
65689         REPLACE_FCHDIR.
65691 2010-04-03  Bruno Haible  <bruno@clisp.org>
65693         getpagesize: Fix C++ test error on mingw.
65694         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
65695         system does not declare the function.
65696         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
65697         declared.
65698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
65699         HAVE_DECL_GETPAGESIZE.
65700         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
65702 2010-04-03  Bruno Haible  <bruno@clisp.org>
65704         stdio: Make C++ tests work on mingw.
65705         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
65706         does not declare the function.
65708 2010-04-03  Bruno Haible  <bruno@clisp.org>
65710         ftello: Fix C++ test error on mingw.
65711         * lib/stdio.in.h (ftello): Use modern idiom.
65712         * lib/ftello.c (ftello): Renamed from rpl_ftello.
65713         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
65714         is missing and that it needs to be replaced.
65715         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
65716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
65717         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
65719 2010-04-03  Bruno Haible  <bruno@clisp.org>
65721         fseeko: Fix C++ test error on mingw.
65722         * lib/stdio.in.h (fseeko): Use modern idiom.
65723         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
65724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
65725         is missing and that it needs to be replaced.
65726         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
65727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
65728         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
65730 2010-04-03  Bruno Haible  <bruno@clisp.org>
65732         mkstemp: Fix C++ test error on mingw.
65733         * lib/stdlib.in.h (mkstemp): Use modern idiom.
65734         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
65735         function is missing and that it needs to be replaced.
65736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
65737         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
65739 2010-04-03  Bruno Haible  <bruno@clisp.org>
65741         stpncpy: Fix C++ test error on mingw.
65742         * lib/string.in.h (stpncpy): Use modern idiom.
65743         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
65744         function is missing and that it needs to be replaced.
65745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65746         REPLACE_STPNCPY.
65747         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
65749 2010-04-03  Bruno Haible  <bruno@clisp.org>
65751         sys_stat: Fix C++ test error on mingw.
65752         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
65753         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
65755 2010-04-03  Bruno Haible  <bruno@clisp.org>
65757         pty: Update doc.
65758         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
65760 2010-04-03  Bruno Haible  <bruno@clisp.org>
65762         unistd: Fix C++ test error on mingw.
65763         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
65765 2010-04-03  Bruno Haible  <bruno@clisp.org>
65767         Update doc regarding mingw.
65768         * doc/glibc-functions/openpty.texi: Update regarding mingw.
65769         * doc/glibc-functions/login_tty.texi: Likewise.
65770         * doc/glibc-functions/forkpty.texi: Likewise.
65772 2010-04-03  Bruno Haible  <bruno@clisp.org>
65774         stdlib: Avoid compilation failure of c-strtold on mingw.
65775         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
65777 2010-04-03  Bruno Haible  <bruno@clisp.org>
65779         locale: Make C++ tests work on Cygwin and mingw.
65780         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
65781         cannot provide the function.
65782         Reported by Simon Josefsson.
65784 2010-04-03  Bruno Haible  <bruno@clisp.org>
65786         localename: Port to MacOS X 10.6.
65787         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
65788         memory layout of the locales in MacOS X 10.6 as well.
65789         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
65791 2010-04-02  Bruno Haible  <bruno@clisp.org>
65793         gnulib-tool: Ensure that long-running tests are executed last.
65794         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
65795         running tests after the one for the other tests.
65797 2010-04-02  Bruno Haible  <bruno@clisp.org>
65799         gnulib-tool: Ensure the tests in the main directory are executed first.
65800         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
65801         start with the current directory.
65803 2010-04-02  Bruno Haible  <bruno@clisp.org>
65805         Tests for module 'havelib', moved here from GNU gettext.
65806         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
65807         modifications.
65808         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
65809         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
65810         with modifications.
65811         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
65812         modifications.
65813         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
65814         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
65815         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
65816         with modifications.
65817         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
65818         with modifications.
65819         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
65820         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
65821         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
65822         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
65823         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
65824         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
65825         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
65826         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
65827         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
65828         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
65829         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
65830         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
65831         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
65832         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
65833         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
65834         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
65835         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
65836         with modifications.
65837         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
65838         with modifications.
65839         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
65840         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
65841         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
65842         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
65843         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
65844         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
65845         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
65846         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
65847         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
65848         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
65849         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
65850         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
65851         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
65852         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
65853         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
65854         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
65855         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
65856         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
65857         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
65858         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
65859         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
65860         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
65861         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
65862         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
65863         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
65864         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
65865         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
65866         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
65867         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
65868         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
65869         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
65870         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
65871         * tests/havelib/rpathx/rpathx.c: New file, from
65872         gettext/autoconf-lib-link.
65873         * tests/havelib/rpathx/Makefile.am: New file, from
65874         gettext/autoconf-lib-link.
65875         * tests/havelib/rpathx/configure.ac: New file, from
65876         gettext/autoconf-lib-link with modifications.
65877         * tests/havelib/rpathy/rpathy.c: New file, from
65878         gettext/autoconf-lib-link.
65879         * tests/havelib/rpathy/Makefile.am: New file, from
65880         gettext/autoconf-lib-link.
65881         * tests/havelib/rpathy/configure.ac: New file, from
65882         gettext/autoconf-lib-link with modifications.
65883         * tests/havelib/rpathz/rpathz.c: New file, from
65884         gettext/autoconf-lib-link.
65885         * tests/havelib/rpathz/Makefile.am: New file, from
65886         gettext/autoconf-lib-link.
65887         * tests/havelib/rpathz/configure.ac: New file, from
65888         gettext/autoconf-lib-link with modifications.
65889         * tests/havelib/rpathlx/usex.c: New file, from
65890         gettext/autoconf-lib-link.
65891         * tests/havelib/rpathlx/Makefile.am: New file, from
65892         gettext/autoconf-lib-link.
65893         * tests/havelib/rpathlx/configure.ac: New file, from
65894         gettext/autoconf-lib-link with modifications.
65895         * tests/havelib/rpathly/usey.c: New file, from
65896         gettext/autoconf-lib-link.
65897         * tests/havelib/rpathly/Makefile.am: New file, from
65898         gettext/autoconf-lib-link.
65899         * tests/havelib/rpathly/configure.ac: New file, from
65900         gettext/autoconf-lib-link with modifications.
65901         * tests/havelib/rpathlz/usez.c: New file, from
65902         gettext/autoconf-lib-link.
65903         * tests/havelib/rpathlz/Makefile.am: New file, from
65904         gettext/autoconf-lib-link.
65905         * tests/havelib/rpathlz/configure.ac: New file, from
65906         gettext/autoconf-lib-link with modifications.
65907         * tests/havelib/rpathlyx/usey.c: New file, from
65908         gettext/autoconf-lib-link.
65909         * tests/havelib/rpathlyx/Makefile.am: New file, from
65910         gettext/autoconf-lib-link.
65911         * tests/havelib/rpathlyx/configure.ac: New file, from
65912         gettext/autoconf-lib-link with modifications.
65913         * tests/havelib/rpathlzyx/usez.c: New file, from
65914         gettext/autoconf-lib-link.
65915         * tests/havelib/rpathlzyx/Makefile.am: New file, from
65916         gettext/autoconf-lib-link.
65917         * tests/havelib/rpathlzyx/configure.ac: New file, from
65918         gettext/autoconf-lib-link with modifications.
65919         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
65920         with modifications.
65922 2010-04-02  Bruno Haible  <bruno@clisp.org>
65924         gnulib-tool: Create distributed built sources also for the tests.
65925         * gnulib-tool (func_create_testdir): Also generate distributed built
65926         sources in the tests directory.
65928 2010-04-02  Bruno Haible  <bruno@clisp.org>
65930         gnulib-tool: Obey user's environment variables.
65931         * gnulib-tool (func_create_testdir): When creating built sources,
65932         respect the environment variables for autoconf, automake, etc. given by
65933         the user.
65935 2010-04-02  Bruno Haible  <bruno@clisp.org>
65937         gnulib-tool: Provide the value of --m4-base to modules.
65938         * gnulib-tool (func_import, func_create_testdir): Emit a definition
65939         of gl_m4_base.
65941 2010-04-02  Eric Blake  <eblake@redhat.com>
65943         maint.mk: fix some fallout
65944         * NEWS: Document the incompatible change, and its effect on cfg.mk.
65945         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
65947 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
65949         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
65950         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
65951         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
65952         (sc_cast_of_x_alloc_return_value): Likewise.
65953         (sc_cast_of_alloca_return_value): Likewise.
65954         (sc_space_tab): Likewise.
65955         (sc_prohibit_atoi_atof): Likewise.
65956         (sc_prohibit_magic_number_exit): Likewise.
65957         (sc_error_exit_success): Likewise.
65958         (sc_file_system): Likewise.
65959         (sc_prohibit_have_config_h): Likewise.
65960         (sc_require_config_h): Likewise.
65961         (sc_prohibit_HAVE_MBRTOWC): Likewise.
65962         (sc_obsolete_symbols): Likewise.
65963         (sc_changelog): Likewise.
65964         (sc_program_name): Likewise.
65965         (sc_the_the): Likewise.
65966         (sc_trailing_blank): Likewise.
65967         (sc_two_space_separator_in_usage): Likewise.
65968         (sc_useless_cpp_parens): Likewise.
65969         (sc_GPL_version): Likewise.
65970         (sc_GFDL_version): Likewise.
65971         (sc_texinfo_acronym): Likewise.
65972         (sc_prohibit_cvs_keyword): Likewise.
65973         (sc_prohibit_stat_st_blocks): Likewise.
65974         (sc_prohibit_S_IS_definition): Likewise.
65975         (sc_redundant_const): Likewise.
65976         (sc_makefile_TAB_only_indentation): Likewise.
65977         (sc_m4_quote_check): Likewise.
65978         (sc_makefile_path_separator_check): Likewise.
65979         (sc_copyright_check): Likewise.
65980         (sc_Wundef_boolean): Likewise.
65981         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65983         maint.mk: match 0 or more whitespace-before-function-call '('
65984         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
65985         that have zero or two-and-more spaces between the function name
65986         and the open parenthesis.
65987         (sc_error_message_warn_fatal): Likewise.
65988         (sc_error_message_uppercase): Likewise.
65989         (sc_error_message_period): Likewise.
65991 2010-03-31  Eric Blake  <eblake@redhat.com>
65993         maint.mk: check for [ as well as test
65994         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
65995         Based on a libvirt report by Matthias Bolte.
65997         gnumakefile: don't squelch _version output
65998         * top/GNUmakefile (_version): Create one-shot dependency rather
65999         than using $(shell) when version must be regenerated.
66000         (_autoreconf): Run verbosely, by default.
66002         sys_time: avoid compiler warnings
66003         * lib/sys_time.in.h (includes): Ensure gcc pragma is
66004         unconditional, fixing regression from 2010-03-29.
66005         Reported by Simon Josefsson.
66007 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66009         maint.mk: s/_header_without_use/_sc_header_without_use/
66010         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
66011         (sc_prohibit_assert_without_use): Use the new name.
66012         (sc_prohibit_close_stream_without_use): Likewise.
66013         (sc_prohibit_getopt_without_use): Likewise.
66014         (sc_prohibit_quotearg_without_use): Likewise.
66015         (sc_prohibit_quote_without_use): Likewise.
66016         (sc_prohibit_long_options_without_use): Likewise.
66017         (sc_prohibit_inttostr_without_use): Likewise.
66018         (sc_prohibit_ignore_value_without_use): Likewise.
66019         (sc_prohibit_error_without_use): Likewise.
66020         (sc_prohibit_xalloc_without_use): Likewise.
66021         (sc_prohibit_hash_without_use): Likewise.
66022         (sc_prohibit_hash_pjw_without_use): Likewise.
66023         (sc_prohibit_safe_read_without_use): Likewise.
66024         (sc_prohibit_argmatch_without_use): Likewise.
66025         (sc_prohibit_canonicalize_without_use): Likewise.
66026         (sc_prohibit_root_dev_ino_without_use): Likewise.
66027         (sc_prohibit_openat_without_use): Likewise.
66028         (sc_prohibit_c_ctype_without_use): Likewise.
66029         (sc_prohibit_signal_without_use): Likewise.
66030         (sc_prohibit_intprops_without_use): Likewise.
66032 2010-03-30  Eric Blake  <eblake@redhat.com>
66034         maint: improve module indicators
66035         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
66036         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
66037         columns, and avoid extra macro expansion.
66039         fdopendir: work around FreeBSD bug
66040         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
66041         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
66042         * modules/dirent (Makefile.am): Substitute it.
66043         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
66044         declaration.
66045         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
66046         fix.
66047         Reported by Christian Weisgerber <naddy@mips.inka.de>.
66049 2010-03-29  Bruno Haible  <bruno@clisp.org>
66051         Emit #pragma system_header after the inclusion guard, not before.
66052         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
66053         guard that spans the entire file, not before. This enables an
66054         optimization in GCC's preprocessor.
66055         * lib/ctype.in.h: Likewise.
66056         * lib/dirent.in.h: Likewise.
66057         * lib/errno.in.h: Likewise.
66058         * lib/float.in.h: Likewise.
66059         * lib/getopt.in.h: Likewise.
66060         * lib/iconv.in.h: Likewise.
66061         * lib/langinfo.in.h: Likewise.
66062         * lib/locale.in.h: Likewise.
66063         * lib/math.in.h: Likewise.
66064         * lib/netdb.in.h: Likewise.
66065         * lib/netinet_in.in.h: Likewise.
66066         * lib/pty.in.h: Likewise.
66067         * lib/sched.in.h: Likewise.
66068         * lib/se-selinux.in.h: Likewise.
66069         * lib/search.in.h: Likewise.
66070         * lib/spawn.in.h: Likewise.
66071         * lib/stdarg.in.h: Likewise.
66072         * lib/stdint.in.h: Likewise.
66073         * lib/string.in.h: Likewise.
66074         * lib/strings.in.h: Likewise.
66075         * lib/sys_file.in.h: Likewise.
66076         * lib/sys_ioctl.in.h: Likewise.
66077         * lib/sys_time.in.h: Likewise.
66078         * lib/sys_times.in.h: Likewise.
66079         * lib/sys_utsname.in.h: Likewise.
66080         * lib/sys_wait.in.h: Likewise.
66081         * lib/sysexits.in.h: Likewise.
66082         * lib/wctype.in.h: Likewise.
66084 2010-03-28  James Youngman  <jay@gnu.org>
66086         save-cwd: don't leak a file descriptor when the caller execs.
66087         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
66088         saved file descriptor.
66089         * modules/save-cwd (Depends-on): Depend on cloexec.
66091 2010-03-29  Bruno Haible  <bruno@clisp.org>
66093         Remove vestiges of fts-lgpl module.
66094         * lib/fts_.h: Assume GNULIB_FTS is 1.
66095         * lib/fts.c: Likewise.
66096         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66098 2010-03-28  Bruno Haible  <bruno@clisp.org>
66100         Fix definition of tests witness macro.
66101         * gnulib-tool (func_import): Fix definition of witness macro.
66103 2010-03-28  Bruno Haible  <bruno@clisp.org>
66105         Fix ioctl's protoype on glibc systems.
66106         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
66107         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
66108         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
66109         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
66110         signature. If not, arrange to replace the ioctl function.
66111         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66112         REPLACE_IOCTL.
66113         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
66114         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
66115         Reported by Ludovic Courtès <ludo@gnu.org>.
66117 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
66119         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
66120         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
66121         made it so grep -r --include=GLOB* ... did not work.
66123 2010-03-26  Jim Meyering  <meyering@redhat.com>
66124             Eric Blake  <eblake@redhat.com>
66126         maint.mk: prohibit use of test's -o and -a operators
66127         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
66129 2010-03-28  Bruno Haible  <bruno@clisp.org>
66131         Remove unused GNULIB_XYZ macro definitions.
66132         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
66133         invocation.
66135 2010-03-28  Bruno Haible  <bruno@clisp.org>
66137         Mark privileged tests modules.
66138         * modules/idpriv-drop-tests (Status): New section.
66139         * modules/idpriv-droptemp-tests (Status): New section.
66141 2010-03-28  Bruno Haible  <bruno@clisp.org>
66143         Split C++ tests into separate tests modules.
66144         * modules/dirent-c++-tests: New file, extracted from
66145         modules/dirent-tests.
66146         * modules/dirent-tests: Depend on it.
66147         * modules/fcntl-h-c++-tests: New file, extracted from
66148         modules/fcntl-h-tests.
66149         * modules/fcntl-h-tests: Depend on it.
66150         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
66151         * modules/glob-tests: Depend on it.
66152         * modules/iconv-h-c++-tests: New file, extracted from
66153         modules/iconv-h-tests.
66154         * modules/iconv-h-tests: Depend on it.
66155         * modules/langinfo-c++-tests: New file, extracted from
66156         modules/langinfo-tests.
66157         * modules/langinfo-tests: Depend on it.
66158         * modules/locale-c++-tests: New file, extracted from
66159         modules/locale-tests.
66160         * modules/locale-tests: Depend on it.
66161         * modules/math-c++-tests: New file, extracted from modules/math-tests.
66162         * modules/math-tests: Depend on it.
66163         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
66164         * modules/pty-tests: Depend on it.
66165         * modules/search-c++-tests: New file, extracted from
66166         modules/search-tests.
66167         * modules/search-tests: Depend on it.
66168         * modules/signal-c++-tests: New file, extracted from
66169         modules/signal-tests.
66170         * modules/signal-tests: Depend on it.
66171         * modules/spawn-c++-tests: New file, extracted from
66172         modules/spawn-tests.
66173         * modules/spawn-tests: Depend on it.
66174         * modules/stdio-c++-tests: New file, extracted from
66175         modules/stdio-tests.
66176         * modules/stdio-tests: Depend on it.
66177         * modules/stdlib-c++-tests: New file, extracted from
66178         modules/stdlib-tests.
66179         * modules/stdlib-tests: Depend on it.
66180         * modules/string-c++-tests: New file, extracted from
66181         modules/string-tests.
66182         * modules/string-tests: Depend on it.
66183         * modules/sys_ioctl-c++-tests: New file, extracted from
66184         modules/sys_ioctl-tests.
66185         * modules/sys_ioctl-tests: Depend on it.
66186         * modules/sys_select-c++-tests: New file, extracted from
66187         modules/sys_select-tests.
66188         * modules/sys_select-tests: Depend on it.
66189         * modules/sys_socket-c++-tests: New file, extracted from
66190         modules/sys_socket-tests.
66191         * modules/sys_socket-tests: Depend on it.
66192         * modules/sys_stat-c++-tests: New file, extracted from
66193         modules/sys_stat-tests.
66194         * modules/sys_stat-tests: Depend on it.
66195         * modules/sys_time-c++-tests: New file, extracted from
66196         modules/sys_time-tests.
66197         * modules/sys_time-tests: Depend on it.
66198         * modules/time-c++-tests: New file, extracted from modules/time-tests.
66199         * modules/time-tests: Depend on it.
66200         * modules/unistd-c++-tests: New file, extracted from
66201         modules/unistd-tests.
66202         * modules/unistd-tests: Depend on it.
66203         * modules/wchar-c++-tests: New file, extracted from
66204         modules/wchar-tests.
66205         * modules/wchar-tests: Depend on it.
66206         * modules/wctype-c++-tests: New file, extracted from
66207         modules/wctype-tests.
66208         * modules/wctype-tests: Depend on it.
66209         Reported by Simon Josefsson.
66211 2010-03-28  Bruno Haible  <bruno@clisp.org>
66213         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
66214         * gnulib-tool (func_exists_module): New function, extracted from
66215         func_verify_module.
66216         (func_verify_module): Use it.
66217         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
66218         'foo' only if 'foo' exists.
66219         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
66220         module.
66222 2010-03-28  Bruno Haible  <bruno@clisp.org>
66224         gnulib-tool: Add support for special categories of tests.
66225         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
66226         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
66227         (func_usage): Document them.
66228         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
66229         inc_unportable_tests, inc_all_tests): New variables.
66230         (func_acceptable): Consider these variables.
66231         (func_modules_transitive_closure): Make it work when the 'Status' field
66232         consists of multiple words.
66233         (func_import): Store and restore the values of inc_cxx_tests,
66234         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
66235         inc_all_tests in gnulib-comp.m4.
66236         (func_create_testdir): Set inc_all_tests to true.
66237         * doc/gnulib.texi (Extra tests modules): New section.
66238         Suggested by Jim Meyering.
66240 2010-03-28  Bruno Haible  <bruno@clisp.org>
66242         ansi-c++-opt: Allow turning off the C++ build by default.
66243         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
66244         gl_CXX_CHOICE_DEFAULT_NO is defined.
66245         Requested by Eric Blake.
66247 2010-03-28  Bruno Haible  <bruno@clisp.org>
66249         unistd: Avoid #define replacements in C++ mode.
66250         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
66251         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
66252         setsockopt, shutdown, select): In C++, attach a warning to the function
66253         if possible, rather than #defining the symbol to a dysfunctional alias.
66254         Reported by John W. Eaton <jwe@gnu.org>.
66256 2010-03-28  Bruno Haible  <bruno@clisp.org>
66258         Fix link errors on mingw.
66259         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
66260         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
66261         $(LIBSOCKET).
66262         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
66263         $(LIBSOCKET).
66265 2010-03-28  Bruno Haible  <bruno@clisp.org>
66266             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66268         lib-ignore: Determine different options for different compilers.
66269         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
66270         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
66271         Add comments.
66272         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
66273         * NEWS: Mention the change.
66275 2010-03-27  Bruno Haible  <bruno@clisp.org>
66277         Remove unused GNULIB_XYZ macro definitions.
66278         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
66279         * modules/fseek (configure.ac): Likewise.
66280         * modules/ioctl (configure.ac): Likewise.
66281         * modules/open (configure.ac): Likewise.
66282         * modules/stdlib-safer (configure.ac): Likewise.
66284 2010-03-27  Bruno Haible  <bruno@clisp.org>
66286         Add a remark about certain modules.
66287         * modules/malloc (Comment): New section.
66288         * modules/realloc (Comment): Likewise.
66289         * modules/sigpipe (Comment): Likewise.
66291 2010-03-27  Bruno Haible  <bruno@clisp.org>
66293         Resolve conflict between the two kinds of module indicators.
66294         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
66295         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
66296         * modules/canonicalize (configure.ac): Invoke
66297         gl_MODULE_INDICATOR_FOR_TESTS.
66298         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
66299         GNULIB_XYZ.
66300         * tests/test-dirent-c++.cc: Likewise.
66301         * tests/test-dirent-safer.c: Likewise.
66302         * tests/test-dup2.c: Likewise.
66303         * tests/test-fchdir.c: Likewise.
66304         * tests/test-fcntl-h-c++.cc: Likewise.
66305         * tests/test-getopt.c: Likewise.
66306         * tests/test-getopt.h: Likewise.
66307         * tests/test-langinfo-c++.cc: Likewise.
66308         * tests/test-locale-c++.cc: Likewise.
66309         * tests/test-math-c++.cc: Likewise.
66310         * tests/test-pty-c++.cc: Likewise.
66311         * tests/test-search-c++.cc: Likewise.
66312         * tests/test-signal-c++.cc: Likewise.
66313         * tests/test-spawn-c++.cc: Likewise.
66314         * tests/test-stdio-c++.cc: Likewise.
66315         * tests/test-stdlib-c++.cc: Likewise.
66316         * tests/test-string-c++.cc: Likewise.
66317         * tests/test-sys_ioctl-c++.cc: Likewise.
66318         * tests/test-sys_select-c++.cc: Likewise.
66319         * tests/test-sys_socket-c++.cc: Likewise.
66320         * tests/test-sys_stat-c++.cc: Likewise.
66321         * tests/test-sys_time-c++.cc: Likewise.
66322         * tests/test-time-c++.cc: Likewise.
66323         * tests/test-unistd-c++.cc: Likewise.
66324         * tests/test-wchar-c++.cc: Likewise.
66325         * tests/uninorm/test-u8-nfc.c: Likewise.
66326         * tests/uninorm/test-u8-nfd.c: Likewise.
66327         * tests/uninorm/test-u8-nfkc.c: Likewise.
66328         * tests/uninorm/test-u8-nfkd.c: Likewise.
66329         * tests/uninorm/test-u16-nfc.c: Likewise.
66330         * tests/uninorm/test-u16-nfd.c: Likewise.
66331         * tests/uninorm/test-u16-nfkc.c: Likewise.
66332         * tests/uninorm/test-u16-nfkd.c: Likewise.
66333         * tests/uninorm/test-u32-nfc.c: Likewise.
66334         * tests/uninorm/test-u32-nfc-big.c: Likewise.
66335         * tests/uninorm/test-u32-nfd.c: Likewise.
66336         * tests/uninorm/test-u32-nfd-big.c: Likewise.
66337         * tests/uninorm/test-u32-nfkc.c: Likewise.
66338         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
66339         * tests/uninorm/test-u32-nfkd.c: Likewise.
66340         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
66341         * tests/uninorm/test-u32-normalize-big.c: Likewise.
66343 2010-03-27  Bruno Haible  <bruno@clisp.org>
66345         Distinguish two kinds of module indicators.
66346         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
66347         gl_MODULE_INDICATOR.
66348         (gl_MODULE_INDICATOR): New macro.
66349         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
66350         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
66351         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66352         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66353         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66354         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66355         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66356         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66357         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66358         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66359         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66360         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66361         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66362         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66363         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66364         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66365         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66366         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66367         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66368         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66369         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66370         * modules/cloexec (configure.ac): Likewise.
66371         * modules/getopt-gnu (configure.ac): Likewise.
66372         * modules/uninorm/u8-normalize (configure.ac): Likewise.
66373         * modules/uninorm/u16-normalize (configure.ac): Likewise.
66374         * modules/uninorm/u32-normalize (configure.ac): Likewise.
66375         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
66377 2010-03-27  Bruno Haible  <bruno@clisp.org>
66379         New module description field 'Comment'.
66380         * gnulib-tool: New option --extract-comment.
66381         (func_usage): Document it.
66382         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
66383         (func_get_comment): New function.
66384         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
66386 2010-03-27  Bruno Haible  <bruno@clisp.org>
66388         Addendum to 2010-02-07 commit.
66389         * gnulib-tool (func_usage): Document --extract-applicability option.
66391 2010-03-27  Bruno Haible  <bruno@clisp.org>
66393         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
66394         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
66395         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
66396         rather than link errors.
66398 2010-03-27  Bruno Haible  <bruno@clisp.org>
66400         Avoid side effects from tests-related modules on the compilation of lib.
66401         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
66402         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
66403         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
66404         parameter. Emit into AM_CPPFLAGS a definition of the designated C
66405         macro.
66406         (func_import): Define a witness macro. Assign it a value that depends
66407         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
66408         tests-related modules.
66409         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
66410         Reported by Jim Meyering.
66412 2010-03-27  Bruno Haible  <bruno@clisp.org>
66414         Factorize common .m4 code.
66415         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
66416         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
66417         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
66418         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
66419         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
66420         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
66421         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
66422         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
66423         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
66424         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
66425         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
66426         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
66427         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
66428         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
66429         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
66430         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
66431         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
66432         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
66433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
66434         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
66435         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
66436         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
66437         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
66438         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
66439         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
66440         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
66441         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
66442         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
66443         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
66444         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
66445         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
66446         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
66448 2010-03-27  Bruno Haible  <bruno@clisp.org>
66450         Fix a compilation error on Cygwin with g++ >= 4.3.
66451         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
66452         if it is undefined or if we alias it to chmod.
66453         (lstat): Don't warn about the use of this function if it is undefined
66454         or if we alias it to stat.
66455         Reported by Simon Josefsson.
66457 2010-03-27  Bruno Haible  <bruno@clisp.org>
66459         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
66460         * modules/getlogin (configure.ac): Update.
66462         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
66463         * modules/getlogin_r (configure.ac): Update.
66465         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
66466         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
66467         * modules/inet_ntop (configure.ac): Update.
66469         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
66470         * modules/inet_pton (configure.ac): Update.
66472         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
66473         * modules/mbslen (configure.ac): Update.
66475         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
66476         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
66477         * modules/forkpty (configure.ac): Update.
66478         * modules/openpty (configure.ac): Update.
66480 2010-03-26  Simon Josefsson  <simon@josefsson.org>
66482         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
66483         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
66485 2010-03-25  Eric Blake  <eblake@redhat.com>
66487         maint: use pragma consistently across replacement headers
66488         * lib/ctype.in.h (system_header): Hoist for consistent placement.
66489         * lib/dirent.in.h (system_header): Likewise.
66490         * lib/errno.in.h (system_header): Likewise.
66491         * lib/float.in.h (system_header): Likewise.
66492         * lib/getopt.in.h (system_header): Likewise.
66493         * lib/iconv.in.h (system_header): Likewise.
66494         * lib/inttypes.in.h (system_header): Likewise.
66495         * lib/langinfo.in.h (system_header): Likewise.
66496         * lib/locale.in.h (system_header): Likewise.
66497         * lib/math.in.h (system_header): Likewise.
66498         * lib/netdb.in.h (system_header): Likewise.
66499         * lib/netinet_in.in.h (system_header): Likewise.
66500         * lib/pty.in.h (system_header): Likewise.
66501         * lib/sched.in.h (system_header): Likewise.
66502         * lib/se-selinux.in.h (system_header): Likewise.
66503         * lib/search.in.h (system_header): Likewise.
66504         * lib/spawn.in.h (system_header): Likewise.
66505         * lib/stdarg.in.h (system_header): Likewise.
66506         * lib/stdint.in.h (system_header): Likewise.
66507         * lib/string.in.h (system_header): Likewise.
66508         * lib/strings.in.h (system_header): Likewise.
66509         * lib/sys_file.in.h (system_header): Likewise.
66510         * lib/sys_ioctl.in.h (system_header): Likewise.
66511         * lib/sys_socket.in.h (system_header): Likewise.
66512         * lib/sys_times.in.h (system_header): Likewise.
66513         * lib/sys_utsname.in.h (system_header): Likewise.
66514         * lib/sys_wait.in.h (system_header): Likewise.
66515         * lib/sysexits.in.h (system_header): Likewise.
66516         * lib/unistd.in.h (system_header): Likewise.
66517         * lib/wctype.in.h (system_header): Likewise.
66519         arpa/inet: fix mingw compilation warning
66520         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
66521         Reported by Matthew Bolte.
66523 2010-03-25  Bruno Haible  <bruno@clisp.org>
66525         Avoid collision between gnulib wrapper and libintl wrapper.
66526         * lib/printf.c (printf): Don't define if a printf wrapper is already
66527         defined in intl/printf.c.
66528         Reported by Michel Boaventura <michel@michelboaventura.com>.
66530 2010-03-25  Bruno Haible  <bruno@clisp.org>
66532         Use ANSI C.
66533         * lib/readutmp.h (getutent): Provide ANSI C prototype.
66535 2010-03-25  Bruno Haible  <bruno@clisp.org>
66537         Minor formatting changes.
66538         * lib/acosl.c: Insert space before function argument list.
66539         * lib/argz.c: Likewise.
66540         * lib/asinl.c: Likewise.
66541         * lib/expl.c: Likewise.
66542         * lib/gen-uni-tables.c: Likewise.
66543         * lib/gettext.h: Likewise.
66544         * lib/glthread/lock.h: Likewise.
66545         * lib/tanl.c: Likewise.
66546         * lib/uniname/uniname.c: Likewise.
66547         * tests/test-idpriv-drop.c: Likewise.
66548         * tests/test-idpriv-droptemp.c: Likewise.
66549         * tests/test-lock.c: Likewise.
66550         * tests/test-tls.c: Likewise.
66551         * lib/argp-help.c: Insert space before function-like macro argument
66552         list.
66553         * lib/memcmp.c: Likewise.
66554         * tests/test-base64.c: Likewise.
66555         * lib/localename.c: Insert space before sizeof's argument list.
66556         * lib/safe-alloc.h: Likewise.
66557         * lib/file-set.h: Insert space before macro argument list.
66558         * tests/test-argp.c: Likewise.
66559         * lib/argp-namefrob.h: Insert space before function parameter list.
66560         * lib/getaddrinfo.c: Likewise.
66561         * lib/netdb.in.h: Likewise.
66562         * lib/parse-duration.h: Likewise.
66563         * lib/parse-duration.c: Likewise.
66564         * lib/poll.c: Likewise.
66565         * lib/select.c: Likewise.
66566         * lib/trim.h: Likewise.
66567         * tests/test-usleep.c: Likewise.
66568         * lib/ldexpl.c: Insert space before function parameter list and before
66569         function argument list.
66570         * lib/logl.c: Likewise.
66571         * lib/sqrtl.c: Likewise.
66572         * lib/trim.c: Likewise.
66573         * lib/cosl.c: Use GNU style indentation. Insert space before function
66574         argument list.
66575         * lib/sinl.c: Likewise.
66576         * lib/tsearch.c: Insert space after 'for'.
66577         Reported by Jim Meyering.
66579 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
66581         * maint.mk (sc_Wundef_boolean): Check for the presence of the
66582         config header before grepping, as it's not present before
66583         autoreconf/configure are run.  Reported by Simon Josefsson.
66585 2010-03-23  Bruno Haible  <bruno@clisp.org>
66587         pt_chown: Make it work with automake < 1.11.
66588         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
66589         Reported by Simon Josefsson.
66591 2010-03-23  Bruno Haible  <bruno@clisp.org>
66593         pt_chown: Don't depend on GPLed modules.
66594         * lib/pt_chown.c: Don't include idpriv.h.
66595         (main): Don't drop privileges.
66596         * modules/pt_chown (Depends-on): Remove idpriv-drop.
66597         Reported by Simon Josefsson.
66599 2010-03-24  Simon Josefsson  <simon@josefsson.org>
66601         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
66602         suggestions from karl@freefriends.org (Karl Berry).
66604 2010-03-22  Eric Blake  <eblake@redhat.com>
66606         gethostname: further tweaks
66607         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
66608         are overriding gethostname.
66609         Suggested by Bruno Haible.
66611 2010-03-21  Bruno Haible  <bruno@clisp.org>
66613         Fix comments.
66614         * lib/forkpty.c (rpl_forkpty): Fix comment.
66615         * lib/openpty.c (rpl_openpty): Likewise.
66616         Reported by Eric Blake.
66618 2010-03-22  Eric Blake  <eblake@redhat.com>
66620         gethostname: fix build on mingw
66621         * lib/unistd.in.h (includes): Work around fact that mingw
66622         <winsock2.h> re-includes <unistd.h>, by avoiding any
66623         redeclarations if we are being included by <winsock2.h>.
66624         Reported by Matthias Bolte.
66626 2010-03-21  Bruno Haible  <bruno@clisp.org>
66628         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66629         * lib/forkpty.c (forkpty): New replacement function, from glibc with
66630         modifications.
66631         * lib/pty.in.h (forkpty): Update declaration. Add comments.
66632         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
66633         provide the replacement.
66634         * modules/forkpty (Depends-on): Add openpty, login_tty.
66635         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
66636         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
66637         * doc/glibc-functions/forkpty.texi: More supported platforms.
66638         * config/srclist.txt: Add forkpty.c (commented).
66640 2010-03-21  Bruno Haible  <bruno@clisp.org>
66642         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
66643         (Makefile.am): Verify that PTY_LIB is defined.
66645         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
66647 2010-03-21  Bruno Haible  <bruno@clisp.org>
66649         Tests for module 'login_tty'.
66650         * modules/login_tty-tests: New file.
66651         * tests/test-login_tty.c: New file.
66653         New module 'login_tty'.
66654         * lib/login_tty.c: New file.
66655         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
66656         * modules/login_tty: New file.
66657         * doc/glibc-functions/login_tty.texi: Mention the new module.
66659 2010-03-21  Bruno Haible  <bruno@clisp.org>
66661         login_tty: Documentation.
66662         * doc/glibc-functions/login_tty.texi: New file.
66663         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
66665 2010-03-21  Bruno Haible  <bruno@clisp.org>
66667         pty: Consistent macro naming.
66668         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
66669         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
66670         * modules/pty (configure.ac): Update.
66672 2010-03-21  Bruno Haible  <bruno@clisp.org>
66674         Tests for openpty: Make stricter.
66675         * tests/test-openpty.c (main): Add test of canonical processing and
66676         erase.
66677         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
66679         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
66680         * lib/openpty.c (openpty): New replacement function.
66681         * lib/pty.in.h: Include <termios.h>.
66682         (openpty): Update declaration. Add comments.
66683         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
66684         is not declared, arrange to provide the replacement. Check for _getpty
66685         and posix_openpt.
66686         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
66687         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
66688         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
66689         * modules/pty-tests (test_pty_c___LDADD): New variable.
66690         * doc/glibc-functions/openpty.texi: More supported platforms.
66692 2010-03-21  Bruno Haible  <bruno@clisp.org>
66694         setenv: Tweaks.
66695         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
66696         the test program.
66697         * doc/posix-functions/setenv.texi: Update platforms list.
66699 2010-03-21  Bruno Haible  <bruno@clisp.org>
66701         New module 'unlockpt'.
66702         * lib/unlockpt.c: New file, from glibc with modifications.
66703         * m4/unlockpt.m4: New file.
66704         * modules/unlockpt: New file.
66705         * lib/stdlib.in.h (unlockpt): New declaration.
66706         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
66707         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
66708         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
66709         HAVE_UNLOCKPT.
66710         * doc/posix-functions/unlockpt.texi: Mention the new module.
66711         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
66712         * config/srclist.txt: Add unlockpt.c (commented).
66714 2010-03-21  Jim Meyering  <meyering@redhat.com>
66716         maint.mk: prohibit inclusion of "intprops.h" without use
66717         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
66719 2010-03-21  Bruno Haible  <bruno@clisp.org>
66721         New module 'grantpt'.
66722         * lib/grantpt.c: New file, from glibc with modifications.
66723         * m4/grantpt.m4: New file.
66724         * modules/grantpt: New file.
66725         * lib/stdlib.in.h (grantpt): New declaration.
66726         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
66727         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
66728         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
66729         HAVE_GRANTPT.
66730         * doc/posix-functions/grantpt.texi: Mention the new module.
66731         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
66732         * config/srclist.txt: Add grantpt.c (commented).
66734 2010-03-21  Bruno Haible  <bruno@clisp.org>
66736         New module 'pt_chown'.
66737         * lib/pt_chown.c: New file, from glibc with modifications.
66738         * lib/pty-private.h: New file, from glibc with modifications.
66739         * modules/pt_chown: New file.
66740         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
66742 2010-03-21  Bruno Haible  <bruno@clisp.org>
66744         Tests for module 'ptsname'.
66745         * modules/ptsname-tests: New file.
66746         * tests/test-ptsname.c: New file.
66748         New module 'ptsname'.
66749         * lib/ptsname.c: New file, from glibc with modifications.
66750         * m4/ptsname.m4: New file.
66751         * modules/ptsname: New file.
66752         * lib/stdlib.in.h (ptsname): New declaration.
66753         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
66754         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
66755         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
66756         HAVE_PTSNAME.
66757         * doc/posix-functions/ptsname.texi: Mention the new module.
66758         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
66759         * config/srclist.txt: Add ptsname.c (commented).
66761 2010-03-21  Bruno Haible  <bruno@clisp.org>
66763         Tests for module 'ttyname_r'.
66764         * modules/ttyname_r-tests: New file.
66765         * tests/test-ttyname_r.c: New file.
66767         New module 'ttyname_r'.
66768         * lib/ttyname_r.c: New file.
66769         * m4/ttyname_r.m4: New file.
66770         * modules/ttyname_r: New file.
66771         * lib/unistd.in.h (ttyname_r): New declaration.
66772         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
66773         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
66774         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
66775         HAVE_TTYNAME_R.
66776         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
66777         * doc/posix-functions/ttyname_r.texi: Mention the new module.
66779 2010-03-20  Bruno Haible  <bruno@clisp.org>
66781         signal: Undefine macro definitions in C++ mode.
66782         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
66783         sigfillset): Undefine macro definitions from the system header in C++
66784         mode.
66785         Reported by John W. Eaton <jwe@gnu.org>.
66787 2010-03-20  Bruno Haible  <bruno@clisp.org>
66789         Ensure no #include statements inside extern "C" { ... }.
66790         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
66791         contain #include statements.
66792         * lib/time.in.h: Likewise.
66794 2010-03-20  Bruno Haible  <bruno@clisp.org>
66796         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
66797         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
66798         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
66799         Reported by John W. Eaton <jwe@gnu.org>.
66801 2010-03-20  Bruno Haible  <bruno@clisp.org>
66803         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
66804         Reported by Jim Meyering.
66806 2010-03-20  Bruno Haible  <bruno@clisp.org>
66808         pipe: Set errno upon failure.
66809         * lib/pipe.h: Specify that when -1 is returned, errno is set.
66810         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
66811         errno value in error message.
66813 2010-03-20  Bruno Haible  <bruno@clisp.org>
66814             Jim Meyering  <meyering@redhat.com>
66816         lchown: Avoid "unused variable" warning.
66817         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
66819 2010-03-20  Bruno Haible  <bruno@clisp.org>
66821         Work around unlink() bug on MacOS X 10.5.6.
66822         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
66823         attempting to unlink a parent directory.
66824         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
66825         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
66826         activate for the replacement function.
66827         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
66829 2010-03-20  Bruno Haible  <bruno@clisp.org>
66831         Fix link errors on Solaris 8.
66832         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
66833         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
66835 2010-03-19  Jim Meyering  <meyering@redhat.com>
66837         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
66838         The _LIBC implementation of build_range_exp correctly honors the
66839         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
66840         However, the non-_LIBC implementation would ignore that syntax-bit
66841         flag and return REG_ERANGE unconditionally.
66842         This change makes it honor that flag.
66843         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
66844         Make two pointer parameters "const".
66845         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
66846         (parse_bracket_exp): Update caller.
66848         regex.m4: correct the reversed range endpoint ([b-a]) test
66849         * m4/regex.m4: When requiring that [b-a] evoke failure,
66850         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
66851         test pass once again for x86-based systems.
66853 2010-03-19  Bruno Haible  <bruno@clisp.org>
66855         scandir: Fix link error on Solaris 8.
66856         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
66857         macros.
66859 2010-03-19  Bruno Haible  <bruno@clisp.org>
66861         getusershell: Fix documentation.
66862         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
66863         module.
66864         * doc/glibc-functions/setusershell.texi: Likewise.
66866         getusershell: Provide declaration, missing on Solaris 9.
66867         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
66868         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
66869         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
66870         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
66871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66872         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
66873         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
66874         HAVE_GETUSERSHELL.
66875         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
66877 2010-03-19  Bruno Haible  <bruno@clisp.org>
66879         wctype: Provide iswblank function.
66880         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
66881         exists and is fine.
66882         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
66883         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
66884         * tests/test-wctype.c (main): Re-enable the iswblank tests.
66885         * doc/posix-functions/iswblank.texi: Update.
66887 2010-03-19  Bruno Haible  <bruno@clisp.org>
66889         Tests of module 'pty' in C++ mode.
66890         * modules/pty-tests: New file.
66891         * tests/test-pty-c++.cc: New file.
66892         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
66894 2010-03-19  Eric Blake  <eblake@redhat.com>
66896         logb: fix documentation
66897         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
66898         1.5 declaration bug.
66900         forkpty, openpty: prefer glibc's const-safe prototype
66901         * lib/forkpty.c (rpl_forkpty): New file.
66902         * lib/openpty.c (rpl_openpty): Likewise.
66903         * modules/forkpty (Files): Distribute it.
66904         * modules/openpty (Files): Likewise.
66905         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
66906         check...
66907         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
66908         replacement for non-const BSD signature.
66909         * modules/pty (Makefile.am): Substitute witnesses.
66910         * lib/pty.in.h (forkpty, openpty): Declare replacements.
66911         * tests/test-forkpty.c: Update signature check.
66912         * tests/test-openpty.c: Likewise.
66913         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
66914         * doc/glibc-functions/openpty.texi (openpty): Likewise.
66916         forkpty, openpty: split functions into new modules
66917         * modules/pty (Makefile.am): Substitute new witnesses.
66918         (Libraries): Move library detection...
66919         * modules/forkpty: ...into new module.
66920         * modules/openpty: Another new module.
66921         * modules/pty-tests: Rename and split...
66922         * modules/forkpty-tests: ...to this...
66923         * modules/openpty-tests: ...and this.
66924         * tests/test-pty.c: Rename and split...
66925         * tests/test-forkpty.c: ...to this...
66926         * tests/test-openpty.c: ...and this.
66927         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
66928         (gl_PTY): Split library searching...
66929         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
66930         (gl_FORKPTY, gl_OPENPTY): New macros.
66931         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
66932         * NEWS: Mention the split.
66933         * MODULES.html.sh (Misc): Document the modules.
66934         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
66935         * doc/glibc-functions/openpty.texi (openpty): Likewise.
66937         pty: improve replacement header
66938         * lib/pty.in.h: New file.
66939         * modules/pty (Files): Ship it.
66940         (Makefile.am): Always build replacement.
66941         * m4/pty.m4: Rename...
66942         * m4/pty_h.m4: ...to this.
66943         (gl_PTY): Modernize setting of witness macros; update check of
66944         forkpty to take proper advantage of cache.
66945         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
66947         getopt: avoid compiler warning
66948         * lib/getopt.c (attribute_hidden): Remove unused macro.
66950 2010-03-18  Bruno Haible  <bruno@clisp.org>
66952         Fix link errors on Solaris 8.
66953         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
66954         * modules/search-tests (test_search_c___LDADD): Likewise.
66955         * modules/signal-tests (test_signal_c___LDADD): Likewise.
66956         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
66957         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
66958         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
66959         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
66960         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
66961         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
66963 2010-03-18  Bruno Haible  <bruno@clisp.org>
66965         Fix bug introduced on 2010-03-14.
66966         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
66967         (gl_SPAWN_H): Require it.
66968         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
66969         Reported by Simon Josefsson.
66971 2010-03-18  Bruno Haible  <bruno@clisp.org>
66973         Fix typo introduced on 2009-12-31.
66974         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
66975         posix_spawn_file_actions_adddup2.
66977 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
66978         and Eric Blake  <eblake@redhat.com>
66980         test-vc-list-files-git: make more robust
66981         * tests/test-vc-list-files-git.sh: Unset problematic environment
66982         variables.  Chain commands together.
66984 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
66986         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
66987         `AC_CHECK_DECL' invocation.
66989 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
66991         * lib/inttostr.c (inttostr): Make sure the invocation of verify
66992         appears before executable statements. Suggested by Petr Sumbera
66993         <Petr.Sumbera@Sun.COM>.
66995 2010-03-14  Bruno Haible  <bruno@clisp.org>
66997         * tests/test-flock.c (test_exclusive): Comment out a test that causes
66998         portability problems. Instead use a simpler test.
66999         (main): Check that invalid arguments are rejected only on Linux.
67001 2010-03-14  Bruno Haible  <bruno@clisp.org>
67003         Fix bug introduced on 2009-12-31.
67004         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
67005         gl_PREREQ_SYS_H_WINSOCK2 always.
67006         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
67007         SYS_SOCKET_H variable.
67008         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
67009         Update comments.
67010         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
67011         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
67012         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
67013         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
67014         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
67016 2010-03-14  Bruno Haible  <bruno@clisp.org>
67018         Fix values returned by sinl, cosl.
67019         * lib/trigl.h: Add specification comments.
67020         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
67021         that combines the values from the precomputed table with the values of
67022         the Chebyshev polynomials.
67024 2010-03-14  Bruno Haible  <bruno@clisp.org>
67026         Fix compilation error when modules 'posix_spawn[p]' are not used.
67027         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
67028         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
67030 2010-03-14  Bruno Haible  <bruno@clisp.org>
67032         Fix compilation error on mingw when module 'time_r' is not used.
67033         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
67034         is 1.
67035         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
67036         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67037         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
67038         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
67040 2010-03-14  Bruno Haible  <bruno@clisp.org>
67042         Fix compilation error with Sun C.
67043         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
67044         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
67045         instead of GCC specific ULONG_LONG_MAX.
67046         * lib/xstrtoll.c: Likewise.
67047         * lib/xstrtoull.c: Likewise.
67049 2010-03-13  Bruno Haible  <bruno@clisp.org>
67051         Allow the user to disable C++ code and tests.
67052         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
67053         (gl_PROG_ANSI_CXX): Require it.
67055 2010-03-13  Bruno Haible  <bruno@clisp.org>
67057         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
67058         cases.
67060 2010-03-13  Bruno Haible  <bruno@clisp.org>
67062         Test that gnulib does not break the standard C++ headers.
67063         * tests/test-locale-c++2.cc: New file.
67064         * modules/locale-tests (Files): Add it.
67065         (Makefile.am): Compile it for test-locale-c++.
67066         * tests/test-math-c++2.cc: New file.
67067         * modules/math-tests (Files): Add it.
67068         (Makefile.am): Compile it for test-math-c++.
67069         * tests/test-signal-c++2.cc: New file.
67070         * modules/signal-tests (Files): Add it.
67071         (Makefile.am): Compile it for test-signal-c++.
67072         * tests/test-stdio-c++2.cc: New file.
67073         * modules/stdio-tests (Files): Add it.
67074         (Makefile.am): Compile it for test-stdio-c++.
67075         * tests/test-stdlib-c++2.cc: New file.
67076         * modules/stdlib-tests (Files): Add it.
67077         (Makefile.am): Compile it for test-stdlib-c++.
67078         * tests/test-string-c++2.cc: New file.
67079         * modules/string-tests (Files): Add it.
67080         (Makefile.am): Compile it for test-string-c++.
67081         * tests/test-time-c++2.cc: New file.
67082         * modules/time-tests (Files): Add it.
67083         (Makefile.am): Compile it for test-time-c++.
67084         Reported by John W. Eaton <jwe@gnu.org>.
67086 2010-03-13  Bruno Haible  <bruno@clisp.org>
67088         * gnulib-tool (func_usage): Clarify which options are available for
67089         --create-testdir and --create-megatestdir.
67091 2010-03-13  Bruno Haible  <bruno@clisp.org>
67093         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
67094         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
67095         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
67096         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
67097         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
67098         when appropriate.
67099         Reported by Jim Meyering.
67101 2010-03-12  Simon Josefsson  <simon@josefsson.org>
67103         * gnulib-tool (func_import): Explain origin of code.
67105 2010-03-12  Bruno Haible  <bruno@clisp.org>
67107         Fix problem with automake's definition of CXXLINK.
67108         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
67109         Reported by Simon Josefsson and Ludovic Courtès.
67111 2010-03-12  Bruno Haible  <bruno@clisp.org>
67113         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
67114         stable releases.
67116 2010-03-11  Bruno Haible  <bruno@clisp.org>
67118         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
67119         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
67120         whether the system provides one variant or multiple variants of the
67121         function.
67122         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
67123         C++ compilers.
67124         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
67125         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
67126         Reported by Jim Meyering.
67128 2010-03-09  Simon Josefsson  <simon@josefsson.org>
67130         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
67132 2010-03-08  Bruno Haible  <bruno@clisp.org>
67134         gnulib-tool: Add support for --libtool in --create-testdir.
67135         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
67136         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
67138 2010-03-08  Eric Blake  <eblake@redhat.com>
67140         gnulib-tool.texi: mention possibility of git submodule
67141         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
67142         submodules.
67143         * doc/.gitignore: Ignore another generated file.
67145 2010-03-08  Karl Berry  <karl@gnu.org>
67147         * doc/gnulib-tool.texi (VCS Issues): Mention third option
67148         of committing gnulib files while skipping others.
67150 2010-03-07  Bruno Haible  <bruno@clisp.org>
67152         Tests of module 'wctype' in C++ mode.
67153         * tests/test-wctype-c++.cc: New file.
67154         * modules/wctype-tests (Files): Add it and tests/signature.h.
67155         (Depends-on): Add ansi-c++-opt.
67156         (Makefile.am): Arrange to compile and run test-wctype-c++.
67158         Tests of module 'wchar' in C++ mode.
67159         * tests/test-wchar-c++.cc: New file.
67160         * modules/wchar-tests (Files): Add it and tests/signature.h.
67161         (Depends-on): Add ansi-c++-opt.
67162         (Makefile.am): Arrange to compile and run test-wchar-c++.
67163         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
67164         gl_MODULE_INDICATOR.
67166         Tests of module 'unistd' in C++ mode.
67167         * tests/test-unistd-c++.cc: New file.
67168         * modules/unistd-tests (Files): Add it and tests/signature.h.
67169         (Depends-on): Add ansi-c++-opt.
67170         (Makefile.am): Arrange to compile and run test-unistd-c++.
67171         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
67172         gl_MODULE_INDICATOR.
67174         Tests of module 'time' in C++ mode.
67175         * tests/test-time-c++.cc: New file.
67176         * modules/time-tests (Files): Add it and tests/signature.h.
67177         (Depends-on): Add ansi-c++-opt.
67178         (Makefile.am): Arrange to compile and run test-time-c++.
67179         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67181         Tests of module 'sys_time' in C++ mode.
67182         * tests/test-sys_time-c++.cc: New file.
67183         * modules/sys_time-tests (Files): Add it and tests/signature.h.
67184         (Depends-on): Add ansi-c++-opt.
67185         (Makefile.am): Arrange to compile and run test-sys_time-c++.
67186         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
67187         gl_MODULE_INDICATOR.
67189         Tests of module 'sys_stat' in C++ mode.
67190         * tests/test-sys_stat-c++.cc: New file.
67191         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
67192         (Depends-on): Add ansi-c++-opt.
67193         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
67194         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
67195         gl_MODULE_INDICATOR.
67197         Tests of module 'sys_socket' in C++ mode.
67198         * tests/test-sys_socket-c++.cc: New file.
67199         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
67200         (Depends-on): Add ansi-c++-opt.
67201         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
67202         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
67203         gl_MODULE_INDICATOR.
67205         Tests of module 'sys_select' in C++ mode.
67206         * tests/test-sys_select-c++.cc: New file.
67207         * modules/sys_select-tests (Files): Add it and tests/signature.h.
67208         (Depends-on): Add ansi-c++-opt.
67209         (Makefile.am): Arrange to compile and run test-sys_select-c++.
67210         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
67211         gl_MODULE_INDICATOR.
67213         Tests of module 'sys_ioctl' in C++ mode.
67214         * tests/test-sys_ioctl-c++.cc: New file.
67215         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
67216         (Depends-on): Add ansi-c++-opt.
67217         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
67218         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
67219         gl_MODULE_INDICATOR.
67221         Tests of module 'string' in C++ mode.
67222         * tests/test-string-c++.cc: New file.
67223         * modules/string-tests (Files): Add it and tests/signature.h.
67224         (Depends-on): Add ansi-c++-opt.
67225         (Makefile.am): Arrange to compile and run test-string-c++.
67226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
67227         gl_MODULE_INDICATOR.
67229         Tests of module 'stdlib' in C++ mode.
67230         * tests/test-stdlib-c++.cc: New file.
67231         * modules/stdlib-tests (Files): Add it and tests/signature.h.
67232         (Depends-on): Add ansi-c++-opt.
67233         (Makefile.am): Arrange to compile and run test-stdlib-c++.
67234         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
67235         gl_MODULE_INDICATOR.
67237         Tests of module 'stdio' in C++ mode.
67238         * tests/test-stdio-c++.cc: New file.
67239         * modules/stdio-tests (Files): Add it and tests/signature.h.
67240         (Depends-on): Add ansi-c++-opt.
67241         (Makefile.am): Arrange to compile and run test-stdio-c++.
67242         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
67243         gl_MODULE_INDICATOR.
67245         Tests of module 'spawn' in C++ mode.
67246         * tests/test-spawn-c++.cc: New file.
67247         * modules/spawn-tests (Files): Add it and tests/signature.h.
67248         (Depends-on): Add ansi-c++-opt.
67249         (Makefile.am): Arrange to compile and run test-spawn-c++.
67250         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
67251         gl_MODULE_INDICATOR.
67253         Tests of module 'signal' in C++ mode.
67254         * tests/test-signal-c++.cc: New file.
67255         * modules/signal-tests (Files): Add it and tests/signature.h.
67256         (Depends-on): Add ansi-c++-opt.
67257         (Makefile.am): Arrange to compile and run test-signal-c++.
67258         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
67259         gl_MODULE_INDICATOR.
67261         Tests of module 'search' in C++ mode.
67262         * tests/test-search-c++.cc: New file.
67263         * modules/search-tests (Files): Add it and tests/signature.h.
67264         (Depends-on): Add ansi-c++-opt.
67265         (Makefile.am): Arrange to compile and run test-search-c++.
67266         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
67267         gl_MODULE_INDICATOR.
67269         Tests of module 'math' in C++ mode.
67270         * tests/test-math-c++.cc: New file.
67271         * modules/math-tests (Files): Add it and tests/signature.h.
67272         (Depends-on): Add ansi-c++-opt.
67273         (Makefile.am): Arrange to compile and run test-math-c++.
67274         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67276         Tests of module 'locale' in C++ mode.
67277         * tests/test-locale-c++.cc: New file.
67278         * modules/locale-tests (Files): Add it and tests/signature.h.
67279         (Depends-on): Add ansi-c++-opt.
67280         (Makefile.am): Arrange to compile and run test-locale-c++.
67281         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
67282         gl_MODULE_INDICATOR.
67284         Tests of module 'langinfo' in C++ mode.
67285         * tests/test-langinfo-c++.cc: New file.
67286         * modules/langinfo-tests (Files): Add it and tests/signature.h.
67287         (Depends-on): Add ansi-c++-opt.
67288         (Makefile.am): Arrange to compile and run test-langinfo-c++.
67289         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
67290         gl_MODULE_INDICATOR.
67292         Tests of module 'iconv-h' in C++ mode.
67293         * tests/test-iconv-h-c++.cc: New file.
67294         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
67295         (Depends-on): Add ansi-c++-opt.
67296         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
67298         Tests of module 'glob' in C++ mode.
67299         * tests/test-glob-c++.cc: New file.
67300         * modules/glob-tests (Files): Add it.
67301         (Depends-on): Add ansi-c++-opt.
67302         (Makefile.am): Arrange to compile and run test-glob-c++.
67304         Tests of module 'fcntl-h' in C++ mode.
67305         * tests/test-fcntl-h-c++.cc: New file.
67306         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
67307         (Depends-on): Add ansi-c++-opt.
67308         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
67309         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
67310         gl_MODULE_INDICATOR.
67312         Tests of module 'dirent' in C++ mode.
67313         * tests/test-dirent-c++.cc: New file.
67314         * modules/dirent-tests (Files): Add it and tests/signature.h.
67315         (Depends-on): Add ansi-c++-opt.
67316         (Makefile.am): Arrange to compile and run test-dirent-c++.
67317         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67318         gl_MODULE_INDICATOR.
67320         New module 'ansi-c++-opt'.
67321         * modules/ansi-c++-opt: New file.
67322         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
67324         Document C++ namespace mode.
67325         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
67327         wctype: Avoid #define replacements in C++ mode.
67328         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
67329         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
67330         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
67331         In C++, define a namespaced alias symbol.
67332         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
67333         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
67334         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
67335         rule.
67337         wchar: Avoid #define replacements in C++ mode.
67338         * lib/wchar.in.h: Include c++defs.h.
67339         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
67340         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
67341         symbol.
67342         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
67343         * modules/wchar (Depends-on): Add c++defs.
67344         (Makefile.am): Update wchar.h rule.
67346         unistd: Avoid #define replacements in C++ mode.
67347         * lib/unistd.in.h: Include c++defs.h.
67348         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
67349         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
67350         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
67351         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
67352         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
67353         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
67354         symbol.
67355         (environ): Update.
67356         * modules/unistd (Depends-on): Add c++defs.
67357         (Makefile.am): Update unistd.h rule.
67359         time: Avoid #define replacements in C++ mode.
67360         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
67361         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
67362         define a namespaced alias symbol.
67363         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
67364         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
67365         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
67366         * modules/time (Depends-on): Add c++defs, warn-on-use.
67367         (Makefile.am): Update time.h rule.
67368         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
67369         * modules/nanosleep (configure.ac): Likewise.
67370         * modules/strptime (configure.ac): Likewise.
67371         * modules/timegm (configure.ac): Likewise.
67373         sys_time: Avoid #define replacements in C++ mode.
67374         * lib/sys_time.in.h: Include c++defs.h.
67375         (gettimeofday): In C++, define a namespaced alias symbol.
67376         * modules/sys_time (Depends-on): Add c++defs.
67377         (Makefile.am): Update sys/time.h rule.
67379         sys_stat: Avoid #define replacements in C++ mode.
67380         * lib/sys_stat.in.h: Include c++defs.h.
67381         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
67382         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
67383         namespaced alias symbol.
67384         In C++, define a namespaced alias symbol.
67385         * modules/sys_stat (Depends-on): Add c++defs.
67386         (Makefile.am): Update sys/stat.h rule.
67388         sys_socket: Avoid #define replacements in C++ mode.
67389         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
67390         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
67391         definitions also when the system has a <sys/socket.h>.
67392         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
67393         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
67394         In C++, define a namespaced alias symbol.
67395         * modules/sys_socket (Depends-on): Add c++defs.
67396         (Makefile.am): Update sys/socket.h rule.
67398         sys_select: Avoid #define replacements in C++ mode.
67399         * lib/sys_select.in.h: Include c++defs.h. Enable the function
67400         definitions also when the system has a <sys/select.h>.
67401         (select): In C++, define a namespaced alias symbol.
67402         * modules/sys_select (Depends-on): Add c++defs.
67403         (Makefile.am): Update sys/select.h rule.
67405         sys_ioctl: Avoid #define replacements in C++ mode.
67406         * lib/sys_ioctl.in.h: Include c++defs.h.
67407         (ioctl): In C++, define a namespaced alias symbol.
67408         * modules/sys_ioctl (Depends-on): Add c++defs.
67409         (Makefile.am): Update sys/ioctl.h rule.
67411         string: Avoid #define replacements in C++ mode.
67412         * lib/string.in.h: Include c++defs.h.
67413         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
67414         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
67415         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
67416         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
67417         strsignal, strverscmp): In C++, define a namespaced alias symbol.
67418         * modules/string (Depends-on): Add c++defs.
67419         (Makefile.am): Update string.h rule.
67421         stdlib: Avoid #define replacements in C++ mode.
67422         * lib/stdlib.in.h: Include c++defs.h.
67423         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
67424         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
67425         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
67426         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
67427         symbol.
67428         * modules/stdlib (Depends-on): Add c++defs.
67429         (Makefile.am): Update stdlib.h rule.
67431         stdio: Avoid #define replacements in C++ mode.
67432         * lib/stdio.in.h: Include c++defs.h.
67433         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
67434         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
67435         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
67436         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
67437         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
67438         namespaced alias symbol.
67439         * modules/stdio (Depends-on): Add c++defs.
67440         (Makefile.am): Update stdio.h rule.
67442         spawn: Avoid #define replacements in C++ mode.
67443         * lib/spawn.in.h: Include c++defs.h.
67444         (posix_spawn, posix_spawnp, posix_spawnattr_init,
67445         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
67446         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
67447         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
67448         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
67449         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
67450         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
67451         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
67452         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
67453         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
67454         In C++, define a namespaced alias symbol.
67455         * modules/spawn (Depends-on): Add c++defs.
67456         (Makefile.am): Update spawn.h rule.
67458         signal: Avoid #define replacements in C++ mode.
67459         * lib/signal.in.h: Include c++defs.h.
67460         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
67461         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
67462         namespaced alias symbol.
67463         * modules/signal (Depends-on): Add c++defs.
67464         (Makefile.am): Update signal.h rule.
67466         search: Avoid #define replacements in C++ mode.
67467         * lib/search.in.h: Include c++defs.h.
67468         (_gl_search_compar_fn, _gl_search_action_fn): New types.
67469         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
67470         symbol.
67471         * modules/search (Depends-on): Add c++defs.
67472         (Makefile.am): Update search.h rule.
67474         math: Avoid #define replacements in C++ mode.
67475         * lib/math.in.h: Include c++defs.h.
67476         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
67477         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
67478         trunc, truncl): In C++, define a namespaced alias symbol.
67479         * modules/math (Depends-on): Add c++defs.
67480         (Makefile.am): Update math.h rule.
67482         locale: Avoid #define replacements in C++ mode.
67483         * lib/locale.in.h: Include c++defs.h.
67484         (duplocale): In C++, define a namespaced alias symbol.
67485         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
67486         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
67487         * modules/locale (Depends-on): Add c++defs.
67488         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
67490         langinfo: Avoid #define replacements in C++ mode.
67491         * lib/langinfo.in.h: Include c++defs.h.
67492         (nl_langinfo): In C++, define a namespaced alias symbol.
67493         * modules/langinfo (Depends-on): Add c++defs.
67494         (Makefile.am): Update langinfo.h rule.
67496         iconv-h: Avoid #define replacements in C++ mode.
67497         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
67498         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
67499         symbol.
67500         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
67501         whenever iconv is present.
67502         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
67503         (Makefile.am): Update iconv.h rule.
67505         glob: Avoid #define replacements in C++ mode.
67506         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
67507         (_gl_glob_errfunc_fn): New type.
67508         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
67509         symbol.
67510         * modules/glob (Depends-on): Add c++defs, warn-on-use.
67511         (Makefile.am): Update glob.h rule.
67513         fcntl-h: Avoid #define replacements in C++ mode.
67514         * lib/fcntl.in.h: Include c++defs.h.
67515         (fcntl, open, openat): In C++, define a namespaced alias symbol.
67516         * modules/fcntl-h (Depends-on): Add c++defs.
67517         (Makefile.am): Update fcntl.h rule.
67519         dirent: Avoid #define replacements in C++ mode.
67520         * lib/dirent.in.h: Include c++defs.h.
67521         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
67522         namespaced alias symbol.
67523         (dirfd): Update declaration.
67524         * modules/dirent (Depends-on): Add c++defs.
67525         (Makefile.am): Update dirent.h rule.
67527         ctype: Make it usable in C++ code.
67528         * lib/ctype.in.h: Include c++defs.h.
67529         (isblank): Declare as extern "C".
67530         * modules/ctype (Depends-on): Add c++defs.
67531         (Makefile.am): Update ctype.h rule.
67533         New module 'c++defs'.
67534         * modules/c++defs: New file.
67535         * build-aux/c++defs.h: New file.
67536         Reported by John W. Eaton <jwe@gnu.org>.
67538 2010-03-07  Bruno Haible  <bruno@clisp.org>
67540         logb: Provide missing declaration for Cygwin.
67541         * lib/math.in.h (logb): New declaration.
67542         * m4/logb.m4: New file.
67543         * modules/logb (Files): Add m4/logb.m4.
67544         (Depends-on): Add math.
67545         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
67546         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
67547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
67548         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
67549         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
67551 2010-03-07  Bruno Haible  <bruno@clisp.org>
67553         Fix test-cond link error.
67554         * tests/test-cond.c: Include <stdio.h>.
67556 2010-03-07  Bruno Haible  <bruno@clisp.org>
67558         Fix test-dirent-safer link error.
67559         * modules/dirent-safer-tests (Makefile.am): Define
67560         test_dirent_safer_LDADD.
67562 2010-03-07  Bruno Haible  <bruno@clisp.org>
67564         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
67565         among default module list.
67567 2010-03-07  Bruno Haible  <bruno@clisp.org>
67569         Fix link error on platforms with GNU libiconv.
67570         * modules/unistr/u8-strcoll-tests (Makefile): Define
67571         test_u8_strcoll_LDADD.
67572         * modules/unistr/u16-strcoll-tests (Makefile): Define
67573         test_u16_strcoll_LDADD.
67574         * modules/unistr/u32-strcoll-tests (Makefile): Define
67575         test_u32_strcoll_LDADD.
67577 2010-03-07  Bruno Haible  <bruno@clisp.org>
67579         Use POSIX declarations for socket functions.
67580         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
67581         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
67582         rpl_sendto): Change declaration to match POSIX.
67583         * lib/connect.c (rpl_connect): Likewise.
67584         * lib/accept.c (rpl_accept): Likewise.
67585         * lib/bind.c (rpl_bind): Likewise.
67586         * lib/getpeername.c (rpl_getpeername): Likewise.
67587         * lib/getsockname.c (rpl_getsockname): Likewise.
67588         * lib/recv.c (rpl_recv): Likewise.
67589         * lib/send.c (rpl_send): Likewise.
67590         * lib/recvfrom.c (rpl_recvfrom): Likewise.
67591         * lib/sendto.c (rpl_sendto): Likewise.
67593 2010-03-06  Bruno Haible  <bruno@clisp.org>
67595         Clarify access, euidaccess, faccessat.
67596         * doc/posix-functions/faccessat.texi: Mention security problem under
67597         "Other problems", not "Portability problems".
67598         * doc/posix-functions/access.texi: Likewise. Mention a related security
67599         problem.
67600         * doc/glibc-functions/euidaccess.texi: Mention security problems.
67601         * lib/euidaccess.c: Add comments about platforms.
67602         * lib/unistd.in.h (access, euidaccess): Add warnings.
67604 2010-03-07  Bruno Haible  <bruno@clisp.org>
67606         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
67607         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
67608         (POSIX_SPAWN_SETSCHEDULER): Likewise.
67609         (POSIX_SPAWN_USEVFORK): Define in a way that works when
67610         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67611         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
67612         declare when POSIX_SPAWN_SETSCHEDULER is zero.
67613         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
67614         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
67615         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
67616         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
67617         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
67618         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
67619         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
67620         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
67621         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
67622         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
67623         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
67624         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
67625         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
67626         Likewise.
67627         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
67628         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
67629         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
67630         Likewise.
67631         * tests/test-spawn.c (main): Make it work when
67632         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
67634 2010-03-07  Bruno Haible  <bruno@clisp.org>
67636         Fix incorrect Makefile.am generation in German locale.
67637         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67638         Execute sed command with character range in C locale.
67640 2010-03-06  Bruno Haible  <bruno@clisp.org>
67642         Tests for module 'iconv-h'.
67643         * modules/iconv-h-tests: New file.
67644         * tests/test-iconv-h.c: New file.
67646         New module 'iconv-h'.
67647         * modules/iconv-h: New file.
67648         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
67649         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
67650         (configure.ac): Remove gl_ICONV_H.
67651         (Makefile.am): Remove rule for iconv.h.
67653 2010-03-06  Bruno Haible  <bruno@clisp.org>
67655         More consistent naming of *.m4 files.
67656         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
67657         * modules/wctype (Files): Update.
67659         More consistent naming of *.m4 files.
67660         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
67661         * modules/wchar (Files): Update.
67663 2010-03-06  Jim Meyering  <meyering@redhat.com>
67665         euidaccess: relax license to LGPLv2+
67666         * modules/euidaccess (License): Relax to LGPLv2+.
67668 2010-03-06  Bruno Haible  <bruno@clisp.org>
67670         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
67671         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
67672         (Makefile.am): Augment lib_SOURCES instead.
67674 2010-03-04  Jim Meyering  <meyering@redhat.com>
67676         utime: remove obsolete module
67677         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
67678         unnecessary for years, and has been marked as obsolete for 10 months.
67679         * modules/utime: Remove file.
67680         * lib/utime.c: Remove file.
67681         * m4/utime.m4: Remove file.
67682         * m4/utimes-null.m4: Remove file.
67683         * doc/posix-functions/utime.texi (utime): Remove reference to
67684         the module.  Move the sole "fixed by gnulib" item into the
67685         "problems not fixed by Gnulib" list.
67686         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
67688 2010-03-05  Simon Josefsson  <simon@josefsson.org>
67690         * modules/exit (License): Relax license to LGPLv2+.
67691         (Status): Mark as obsolete.
67692         * NEWS: Mention deprecated 'exit' module.
67693         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
67694         of now obsolete 'exit'.
67696 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67698         fts-lgpl: remove unused module
67699         * modules/fts-lgpl: Remove.
67700         * MODULES.html.sh (func_all_modules): Adjust.
67701         * check-module (find_included_lib_files): Adjust.
67702         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
67704 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
67706         copy-acl: enhance Solaris ACL error handling
67707         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
67708         * lib/set-mode-acl.c (qset_acl): Likewise.
67710 2010-03-02  Bruno Haible  <bruno@clisp.org>
67712         spawn: Don't override the system defined values on FreeBSD 8.
67713         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
67714         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
67715         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
67716         if HAVE_POSIX_SPAWN is 1.
67717         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
67719 2010-03-01  Bruno Haible  <bruno@clisp.org>
67721         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
67722         regarding Automake.
67724 2010-02-25  Bruno Haible  <bruno@clisp.org>
67726         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
67727         * gnulib-tool: Define 'echo' as a function only before the ksh alias
67728         setting, not afterwards.
67729         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
67731 2010-02-24  Eric Blake  <eblake@redhat.com>
67733         bootstrap, git-version-gen: use timestamp
67734         * build-aux/git-version-gen (scriptversion): Force UTC.
67735         * build-aux/bootstrap (scriptversion): New variable.
67737         bootstrap: allow older git
67738         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
67739         older than 1.6.4.  Requested by the libvirt project.
67741 2010-02-23  Eric Blake  <eblake@redhat.com>
67743         warn-on-use: work with old autoconf
67744         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
67745         AS_VAR semantics of autoconf 2.60.
67746         Reported by Bruno Haible.
67748         bootstrap: improve some comments
67749         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
67750         clarification comments.
67752         gettimeofday: provide correct function
67753         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
67754         when replacement is declared, otherwise provide gettimeofday.
67755         Reported by Michael Goffioul.
67757 2010-02-23  Jim Meyering  <meyering@redhat.com>
67759         lib-ignore: relax license to "unlimited", not LGPLv2+
67760         * modules/lib-ignore (License): Relax to "unlimited".
67762 2010-02-23  Jim Meyering  <meyering@redhat.com>
67764         lib-ignore: relax license to LGPLv2+
67765         * modules/lib-ignore (License): Relax to LGPLv2+.
67767 2010-02-22  Eric Blake  <eblake@redhat.com>
67769         lseek: avoid bash 3.2 broken pipe bug
67770         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
67771         warning from bash 3.2.
67772         Reported by Ben Pfaff, with analysis from Bruno Haible.
67774         bootstrap: support non-FSF copyright holder
67775         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
67776         bootstrap.conf override of COPYRIGHT_HOLDER.
67777         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
67779         bootstrap: interoperate with gettext 0.14.1
67780         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
67782         bootstrap: allow for alternate submodule location
67783         * build-aux/bootstrap (gnulib_path): New variable; use instead of
67784         hardcoding submodule location.
67785         (gnulib_mk): Allow direct use of Makefile.am.
67787         bootstrap: use GNULIB_SRCDIR to reduce disk usage
67788         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
67789         rather than reconfiguring where the submodule points.
67791         gettimeofday: restore support for platforms that lack function
67792         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
67793         replacement if function is missing.
67794         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
67795         * modules/sys_time (Makefile.am): Substitute it.
67796         * lib/sys_time.in.h (gettimeofday): Check it.
67797         Reported by Michael Goffioul.
67799 2010-02-21  Bruno Haible  <bruno@clisp.org>
67801         * lib/stdio.in.h (obstack_printf): Fix typo.
67803 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
67805         vc-list-files: use bzr ls's -R option
67806         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
67807         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
67809 2010-02-21  Jim Meyering  <meyering@redhat.com>
67811         init.sh: fix EXEEXT shims to work also for names like test-prog
67812         * tests/init.sh: Re-exec a better shell, when needed.
67813         If the current shell lacks support for posix $(...), an init.sh-using
67814         test will now try to find a shell that supports that.  If EXEEXT is
67815         nonempty, we also require support for hyphen-in-alias-name and shell
67816         substitutions like ${var#glob}.  Failure to find such a shell results
67817         in a skipped test.
67819 2010-02-21  Bruno Haible  <bruno@clisp.org>
67821         Really work around "broken pipe" error message from bash 3.2.
67822         * gnulib-tool (func_reset_sigpipe): Remove function.
67823         (echo): In bash 3.2, define to a function that uses printf.
67824         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
67826 2010-02-20  Bruno Haible  <bruno@clisp.org>
67828         Restore support for automake 1.9.6 with autoconf 2.61.
67829         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
67830         Reported by James Youngman <jay@gnu.org>.
67832 2010-02-20  Bruno Haible  <bruno@clisp.org>
67834         Improve *printf warning condition.
67835         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
67836         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
67837         and the function is overridden due to SIGPIPE emulation.
67839 2010-02-20  Bruno Haible  <bruno@clisp.org>
67841         * lib/stdio.in.h: Tweak comments.
67843 2010-02-19  Bruno Haible  <bruno@clisp.org>
67845         Make it easier to find modules. New gnulib-tool option '--find'.
67846         * gnulib-tool: New option --find.
67847         (func_usage): Document it.
67848         (func_sanitize_modulelist): New function, extracted from
67849         func_all_modules.
67850         (func_all_modules): Invoke it.
67851         * doc/gnulib-tool.texi (Which modules?): New node.
67853 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
67855         * lib/sys_select.in.h: Provide select replacement even if
67856         sys/select.h exists on a system, for Interix.
67858 2010-02-18  Jim Meyering  <meyering@redhat.com>
67860         init.sh: don't use $(...) just yet
67861         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
67862         to accommodate e.g., Solaris' /bin/sh.
67864 2010-02-17  Bruno Haible  <bruno@clisp.org>
67866         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
67867         Reported by Ludovic Courtès <ludo@gnu.org>.
67869 2010-02-16  Simon Josefsson  <simon@josefsson.org>
67871         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
67872         linking with -lintl.
67874 2010-02-17  Simon Josefsson  <simon@josefsson.org>
67876         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
67877         if not provided by the system's netdb.h.  Reported by
67878         ludo@gnu.org (Ludovic Courtès).
67880 2010-02-15  Jim Meyering  <meyering@redhat.com>
67882         init.sh: improve portability and efficiency
67883         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
67884         "dummy" in a for loop.
67885         Use '!', not '^' to select the complement of a character set used
67886         in a "case" statement.
67887         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
67888         Suggestions from Eric Blake.
67890         init.sh: automatically accommodate programs with the .exe suffix
67891         Automatically arrange for an invocation of "prog" to execute the
67892         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
67893         may use the simpler "prog", yet still work when built on a system
67894         that requires specifying the added suffix.
67895         Do this by constructing a function named "prog" that invokes
67896         "prog.exe" for each .exe file in selected directories.
67897         * tests/init.sh (find_exe_basenames_): New function.
67898         (create_exe_shim_functions_): New function.
67899         (path_prepend_): Use it.
67901         maint.mk: mark syntax-check sc_*.m rules as .PHONY
67902         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
67903         "make -t syntax-check" doesn't create a ton of sc_*.m files.
67905 2010-02-14  Jim Meyering  <meyering@redhat.com>
67907         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
67908         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
67909         (sc_prohibit_hash_pjw_without_use): New rule.
67911         maint.mk: allow the default upload destination dir to be overridden
67912         * top/maint.mk (upload_dest_dir_): Define with a default that
67913         preserves the status quo.
67914         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
67915         Reported by Peter Simons.
67917         maint.mk: prohibit inclusion of "hash.h" without_use
67918         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
67920 2010-02-10  Jim Meyering  <meyering@redhat.com>
67922         maint.mk: prohibit inclusion of "ignore-value.h" without_use
67923         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
67925 2010-02-09  Eric Blake  <ebb9@byu.net>
67926         and Bruno Haible  <bruno@clisp.org>
67928         obstack-printf-posix: ensure declaration
67929         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
67930         extracted from gl_FUNC_OBSTACK_PRINTF.
67931         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
67932         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
67933         Likewise.
67934         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
67935         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
67936         0.
67938 2010-02-08  Bruno Haible  <bruno@clisp.org>
67940         gnulib-tool: Fix typo in 2010-02-07 commit.
67941         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
67942         Reported by Eric Blake.
67944 2010-02-07  Bruno Haible  <bruno@clisp.org>
67946         gnulib-tool: Fix up caching patches.
67947         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
67948         option --no-cache. Use associative arrays when supported by the shell.
67949         (sed_comments): New variable.
67950         (modcache): Renamed from do_cache.
67951         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
67952         abbreviate unnecessarily.
67953         (have_associative): New variable.
67954         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
67955         way also for ksh and zsh.
67956         (func_init_sed_convert_to_cache_statements): New function, extracted
67957         from func_cache_lookup_module. Add support for associative arrays.
67958         Don't set the c_MODULE_cached variable here. Ignore all lines before
67959         the first field header. Remove only the final newline, not all trailing
67960         newlines. Support empty fields correctly. Limit the use of 'eval' to
67961         assignments.
67962         (func_get_description, func_get_status, func_get_notice,
67963         func_get_applicability, func_get_filelist, func_get_dependencies,
67964         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
67965         func_get_automake_snippet, func_get_include_directive,
67966         func_get_link_directive, func_get_license, func_get_maintainer):
67967         Update documentation. List the unoptimized code first. Add support for
67968         associative arrays. Limit the use of 'eval' to assignments.
67969         (func_get_applicability): Undo stylistic pessimisations.
67970         (func_get_automake_snippet, func_get_include_directive): Reduce code
67971         duplication.
67972         (func_modules_transitive_closure, func_modules_add_dummy,
67973         func_modules_notice, func_modules_to_filelist, func_add_file,
67974         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
67975         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
67976         func_create_testdir, func_create_megatestdir): Update documentation.
67978 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67980         * gnulib-tool (func_cache_lookup_module): Store the module name
67981         belonging to the cache variable; error out if two different
67982         module names map to the same cache variable name.
67984 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67986         gnulib-tool: Make caching optional.
67987         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
67988         Update matching short versions of --no-changelog.
67989         (func_usage): Update.
67990         (sed_extract_cache_prog): Renamed from ...
67991         (sed_extract_prog): ... this; revert to old extraction script.
67992         (func_get_description, func_get_status)
67993         (func_get_notice, func_get_applicability, func_get_filelist)
67994         (func_get_dependencies, func_get_autoconf_early_snippet)
67995         (func_get_autoconf_snippet, func_get_automake_snippet)
67996         (func_get_include_directive, func_get_link_directive)
67997         (func_get_license, func_get_maintainer): If $do_cache is false,
67998         use old, non-caching extraction scripts.
67999         Suggestion by Bruno Haible.
68001 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68003         gnulib-tool: cache module metainformation.
68004         * gnulib-tool (sed_extract_prog): Match newline before each
68005         header, and rewrite header to a shell variable suffix.
68006         (func_cache_var, func_cache_lookup_module): New functions,
68007         to turn a module name into a cache variable prefix, and to
68008         look up and cache module metainformation.
68009         (func_get_description, func_get_status)
68010         (func_get_notice, func_get_applicability, func_get_filelist)
68011         (func_get_dependencies, func_get_autoconf_early_snippet)
68012         (func_get_autoconf_snippet, func_get_automake_snippet)
68013         (func_get_include_directive, func_get_link_directive)
68014         (func_get_license, func_get_maintainer): Use
68015         func_cache_lookup_module.
68017 2010-02-07  Bruno Haible  <bruno@clisp.org>
68019         fnctl: Fix missing dependency.
68020         * modules/fcntl (Depends-on): Add getdtablesize.
68021         Reported by John W. Eaton <jwe@gnu.org>.
68023 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68025         Argp: fix recognition of short alias options.
68027         * lib/argp-parse.c (convert_options): Fix improper use of
68028         `|' between character values.
68029         * tests/test-argp.c (group1_option): New alias option
68030         --read (-r).
68031         (group1_parser): Special handling for 'r'.
68032         (test15): New test case.
68033         (test_fun): Add test15.
68034         * tests/test-argp-2.sh: Update expected --help and --usage
68035         outputs.
68037 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68039         * tests/test-argp.c: Fix indentation.
68041 2010-02-04  Eric Blake  <ebb9@byu.net>
68043         gettimeofday: expose type of second argument
68044         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
68045         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
68046         * tests/test-gettimeofday.c: Use it to silence warning.
68047         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
68048         the issue.
68050 2010-02-03  Jim Meyering  <meyering@redhat.com>
68052         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
68053         * lib/regcomp.c (TYPE_SIGNED): Define.
68054         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
68056         regcomp.c: avoid a new -Wshadow warning
68057         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
68059 2010-02-01  Jim Meyering  <meyering@redhat.com>
68061         removing useless parentheses in cpp #define directives
68062         For motivation, see commit c0221df4, "define STREQ(a,b)
68063         consistently, removing useless parentheses"
68064         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
68065         * lib/mountlist.c (MNT_IGNORE): Likewise.
68066         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
68068 2010-02-01  Eric Blake  <ebb9@byu.net>
68070         sys_time: use link-warning
68071         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
68072         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
68073         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
68074         * modules/sys_time (Depends-on): Add warn-on-use.
68075         (Makefile.am): Always build replacement.
68076         (configure.ac): Update substitutions.
68077         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
68078         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
68079         bother with SYS_TIME_H.
68080         * modules/gettimeofday (configure.ac): Declare indicator.
68081         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
68082         in use.
68084         closein-tests: silence compiler warning
68085         * tests/test-closein.c (main): Ignore fread result.
68086         * modules/closein-tests (Depends-on): Add ignore-value.
68088         tests: silence warning about system return
68089         * tests/test-areadlink-with-size.c (main): Ignore system result.
68090         * tests/test-areadlink.c (main): Likewise.
68091         * tests/test-areadlinkat-with-size.c (main): Likewise.
68092         * tests/test-areadlinkat.c (main): Likewise.
68093         * tests/test-canonicalize-lgpl.c (main): Likewise.
68094         * tests/test-canonicalize.c (main): Likewise.
68095         * tests/test-chown.c (main): Likewise.
68096         * tests/test-fchownat.c (main): Likewise.
68097         * tests/test-fdutimensat.c (main): Likewise.
68098         * tests/test-fstatat.c (main): Likewise.
68099         * tests/test-futimens.c (main): Likewise.
68100         * tests/test-lchown.c (main): Likewise.
68101         * tests/test-link.c (main): Likewise.
68102         * tests/test-linkat.c (main): Likewise.
68103         * tests/test-lstat.c (main): Likewise.
68104         * tests/test-mkdir.c (main): Likewise.
68105         * tests/test-mkdirat.c (main): Likewise.
68106         * tests/test-mkfifo.c (main): Likewise.
68107         * tests/test-mkfifoat.c (main): Likewise.
68108         * tests/test-mknod.c (main): Likewise.
68109         * tests/test-readlink.c (main): Likewise.
68110         * tests/test-remove.c (main): Likewise.
68111         * tests/test-rename.c (main): Likewise.
68112         * tests/test-renameat.c (main): Likewise.
68113         * tests/test-rmdir.c (main): Likewise.
68114         * tests/test-symlink.c (main): Likewise.
68115         * tests/test-symlinkat.c (main): Likewise.
68116         * tests/test-unlink.c (main): Likewise.
68117         * tests/test-unlinkat.c (main): Likewise.
68118         * tests/test-utimens.c (main): Likewise.
68119         * tests/test-utimensat.c (main): Likewise.
68120         * modules/areadlink-tests (Depends-on): Add ignore-value.
68121         * modules/areadlink-with-size-tests (Depends-on): Likewise.
68122         * modules/areadlinkat-tests (Depends-on): Likewise.
68123         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
68124         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
68125         * modules/canonicalize-tests (Depends-on): Likewise.
68126         * modules/chown-tests (Depends-on): Likewise.
68127         * modules/fdutimensat-tests (Depends-on): Likewise.
68128         * modules/futimens-tests (Depends-on): Likewise.
68129         * modules/lchown-tests (Depends-on): Likewise.
68130         * modules/link-tests (Depends-on): Likewise.
68131         * modules/linkat-tests (Depends-on): Likewise.
68132         * modules/lstat-tests (Depends-on): Likewise.
68133         * modules/mkdir-tests (Depends-on): Likewise.
68134         * modules/mkfifo-tests (Depends-on): Likewise.
68135         * modules/mkfifoat-tests (Depends-on): Likewise.
68136         * modules/mknod-tests (Depends-on): Likewise.
68137         * modules/openat-tests (Depends-on): Likewise.
68138         * modules/readlink-tests (Depends-on): Likewise.
68139         * modules/remove-tests (Depends-on): Likewise.
68140         * modules/rename-tests (Depends-on): Likewise.
68141         * modules/renameat-tests (Depends-on): Likewise.
68142         * modules/rmdir-tests (Depends-on): Likewise.
68143         * modules/symlink-tests (Depends-on): Likewise.
68144         * modules/symlinkat-tests (Depends-on): Likewise.
68145         * modules/unlink-tests (Depends-on): Likewise.
68146         * modules/utimens-tests (Depends-on): Likewise.
68147         * modules/utimensat-tests (Depends-on): Likewise.
68149 2010-01-31  Bruno Haible  <bruno@clisp.org>
68151         Perform the same test for many <math.h> functions.
68152         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
68153         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
68154         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
68155         of gl_MATHFUNC.
68156         * modules/acos (configure.ac): Likewise.
68157         * modules/asin (configure.ac): Likewise.
68158         * modules/atan (configure.ac): Likewise.
68159         * modules/atan2 (configure.ac): Likewise.
68160         * modules/cbrt (configure.ac): Likewise.
68161         * modules/copysign (configure.ac): Likewise.
68162         * modules/cos (configure.ac): Likewise.
68163         * modules/cosh (configure.ac): Likewise.
68164         * modules/erf (configure.ac): Likewise.
68165         * modules/erfc (configure.ac): Likewise.
68166         * modules/exp (configure.ac): Likewise.
68167         * modules/fmod (configure.ac): Likewise.
68168         * modules/hypot (configure.ac): Likewise.
68169         * modules/j0 (configure.ac): Likewise.
68170         * modules/j1 (configure.ac): Likewise.
68171         * modules/jn (configure.ac): Likewise.
68172         * modules/lgamma (configure.ac): Likewise.
68173         * modules/log (configure.ac): Likewise.
68174         * modules/log10 (configure.ac): Likewise.
68175         * modules/log1p (configure.ac): Likewise.
68176         * modules/pow (configure.ac): Likewise.
68177         * modules/remainder (configure.ac): Likewise.
68178         * modules/sin (configure.ac): Likewise.
68179         * modules/sinh (configure.ac): Likewise.
68180         * modules/tan (configure.ac): Likewise.
68181         * modules/tanh (configure.ac): Likewise.
68182         * modules/y0 (configure.ac): Likewise.
68183         * modules/y1 (configure.ac): Likewise.
68184         * modules/yn (configure.ac): Likewise.
68185         Suggested by Paolo Bonzini.
68187 2010-01-31  Bruno Haible  <bruno@clisp.org>
68189         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
68191 2010-01-31  Bruno Haible  <bruno@clisp.org>
68193         Work around getdelim() bug on FreeBSD 8.0.
68194         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
68195         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
68196         not work.
68197         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
68198         is 1.
68199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
68200         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
68201         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
68202         a non-zero size.
68203         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
68205 2010-01-31  Bruno Haible  <bruno@clisp.org>
68207         Work around getline() bug on FreeBSD 8.0.
68208         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
68209         and a non-zero size.
68210         * tests/test-getline.c (main): Likewise.
68211         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
68212         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
68214 2010-01-28  Eric Blake  <ebb9@byu.net>
68216         regex: fix build failure
68217         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
68218         platforms.
68220 2010-01-28  Jim Meyering  <meyering@redhat.com>
68222         regex: do not ignore memory allocation failure
68223         * lib/regex_internal.c (create_cd_newstate): Detect
68224         re_node_set_init_copy failure.   Extracted from glibc commit
68225         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68227         regex: sync more white-space changes from libc
68228         * lib/regex_internal.c: White-space only changes.
68229         * lib/regexec.c: Likewise.
68231         regex: add many uses of __attribute_warn_unused_result__
68232         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
68233         * lib/regexec.c: Likewise.
68234         Extracted from a messy glibc commit.
68236         regcomp.c: spelling and merge-artifact from glibc
68237         * lib/regcomp.c: Merge remainder of glibc's
68238         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68240         regcomp.c: sync white-space changes from glibc
68241         * lib/regcomp.c: Merge to accommodate white space
68242         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
68244         regcomp.c: do not ignore internal return values
68245         * lib/regcomp.c: Do not ignore internal return values.
68246         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
68247         but without its white-space changes and spelling fixes.
68249         regex_internal.h: define __attribute_warn_unused_result__
68250         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
68252         maint: add a syntax-check rule to check for vulnerable Makefile.in
68253         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
68255 2010-01-27  Jim Meyering  <meyering@redhat.com>
68257         ncftpput-ftp: clean up spaces
68258         * build-aux/ncftpput-ftp: Make Copyright line consistent.
68259         Remove trailing blanks.
68261 2010-01-27  Simon Josefsson  <simon@josefsson.org>
68263         * build-aux/git-version-gen: Fix copyright statement.
68264         * build-aux/gnupload: Likewise.
68265         * tests/test-arcfour.c: Likewise.
68266         * tests/test-arctwo.c: Likewise.
68267         * tests/test-count-one-bits.c: Likewise.
68268         * tests/test-crc.c: Likewise.
68269         * tests/test-des.c: Likewise.
68270         * tests/test-gc-arcfour.c: Likewise.
68271         * tests/test-gc-arctwo.c: Likewise.
68272         * tests/test-gc-des.c: Likewise.
68273         * tests/test-gc-hmac-md5.c: Likewise.
68274         * tests/test-gc-hmac-sha1.c: Likewise.
68275         * tests/test-gc-md2.c: Likewise.
68276         * tests/test-gc-md4.c: Likewise.
68277         * tests/test-gc-md5.c: Likewise.
68278         * tests/test-gc-pbkdf2-sha1.c: Likewise.
68279         * tests/test-gc-rijndael.c: Likewise.
68280         * tests/test-gc-sha1.c: Likewise.
68281         * tests/test-gc.c: Likewise.
68282         * tests/test-gethostname.c: Likewise.
68283         * tests/test-gettimeofday.c: Likewise.
68284         * tests/test-hash.c: Likewise.
68285         * tests/test-hmac-md5.c: Likewise.
68286         * tests/test-hmac-sha1.c: Likewise.
68287         * tests/test-md2.c: Likewise.
68288         * tests/test-md4.c: Likewise.
68289         * tests/test-md5.c: Likewise.
68290         * tests/test-memchr.c: Likewise.
68291         * tests/test-memchr2.c: Likewise.
68292         * tests/test-memcmp.c: Likewise.
68293         * tests/test-memmem.c: Likewise.
68294         * tests/test-memrchr.c: Likewise.
68295         * tests/test-rawmemchr.c: Likewise.
68296         * tests/test-read-file.c: Likewise.
68297         * tests/test-rijndael.c: Likewise.
68298         * tests/test-sockets.c: Likewise.
68299         * tests/test-strchrnul.c: Likewise.
68300         * tests/test-strstr.c: Likewise.
68301         * tests/test-strtod.c: Likewise.
68302         * build-aux/ncftpput-ftp: Likewise.
68304 2010-01-26  Eric Blake  <ebb9@byu.net>
68306         ignore-value: update recommended header name
68307         * modules/ignore-value (Include): Only use <> for headers that
68308         exist in glibc.
68310 2010-01-26  Jim Meyering  <meyering@redhat.com>
68312         test-userspec.c: avoid compiler warnings
68313         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
68314         and "initialization discards qualifiers..." warnings.
68315         Put the first "uid" in its own scope, and make char* members "const".
68317 2010-01-25  Bruno Haible  <bruno@clisp.org>
68319         gnulib-tool: Make warning diagnostics consistent.
68320         * gnulib-tool (func_warning): New function.
68321         Use it everywhere where gnulib-tool produces output to stderr and it is
68322         not a fatal error.
68324 2010-01-25  Bruno Haible  <bruno@clisp.org>
68326         Fix test dependencies.
68327         * modules/xstrtol-tests (Depends-on): Add inttypes.
68328         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
68330 2010-01-25  Pádraig Brady  <P@draigBrady.com>
68332         syntax-check: detect incorrect boolean macro values in config.h
68333         * modules/maintainer-makefile (configure.ac): Parameterize the location
68334         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
68335         The logic is from Eric Blake and the location indicated by Jim Meyering.
68336         Note the more natural CONFIG_HEADER name is prohibited by automake
68337         for backwards compatibility reasons.
68338         * top/maint.mk (sc_Wundef_boolean): New rule.
68340 2010-01-25  Jim Meyering  <meyering@redhat.com>
68342         bootstrap: detect MacOS 10.6's shasum, too
68343         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
68344         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
68346 2010-01-23  Jim Meyering  <meyering@redhat.com>
68348         xstrtoll: new module
68349         * modules/xstrtoll: New file.
68350         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
68351         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
68352         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
68353         ./configure fails if you use this module and lack "long long".
68354         * modules/xstrtoll-tests: New module.
68355         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
68356         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
68357         new init.sh-based test framework.
68359 2010-01-24  Bruno Haible  <bruno@clisp.org>
68361         Tests for module 'yn'.
68362         * modules/yn-tests: New file.
68363         * tests/test-yn.c: New file.
68365         Tests for module 'y1'.
68366         * modules/y1-tests: New file.
68367         * tests/test-y1.c: New file.
68369         Tests for module 'y0'.
68370         * modules/y0-tests: New file.
68371         * tests/test-y0.c: New file.
68373         Tests for module 'tanh'.
68374         * modules/tanh-tests: New file.
68375         * tests/test-tanh.c: New file.
68377         Tests for module 'tan'.
68378         * modules/tan-tests: New file.
68379         * tests/test-tan.c: New file.
68381         Tests for module 'sqrt'.
68382         * modules/sqrt-tests: New file.
68383         * tests/test-sqrt.c: New file.
68385         Tests for module 'sinh'.
68386         * modules/sinh-tests: New file.
68387         * tests/test-sinh.c: New file.
68389         Tests for module 'sin'.
68390         * modules/sin-tests: New file.
68391         * tests/test-sin.c: New file.
68393         Tests for module 'rint'.
68394         * modules/rint-tests: New file.
68395         * tests/test-rint.c: New file.
68397         Tests for module 'remainder'.
68398         * modules/remainder-tests: New file.
68399         * tests/test-remainder.c: New file.
68401         Tests for module 'pow'.
68402         * modules/pow-tests: New file.
68403         * tests/test-pow.c: New file.
68405         Tests for module 'nextafter'.
68406         * modules/nextafter-tests: New file.
68407         * tests/test-nextafter.c: New file.
68409         Tests for module 'modf'.
68410         * modules/modf-tests: New file.
68411         * tests/test-modf.c: New file.
68413         Tests for module 'logb'.
68414         * modules/logb-tests: New file.
68415         * tests/test-logb.c: New file.
68417         Tests for module 'log1p'.
68418         * modules/log1p-tests: New file.
68419         * tests/test-log1p.c: New file.
68421         Tests for module 'log10'.
68422         * modules/log10-tests: New file.
68423         * tests/test-log10.c: New file.
68425         Tests for module 'log'.
68426         * modules/log-tests: New file.
68427         * tests/test-log.c: New file.
68429         Tests for module 'lgamma'.
68430         * modules/lgamma-tests: New file.
68431         * tests/test-lgamma.c: New file.
68433         Tests for module 'ldexp'.
68434         * modules/ldexp-tests: New file.
68435         * tests/test-ldexp.c: New file.
68437         Tests for module 'jn'.
68438         * modules/jn-tests: New file.
68439         * tests/test-jn.c: New file.
68441         Tests for module 'j1'.
68442         * modules/j1-tests: New file.
68443         * tests/test-j1.c: New file.
68445         Tests for module 'j0'.
68446         * modules/j0-tests: New file.
68447         * tests/test-j0.c: New file.
68449         Tests for module 'hypot'.
68450         * modules/hypot-tests: New file.
68451         * tests/test-hypot.c: New file.
68453         Tests for module 'fmod'.
68454         * modules/fmod-tests: New file.
68455         * tests/test-fmod.c: New file.
68457         Tests for module 'fabs'.
68458         * modules/fabs-tests: New file.
68459         * tests/test-fabs.c: New file.
68461         Tests for module 'exp'.
68462         * modules/exp-tests: New file.
68463         * tests/test-exp.c: New file.
68465         Tests for module 'erfc'.
68466         * modules/erfc-tests: New file.
68467         * tests/test-erfc.c: New file.
68469         Tests for module 'erf'.
68470         * modules/erf-tests: New file.
68471         * tests/test-erf.c: New file.
68473         Tests for module 'cosh'.
68474         * modules/cosh-tests: New file.
68475         * tests/test-cosh.c: New file.
68477         Tests for module 'cos'.
68478         * modules/cos-tests: New file.
68479         * tests/test-cos.c: New file.
68481         Tests for module 'copysign'.
68482         * modules/copysign-tests: New file.
68483         * tests/test-copysign.c: New file.
68485         Tests for module 'cbrt'.
68486         * modules/cbrt-tests: New file.
68487         * tests/test-cbrt.c: New file.
68489         Tests for module 'atan2'.
68490         * modules/atan2-tests: New file.
68491         * tests/test-atan2.c: New file.
68493         Tests for module 'atan'.
68494         * modules/atan-tests: New file.
68495         * tests/test-atan.c: New file.
68497         Tests for module 'asin'.
68498         * modules/asin-tests: New file.
68499         * tests/test-asin.c: New file.
68501         Tests for module 'acos'.
68502         * modules/acos-tests: New file.
68503         * tests/test-acos.c: New file.
68505 2010-01-24  Bruno Haible  <bruno@clisp.org>
68507         Fix tests for common <math.h> functions.
68508         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
68509         code snippet that references the function pointer, rather than merely
68510         calling the function. Substitute the FUNC_LIBM variable.
68511         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
68512         * modules/acos (configure.ac): Likewise.
68513         * modules/asin (configure.ac): Likewise.
68514         * modules/atan (configure.ac): Likewise.
68515         * modules/atan2 (configure.ac): Likewise.
68516         * modules/cbrt (configure.ac): Likewise.
68517         * modules/copysign (configure.ac): Likewise.
68518         * modules/cos (configure.ac): Likewise.
68519         * modules/cosh (configure.ac): Likewise.
68520         * modules/erf (configure.ac): Likewise.
68521         * modules/erfc (configure.ac): Likewise.
68522         * modules/exp (configure.ac): Likewise.
68523         * modules/fabs (configure.ac): Likewise.
68524         * modules/fmod (configure.ac): Likewise.
68525         * modules/hypot (configure.ac): Likewise.
68526         * modules/j0 (configure.ac): Likewise.
68527         * modules/j1 (configure.ac): Likewise.
68528         * modules/jn (configure.ac): Likewise.
68529         * modules/ldexp (configure.ac): Likewise.
68530         * modules/lgamma (configure.ac): Likewise.
68531         * modules/log (configure.ac): Likewise.
68532         * modules/log10 (configure.ac): Likewise.
68533         * modules/log1p (configure.ac): Likewise.
68534         * modules/logb (configure.ac): Likewise.
68535         * modules/modf (configure.ac): Likewise.
68536         * modules/nextafter (configure.ac): Likewise.
68537         * modules/pow (configure.ac): Likewise.
68538         * modules/remainder (configure.ac): Likewise.
68539         * modules/rint (configure.ac): Likewise.
68540         * modules/sin (configure.ac): Likewise.
68541         * modules/sinh (configure.ac): Likewise.
68542         * modules/tan (configure.ac): Likewise.
68543         * modules/tanh (configure.ac): Likewise.
68544         * modules/y0 (configure.ac): Likewise.
68545         * modules/y1 (configure.ac): Likewise.
68546         * modules/yn (configure.ac): Likewise.
68548 2010-01-24  Bruno Haible  <bruno@clisp.org>
68550         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
68551         * tests/test-acosl.c (x): New variable.
68552         (main): Store argument in x and fetch it from x.
68553         * tests/test-asinl.c (x): New variable.
68554         (main): Store argument in x and fetch it from x.
68555         * tests/test-atanl.c (x): New variable.
68556         (main): Store argument in x and fetch it from x.
68557         * tests/test-cosl.c (x): New variable.
68558         (main): Store argument in x and fetch it from x.
68559         * tests/test-expl.c (x): New variable.
68560         (main): Store argument in x and fetch it from x.
68561         * tests/test-logl.c (x): New variable.
68562         (main): Store argument in x and fetch it from x.
68563         * tests/test-sinl.c (x): New variable.
68564         (main): Store argument in x and fetch it from x.
68565         * tests/test-sqrtl.c (x): New variable.
68566         (main): Store argument in x and fetch it from x.
68567         * tests/test-tanl.c (x): New variable.
68568         (main): Store argument in x and fetch it from x.
68570 2010-01-24  Bruno Haible  <bruno@clisp.org>
68572         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
68573         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
68574         assignments to the initial TESTS_ENVIRONMENT.
68575         * doc/gnulib.texi (Unit test modules): Document it.
68576         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
68577         TESTS_ENVIRONMENT.
68578         * modules/btowc-tests (Makefile.am): Likewise.
68579         * modules/c-stack-tests (Makefile.am): Likewise.
68580         * modules/c-strcase-tests (Makefile.am): Likewise.
68581         * modules/copy-file-tests (Makefile.am): Likewise.
68582         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
68583         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
68584         * modules/mbrtowc-tests (Makefile.am): Likewise.
68585         * modules/mbscasecmp-tests (Makefile.am): Likewise.
68586         * modules/mbscasestr-tests (Makefile.am): Likewise.
68587         * modules/mbschr-tests (Makefile.am): Likewise.
68588         * modules/mbscspn-tests (Makefile.am): Likewise.
68589         * modules/mbsinit-tests (Makefile.am): Likewise.
68590         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
68591         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
68592         * modules/mbspbrk-tests (Makefile.am): Likewise.
68593         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
68594         * modules/mbsrchr-tests (Makefile.am): Likewise.
68595         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
68596         * modules/mbsspn-tests (Makefile.am): Likewise.
68597         * modules/mbsstr-tests (Makefile.am): Likewise.
68598         * modules/nl_langinfo-tests (Makefile.am): Likewise.
68599         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
68600         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
68601         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
68602         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
68603         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
68604         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
68605         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
68606         * modules/wcrtomb-tests (Makefile.am): Likewise.
68607         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
68608         * modules/wcsrtombs-tests (Makefile.am): Likewise.
68609         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
68610         assignments from TESTS_ENVIRONMENT.
68611         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
68612         augmentation.
68613         * modules/argp-version-etc-tests (Makefile.am): Likewise.
68614         * modules/atexit-tests (Makefile.am): Likewise.
68615         * modules/binary-io-tests (Makefile.am): Likewise.
68616         * modules/closein-tests (Makefile.am): Likewise.
68617         * modules/dprintf-posix-tests (Makefile.am): Likewise.
68618         * modules/exclude-tests (Makefile.am): Likewise.
68619         * modules/fflush-tests (Makefile.am): Likewise.
68620         * modules/fpending-tests (Makefile.am): Likewise.
68621         * modules/fprintf-posix-tests (Makefile.am): Likewise.
68622         * modules/freadahead-tests (Makefile.am): Likewise.
68623         * modules/freadptr-tests (Makefile.am): Likewise.
68624         * modules/freadseek-tests (Makefile.am): Likewise.
68625         * modules/fseek-tests (Makefile.am): Likewise.
68626         * modules/fseeko-tests (Makefile.am): Likewise.
68627         * modules/ftell-tests (Makefile.am): Likewise.
68628         * modules/ftello-tests (Makefile.am): Likewise.
68629         * modules/idpriv-drop-tests (Makefile.am): Likewise.
68630         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
68631         * modules/lseek-tests (Makefile.am): Likewise.
68632         * modules/parse-duration-tests (Makefile.am): Likewise.
68633         * modules/perror-tests (Makefile.am): Likewise.
68634         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
68635         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
68636         * modules/pipe-tests (Makefile.am): Likewise.
68637         * modules/pread-tests (Makefile.am): Likewise.
68638         * modules/printf-posix-tests (Makefile.am): Likewise.
68639         * modules/select-tests (Makefile.am): Likewise.
68640         * modules/sigpipe-tests (Makefile.am): Likewise.
68641         * modules/tsearch-tests (Makefile.am): Likewise.
68642         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
68643         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
68644         * modules/uniname/uniname-tests (Makefile.am): Likewise.
68645         * modules/uniwidth/width-tests (Makefile.am): Likewise.
68646         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
68647         * modules/version-etc-tests (Makefile.am): Likewise.
68648         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
68649         * modules/vprintf-posix-tests (Makefile.am): Likewise.
68650         * modules/xalloc-die-tests (Makefile.am): Likewise.
68651         * modules/xprintf-posix-tests (Makefile.am): Likewise.
68652         * modules/xstrtoimax-tests (Makefile.am): Likewise.
68653         * modules/xstrtol-tests (Makefile.am): Likewise.
68654         * modules/xstrtoumax-tests (Makefile.am): Likewise.
68655         * modules/yesno-tests (Makefile.am): Likewise.
68656         Suggested by Jim Meyering.
68658 2010-01-24  Bruno Haible  <bruno@clisp.org>
68660         More documentation.
68661         * doc/gnulib.texi (Writing modules): New chapter.
68662         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
68663         the new chapter.
68665 2010-01-24  Jim Meyering  <meyering@redhat.com>
68667         maint.mk: do not prepend "./" after filtering
68668         * top/maint.mk (_prepend_srcdir_prefix): New variable
68669         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
68670         "./" when $(srcdir) is ".".
68672         define STREQ(a,b) consistently, removing useless parentheses
68673         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
68674         since the only risk is that "a" or "b" contains an unparenthesized
68675         comma, but if either did that, STREQ would have 3 or more arguments.
68676         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
68677         * lib/fts.c (STREQ): Remove unnecessary parentheses.
68678         * lib/hash-triple.c (STREQ): Likewise.
68679         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
68680         * lib/getugroups.c (STREQ): Likewise.
68682 2010-01-23  Jim Meyering  <meyering@redhat.com>
68684         maint.mk: fix syntax-check in a non-srcdir build directory
68685         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
68686         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
68688 2010-01-22  Jim Meyering  <meyering@redhat.com>
68690         userspec: add unit tests
68691         * tests/test-userspec.c: New file.
68692         * modules/userspec-tests: Likewise.
68694 2010-01-21  Jim Meyering  <meyering@redhat.com>
68696         maint.mk: handle source file names containing "." robustly
68697         * top/maint.mk (_dot_escaped_srcdir): Define.
68698         (VC_LIST): Use it in LHS of sed substitution.
68700 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
68702         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
68703         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
68704         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
68705         from a non-srcdir build.
68707 2010-01-20  Eric Blake  <ebb9@byu.net>
68709         warn-on-use: use instead of link-warning
68710         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
68711         * modules/unistd (Depends-on, Makefile.am): Likewise.
68712         * modules/arpa_inet (Depends-on): Replace link-warning with
68713         warn-on-use.
68714         (Makefile.am): Update rules accordingly.
68715         * modules/ctype (Depends-on, Makefile.am): Likewise.
68716         * modules/dirent (Depends-on, Makefile.am): Likewise.
68717         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
68718         * modules/inttypes (Depends-on, Makefile.am): Likewise.
68719         * modules/langinfo (Depends-on, Makefile.am): Likewise.
68720         * modules/locale (Depends-on, Makefile.am): Likewise.
68721         * modules/math (Depends-on, Makefile.am): Likewise.
68722         * modules/search (Depends-on, Makefile.am): Likewise.
68723         * modules/signal (Depends-on, Makefile.am): Likewise.
68724         * modules/spawn (Depends-on, Makefile.am): Likewise.
68725         * modules/stdlib (Depends-on, Makefile.am): Likewise.
68726         * modules/string (Depends-on, Makefile.am): Likewise.
68727         * modules/strings (Depends-on, Makefile.am): Likewise.
68728         * modules/sys_file (Depends-on, Makefile.am): Likewise.
68729         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
68730         * modules/sys_select (Depends-on, Makefile.am): Likewise.
68731         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
68732         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
68733         * modules/sys_times (Depends-on, Makefile.am): Likewise.
68734         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
68735         * modules/wchar (Depends-on, Makefile.am): Likewise.
68736         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
68737         should be poisoned.
68738         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
68739         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
68740         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
68741         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68742         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68743         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68744         * m4/math_h.m4 (gl_MATH_H): Likewise.
68745         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68746         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68747         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
68748         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68749         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68750         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68751         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
68752         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
68753         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
68754         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68755         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68757         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68758         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
68759         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68760         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68761         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
68762         GL_LINK_WARNING.
68763         * lib/ctype.in.h: Likewise.
68764         * lib/dirent.in.h: Likewise.
68765         * lib/fcntl.in.h: Likewise.
68766         * lib/inttypes.in.h: Likewise.
68767         * lib/langinfo.in.h: Likewise.
68768         * lib/locale.in.h: Likewise.
68769         * lib/math.in.h: Likewise.
68770         * lib/search.in.h: Likewise.
68771         * lib/signal.in.h: Likewise.
68772         * lib/spawn.in.h: Likewise.
68773         * lib/stdio.in.h: Likewise.
68774         * lib/stdlib.in.h: Likewise.
68775         * lib/string.in.h: Likewise.
68776         * lib/strings.in.h: Likewise.
68777         * lib/sys_file.in.h: Likewise.
68778         * lib/sys_ioctl.in.h: Likewise.
68779         * lib/sys_select.in.h: Likewise.
68780         * lib/sys_socket.in.h: Likewise.
68781         * lib/sys_stat.in.h: Likewise.
68782         * lib/sys_times.in.h: Likewise.
68783         * lib/sys_utsname.in.h: Likewise.
68784         * lib/unistd.in.h: Likewise.
68785         * lib/wchar.in.h: Likewise.
68787 2010-01-20  Bruno Haible  <bruno@clisp.org>
68789         Avoid duplicate -lm.
68790         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
68791         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
68792         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
68793         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
68794         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
68795         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
68796         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
68797         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
68798         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
68799         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
68800         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
68801         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
68802         Reported by Paolo Bonzini.
68804 2010-01-19  Bruno Haible  <bruno@clisp.org>
68806         langinfo, nl_langinfo: Relicense under LGPLv2+.
68807         * modules/langinfo (License): Change to LGPLv2+.
68808         * modules/nl_langinfo (License): Likewise.
68809         Patch by David Lutterkort <lutter@redhat.com>.
68811 2010-01-19  Bruno Haible  <bruno@clisp.org>
68813         Avoid compilation error with cc on OSF/1 5.1.
68814         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
68815         statement, not before.
68816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68818 2010-01-18  Bruno Haible  <bruno@clisp.org>
68820         Avoid a link error due to the __printf__ symbol.
68821         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
68822         and 2.6.x.
68823         (__format__, __printf__): Remove definitions.
68824         * lib/argp-fmtstream.h: Likewise.
68825         * lib/argp.h: Likewise.
68826         * lib/error.h: Likewise.
68827         * lib/vasnprintf.h: Likewise.
68828         * lib/xprintf.h: Likewise.
68829         * lib/xvasprintf.h: Likewise.
68830         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68832 2010-01-18  Bruno Haible  <bruno@clisp.org>
68834         Tests for module 'tanl'.
68835         * modules/tanl-tests: New file.
68836         * tests/test-tanl.c: New file.
68838         Tests for module 'sqrtl'.
68839         * modules/sqrtl-tests: New file.
68840         * tests/test-sqrtl.c: New file.
68842         Tests for module 'sinl'.
68843         * modules/sinl-tests: New file.
68844         * tests/test-sinl.c: New file.
68846         Tests for module 'logl'.
68847         * modules/logl-tests: New file.
68848         * tests/test-logl.c: New file.
68850         Tests for module 'expl'.
68851         * modules/expl-tests: New file.
68852         * tests/test-expl.c: New file.
68854         Tests for module 'cosl'.
68855         * modules/cosl-tests: New file.
68856         * tests/test-cosl.c: New file.
68858         Tests for module 'atanl'.
68859         * modules/atanl-tests: New file.
68860         * tests/test-atanl.c: New file.
68862         Tests for module 'asinl'.
68863         * modules/asinl-tests: New file.
68864         * tests/test-asinl.c: New file.
68866         Tests for module 'acosl'.
68867         * modules/acosl-tests: New file.
68868         * tests/test-acosl.c: New file.
68870         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68871         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
68872         tanl): Use the standard gnulib idiom.
68873         * lib/cosl.c: Don't include trigl.c and sincosl.c.
68874         * lib/sinl.c: Likewise.
68875         * lib/tanl.c: Don't include trigl.c.
68876         (kernel_tanl): Make static.
68877         * lib/sincosl.c: Include trigl.h first.
68878         * lib/trigl.c: Likewise.
68879         * m4/acosl.m4: New file.
68880         * m4/asinl.m4: New file.
68881         * m4/atanl.m4: New file.
68882         * m4/cosl.m4: New file.
68883         * m4/expl.m4: New file.
68884         * m4/logl.m4: New file.
68885         * m4/sinl.m4: New file.
68886         * m4/sqrtl.m4: New file.
68887         * m4/tanl.m4: New file.
68888         * m4/mathl.m4: Remove file.
68889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
68890         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
68891         Don't initialize GNULIB_MATHL.
68892         * modules/acosl: New file.
68893         * modules/asinl: New file.
68894         * modules/atanl: New file.
68895         * modules/cosl: New file.
68896         * modules/expl: New file.
68897         * modules/logl: New file.
68898         * modules/sinl: New file.
68899         * modules/sqrtl: New file.
68900         * modules/tanl: New file.
68901         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
68902         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
68903         substitute GNULIB_MATHL.
68904         * modules/mathl: Rewritten.
68905         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
68906         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
68907         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
68908         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
68909         * doc/posix-functions/expl.texi: Mention the 'expl' module.
68910         * doc/posix-functions/logl.texi: Mention the 'logl' module.
68911         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
68912         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
68913         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
68915 2010-01-18  Bruno Haible  <bruno@clisp.org>
68917         sqrt: Make gl_FUNC_SQRT requirable.
68918         * m4/sqrt.m4: New file.
68919         * modules/sqrt (Files): Add it.
68920         (configure.ac): Invoke gl_FUNC_SQRT.
68922 2010-01-18  Bruno Haible  <bruno@clisp.org>
68924         New modules for common <math.h> functions.
68925         * m4/mathfunc.m4: New file.
68926         * modules/acos: New file.
68927         * modules/asin: New file.
68928         * modules/atan: New file.
68929         * modules/atan2: New file.
68930         * modules/cbrt: New file.
68931         * modules/copysign: New file.
68932         * modules/cos: New file.
68933         * modules/cosh: New file.
68934         * modules/erf: New file.
68935         * modules/erfc: New file.
68936         * modules/exp: New file.
68937         * modules/fabs: New file.
68938         * modules/fmod: New file.
68939         * modules/hypot: New file.
68940         * modules/j0: New file.
68941         * modules/j1: New file.
68942         * modules/jn: New file.
68943         * modules/ldexp: New file.
68944         * modules/lgamma: New file.
68945         * modules/log: New file.
68946         * modules/log10: New file.
68947         * modules/log1p: New file.
68948         * modules/logb: New file.
68949         * modules/modf: New file.
68950         * modules/nextafter: New file.
68951         * modules/pow: New file.
68952         * modules/remainder: New file.
68953         * modules/rint: New file.
68954         * modules/sin: New file.
68955         * modules/sinh: New file.
68956         * modules/sqrt: New file.
68957         * modules/tan: New file.
68958         * modules/tanh: New file.
68959         * modules/y0: New file.
68960         * modules/y1: New file.
68961         * modules/yn: New file.
68962         * doc/posix-functions/acos.texi: Mention the 'acos' module.
68963         * doc/posix-functions/asin.texi: Mention the 'asin' module.
68964         * doc/posix-functions/atan.texi: Mention the 'atan' module.
68965         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
68966         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
68967         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
68968         * doc/posix-functions/cos.texi: Mention the 'cos' module.
68969         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
68970         * doc/posix-functions/erf.texi: Mention the 'erf' module.
68971         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
68972         * doc/posix-functions/exp.texi: Mention the 'exp' module.
68973         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
68974         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
68975         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
68976         * doc/posix-functions/j0.texi: Mention the 'j0' module.
68977         * doc/posix-functions/j1.texi: Mention the 'j1' module.
68978         * doc/posix-functions/jn.texi: Mention the 'jn' module.
68979         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
68980         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
68981         * doc/posix-functions/log.texi: Mention the 'log' module.
68982         * doc/posix-functions/log10.texi: Mention the 'log10' module.
68983         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
68984         * doc/posix-functions/logb.texi: Mention the 'logb' module.
68985         * doc/posix-functions/modf.texi: Mention the 'modf' module.
68986         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
68987         * doc/posix-functions/pow.texi: Mention the 'pow' module.
68988         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
68989         * doc/posix-functions/rint.texi: Mention the 'rint' module.
68990         * doc/posix-functions/sin.texi: Mention the 'sin' module.
68991         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
68992         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
68993         * doc/posix-functions/tan.texi: Mention the 'tan' module.
68994         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
68995         * doc/posix-functions/y0.texi: Mention the 'y0' module.
68996         * doc/posix-functions/y1.texi: Mention the 'y1' module.
68997         * doc/posix-functions/yn.texi: Mention the 'yn' module.
68999 2010-01-18  Jim Meyering  <meyering@redhat.com>
69001         ignore-value: relax license to LGPLv2+
69002         * modules/ignore-value (License): Relax to LGPLv2+.
69004         getdate: don't leak when TZ contains two or more '"'s
69005         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
69006         double quote in TZ after the first one.
69008         readtokens: do not leak internal token_lengths buffer
69009         * lib/readtokens.c (readtokens): Free the local, lengths,
69010         when the supplied "token_lengths" parameter is NULL.
69012 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69014         Fix a couple of missing LIBTHREAD link failures on AIX.
69015         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
69016         $(LIBTHREAD).
69017         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
69019         Link test-poll against INET_PTON_LIB.
69020         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
69021         for inet_pton on Solaris 10.
69023 2010-01-17  Bruno Haible  <bruno@clisp.org>
69025         unistdio/*-sprintf: Fix typo in module description.
69026         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
69027         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
69028         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
69029         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
69030         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
69031         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
69032         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
69033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69035 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69037         gnulib-tool: fix filelist for AIX, HP-UX ksh.
69038         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
69039         variables in shell case patterns, for AIX and HP-UX ksh.
69041         Split large sed scripts, for HP-UX sed.
69042         * modules/stdio: Split sed scripts around 50 sed commands,
69043         to avoid HP-UX limit of 99 commands, in the near future.
69044         * modules/string: Likewise.
69045         * modules/unistd: Likewise.
69047         gnulib-tool: avoid writing in the current directory.
69048         * gnulib-tool (func_emit_lib_Makefile_am)
69049         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
69050         not in the current directory, so concurrent gnulib-tool
69051         instances do not interfere.
69053 2010-01-16  Jim Meyering  <meyering@redhat.com>
69055         doc: update users.txt
69056         * users.txt: Add grep.
69057         (diffutils, gzip): Update URLs.
69059 2010-01-12  Bruno Haible  <bruno@clisp.org>
69061         posix_spawn: Avoid test failure on Cygwin.
69062         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
69063         characters.
69064         Reported by Simon Josefsson.
69066 2010-01-12  Bruno Haible  <bruno@clisp.org>
69068         * tests/test-cond.c (main): When skipping the test, show the reason.
69070 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69072         * lib/striconv.c (str_cd_iconv): Avoid if before free.
69074 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69076         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
69077         VC_LIST_ALWAYS_EXCLUDE_REGEX.
69079 2010-01-12  Eric Blake  <ebb9@byu.net>
69081         build: guarantee AS_VAR_IF
69082         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
69083         (gl_AS_VAR_IF): Move...
69084         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
69085         Reported by Simon Josefsson.
69087 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69089         * lib/stdio.in.h: Fix typo.
69091 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69093         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
69094         libgpg-error.
69096 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69098         * tests/test-xalloc-die.sh: Use $EXEEXT.
69100 2010-01-12  Simon Josefsson  <simon@josefsson.org>
69101             Bruno Haible  <bruno@clisp.org>
69103         getlogin, getlogin_r: Avoid test failure.
69104         * tests/test-getlogin.c: Include <stdio.h>.
69105         (main): Skip the test when the function fails because stdin is not a
69106         tty.
69107         * tests/test-getlogin_r.c: Include <stdio.h>.
69108         (main): Skip the test when the function fails because stdin is not a
69109         tty.
69111 2010-01-11  Eric Blake  <ebb9@byu.net>
69113         tests: avoid more large file warnings
69114         * tests/test-fflush.c: Avoid warning about ftell use.
69115         * tests/test-fseek.c: Avoid warning about fseek use.
69117 2010-01-10  Bruno Haible  <bruno@clisp.org>
69119         nproc: Work better on Linux when /proc and /sys are not mounted.
69120         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
69121         as lower bound when, on glibc/Linux systems,
69122         sysconf (_SC_NPROCESSORS_CONF) returns 1.
69123         Suggested by Pádraig Brady <P@draigbrady.com>.
69124         Reported by Dmitry V. Levin <ldv@altlinux.org>.
69126         nproc: Refactor.
69127         * lib/nproc.c (num_processors_via_affinity_mask): New function,
69128         extracted from num_processors.
69129         (num_processors): Call it.
69131 2010-01-11  Jim Meyering  <meyering@redhat.com>
69133         utimecmp: avoid new warning from upcoming gcc-4.5.0
69134         * lib/utimecmp.c (BILLION): Define using #define rather than an
69135         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
69137 2010-01-11  Eric Blake  <ebb9@byu.net>
69139         math: add portability warnings for classification macros
69140         * modules/math (Depends-on): Add warn-on-use.
69141         (Makefile.am): Provide new substitutions.
69142         * m4/math_h.m4 (gl_MATH_H): Require inline.
69143         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
69144         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
69145         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
69146         implement warnings.
69148         unistd: warn on use of environ without module
69149         * modules/unistd (Depends-on): Add warn-on-use.
69150         (Makefile.am): Provide new substitutions.
69151         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
69152         * lib/unistd.in.h (environ): Wrap with a warning helper function.
69154         stdio: warn on suspicious uses
69155         * modules/stdio (Depends-on): Add warn-on-use.
69156         (Makefile.am): Provide new substitutions.
69157         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
69158         fseeko.
69159         * lib/stdio.in.h (gets): Always warn on use.
69160         (fseek, ftell): Adjust when warnings are issued, and honor
69161         _GL_NO_LARGE_FILES as a way to silence the warning.
69162         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
69163         any warning about large file offsets.
69164         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
69165         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
69166         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
69167         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
69168         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
69169         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
69170         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
69171         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
69173         warn-on-use: new module
69174         * modules/warn-on-use: New file.
69175         * build-aux/warn-on-use.h: Likewise.
69176         * m4/warn-on-use.m4: Likewise.
69177         * MODULES.html.sh (Support for building): Mention it.
69179 2010-01-10  Bruno Haible  <bruno@clisp.org>
69181         Tests for module 'unistr/u32-strdup'.
69182         * modules/unistr/u32-strdup-tests: New file.
69183         * tests/unistr/test-u32-strdup.c: New file.
69185         Tests for module 'unistr/u16-strdup'.
69186         * modules/unistr/u16-strdup-tests: New file.
69187         * tests/unistr/test-u16-strdup.c: New file.
69189         Tests for module 'unistr/u8-strdup'.
69190         * modules/unistr/u8-strdup-tests: New file.
69191         * tests/unistr/test-u8-strdup.c: New file.
69192         * tests/unistr/test-strdup.h: New file.
69194         Tests for module 'unistr/u32-strncmp'.
69195         * modules/unistr/u32-strncmp-tests: New file.
69196         * tests/unistr/test-u32-strncmp.c: New file.
69198         Tests for module 'unistr/u16-strncmp'.
69199         * modules/unistr/u16-strncmp-tests: New file.
69200         * tests/unistr/test-u16-strncmp.c: New file.
69202         Tests for module 'unistr/u8-strncmp'.
69203         * modules/unistr/u8-strncmp-tests: New file.
69204         * tests/unistr/test-u8-strncmp.c: New file.
69205         * tests/unistr/test-strncmp.h: New file.
69207         Tests for module 'unistr/u32-strcoll'.
69208         * modules/unistr/u32-strcoll-tests: New file.
69209         * tests/unistr/test-u32-strcoll.c: New file.
69211         Tests for module 'unistr/u16-strcoll'.
69212         * modules/unistr/u16-strcoll-tests: New file.
69213         * tests/unistr/test-u16-strcoll.c: New file.
69215         Tests for module 'unistr/u8-strcoll'.
69216         * modules/unistr/u8-strcoll-tests: New file.
69217         * tests/unistr/test-u8-strcoll.c: New file.
69219         Tests for module 'unistr/u32-strcmp'.
69220         * modules/unistr/u32-strcmp-tests: New file.
69221         * tests/unistr/test-u32-strcmp.c: New file.
69222         * tests/unistr/test-u32-strcmp.h: New file.
69224         Tests for module 'unistr/u16-strcmp'.
69225         * modules/unistr/u16-strcmp-tests: New file.
69226         * tests/unistr/test-u16-strcmp.c: New file.
69227         * tests/unistr/test-u16-strcmp.h: New file.
69229         Tests for module 'unistr/u8-strcmp'.
69230         * modules/unistr/u8-strcmp-tests: New file.
69231         * tests/unistr/test-u8-strcmp.c: New file.
69232         * tests/unistr/test-u8-strcmp.h: New file.
69233         * tests/unistr/test-strcmp.h: New file.
69235         Tests for module 'unistr/u32-strncat'.
69236         * modules/unistr/u32-strncat-tests: New file.
69237         * tests/unistr/test-u32-strncat.c: New file.
69239         Tests for module 'unistr/u16-strncat'.
69240         * modules/unistr/u16-strncat-tests: New file.
69241         * tests/unistr/test-u16-strncat.c: New file.
69243         Tests for module 'unistr/u8-strncat'.
69244         * modules/unistr/u8-strncat-tests: New file.
69245         * tests/unistr/test-u8-strncat.c: New file.
69246         * tests/unistr/test-strncat.h: New file.
69248         Tests for module 'unistr/u32-strcat'.
69249         * modules/unistr/u32-strcat-tests: New file.
69250         * tests/unistr/test-u32-strcat.c: New file.
69252         Tests for module 'unistr/u16-strcat'.
69253         * modules/unistr/u16-strcat-tests: New file.
69254         * tests/unistr/test-u16-strcat.c: New file.
69256         Tests for module 'unistr/u8-strcat'.
69257         * modules/unistr/u8-strcat-tests: New file.
69258         * tests/unistr/test-u8-strcat.c: New file.
69259         * tests/unistr/test-strcat.h: New file.
69261         Tests for module 'unistr/u32-stpncpy'.
69262         * modules/unistr/u32-stpncpy-tests: New file.
69263         * tests/unistr/test-u32-stpncpy.c: New file.
69265         Tests for module 'unistr/u16-stpncpy'.
69266         * modules/unistr/u16-stpncpy-tests: New file.
69267         * tests/unistr/test-u16-stpncpy.c: New file.
69269         Tests for module 'unistr/u8-stpncpy'.
69270         * modules/unistr/u8-stpncpy-tests: New file.
69271         * tests/unistr/test-u8-stpncpy.c: New file.
69272         * tests/unistr/test-stpncpy.h: New file.
69274         Tests for module 'unistr/u32-strncpy'.
69275         * modules/unistr/u32-strncpy-tests: New file.
69276         * tests/unistr/test-u32-strncpy.c: New file.
69278         Tests for module 'unistr/u16-strncpy'.
69279         * modules/unistr/u16-strncpy-tests: New file.
69280         * tests/unistr/test-u16-strncpy.c: New file.
69282         Tests for module 'unistr/u8-strncpy'.
69283         * modules/unistr/u8-strncpy-tests: New file.
69284         * tests/unistr/test-u8-strncpy.c: New file.
69285         * tests/unistr/test-strncpy.h: New file.
69287         Tests for module 'unistr/u32-stpcpy'.
69288         * modules/unistr/u32-stpcpy-tests: New file.
69289         * tests/unistr/test-u32-stpcpy.c: New file.
69291         Tests for module 'unistr/u16-stpcpy'.
69292         * modules/unistr/u16-stpcpy-tests: New file.
69293         * tests/unistr/test-u16-stpcpy.c: New file.
69295         Tests for module 'unistr/u8-stpcpy'.
69296         * modules/unistr/u8-stpcpy-tests: New file.
69297         * tests/unistr/test-u8-stpcpy.c: New file.
69298         * tests/unistr/test-stpcpy.h: New file.
69300         Tests for module 'unistr/u32-strcpy'.
69301         * modules/unistr/u32-strcpy-tests: New file.
69302         * tests/unistr/test-u32-strcpy.c: New file.
69304         Tests for module 'unistr/u16-strcpy'.
69305         * modules/unistr/u16-strcpy-tests: New file.
69306         * tests/unistr/test-u16-strcpy.c: New file.
69308         Tests for module 'unistr/u8-strcpy'.
69309         * modules/unistr/u8-strcpy-tests: New file.
69310         * tests/unistr/test-u8-strcpy.c: New file.
69311         * tests/unistr/test-strcpy.h: New file.
69313         Tests for module 'unistr/u32-strnlen'.
69314         * modules/unistr/u32-strnlen-tests: New file.
69315         * tests/unistr/test-u32-strnlen.c: New file.
69317         Tests for module 'unistr/u16-strnlen'.
69318         * modules/unistr/u16-strnlen-tests: New file.
69319         * tests/unistr/test-u16-strnlen.c: New file.
69321         Tests for module 'unistr/u8-strnlen'.
69322         * modules/unistr/u8-strnlen-tests: New file.
69323         * tests/unistr/test-u8-strnlen.c: New file.
69324         * tests/unistr/test-strnlen.h: New file.
69326         Tests for module 'unistr/u32-strlen'.
69327         * modules/unistr/u32-strlen-tests: New file.
69328         * tests/unistr/test-u32-strlen.c: New file.
69330         Tests for module 'unistr/u16-strlen'.
69331         * modules/unistr/u16-strlen-tests: New file.
69332         * tests/unistr/test-u16-strlen.c: New file.
69334         Tests for module 'unistr/u8-strlen'.
69335         * modules/unistr/u8-strlen-tests: New file.
69336         * tests/unistr/test-u8-strlen.c: New file.
69338         Tests for module 'unistr/u32-prev'.
69339         * modules/unistr/u32-prev-tests: New file.
69340         * tests/unistr/test-u32-prev.c: New file.
69342         Tests for module 'unistr/u16-prev'.
69343         * modules/unistr/u16-prev-tests: New file.
69344         * tests/unistr/test-u16-prev.c: New file.
69346         Tests for module 'unistr/u8-prev'.
69347         * modules/unistr/u8-prev-tests: New file.
69348         * tests/unistr/test-u8-prev.c: New file.
69350         Tests for module 'unistr/u32-next'.
69351         * modules/unistr/u32-next-tests: New file.
69352         * tests/unistr/test-u32-next.c: New file.
69354         Tests for module 'unistr/u16-next'.
69355         * modules/unistr/u16-next-tests: New file.
69356         * tests/unistr/test-u16-next.c: New file.
69358         Tests for module 'unistr/u8-next'.
69359         * modules/unistr/u8-next-tests: New file.
69360         * tests/unistr/test-u8-next.c: New file.
69362         Tests for module 'unistr/u32-strmbtouc'.
69363         * modules/unistr/u32-strmbtouc-tests: New file.
69364         * tests/unistr/test-u32-strmbtouc.c: New file.
69366         Tests for module 'unistr/u16-strmbtouc'.
69367         * modules/unistr/u16-strmbtouc-tests: New file.
69368         * tests/unistr/test-u16-strmbtouc.c: New file.
69370         Tests for module 'unistr/u8-strmbtouc'.
69371         * modules/unistr/u8-strmbtouc-tests: New file.
69372         * tests/unistr/test-u8-strmbtouc.c: New file.
69374         Tests for module 'unistr/u32-strmblen'.
69375         * modules/unistr/u32-strmblen-tests: New file.
69376         * tests/unistr/test-u32-strmblen.c: New file.
69378         Tests for module 'unistr/u16-strmblen'.
69379         * modules/unistr/u16-strmblen-tests: New file.
69380         * tests/unistr/test-u16-strmblen.c: New file.
69382         Tests for module 'unistr/u8-strmblen'.
69383         * modules/unistr/u8-strmblen-tests: New file.
69384         * tests/unistr/test-u8-strmblen.c: New file.
69386         Tests for module 'unistr/u32-cpy-alloc'.
69387         * modules/unistr/u32-cpy-alloc-tests: New file.
69388         * tests/unistr/test-u32-cpy-alloc.c: New file.
69390         Tests for module 'unistr/u16-cpy-alloc'.
69391         * modules/unistr/u16-cpy-alloc-tests: New file.
69392         * tests/unistr/test-u16-cpy-alloc.c: New file.
69394         Tests for module 'unistr/u8-cpy-alloc'.
69395         * modules/unistr/u8-cpy-alloc-tests: New file.
69396         * tests/unistr/test-u8-cpy-alloc.c: New file.
69397         * tests/unistr/test-cpy-alloc.h: New file.
69399         Tests for module 'unistr/u32-mbsnlen'.
69400         * modules/unistr/u32-mbsnlen-tests: New file.
69401         * tests/unistr/test-u32-mbsnlen.c: New file.
69403         Tests for module 'unistr/u16-mbsnlen'.
69404         * modules/unistr/u16-mbsnlen-tests: New file.
69405         * tests/unistr/test-u16-mbsnlen.c: New file.
69407         Tests for module 'unistr/u8-mbsnlen'.
69408         * modules/unistr/u8-mbsnlen-tests: New file.
69409         * tests/unistr/test-u8-mbsnlen.c: New file.
69411         Tests for module 'unistr/u32-chr'.
69412         * modules/unistr/u32-chr-tests: New file.
69413         * tests/unistr/test-u32-chr.c: New file.
69415         Tests for module 'unistr/u16-chr'.
69416         * modules/unistr/u16-chr-tests: New file.
69417         * tests/unistr/test-u16-chr.c: New file.
69419         Tests for module 'unistr/u8-chr'.
69420         * modules/unistr/u8-chr-tests: New file.
69421         * tests/unistr/test-u8-chr.c: New file.
69422         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
69424         Tests for module 'unistr/u32-cmp2'.
69425         * modules/unistr/u32-cmp2-tests: New file.
69426         * tests/unistr/test-u32-cmp2.c: New file.
69428         Tests for module 'unistr/u16-cmp2'.
69429         * modules/unistr/u16-cmp2-tests: New file.
69430         * tests/unistr/test-u16-cmp2.c: New file.
69432         Tests for module 'unistr/u8-cmp2'.
69433         * modules/unistr/u8-cmp2-tests: New file.
69434         * tests/unistr/test-u8-cmp2.c: New file.
69435         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
69437         Tests for module 'unistr/u32-cmp'.
69438         * modules/unistr/u32-cmp-tests: New file.
69439         * tests/unistr/test-u32-cmp.c: New file.
69441         Tests for module 'unistr/u16-cmp'.
69442         * modules/unistr/u16-cmp-tests: New file.
69443         * tests/unistr/test-u16-cmp.c: New file.
69445         Tests for module 'unistr/u8-cmp'.
69446         * modules/unistr/u8-cmp-tests: New file.
69447         * tests/unistr/test-u8-cmp.c: New file.
69448         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
69450         Tests for module 'unistr/u32-set'.
69451         * modules/unistr/u32-set-tests: New file.
69452         * tests/unistr/test-u32-set.c: New file.
69454         Tests for module 'unistr/u16-set'.
69455         * modules/unistr/u16-set-tests: New file.
69456         * tests/unistr/test-u16-set.c: New file.
69458         Tests for module 'unistr/u8-set'.
69459         * modules/unistr/u8-set-tests: New file.
69460         * tests/unistr/test-u8-set.c: New file.
69461         * tests/unistr/test-set.h: New file.
69463         Tests for module 'unistr/u32-move'.
69464         * modules/unistr/u32-move-tests: New file.
69465         * tests/unistr/test-u32-move.c: New file.
69467         Tests for module 'unistr/u16-move'.
69468         * modules/unistr/u16-move-tests: New file.
69469         * tests/unistr/test-u16-move.c: New file.
69471         Tests for module 'unistr/u8-move'.
69472         * modules/unistr/u8-move-tests: New file.
69473         * tests/unistr/test-u8-move.c: New file.
69474         * tests/unistr/test-move.h: New file.
69476         Tests for module 'unistr/u32-cpy'.
69477         * modules/unistr/u32-cpy-tests: New file.
69478         * tests/unistr/test-u32-cpy.c: New file.
69480         Tests for module 'unistr/u16-cpy'.
69481         * modules/unistr/u16-cpy-tests: New file.
69482         * tests/unistr/test-u16-cpy.c: New file.
69484         Tests for module 'unistr/u8-cpy'.
69485         * modules/unistr/u8-cpy-tests: New file.
69486         * tests/unistr/test-u8-cpy.c: New file.
69487         * tests/unistr/test-cpy.h: New file.
69489 2010-01-09  Bruno Haible  <bruno@clisp.org>
69491         Tests for module 'unistr/u32-uctomb'.
69492         * modules/unistr/u32-uctomb-tests: New file.
69493         * tests/unistr/test-u32-uctomb.c: New file.
69495         Tests for module 'unistr/u16-uctomb'.
69496         * modules/unistr/u16-uctomb-tests: New file.
69497         * tests/unistr/test-u16-uctomb.c: New file.
69499         Tests for module 'unistr/u8-uctomb'.
69500         * modules/unistr/u8-uctomb-tests: New file.
69501         * tests/unistr/test-u8-uctomb.c: New file.
69503         Tests for module 'unistr/u32-mbtoucr'.
69504         * modules/unistr/u32-mbtoucr-tests: New file.
69505         * tests/unistr/test-u32-mbtoucr.c: New file.
69507         Tests for module 'unistr/u16-mbtoucr'.
69508         * modules/unistr/u16-mbtoucr-tests: New file.
69509         * tests/unistr/test-u16-mbtoucr.c: New file.
69511         Tests for module 'unistr/u8-mbtoucr'.
69512         * modules/unistr/u8-mbtoucr-tests: New file.
69513         * tests/unistr/test-u8-mbtoucr.c: New file.
69515         Tests for module 'unistr/u32-mbtouc'.
69516         * modules/unistr/u32-mbtouc-tests: New file.
69517         * tests/unistr/test-u32-mbtouc.c: New file.
69519         Tests for module 'unistr/u16-mbtouc'.
69520         * modules/unistr/u16-mbtouc-tests: New file.
69521         * tests/unistr/test-u16-mbtouc.c: New file.
69523         Tests for module 'unistr/u8-mbtouc'.
69524         * modules/unistr/u8-mbtouc-tests: New file.
69525         * tests/unistr/test-u8-mbtouc.c: New file.
69527         Tests for module 'unistr/u32-mbtouc-unsafe'.
69528         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
69529         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
69530         * tests/unistr/test-u32-mbtouc.h: New file.
69532         Tests for module 'unistr/u16-mbtouc-unsafe'.
69533         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
69534         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
69535         * tests/unistr/test-u16-mbtouc.h: New file.
69537         Tests for module 'unistr/u8-mbtouc-unsafe'.
69538         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
69539         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
69540         * tests/unistr/test-u8-mbtouc.h: New file.
69542         Tests for module 'unistr/u32-mblen'.
69543         * modules/unistr/u32-mblen-tests: New file.
69544         * tests/unistr/test-u32-mblen.c: New file.
69546         Tests for module 'unistr/u16-mblen'.
69547         * modules/unistr/u16-mblen-tests: New file.
69548         * tests/unistr/test-u16-mblen.c: New file.
69550         Tests for module 'unistr/u8-mblen'.
69551         * modules/unistr/u8-mblen-tests: New file.
69552         * tests/unistr/test-u8-mblen.c: New file.
69554         Tests for module 'unistr/u32-to-u16'.
69555         * modules/unistr/u32-to-u16-tests: New file.
69556         * tests/unistr/test-u32-to-u16.c: New file.
69558         Tests for module 'unistr/u32-to-u8'.
69559         * modules/unistr/u32-to-u8-tests: New file.
69560         * tests/unistr/test-u32-to-u8.c: New file.
69562         Tests for module 'unistr/u16-to-u32'.
69563         * modules/unistr/u16-to-u32-tests: New file.
69564         * tests/unistr/test-u16-to-u32.c: New file.
69566         Tests for module 'unistr/u16-to-u8'.
69567         * modules/unistr/u16-to-u8-tests: New file.
69568         * tests/unistr/test-u16-to-u8.c: New file.
69570         Tests for module 'unistr/u8-to-u32'.
69571         * modules/unistr/u8-to-u32-tests: New file.
69572         * tests/unistr/test-u8-to-u32.c: New file.
69574         Tests for module 'unistr/u8-to-u16'.
69575         * modules/unistr/u8-to-u16-tests: New file.
69576         * tests/unistr/test-u8-to-u16.c: New file.
69578         Tests for module 'unistr/u32-check'.
69579         * modules/unistr/u32-check-tests: New file.
69580         * tests/unistr/test-u32-check.c: New file.
69582         Tests for module 'unistr/u16-check'.
69583         * modules/unistr/u16-check-tests: New file.
69584         * tests/unistr/test-u16-check.c: New file.
69586         Tests for module 'unistr/u8-check'.
69587         * modules/unistr/u8-check-tests: New file.
69588         * tests/unistr/test-u8-check.c: New file.
69590         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
69591         (category_equals): New function.
69592         (main): Add more tests.
69593         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
69595         * tests/unictype/test-bidi_byname.c (main): Add more tests.
69597 2010-01-10  Bruno Haible  <bruno@clisp.org>
69599         unistr/u*-strcoll: Try harder to distinguish different strings.
69600         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
69601         compare s1 and s2 to see if they are different.
69603 2010-01-10  Bruno Haible  <bruno@clisp.org>
69605         unistr/u*-stpncpy: Fix the return value.
69606         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
69607         description of the return value consistent with stpncpy in glibc.
69608         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
69609         written non-NUL unit.
69611 2010-01-10  Bruno Haible  <bruno@clisp.org>
69613         unistr/u*-next: Add missing dependencies.
69614         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
69615         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
69616         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
69618 2010-01-10  Bruno Haible  <bruno@clisp.org>
69620         unistr/u8-mbsnlen: Fix return value for incomplete character.
69621         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
69622         u8_mblen.
69623         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
69624         Remove unistr/u8-mblen.
69625         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
69626         u16_mblen.
69627         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
69628         Remove unistr/u16-mblen.
69630 2010-01-10  Bruno Haible  <bruno@clisp.org>
69632         wchar: Fix compilation error when <wchar.h> is used from coreutils.
69633         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
69634         Reported by Brian Gough <bjg@gnu.org> and
69635         Chris Clayton <chris2553@googlemail.com> via
69636         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
69638 2010-01-09  Bruno Haible  <bruno@clisp.org>
69640         unistr/u16-to-u32: Reject invalid input.
69641         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
69642         u16_mbtouc.
69643         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
69644         Remove unistr/u16-mbtouc.
69646         unistr/u16-to-u8: Reject invalid input.
69647         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
69648         u16_mbtouc.
69649         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
69650         Remove unistr/u16-mbtouc.
69652         unistr/u8-to-u32: Reject invalid input.
69653         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
69654         u8_mbtouc.
69655         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
69656         Remove unistr/u8-mbtouc.
69658         unistr/u8-to-u16: Reject invalid input.
69659         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
69660         u8_mbtouc.
69661         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
69662         Remove unistr/u8-mbtouc.
69664 2010-01-09  Bruno Haible  <bruno@clisp.org>
69666         Tests for module 'getlogin'.
69667         * modules/getlogin-tests: New file.
69668         * tests/test-getlogin.c: New file.
69670         New module 'getlogin'.
69671         * lib/unistd.in.h (getlogin): New declaration.
69672         * lib/getlogin.c: New file.
69673         * m4/getlogin.m4: New file.
69674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
69675         HAVE_GETLOGIN.
69676         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
69677         HAVE_GETLOGIN.
69678         * modules/getlogin: New file.
69679         * doc/posix-functions/getlogin.texi: Mention the new module.
69680         Reported by John W. Eaton <jwe@gnu.org>.
69682 2010-01-09  Bruno Haible  <bruno@clisp.org>
69684         getlogin_r: Support for native Windows.
69685         * lib/getlogin_r.c: Include <windows.h>
69686         (getlogin_r): Implement for native Windows.
69687         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
69688         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
69689         via John W. Eaton <jwe@gnu.org>.
69691 2010-01-09  Bruno Haible  <bruno@clisp.org>
69693         getlogin_r: Small fixes.
69694         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
69695         succeeds.
69696         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
69697         before testing whether getlogin_r is declared. No need to set
69698         HAVE_DECL_GETLOGIN_R to 1.
69699         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
69701 2010-01-09  Bruno Haible  <bruno@clisp.org>
69703         * lib/unistd.in.h (getlogin_r): Add comment.
69705 2010-01-09  Bruno Haible  <bruno@clisp.org>
69707         Tests for module 'getlogin_r'.
69708         * modules/getlogin_r-tests: New file.
69709         * tests/test-getlogin_r.c: New file.
69711 2010-01-09  Jim Meyering  <meyering@redhat.com>
69713         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
69714         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
69715         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
69717 2010-01-08  Simon Josefsson  <simon@josefsson.org>
69719         * lib/dup2.c (rpl_dup2): Improve comment.
69721 2010-01-08  Eric Blake  <ebb9@byu.net>
69723         maint.mk: allow packages to add makefile @@ exceptions
69724         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
69725         (sc_makefile_check): Rename...
69726         (sc_makefile_at_at_check): ...to this, and use hook.
69728         dup2: work around mingw bug
69729         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
69730         Reported by Simon Josefsson.
69732 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
69734         glob: Fix C++ compilation.
69735         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
69736         C++.
69738 2010-01-07  Bruno Haible  <bruno@clisp.org>
69740         Fix indentation of wctype.in.h, broken since 2007-01-06.
69741         * lib/wctype.in.h: Fix indentation of preprocessor directives.
69743 2010-01-07  Bruno Haible  <bruno@clisp.org>
69745         mbslen: Avoid collision with system function.
69746         * lib/string.in.h [MirBSD]: Include <wchar.h>.
69747         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
69748         * m4/mbslen.m4: New file.
69749         * modules/mbslen (Files): Add it.
69750         (configure.ac): Invoke gl_MBSLEN.
69751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
69752         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
69753         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
69754         via Ian Beckwith <ianb@erislabs.net>.
69756 2010-01-07  Bruno Haible  <bruno@clisp.org>
69758         dirent: Document the last fix.
69759         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
69761 2010-01-07  Bruno Haible  <bruno@clisp.org>
69763         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
69764         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
69765         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
69766         va_list are defined.
69767         * doc/posix-headers/stdio.texi: Document the bug of missing types.
69768         Reported by Eric Blake.
69770 2010-01-07  Bruno Haible  <bruno@clisp.org>
69772         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
69773         * modules/xlist (Depends-on): Add 'list',
69774         * modules/xoset (Depends-on): Add 'oset'.
69775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69777 2010-01-07  Bruno Haible  <bruno@clisp.org>
69779         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
69780         * doc/posix-functions/strncasecmp.texi: Likewise.
69782 2010-01-07  Bruno Haible  <bruno@clisp.org>
69784         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
69786 2010-01-07  John W. Eaton  <jwe@octave.org>
69788         wctype: allow C++ use
69789         * lib/wctype.in.h: Add extern "C" block for C++.
69791 2010-01-06  Eric Blake  <ebb9@byu.net>
69793         maint.mk: detect incorrect GFDL usage
69794         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
69796 2010-01-06  Jim Meyering  <meyering@redhat.com>
69797         and Eric Blake  <ebb9@byu.net>
69799         maint.mk: ignore multi-line copyright in NEWS
69800         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
69802 2010-01-06  Eric Blake  <ebb9@byu.net>
69804         select: add missing dependency
69805         * modules/select-tests (Depends-on): Move sockets dependency...
69806         * modules/select (Depends-on): ...here.
69807         Reported by Ian Beckwith.
69809         doc: regenerate INSTALL
69810         * doc/INSTALL: Reflect recent autoconf update.
69811         * doc/INSTALL.ISO: Likewise.
69812         * doc/INSTALL.UTF-8: Likewise.
69814         pread: fix compilation on glibc
69815         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
69816         Reported by Ralf Wildenhues.
69818         dirent: fix test failure
69819         * lib/dirent.in.h (includes): Guarantee ino_t.
69820         Reported by Ralf Wildenhues.
69822 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
69824         linkat, renameat: avoid bad free
69825         * lib/at-func2.c (at_func2): Fix typo.
69826         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
69828 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69830         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
69831         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
69832         to avoid failure of symlink test later.
69834 2010-01-06  Eric Blake  <ebb9@byu.net>
69836         stdio, unistd: guarantee ssize_t
69837         * lib/unistd.in.h (includes): Ensure that types required by POSIX
69838         2008 are exposed when needed.
69839         * lib/stdio.in.h (includes): Likewise.
69840         Reported by Ralf Wildenhues.
69842 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
69844         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
69845         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
69846         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
69848 2010-01-06  Jim Meyering  <meyering@redhat.com>
69850         readtokens: this module *does* require xalloc.h
69851         It uses only functions that were omitted by the old syntax-check rule.
69852         * lib/readtokens.c: Include "xalloc.h" once again.
69853         * modules/readtokens (Depends-on): Add xalloc.
69854         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
69856 2010-01-05  Eric Blake  <ebb9@byu.net>
69858         maint: support 'make announcement' from a VPATH build
69859         * top/maint.mk (announcement): Look for correct NEWS file.
69861 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
69863         utimens (fdutimens): ignore a negative FD, per contract
69864         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
69865         when we have a valid file descriptor.  Otherwise, using a brand
69866         new glibc (with just-patched futimens that now fails with EBADF)
69867         would cause this function to fail with ENOSYS.
69868         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
69869         See also http://bugzilla.redhat.com/552320.
69871 2010-01-05  Eric Blake  <ebb9@byu.net>
69873         strcase: document what it provides
69874         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
69875         gnulib module.
69876         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
69877         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
69879 2010-01-05  Jim Meyering  <meyering@redhat.com>
69881         maint: remove useless inclusions of "xalloc.h"
69882         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
69883         * lib/readtokens.c: Likewise.
69884         * lib/same.c: Likewise.
69885         * modules/getloadavg (Depends-on): Remove xalloc.
69886         * modules/readtokens: Likewise.
69887         * modules/same: Likewise.
69889         maint.mk: include 4 more function names in alloca.h-checking regexp
69890         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
69891         regexp.  Before, we would give a false-positive (saying alloca.h
69892         is included unnecessarily) when the only uses involved omitted symbols.
69894         xalloc.h: use consistent formatting
69895         * lib/xalloc.h: Move declarations to start in the first column.
69897 2010-01-05  Eric Blake  <ebb9@byu.net>
69899         mkdir: avoid xalloc
69900         * lib/mkdir.c (includes): Drop unused header.
69901         Reported by John W. Eaton.
69903 2010-01-04  Jim Meyering  <meyering@redhat.com>
69905         nl_langinfo: avoid configure-time syntax error
69906         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
69907         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
69908         the empty string.  Don't let that provoke a shell syntax error.
69910         regcomp, regexec, fnmatch: avoid array bounds read error
69911         * lib/regcomp.c (build_equiv_class): From glibc:
69912         Use only the low 24 bits of a findidx return value as an index
69913         into the weights array.  Patch by Ulrich Drepper:
69914         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
69915         * lib/regexec.c (check_node_accept_bytes): Likewise.
69916         * lib/fnmatch_loop.c (FCT): Likewise.
69918         regcomp: skip collseq lookup when there are no rules
69919         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
69920         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
69922         regcomp: recognize ill-formed { } expressions
69923         * lib/regcomp.c (parse_dup_op): From glibc:
69924         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
69926         regcomp: fix typo in comment
69927         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
69928         s/satisfy/satisfies/.
69930         regcomp: sync from glibc: remove dead store
69931         * lib/regcomp.c (duplicate_node_closure): Remove useless
69932         search_duplicated_node call and dead store.
69934         regcomp: sync from glibc; always use nl_langinfo
69935         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
69936         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
69937         * modules/regex (Depends-on): Add nl_langinfo.
69939 2010-01-04  Eric Blake  <ebb9@byu.net>
69941         fdopendir: fix configure test
69942         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
69944 2010-01-01  Bruno Haible  <bruno@clisp.org>
69946         wchar: Remove unused configure check.
69947         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
69949 2010-01-01  Eric Blake  <ebb9@byu.net>
69951         headers: make check of system header explicit
69952         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
69953         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
69954         ourselves.
69955         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69956         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69957         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69958         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
69959         internals.
69960         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
69961         missing.
69962         Suggested by Bruno Haible.
69964 2010-01-01  Jim Meyering  <meyering@redhat.com>
69966         ChangeLog: tweak to eliminate unnecessary copyright line
69967         * ChangeLog: Remove a copyright line that was mistakenly updated
69968         by today's update-copyright run.  Reported by Eric Blake.
69970         test-update-copyright: don't let envvar setting cause test failure
69971         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
69973 2010-01-01  Bruno Haible  <bruno@clisp.org>
69975         localename: Avoid gcc warning.
69976         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
69977         function if it is not used.
69979 2010-01-01  Jim Meyering  <meyering@redhat.com>
69981         update nearly all FSF copyright year lists to include 2010
69982         Use the same procedure as for 2009, outlined in
69983         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
69985         version-etc: set COPYRIGHT_YEAR to 2010
69986         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
69988 2009-12-31  Eric Blake  <ebb9@byu.net>
69990         doc: correct availability of cygwin 1.5.x getopt
69991         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
69992         variables.
69993         * doc/posix-functions/opterr.texi (opterr): Likewise.
69994         * doc/posix-functions/optind.texi (optind): Likewise.
69995         * doc/posix-functions/optopt.texi (optopt): Likewise.
69996         * doc/posix-functions/tzname.texi (tzname): Likewise.
69998         openat: update maintainer
69999         * modules/openat (Maintainer): Add myself.
70001         utimens: avoid shadowing warning
70002         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
70003         buffers into one, to avoid shadowing, as well as avoiding a
70004         redundant stat.
70005         Reported by Jim Meyering.
70007         test-dup2: avoid compiler warning
70008         * tests/test-dup2.c (is_inheritable): Only define if used.
70010 2010-01-01  Bruno Haible  <bruno@clisp.org>
70012         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
70013         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
70014         defined, use wctomb instead of wcrtomb.
70016 2010-01-01  Bruno Haible  <bruno@clisp.org>
70018         iconv: Reject native Solaris iconv.
70019         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
70020         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
70022 2009-12-31  Bruno Haible  <bruno@clisp.org>
70024         * tests/test-signal.c (main): Remove test of 'SIG'.
70026 2009-12-31  Bruno Haible  <bruno@clisp.org>
70028         spawn: Fix incomplete fix.
70029         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70030         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70031         warnings for GNULIB_POSIXCHECK again.
70032         Reported by Eric Blake.
70034 2009-12-31  Bruno Haible  <bruno@clisp.org>
70036         Avoid namespace pollution on glibc systems.
70037         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
70038         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
70039         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
70040         glibc systems.
70042 2009-12-31  Bruno Haible  <bruno@clisp.org>
70044         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
70045         (gl_REPLACE_WCHAR_H): Turn into a no-op.
70046         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
70047         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
70048         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
70049         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
70050         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
70052 2009-12-31  Bruno Haible  <bruno@clisp.org>
70054         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70055         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
70056         afterwards.
70058 2009-12-31  Bruno Haible  <bruno@clisp.org>
70060         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
70061         SYS_UTSNAME_H.
70063 2009-12-31  Bruno Haible  <bruno@clisp.org>
70065         spawn: Fix misapplied patch.
70066         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
70067         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
70068         warnings for GNULIB_POSIXCHECK.
70070 2009-12-31  Bruno Haible  <bruno@clisp.org>
70072         times: Update after sys_times changed.
70073         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
70074         * modules/times (Files): Add it.
70075         (configure.ac): Invoke gl_FUNC_TIMES.
70077 2009-12-31  Bruno Haible  <bruno@clisp.org>
70079         Use AC_C_INLINE where necessary.
70080         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
70081         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
70082         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70083         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
70084         * m4/mbfile.m4 (gl_MBFILE): Likewise.
70085         * m4/mbiter.m4 (gl_MBITER): Likewise.
70086         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70087         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
70088         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
70089         * modules/u64 (configure.ac): Likewise.
70091 2009-12-31  Bruno Haible  <bruno@clisp.org>
70093         Use AC_C_INLINE instead of module 'inline' where possible.
70094         * modules/inline (Description): Clarify purpose.
70095         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
70096         * modules/count-one-bits (Depends-on): Remove inline.
70097         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
70098         * modules/openat (Depends-on): Remove inline.
70099         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
70100         instead of depending on module 'inline'.
70101         * modules/filevercmp (Depends-on, configure.ac): Likewise.
70102         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
70103         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
70104         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
70105         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
70106         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
70107         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
70108         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
70109         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
70110         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
70111         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
70112         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
70113         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
70114         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
70115         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
70116         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
70117         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
70118         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
70119         Likewise.
70120         * modules/unictype/property-ascii-hex-digit (Depends-on,
70121         configure.ac): Likewise.
70122         * modules/unictype/property-bidi-arabic-digit (Depends-on,
70123         configure.ac): Likewise.
70124         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
70125         configure.ac): Likewise.
70126         * modules/unictype/property-bidi-block-separator (Depends-on,
70127         configure.ac): Likewise.
70128         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
70129         configure.ac): Likewise.
70130         * modules/unictype/property-bidi-common-separator (Depends-on,
70131         configure.ac): Likewise.
70132         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
70133         Likewise.
70134         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
70135         configure.ac): Likewise.
70136         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
70137         configure.ac): Likewise.
70138         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
70139         configure.ac): Likewise.
70140         * modules/unictype/property-bidi-european-digit (Depends-on,
70141         configure.ac): Likewise.
70142         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
70143         configure.ac): Likewise.
70144         * modules/unictype/property-bidi-left-to-right (Depends-on,
70145         configure.ac): Likewise.
70146         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
70147         configure.ac): Likewise.
70148         * modules/unictype/property-bidi-other-neutral (Depends-on,
70149         configure.ac): Likewise.
70150         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
70151         Likewise.
70152         * modules/unictype/property-bidi-segment-separator (Depends-on,
70153         configure.ac): Likewise.
70154         * modules/unictype/property-bidi-whitespace (Depends-on,
70155         configure.ac): Likewise.
70156         * modules/unictype/property-combining (Depends-on, configure.ac):
70157         Likewise.
70158         * modules/unictype/property-composite (Depends-on, configure.ac):
70159         Likewise.
70160         * modules/unictype/property-currency-symbol (Depends-on,
70161         configure.ac): Likewise.
70162         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
70163         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
70164         Likewise.
70165         * modules/unictype/property-default-ignorable-code-point (Depends-on,
70166         configure.ac): Likewise.
70167         * modules/unictype/property-deprecated (Depends-on, configure.ac):
70168         Likewise.
70169         * modules/unictype/property-diacritic (Depends-on, configure.ac):
70170         Likewise.
70171         * modules/unictype/property-extender (Depends-on, configure.ac):
70172         Likewise.
70173         * modules/unictype/property-format-control (Depends-on, configure.ac):
70174         Likewise.
70175         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
70176         Likewise.
70177         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
70178         Likewise.
70179         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
70180         Likewise.
70181         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
70182         Likewise.
70183         * modules/unictype/property-hyphen (Depends-on, configure.ac):
70184         Likewise.
70185         * modules/unictype/property-id-continue (Depends-on, configure.ac):
70186         Likewise.
70187         * modules/unictype/property-id-start (Depends-on, configure.ac):
70188         Likewise.
70189         * modules/unictype/property-ideographic (Depends-on, configure.ac):
70190         Likewise.
70191         * modules/unictype/property-ids-binary-operator (Depends-on,
70192         configure.ac): Likewise.
70193         * modules/unictype/property-ids-trinary-operator (Depends-on,
70194         configure.ac): Likewise.
70195         * modules/unictype/property-ignorable-control (Depends-on,
70196         configure.ac): Likewise.
70197         * modules/unictype/property-iso-control (Depends-on, configure.ac):
70198         Likewise.
70199         * modules/unictype/property-join-control (Depends-on, configure.ac):
70200         Likewise.
70201         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
70202         Likewise.
70203         * modules/unictype/property-line-separator (Depends-on, configure.ac):
70204         Likewise.
70205         * modules/unictype/property-logical-order-exception (Depends-on,
70206         configure.ac): Likewise.
70207         * modules/unictype/property-lowercase (Depends-on, configure.ac):
70208         Likewise.
70209         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
70210         * modules/unictype/property-non-break (Depends-on, configure.ac):
70211         Likewise.
70212         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
70213         Likewise.
70214         * modules/unictype/property-numeric (Depends-on, configure.ac):
70215         Likewise.
70216         * modules/unictype/property-other-alphabetic (Depends-on,
70217         configure.ac): Likewise.
70218         * modules/unictype/property-other-default-ignorable-code-point
70219         (Depends-on, configure.ac): Likewise.
70220         * modules/unictype/property-other-grapheme-extend (Depends-on,
70221         configure.ac): Likewise.
70222         * modules/unictype/property-other-id-continue (Depends-on,
70223         configure.ac): Likewise.
70224         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
70225         Likewise.
70226         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
70227         Likewise.
70228         * modules/unictype/property-other-math (Depends-on, configure.ac):
70229         Likewise.
70230         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
70231         Likewise.
70232         * modules/unictype/property-paired-punctuation (Depends-on,
70233         configure.ac): Likewise.
70234         * modules/unictype/property-paragraph-separator (Depends-on,
70235         configure.ac): Likewise.
70236         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
70237         Likewise.
70238         * modules/unictype/property-pattern-white-space (Depends-on,
70239         configure.ac): Likewise.
70240         * modules/unictype/property-private-use (Depends-on, configure.ac):
70241         Likewise.
70242         * modules/unictype/property-punctuation (Depends-on, configure.ac):
70243         Likewise.
70244         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
70245         Likewise.
70246         * modules/unictype/property-radical (Depends-on, configure.ac):
70247         Likewise.
70248         * modules/unictype/property-sentence-terminal (Depends-on,
70249         configure.ac): Likewise.
70250         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
70251         Likewise.
70252         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
70253         * modules/unictype/property-terminal-punctuation (Depends-on,
70254         configure.ac): Likewise.
70255         * modules/unictype/property-titlecase (Depends-on, configure.ac):
70256         Likewise.
70257         * modules/unictype/property-unassigned-code-value (Depends-on,
70258         configure.ac): Likewise.
70259         * modules/unictype/property-unified-ideograph (Depends-on,
70260         configure.ac): Likewise.
70261         * modules/unictype/property-uppercase (Depends-on, configure.ac):
70262         Likewise.
70263         * modules/unictype/property-variation-selector (Depends-on,
70264         configure.ac): Likewise.
70265         * modules/unictype/property-white-space (Depends-on, configure.ac):
70266         Likewise.
70267         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
70268         Likewise.
70269         * modules/unictype/property-xid-start (Depends-on, configure.ac):
70270         Likewise.
70271         * modules/unictype/property-zero-width (Depends-on, configure.ac):
70272         Likewise.
70273         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
70274         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
70275         Likewise.
70277 2009-12-31  Bruno Haible  <bruno@clisp.org>
70279         Remove unnecessary AC_C_INLINE invocation.
70280         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
70281         since 2009-08-21.
70283 2009-12-31  Jim Meyering  <meyering@redhat.com>
70285         maint.mk: don't require explicit gpg_key_ID in cfg.mk
70286         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
70287         With this change, we can all remove the gpg_key_ID = ... definition
70288         from our respective cfg.mk files.
70290         maint.mk: create announcement template in ~/, not in /tmp
70291         * top/maint.mk (emit_upload_commands): Adjust.
70292         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
70293         Remove temporary file, .ci-msg.
70295 2009-12-31  Eric Blake  <ebb9@byu.net>
70297         link-warning: always build headers with link warnings
70298         * modules/arpa_inet (Makefile.am): Always build replacement
70299         header.
70300         * modules/ctype (Makefile.am): Likewise.
70301         * modules/dirent (Makefile.am): Likewise.
70302         * modules/inttypes (Makefile.am): Likewise.
70303         * modules/langinfo (Makefile.am): Likewise.
70304         * modules/locale (Makefile.am): Likewise.
70305         * modules/spawn (Makefile.am): Likewise.
70306         * modules/sys_file (Makefile.am): Likewise.
70307         * modules/sys_ioctl (Makefile.am): Likewise.
70308         * modules/sys_select (Makefile.am): Likewise.
70309         * modules/sys_socket (Makefile.am): Likewise.
70310         * modules/sys_times (Makefile.am): Likewise.
70311         * modules/sys_utsname (Makefile.am): Likewise.
70312         * modules/sys_wait (Makefile.am): Likewise.
70313         * modules/wchar (Makefile.am): Likewise.
70314         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
70315         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
70316         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
70317         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
70318         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
70319         Likewise.
70320         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
70321         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70322         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
70323         Likewise.
70324         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
70325         Likewise.
70326         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
70327         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
70328         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
70329         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70330         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70331         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70332         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70333         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
70334         (gl_WCHAR_H_DEFAULTS): Likewise.
70336 2009-12-31  Eric Blake  <ebb9@byu.net>
70338         signal, spawn: use link warnings
70339         * lib/signal.in.h (sigset_t): Make unconditional.
70340         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
70341         (sigpending, sigprocmask, sigaction): Add link warnings.
70342         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
70343         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
70344         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
70345         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
70346         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
70347         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
70348         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
70349         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
70350         (posix_spawn_file_actions_destroy)
70351         (posix_spawn_file_actions_addopen)
70352         (posix_spawn_file_actions_addclose)
70353         (posix_spawn_file_actions_adddup2): Likewise.
70354         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
70355         * tests/test-signal.c (main): Enhance test.
70357         spawn: improve wrapper support
70358         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
70359         (gl_SPAWN_H_DEFAULTS): New defaults.
70360         * modules/spawn (Makefile.am): Substitute them.
70361         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
70362         Only declare if missing or broken.
70364         sys_times, sys_utsname: use include_next
70365         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
70366         header.
70367         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
70368         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
70369         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
70370         * modules/sys_times (Depends-on): Add include_next.
70371         (Makefile.am): Substitute additional values.
70372         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
70373         * lib/sys_times.in.h (includes): Include native header, if
70374         available.
70375         * lib/sys_utsname.in.h (includes): Likewise.
70376         * tests/test-sys_times.c (main): Enhance test.
70378         fdutimensat: revert prior patch
70379         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
70380         utimens.h.
70381         Reported by Bruno Haible.
70383 2009-12-30  Eric Blake  <ebb9@byu.net>
70385         sys_wait: drop link-warning dependency
70386         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
70387         link-warning efforts.
70388         * lib/sys_wait.in.h: Likewise.
70390         fdutimensat: remove bogus dependency
70391         * modules/fdutimensat (Depends-on): Drop inline.
70393         unistd: fix typo
70394         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
70396 2009-12-30  Bruno Haible  <bruno@clisp.org>
70398         Fix compilation error with Solaris cc.
70399         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
70400         * lib/unicase/u16-is-invariant.c: Likewise.
70401         * lib/unicase/u32-is-invariant.c: Likewise.
70402         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70404 2009-12-30  Bruno Haible  <bruno@clisp.org>
70406         Fix test crash.
70407         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
70408         locales.
70409         Reported by Simon Josefsson <simon@josefsson.org>.
70411 2009-12-30  Bruno Haible  <bruno@clisp.org>
70413         Fix compilation error on most platforms.
70414         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
70415         Reported by Simon Josefsson <simon@josefsson.org>
70416         and Nelson H. F. Beebe <beebe@math.utah.edu>.
70418 2009-12-30  Eric Blake  <ebb9@byu.net>
70420         futimens, utimensat: work around ntfs-3g bug
70421         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
70422         a ctime bug is present, and expand workaround to cover ntfs-3g.
70423         * lib/utimens.c (fdutimens, lutimens): Likewise.
70424         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
70425         (validate_timespec): Adjust return value.
70426         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
70427         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
70428         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
70430 2009-12-29  Eric Blake  <ebb9@byu.net>
70432         link-warning: make usage consistent
70433         * modules/ctype (Depends-on): Add link-warning.
70434         (Makefile.am): Update rules accordingly.
70435         * modules/langinfo (Depends-on, Makefile.am): Likewise.
70436         * modules/locale (Depends-on, Makefile.am): Likewise.
70437         * modules/sys_file (Makefile.am): Likewise.
70438         * modules/getopt-posix (Makefile.am): Delete unused link warning
70439         efforts.
70440         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
70441         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
70442         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
70443         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
70445         stdio: remove unused variables
70446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
70447         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
70448         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
70450         tests: test more substitute headers
70451         * modules/ctype-tests: New file.
70452         * modules/dirent-tests: Likewise.
70453         * modules/spawn-tests: Likewise.
70454         * modules/sys_file-tests: Likewise.
70455         * modules/sys_ioctl-tests: Likewise.
70456         * modules/sys_wait-tests: Likewise.
70457         * tests/test-ctype.c: Likewise.
70458         * tests/test-dirent.c: Likewise.
70459         * tests/test-spawn.c: Likewise.
70460         * tests/test-sys_file.c: Likewise.
70461         * tests/test-sys_ioctl.c: Likewise.
70462         * tests/test-sys_wait.c: Likewise.
70463         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
70464         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
70465         whether or not flock is in use.
70467         tests: remove License section from module
70468         * modules/arpa_inet-tests: Remove unneeded section.
70469         * modules/byteswap-tests: Likewise.
70470         * modules/ceilf-tests: Likewise.
70471         * modules/ceill-tests: Likewise.
70472         * modules/crypto/des-tests: Likewise.
70473         * modules/crypto/gc-arcfour-tests: Likewise.
70474         * modules/crypto/gc-arctwo-tests: Likewise.
70475         * modules/crypto/gc-des-tests: Likewise.
70476         * modules/crypto/gc-hmac-md5-tests: Likewise.
70477         * modules/crypto/gc-hmac-sha1-tests: Likewise.
70478         * modules/crypto/gc-md2-tests: Likewise.
70479         * modules/crypto/gc-md4-tests: Likewise.
70480         * modules/crypto/gc-md5-tests: Likewise.
70481         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
70482         * modules/crypto/gc-rijndael-tests: Likewise.
70483         * modules/crypto/gc-sha1-tests: Likewise.
70484         * modules/crypto/gc-tests: Likewise.
70485         * modules/crypto/md2-tests: Likewise.
70486         * modules/crypto/md4-tests: Likewise.
70487         * modules/fcntl-h-tests: Likewise.
70488         * modules/floorf-tests: Likewise.
70489         * modules/floorl-tests: Likewise.
70490         * modules/frexp-nolibm-tests: Likewise.
70491         * modules/frexp-tests: Likewise.
70492         * modules/frexpl-nolibm-tests: Likewise.
70493         * modules/frexpl-tests: Likewise.
70494         * modules/getaddrinfo-tests: Likewise.
70495         * modules/inttypes-tests: Likewise.
70496         * modules/isfinite-tests: Likewise.
70497         * modules/isinf-tests: Likewise.
70498         * modules/ldexpl-tests: Likewise.
70499         * modules/locale-tests: Likewise.
70500         * modules/math-tests: Likewise.
70501         * modules/netdb-tests: Likewise.
70502         * modules/netinet_in-tests: Likewise.
70503         * modules/printf-frexp-tests: Likewise.
70504         * modules/printf-frexpl-tests: Likewise.
70505         * modules/priv-set-tests: Likewise.
70506         * modules/random_r-tests: Likewise.
70507         * modules/round-tests: Likewise.
70508         * modules/roundf-tests: Likewise.
70509         * modules/roundl-tests: Likewise.
70510         * modules/search-tests: Likewise.
70511         * modules/select-tests: Likewise.
70512         * modules/signal-tests: Likewise.
70513         * modules/stdbool-tests: Likewise.
70514         * modules/stddef-tests: Likewise.
70515         * modules/stdint-tests: Likewise.
70516         * modules/stdio-tests: Likewise.
70517         * modules/stdlib-tests: Likewise.
70518         * modules/string-tests: Likewise.
70519         * modules/strings-tests: Likewise.
70520         * modules/sys_select-tests: Likewise.
70521         * modules/sys_socket-tests: Likewise.
70522         * modules/sys_stat-tests: Likewise.
70523         * modules/sys_time-tests: Likewise.
70524         * modules/sys_utsname-tests: Likewise.
70525         * modules/sysexits-tests: Likewise.
70526         * modules/time-tests: Likewise.
70527         * modules/trunc-tests: Likewise.
70528         * modules/truncf-tests: Likewise.
70529         * modules/truncl-tests: Likewise.
70530         * modules/tsearch-tests: Likewise.
70531         * modules/unistd-tests: Likewise.
70532         * modules/wchar-tests: Likewise.
70533         * modules/wctype-tests: Likewise.
70535         tests: fix license on several tests
70536         * tests/test-des.c: Update to GPLv3+.
70537         * tests/test-flock.c: Likewise.
70538         * tests/test-fsync.c: Likewise.
70539         * tests/test-futimens.h: Likewise.
70540         * tests/test-gc-arcfour.c: Likewise.
70541         * tests/test-gc-arctwo.c: Likewise.
70542         * tests/test-gc-des.c: Likewise.
70543         * tests/test-gc-hmac-md5.c: Likewise.
70544         * tests/test-gc-hmac-sha1.c: Likewise.
70545         * tests/test-gc-md2.c: Likewise.
70546         * tests/test-gc-md4.c: Likewise.
70547         * tests/test-gc-md5.c: Likewise.
70548         * tests/test-gc-pbkdf2-sha1.c: Likewise.
70549         * tests/test-gc-rijndael.c: Likewise.
70550         * tests/test-gc-sha1.c: Likewise.
70551         * tests/test-gc.c: Likewise.
70552         * tests/test-getcwd.c: Likewise.
70553         * tests/test-link.c: Likewise.
70554         * tests/test-link.h: Likewise.
70555         * tests/test-lutimens.h: Likewise.
70556         * tests/test-md2.c: Likewise.
70557         * tests/test-md4.c: Likewise.
70558         * tests/test-mkdir.h: Likewise.
70559         * tests/test-rename.c: Likewise.
70560         * tests/test-rename.h: Likewise.
70561         * tests/test-safe-alloc.c: Likewise.
70562         * tests/test-utimens-common.h: Likewise.
70563         * tests/test-utimens.h: Likewise.
70565         maint: sync license texts
70566         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
70567         * doc/gpl-3.0.texi: Revert copyright year update.
70568         * doc/lgpl-3.0.texi: Likewise.
70570 2009-12-29  Jim Meyering  <meyering@redhat.com>
70572         update nearly all FSF copyright year lists to include 2009
70573         The files named by the following are exempted:
70574             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
70575               test -f "$dst" && { echo "$dst"; continue; }
70576               test -d "$dst" || continue
70577               echo "$dst"/$(basename "$src")
70578             done > exempt
70579             git ls-files tests/unictype >> exempt
70580         In the remaining files, convert to all-interval notation if
70581         - there is already at least one year interval like 2000-2003
70582         - the file is maintained by me
70583         - the file is in lib/uni*/, where that style already prevails
70584         Otherwise, use update-copyright's default.
70586 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70587         and Eric Blake  <ebb9@byu.net>
70589         tests: don't require debug system() to pass
70590         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
70591         * tests/test-rmdir.h (test_rmdir_func): Likewise.
70592         * tests/test-unlink.h (test_unlink_func): Likewise.
70593         * tests/test-fstatat.c (main): ...into callers.
70594         * tests/test-lstat.c (main): Likewise.
70595         * tests/test-rmdir.c (main): Likewise.
70596         * tests/test-unlink.c (main): Likewise.
70597         * tests/test-unlinkat.c (main): Likewise.
70598         * tests/test-areadlink-with-size.c (main): Don't require a
70599         debug-only system call to pass, aiding cross-testing to mingw.
70600         * tests/test-areadlink.c (main): Likewise.
70601         * tests/test-areadlinkat-with-size.c (main): Likewise.
70602         * tests/test-areadlinkat.c (main): Likewise.
70603         * tests/test-canonicalize-lgpl.c (main): Likewise.
70604         * tests/test-canonicalize.c (main): Likewise.
70605         * tests/test-chown.c (main): Likewise.
70606         * tests/test-fchownat.c (main): Likewise.
70607         * tests/test-lchown.c (main): Likewise.
70608         * tests/test-fdutimensat.c (main): Likewise.
70609         * tests/test-futimens.c (main): Likewise.
70610         * tests/test-link.c (main): Likewise.
70611         * tests/test-linkat.c (main): Likewise.
70612         * tests/test-mkdir.c (main): Likewise.
70613         * tests/test-mkdirat.c (main): Likewise.
70614         * tests/test-mkfifo.c (main): Likewise.
70615         * tests/test-mkfifoat.c (main): Likewise.
70616         * tests/test-mknod.c (main): Likewise.
70617         * tests/test-readlink.c (main): Likewise.
70618         * tests/test-remove.c (main): Likewise.
70619         * tests/test-rename.c (main): Likewise.
70620         * tests/test-renameat.c (main): Likewise.
70621         * tests/test-symlink.c (main): Likewise.
70622         * tests/test-symlinkat.c (main): Likewise.
70623         * tests/test-utimens.c (main): Likewise.
70624         * tests/test-utimensat.c (main): Likewise.
70626 2009-12-29  Simon Josefsson  <simon@josefsson.org>
70628         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
70629         on $(UNUSED_PARAMETER_H) to avoid build failure.
70631 2009-12-28  Jim Meyering  <meyering@redhat.com>
70633         update-copyright: you may specify a max. line length other than 72
70634         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
70636         maint: use consistent FSF copyright line syntax
70637         * lib/posixtm.c: Add missing comma in FSF copyright line.
70638         * lib/posixtm.h: Likewise.
70639         * lib/getugroups.c: Add missing ", Inc.".
70641         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
70642         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
70643         FSF copyright line.  Remove trailing blanks.
70645 2009-12-28  Eric Blake  <ebb9@byu.net>
70647         test-dup2: reduce dependencies
70648         * modules/cloexec (Configure.ac): Set witness.
70649         * modules/dup2-tests (Depends-on): Drop cloexec.
70650         * tests/test-dup2.c (main): Skip portion of test if cloexec module
70651         not present.
70652         Suggested by Bruno Haible.
70654 2009-12-26  Bruno Haible  <bruno@clisp.org>
70656         Remove an unneeded dependency.
70657         * modules/fseterr (Depends-on): Remove dup2.
70659 2009-12-26  Eric Blake  <ebb9@byu.net>
70661         tests: use macros.h in more places
70662         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
70663         (ASSERT_STREAM): Provide default of stderr.
70664         * tests/test-dirent-safer.c: Include macros.h, using alternate
70665         stream for assertions.
70666         * tests/test-dup-safer.c: Likewise.
70667         * tests/test-freopen-safer.c: Likewise.
70668         * tests/test-getopt.c: Likewise.
70669         * tests/test-openat-safer.c: Likewise.
70670         * tests/test-pipe.c: Likewise.
70671         * tests/test-popen-safer.c: Likewise.
70672         * modules/dirent-safer-tests (Files): Include macros.h.
70673         * modules/unistd-safer-tests (Files): Likewise.
70674         * modules/freopen-safer-tests (Files): Likewise.
70675         * modules/getopt-posix-tests (Files): Likewise.
70676         * modules/openat-safer-tests (Files): Likewise.
70677         * modules/pipe-tests (Files): Likewise.
70679 2009-12-26  Bruno Haible  <bruno@clisp.org>
70681         javacomp-script: Portability fix.
70682         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
70683         that it also works on Solaris.
70685 2009-12-26  Bruno Haible  <bruno@clisp.org>
70687         localename: Fix storage allocation of gl_locale_name_thread's result.
70688         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
70689         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
70690         all platforms that have 'uselocale'.
70691         (gl_locale_name_thread_unsafe): New function, extracted from
70692         gl_locale_name_thread.
70693         (gl_locale_name_thread): Call struniq on all platforms that have
70694         'uselocale'.
70695         * tests/test-localename.c (test_locale_name_thread): Check that the
70696         resulting strings are permanently allocated.
70697         * modules/localename-tests (Depends-on): Add strdup.
70699 2009-12-26  Bruno Haible  <bruno@clisp.org>
70701         * tests/test-localename.c (categories): Fill in the strings.
70703 2009-12-26  Jim Meyering  <meyering@redhat.com>
70705         isdir: complete the removal of m4/isdir.m4
70706         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
70708         isdir: clean up, since at least grep still uses it
70709         * lib/isdir.c: Include "isdir.h".
70710         (S_ISDIR): Remove now-unneeded definition.
70711         * modules/isdir (Files): Add lib/isdir.h.
70712         * lib/isdir.h: New file, with declaration.
70713         * m4/isdir.m4: Remove file -- unneeded.
70715 2009-12-25  Bruno Haible  <bruno@clisp.org>
70717         selinux-h: Make generated .h files standalone.
70718         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
70719         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
70720         * lib/se-selinux.in.h: Likewise.
70721         * modules/selinux-h (Depends-on): Add unused-parameter.
70722         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
70723         selinux/selinux.h and selinux/context.h.
70724         Suggested by Eric Blake.
70726 2009-12-25  Bruno Haible  <bruno@clisp.org>
70728         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
70729         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
70730         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
70731         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
70732         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
70734 2009-12-24  Bruno Haible  <bruno@clisp.org>
70736         openat: Fix warning.
70737         * lib/openat-proc.c: Include <unistd.h>.
70739 2009-12-24  Bruno Haible  <bruno@clisp.org>
70741         New module 'unused-parameter'.
70742         * build-aux/unused-parameter.h: New file, extracted from earlier
70743         gnulib-common.m4.
70744         * modules/unused-parameter: New file.
70745         * lib/unistr.h: Include unused-parameter.h.
70746         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
70747         _GL_UNUSED.
70748         * modules/unistr/base (Depends-on): Add unused-parameter.
70750 2009-12-24  Bruno Haible  <bruno@clisp.org>
70752         Add missing dependencies to 'extensions' module.
70753         * m4/extensions.m4: Add comment.
70754         * modules/accept4 (Depends-on): Add extensions.
70755         * modules/dup3 (Depends-on): Likewise.
70756         * modules/fcntl (Depends-on): Likewise.
70757         * modules/futimens (Depends-on): Likewise.
70758         * modules/mknod (Depends-on): Likewise.
70759         * modules/pipe2 (Depends-on): Likewise.
70760         * modules/stat-time (Depends-on): Likewise.
70761         * modules/strcasestr-simple (Depends-on): Likewise.
70762         * modules/strsignal (Depends-on): Likewise.
70763         * modules/utimensat (Depends-on): Likewise.
70764         * modules/localcharset (Depends-on): Likewise. Needed because of
70765         gl_FCNTL_O_FLAGS.
70766         * modules/wcrtomb (Depends-on): Likewise. Needed because of
70767         AC_TYPE_MBSTATE_T.
70768         * modules/wcsnrtombs (Depends-on): Likewise.
70769         * modules/wcsrtombs (Depends-on): Likewise.
70771 2009-12-24  Bruno Haible  <bruno@clisp.org>
70773         binary-io: Avoid gcc warning due to SET_BINARY.
70774         * lib/binary-io.h (SET_BINARY): Cast the result to void.
70775         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
70777 2009-12-24  Bruno Haible  <bruno@clisp.org>
70779         Avoid future namespace pollution on glibc systems.
70780         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
70781         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
70782         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
70783         glibc systems.
70785 2009-12-24  Bruno Haible  <bruno@clisp.org>
70787         Refactor common macros used in tests.
70788         * tests/macros.h: New file.
70789         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
70790         and/or <stdlib.h>, if appropriate.
70791         (ASSERT, SIZEOF): Remove macros.
70792         * tests/test-areadlink-with-size.c: Likewise.
70793         * tests/test-areadlinkat.c: Likewise.
70794         * tests/test-areadlinkat-with-size.c: Likewise.
70795         * tests/test-argmatch.c: Likewise.
70796         * tests/test-argv-iter.c: Likewise.
70797         * tests/test-array-mergesort.c: Likewise.
70798         * tests/test-array_list.c: Likewise.
70799         * tests/test-array_oset.c: Likewise.
70800         * tests/test-avltree_list.c: Likewise.
70801         * tests/test-avltree_oset.c: Likewise.
70802         * tests/test-avltreehash_list.c: Likewise.
70803         * tests/test-base64.c: Likewise.
70804         * tests/test-binary-io.c: Likewise.
70805         * tests/test-bitrotate.c: Likewise.
70806         * tests/test-btowc.c: Likewise.
70807         * tests/test-byteswap.c: Likewise.
70808         * tests/test-c-ctype.c: Likewise.
70809         * tests/test-c-stack.c: Likewise.
70810         * tests/test-c-strcasecmp.c: Likewise.
70811         * tests/test-c-strcasestr.c: Likewise.
70812         * tests/test-c-strncasecmp.c: Likewise.
70813         * tests/test-c-strstr.c: Likewise.
70814         * tests/test-canonicalize-lgpl.c: Likewise.
70815         * tests/test-canonicalize.c: Likewise.
70816         * tests/test-carray_list.c: Likewise.
70817         * tests/test-ceilf1.c: Likewise.
70818         * tests/test-ceilf2.c: Likewise.
70819         * tests/test-ceill.c: Likewise.
70820         * tests/test-chown.c: Likewise.
70821         * tests/test-cloexec.c: Likewise.
70822         * tests/test-copy-acl.c: Likewise.
70823         * tests/test-copy-file.c: Likewise.
70824         * tests/test-count-one-bits.c: Likewise.
70825         * tests/test-dprintf-posix.c: Likewise.
70826         * tests/test-dup2.c: Likewise.
70827         * tests/test-dup3.c: Likewise.
70828         * tests/test-duplocale.c: Likewise.
70829         * tests/test-fbufmode.c: Likewise.
70830         * tests/test-fchdir.c: Likewise.
70831         * tests/test-fchownat.c: Likewise.
70832         * tests/test-fcntl-safer.c: Likewise.
70833         * tests/test-fcntl.c: Likewise.
70834         * tests/test-fdopendir.c: Likewise.
70835         * tests/test-fdutimensat.c: Likewise.
70836         * tests/test-fflush2.c: Likewise.
70837         * tests/test-file-has-acl.c: Likewise.
70838         * tests/test-filevercmp.c: Likewise.
70839         * tests/test-flock.c: Likewise.
70840         * tests/test-floorf1.c: Likewise.
70841         * tests/test-floorf2.c: Likewise.
70842         * tests/test-floorl.c: Likewise.
70843         * tests/test-fnmatch.c: Likewise.
70844         * tests/test-fopen.h: Likewise.
70845         * tests/test-fpending.c: Likewise.
70846         * tests/test-fprintf-posix.c: Likewise.
70847         * tests/test-fpurge.c: Likewise.
70848         * tests/test-freadable.c: Likewise.
70849         * tests/test-freadahead.c: Likewise.
70850         * tests/test-freading.c: Likewise.
70851         * tests/test-freadptr.c: Likewise.
70852         * tests/test-freadptr2.c: Likewise.
70853         * tests/test-freadseek.c: Likewise.
70854         * tests/test-freopen.c: Likewise.
70855         * tests/test-frexp.c: Likewise.
70856         * tests/test-frexpl.c: Likewise.
70857         * tests/test-fseek.c: Likewise.
70858         * tests/test-fseeko.c: Likewise.
70859         * tests/test-fstatat.c: Likewise.
70860         * tests/test-fstrcmp.c: Likewise.
70861         * tests/test-fsync.c: Likewise.
70862         * tests/test-ftell.c: Likewise.
70863         * tests/test-ftello.c: Likewise.
70864         * tests/test-func.c: Likewise.
70865         * tests/test-futimens.c: Likewise.
70866         * tests/test-fwritable.c: Likewise.
70867         * tests/test-fwriting.c: Likewise.
70868         * tests/test-getcwd.c: Likewise.
70869         * tests/test-getdate.c: Likewise.
70870         * tests/test-getdelim.c: Likewise.
70871         * tests/test-getdtablesize.c: Likewise.
70872         * tests/test-getgroups.c: Likewise.
70873         * tests/test-getline.c: Likewise.
70874         * tests/test-getndelim2.c: Likewise.
70875         * tests/test-glob.c: Likewise.
70876         * tests/test-hash.c: Likewise.
70877         * tests/test-i-ring.c: Likewise.
70878         * tests/test-iconv-utf.c: Likewise.
70879         * tests/test-iconv.c: Likewise.
70880         * tests/test-idpriv-drop.c: Likewise.
70881         * tests/test-idpriv-droptemp.c: Likewise.
70882         * tests/test-inet_ntop.c: Likewise.
70883         * tests/test-inet_pton.c: Likewise.
70884         * tests/test-isblank.c: Likewise.
70885         * tests/test-isfinite.c: Likewise.
70886         * tests/test-isinf.c: Likewise.
70887         * tests/test-isnan.c: Likewise.
70888         * tests/test-isnand.h: Likewise.
70889         * tests/test-isnanf.h: Likewise.
70890         * tests/test-isnanl.h: Likewise.
70891         * tests/test-lchown.c: Likewise.
70892         * tests/test-ldexpl.c: Likewise.
70893         * tests/test-link.c: Likewise.
70894         * tests/test-linkat.c: Likewise.
70895         * tests/test-linked_list.c: Likewise.
70896         * tests/test-linkedhash_list.c: Likewise.
70897         * tests/test-localename.c: Likewise.
70898         * tests/test-lseek.c: Likewise.
70899         * tests/test-lstat.c: Likewise.
70900         * tests/test-mbmemcasecmp.c: Likewise.
70901         * tests/test-mbmemcasecoll.c: Likewise.
70902         * tests/test-mbrtowc.c: Likewise.
70903         * tests/test-mbscasecmp.c: Likewise.
70904         * tests/test-mbscasestr1.c: Likewise.
70905         * tests/test-mbscasestr2.c: Likewise.
70906         * tests/test-mbscasestr3.c: Likewise.
70907         * tests/test-mbscasestr4.c: Likewise.
70908         * tests/test-mbschr.c: Likewise.
70909         * tests/test-mbscspn.c: Likewise.
70910         * tests/test-mbsinit.c: Likewise.
70911         * tests/test-mbsncasecmp.c: Likewise.
70912         * tests/test-mbsnrtowcs.c: Likewise.
70913         * tests/test-mbspbrk.c: Likewise.
70914         * tests/test-mbspcasecmp.c: Likewise.
70915         * tests/test-mbsrchr.c: Likewise.
70916         * tests/test-mbsrtowcs.c: Likewise.
70917         * tests/test-mbsspn.c: Likewise.
70918         * tests/test-mbsstr1.c: Likewise.
70919         * tests/test-mbsstr2.c: Likewise.
70920         * tests/test-mbsstr3.c: Likewise.
70921         * tests/test-memchr.c: Likewise.
70922         * tests/test-memchr2.c: Likewise.
70923         * tests/test-memcmp.c: Likewise.
70924         * tests/test-memmem.c: Likewise.
70925         * tests/test-memrchr.c: Likewise.
70926         * tests/test-mkdir.c: Likewise.
70927         * tests/test-mkdirat.c: Likewise.
70928         * tests/test-mkfifo.c: Likewise.
70929         * tests/test-mkfifoat.c: Likewise.
70930         * tests/test-mknod.c: Likewise.
70931         * tests/test-nanosleep.c: Likewise.
70932         * tests/test-nl_langinfo.c: Likewise.
70933         * tests/test-obstack-printf.c: Likewise.
70934         * tests/test-open.c: Likewise.
70935         * tests/test-openat.c: Likewise.
70936         * tests/test-pipe-filter-gi1.c: Likewise.
70937         * tests/test-pipe-filter-gi2-main.c: Likewise.
70938         * tests/test-pipe-filter-ii1.c: Likewise.
70939         * tests/test-pipe-filter-ii2-main.c: Likewise.
70940         * tests/test-pipe2.c: Likewise.
70941         * tests/test-popen.h: Likewise.
70942         * tests/test-posixtm.c: Likewise.
70943         * tests/test-pread.c: Likewise.
70944         * tests/test-printf-frexp.c: Likewise.
70945         * tests/test-printf-frexpl.c: Likewise.
70946         * tests/test-printf-posix.c: Likewise.
70947         * tests/test-priv-set.c: Likewise.
70948         * tests/test-quotearg.c: Likewise.
70949         * tests/test-random_r.c: Likewise.
70950         * tests/test-rawmemchr.c: Likewise.
70951         * tests/test-rbtree_list.c: Likewise.
70952         * tests/test-rbtree_oset.c: Likewise.
70953         * tests/test-rbtreehash_list.c: Likewise.
70954         * tests/test-readlink.c: Likewise.
70955         * tests/test-remove.c: Likewise.
70956         * tests/test-rename.c: Likewise.
70957         * tests/test-renameat.c: Likewise.
70958         * tests/test-rmdir.c: Likewise.
70959         * tests/test-round1.c: Likewise.
70960         * tests/test-roundf1.c: Likewise.
70961         * tests/test-roundl.c: Likewise.
70962         * tests/test-safe-alloc.c: Likewise.
70963         * tests/test-sameacls.c: Likewise.
70964         * tests/test-set-mode-acl.c: Likewise.
70965         * tests/test-setenv.c: Likewise.
70966         * tests/test-sigaction.c: Likewise.
70967         * tests/test-signbit.c: Likewise.
70968         * tests/test-sleep.c: Likewise.
70969         * tests/test-snprintf-posix.c: Likewise.
70970         * tests/test-snprintf.c: Likewise.
70971         * tests/test-sprintf-posix.c: Likewise.
70972         * tests/test-stat-time.c: Likewise.
70973         * tests/test-stat.c: Likewise.
70974         * tests/test-strcasestr.c: Likewise.
70975         * tests/test-strchrnul.c: Likewise.
70976         * tests/test-strerror.c: Likewise.
70977         * tests/test-striconv.c: Likewise.
70978         * tests/test-striconveh.c: Likewise.
70979         * tests/test-striconveha.c: Likewise.
70980         * tests/test-strsignal.c: Likewise.
70981         * tests/test-strstr.c: Likewise.
70982         * tests/test-strtod.c: Likewise.
70983         * tests/test-strverscmp.c: Likewise.
70984         * tests/test-symlink.c: Likewise.
70985         * tests/test-symlinkat.c: Likewise.
70986         * tests/test-trunc1.c: Likewise.
70987         * tests/test-trunc2.c: Likewise.
70988         * tests/test-truncf1.c: Likewise.
70989         * tests/test-truncf2.c: Likewise.
70990         * tests/test-truncl.c: Likewise.
70991         * tests/test-uname.c: Likewise.
70992         * tests/test-unlink.c: Likewise.
70993         * tests/test-unlinkat.c: Likewise.
70994         * tests/test-unsetenv.c: Likewise.
70995         * tests/test-usleep.c: Likewise.
70996         * tests/test-utimens.c: Likewise.
70997         * tests/test-utimensat.c: Likewise.
70998         * tests/test-vasnprintf-posix.c: Likewise.
70999         * tests/test-vasnprintf-posix2.c: Likewise.
71000         * tests/test-vasnprintf.c: Likewise.
71001         * tests/test-vasprintf-posix.c: Likewise.
71002         * tests/test-vasprintf.c: Likewise.
71003         * tests/test-vdprintf-posix.c: Likewise.
71004         * tests/test-vfprintf-posix.c: Likewise.
71005         * tests/test-vprintf-posix.c: Likewise.
71006         * tests/test-vsnprintf-posix.c: Likewise.
71007         * tests/test-vsnprintf.c: Likewise.
71008         * tests/test-vsprintf-posix.c: Likewise.
71009         * tests/test-wcrtomb.c: Likewise.
71010         * tests/test-wcsnrtombs.c: Likewise.
71011         * tests/test-wcsrtombs.c: Likewise.
71012         * tests/test-wctype.c: Likewise.
71013         * tests/test-wcwidth.c: Likewise.
71014         * tests/test-xfprintf-posix.c: Likewise.
71015         * tests/test-xmemdup0.c: Likewise.
71016         * tests/test-xprintf-posix.c: Likewise.
71017         * tests/test-xvasprintf.c: Likewise.
71018         * tests/unicase/test-locale-language.c: Likewise.
71019         * tests/unicase/test-mapping-part1.h: Likewise.
71020         * tests/unicase/test-predicate-part1.h: Likewise.
71021         * tests/unicase/test-u8-casecmp.c: Likewise.
71022         * tests/unicase/test-u8-casecoll.c: Likewise.
71023         * tests/unicase/test-u8-casefold.c: Likewise.
71024         * tests/unicase/test-u8-is-cased.c: Likewise.
71025         * tests/unicase/test-u8-is-casefolded.c: Likewise.
71026         * tests/unicase/test-u8-is-lowercase.c: Likewise.
71027         * tests/unicase/test-u8-is-titlecase.c: Likewise.
71028         * tests/unicase/test-u8-is-uppercase.c: Likewise.
71029         * tests/unicase/test-u8-tolower.c: Likewise.
71030         * tests/unicase/test-u8-totitle.c: Likewise.
71031         * tests/unicase/test-u8-toupper.c: Likewise.
71032         * tests/unicase/test-u16-casecmp.c: Likewise.
71033         * tests/unicase/test-u16-casecoll.c: Likewise.
71034         * tests/unicase/test-u16-casefold.c: Likewise.
71035         * tests/unicase/test-u16-is-cased.c: Likewise.
71036         * tests/unicase/test-u16-is-casefolded.c: Likewise.
71037         * tests/unicase/test-u16-is-lowercase.c: Likewise.
71038         * tests/unicase/test-u16-is-titlecase.c: Likewise.
71039         * tests/unicase/test-u16-is-uppercase.c: Likewise.
71040         * tests/unicase/test-u16-tolower.c: Likewise.
71041         * tests/unicase/test-u16-totitle.c: Likewise.
71042         * tests/unicase/test-u16-toupper.c: Likewise.
71043         * tests/unicase/test-u32-casecmp.c: Likewise.
71044         * tests/unicase/test-u32-casecoll.c: Likewise.
71045         * tests/unicase/test-u32-casefold.c: Likewise.
71046         * tests/unicase/test-u32-is-cased.c: Likewise.
71047         * tests/unicase/test-u32-is-casefolded.c: Likewise.
71048         * tests/unicase/test-u32-is-lowercase.c: Likewise.
71049         * tests/unicase/test-u32-is-titlecase.c: Likewise.
71050         * tests/unicase/test-u32-is-uppercase.c: Likewise.
71051         * tests/unicase/test-u32-tolower.c: Likewise.
71052         * tests/unicase/test-u32-totitle.c: Likewise.
71053         * tests/unicase/test-u32-toupper.c: Likewise.
71054         * tests/unicase/test-ulc-casecmp.c: Likewise.
71055         * tests/unicase/test-ulc-casecoll.c: Likewise.
71056         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
71057         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
71058         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
71059         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
71060         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
71061         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
71062         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
71063         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
71064         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
71065         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
71066         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
71067         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
71068         * tests/unictype/test-bidi_byname.c: Likewise.
71069         * tests/unictype/test-bidi_name.c: Likewise.
71070         * tests/unictype/test-bidi_of.c: Likewise.
71071         * tests/unictype/test-bidi_test.c: Likewise.
71072         * tests/unictype/test-block_list.c: Likewise.
71073         * tests/unictype/test-block_of.c: Likewise.
71074         * tests/unictype/test-block_test.c: Likewise.
71075         * tests/unictype/test-categ_and.c: Likewise.
71076         * tests/unictype/test-categ_and_not.c: Likewise.
71077         * tests/unictype/test-categ_byname.c: Likewise.
71078         * tests/unictype/test-categ_name.c: Likewise.
71079         * tests/unictype/test-categ_none.c: Likewise.
71080         * tests/unictype/test-categ_of.c: Likewise.
71081         * tests/unictype/test-categ_or.c: Likewise.
71082         * tests/unictype/test-categ_test_withtable.c: Likewise.
71083         * tests/unictype/test-combining.c: Likewise.
71084         * tests/unictype/test-decdigit.c: Likewise.
71085         * tests/unictype/test-digit.c: Likewise.
71086         * tests/unictype/test-mirror.c: Likewise.
71087         * tests/unictype/test-numeric.c: Likewise.
71088         * tests/unictype/test-pr_byname.c: Likewise.
71089         * tests/unictype/test-pr_test.c: Likewise.
71090         * tests/unictype/test-predicate-part1.h: Likewise.
71091         * tests/unictype/test-scripts.c: Likewise.
71092         * tests/unictype/test-sy_c_ident.c: Likewise.
71093         * tests/unictype/test-sy_java_ident.c: Likewise.
71094         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
71095         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
71096         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
71097         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
71098         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
71099         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
71100         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
71101         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
71102         * tests/uninorm/test-canonical-decomposition.c: Likewise.
71103         * tests/uninorm/test-compat-decomposition.c: Likewise.
71104         * tests/uninorm/test-composition.c: Likewise.
71105         * tests/uninorm/test-decomposing-form.c: Likewise.
71106         * tests/uninorm/test-decomposition.c: Likewise.
71107         * tests/uninorm/test-u8-nfc.c: Likewise.
71108         * tests/uninorm/test-u8-nfd.c: Likewise.
71109         * tests/uninorm/test-u8-nfkc.c: Likewise.
71110         * tests/uninorm/test-u8-nfkd.c: Likewise.
71111         * tests/uninorm/test-u8-normcmp.c: Likewise.
71112         * tests/uninorm/test-u8-normcoll.c: Likewise.
71113         * tests/uninorm/test-u16-nfc.c: Likewise.
71114         * tests/uninorm/test-u16-nfd.c: Likewise.
71115         * tests/uninorm/test-u16-nfkc.c: Likewise.
71116         * tests/uninorm/test-u16-nfkd.c: Likewise.
71117         * tests/uninorm/test-u16-normcmp.c: Likewise.
71118         * tests/uninorm/test-u16-normcoll.c: Likewise.
71119         * tests/uninorm/test-u32-nfc.c: Likewise.
71120         * tests/uninorm/test-u32-nfd.c: Likewise.
71121         * tests/uninorm/test-u32-nfkc.c: Likewise.
71122         * tests/uninorm/test-u32-nfkd.c: Likewise.
71123         * tests/uninorm/test-u32-normalize-big.c: Likewise.
71124         * tests/uninorm/test-u32-normcmp.c: Likewise.
71125         * tests/uninorm/test-u32-normcoll.c: Likewise.
71126         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
71127         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
71128         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
71129         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
71130         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
71131         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
71132         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
71133         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
71134         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
71135         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
71136         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
71137         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
71138         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
71139         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
71140         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
71141         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
71142         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
71143         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
71144         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
71145         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
71146         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
71147         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
71148         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
71149         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
71150         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
71151         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
71152         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
71153         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
71154         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
71155         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
71156         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
71157         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
71158         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
71159         * tests/uniwidth/test-u8-strwidth.c: Likewise.
71160         * tests/uniwidth/test-u8-width.c: Likewise.
71161         * tests/uniwidth/test-u16-strwidth.c: Likewise.
71162         * tests/uniwidth/test-u16-width.c: Likewise.
71163         * tests/uniwidth/test-u32-strwidth.c: Likewise.
71164         * tests/uniwidth/test-u32-width.c: Likewise.
71165         * tests/uniwidth/test-uc_width.c: Likewise.
71166         * tests/uniwidth/test-uc_width2.c: Likewise.
71167         * modules/acl-tests (Files): Add tests/macros.h.
71168         * modules/areadlink-tests (Files): Likewise.
71169         * modules/areadlink-with-size-tests (Files): Likewise.
71170         * modules/areadlinkat-tests (Files): Likewise.
71171         * modules/areadlinkat-with-size-tests (Files): Likewise.
71172         * modules/argmatch-tests (Files): Likewise.
71173         * modules/argv-iter-tests (Files): Likewise.
71174         * modules/array-list-tests (Files): Likewise.
71175         * modules/array-mergesort-tests (Files): Likewise.
71176         * modules/array-oset-tests (Files): Likewise.
71177         * modules/avltree-list-tests (Files): Likewise.
71178         * modules/avltree-oset-tests (Files): Likewise.
71179         * modules/avltreehash-list-tests (Files): Likewise.
71180         * modules/base64-tests (Files): Likewise.
71181         * modules/binary-io-tests (Files): Likewise.
71182         * modules/bitrotate-tests (Files): Likewise.
71183         * modules/btowc-tests (Files): Likewise.
71184         * modules/byteswap-tests (Files): Likewise.
71185         * modules/c-ctype-tests (Files): Likewise.
71186         * modules/c-stack-tests (Files): Likewise.
71187         * modules/c-strcase-tests (Files): Likewise.
71188         * modules/c-strcasestr-tests (Files): Likewise.
71189         * modules/c-strstr-tests (Files): Likewise.
71190         * modules/canonicalize-lgpl-tests (Files): Likewise.
71191         * modules/canonicalize-tests (Files): Likewise.
71192         * modules/carray-list-tests (Files): Likewise.
71193         * modules/ceilf-tests (Files): Likewise.
71194         * modules/ceill-tests (Files): Likewise.
71195         * modules/chown-tests (Files): Likewise.
71196         * modules/cloexec-tests (Files): Likewise.
71197         * modules/copy-file-tests (Files): Likewise.
71198         * modules/count-one-bits-tests (Files): Likewise.
71199         * modules/dprintf-posix-tests (Files): Likewise.
71200         * modules/dup2-tests (Files): Likewise.
71201         * modules/dup3-tests (Files): Likewise.
71202         * modules/duplocale-tests (Files): Likewise.
71203         * modules/fbufmode-tests (Files): Likewise.
71204         * modules/fchdir-tests (Files): Likewise.
71205         * modules/fcntl-safer-tests (Files): Likewise.
71206         * modules/fcntl-tests (Files): Likewise.
71207         * modules/fdopendir-tests (Files): Likewise.
71208         * modules/fdutimensat-tests (Files): Likewise.
71209         * modules/fflush-tests (Files): Likewise.
71210         * modules/filevercmp-tests (Files): Likewise.
71211         * modules/flock-tests (Files): Likewise.
71212         * modules/floorf-tests (Files): Likewise.
71213         * modules/floorl-tests (Files): Likewise.
71214         * modules/fnmatch-tests (Files): Likewise.
71215         * modules/fopen-safer-tests (Files): Likewise.
71216         * modules/fopen-tests (Files): Likewise.
71217         * modules/fpending-tests (Files): Likewise.
71218         * modules/fprintf-posix-tests (Files): Likewise.
71219         * modules/fpurge-tests (Files): Likewise.
71220         * modules/freadable-tests (Files): Likewise.
71221         * modules/freadahead-tests (Files): Likewise.
71222         * modules/freading-tests (Files): Likewise.
71223         * modules/freadptr-tests (Files): Likewise.
71224         * modules/freadseek-tests (Files): Likewise.
71225         * modules/freopen-tests (Files): Likewise.
71226         * modules/frexp-nolibm-tests (Files): Likewise.
71227         * modules/frexp-tests (Files): Likewise.
71228         * modules/frexpl-nolibm-tests (Files): Likewise.
71229         * modules/frexpl-tests (Files): Likewise.
71230         * modules/fseek-tests (Files): Likewise.
71231         * modules/fseeko-tests (Files): Likewise.
71232         * modules/fstrcmp-tests (Files): Likewise.
71233         * modules/fsync-tests (Files): Likewise.
71234         * modules/ftell-tests (Files): Likewise.
71235         * modules/ftello-tests (Files): Likewise.
71236         * modules/func-tests (Files): Likewise.
71237         * modules/futimens-tests (Files): Likewise.
71238         * modules/fwritable-tests (Files): Likewise.
71239         * modules/fwriting-tests (Files): Likewise.
71240         * modules/getcwd-tests (Files): Likewise.
71241         * modules/getdate-tests (Files): Likewise.
71242         * modules/getdelim-tests (Files): Likewise.
71243         * modules/getdtablesize-tests (Files): Likewise.
71244         * modules/getgroups-tests (Files): Likewise.
71245         * modules/getline-tests (Files): Likewise.
71246         * modules/getndelim2-tests (Files): Likewise.
71247         * modules/glob-tests (Files): Likewise.
71248         * modules/hash-tests (Files): Likewise.
71249         * modules/i-ring-tests (Files): Likewise.
71250         * modules/iconv-tests (Files): Likewise.
71251         * modules/iconv_open-utf-tests (Files): Likewise.
71252         * modules/idpriv-drop-tests (Files): Likewise.
71253         * modules/idpriv-droptemp-tests (Files): Likewise.
71254         * modules/inet_ntop-tests (Files): Likewise.
71255         * modules/inet_pton-tests (Files): Likewise.
71256         * modules/isblank-tests (Files): Likewise.
71257         * modules/isfinite-tests (Files): Likewise.
71258         * modules/isinf-tests (Files): Likewise.
71259         * modules/isnan-tests (Files): Likewise.
71260         * modules/isnand-nolibm-tests (Files): Likewise.
71261         * modules/isnand-tests (Files): Likewise.
71262         * modules/isnanf-nolibm-tests (Files): Likewise.
71263         * modules/isnanf-tests (Files): Likewise.
71264         * modules/isnanl-nolibm-tests (Files): Likewise.
71265         * modules/isnanl-tests (Files): Likewise.
71266         * modules/lchown-tests (Files): Likewise.
71267         * modules/ldexpl-tests (Files): Likewise.
71268         * modules/link-tests (Files): Likewise.
71269         * modules/linkat-tests (Files): Likewise.
71270         * modules/linked-list-tests (Files): Likewise.
71271         * modules/linkedhash-list-tests (Files): Likewise.
71272         * modules/localename-tests (Files): Likewise.
71273         * modules/lseek-tests (Files): Likewise.
71274         * modules/lstat-tests (Files): Likewise.
71275         * modules/mbmemcasecmp-tests (Files): Likewise.
71276         * modules/mbmemcasecoll-tests (Files): Likewise.
71277         * modules/mbrtowc-tests (Files): Likewise.
71278         * modules/mbscasecmp-tests (Files): Likewise.
71279         * modules/mbscasestr-tests (Files): Likewise.
71280         * modules/mbschr-tests (Files): Likewise.
71281         * modules/mbscspn-tests (Files): Likewise.
71282         * modules/mbsinit-tests (Files): Likewise.
71283         * modules/mbsncasecmp-tests (Files): Likewise.
71284         * modules/mbsnrtowcs-tests (Files): Likewise.
71285         * modules/mbspbrk-tests (Files): Likewise.
71286         * modules/mbspcasecmp-tests (Files): Likewise.
71287         * modules/mbsrchr-tests (Files): Likewise.
71288         * modules/mbsrtowcs-tests (Files): Likewise.
71289         * modules/mbsspn-tests (Files): Likewise.
71290         * modules/mbsstr-tests (Files): Likewise.
71291         * modules/memchr-tests (Files): Likewise.
71292         * modules/memchr2-tests (Files): Likewise.
71293         * modules/memcmp-tests (Files): Likewise.
71294         * modules/memmem-tests (Files): Likewise.
71295         * modules/memrchr-tests (Files): Likewise.
71296         * modules/mkdir-tests (Files): Likewise.
71297         * modules/mkfifo-tests (Files): Likewise.
71298         * modules/mkfifoat-tests (Files): Likewise.
71299         * modules/mknod-tests (Files): Likewise.
71300         * modules/nanosleep-tests (Files): Likewise.
71301         * modules/nl_langinfo-tests (Files): Likewise.
71302         * modules/obstack-printf-tests (Files): Likewise.
71303         * modules/open-tests (Files): Likewise.
71304         * modules/openat-tests (Files): Likewise.
71305         * modules/pipe-filter-gi-tests (Files): Likewise.
71306         * modules/pipe-filter-ii-tests (Files): Likewise.
71307         * modules/pipe2-tests (Files): Likewise.
71308         * modules/popen-safer-tests (Files): Likewise.
71309         * modules/popen-tests (Files): Likewise.
71310         * modules/posixtm-tests (Files): Likewise.
71311         * modules/pread-tests (Files): Likewise.
71312         * modules/printf-frexp-tests (Files): Likewise.
71313         * modules/printf-frexpl-tests (Files): Likewise.
71314         * modules/printf-posix-tests (Files): Likewise.
71315         * modules/priv-set-tests (Files): Likewise.
71316         * modules/quotearg-tests (Files): Likewise.
71317         * modules/random_r-tests (Files): Likewise.
71318         * modules/rawmemchr-tests (Files): Likewise.
71319         * modules/rbtree-list-tests (Files): Likewise.
71320         * modules/rbtree-oset-tests (Files): Likewise.
71321         * modules/rbtreehash-list-tests (Files): Likewise.
71322         * modules/readlink-tests (Files): Likewise.
71323         * modules/remove-tests (Files): Likewise.
71324         * modules/rename-tests (Files): Likewise.
71325         * modules/renameat-tests (Files): Likewise.
71326         * modules/rmdir-tests (Files): Likewise.
71327         * modules/round-tests (Files): Likewise.
71328         * modules/roundf-tests (Files): Likewise.
71329         * modules/roundl-tests (Files): Likewise.
71330         * modules/safe-alloc-tests (Files): Likewise.
71331         * modules/setenv-tests (Files): Likewise.
71332         * modules/sigaction-tests (Files): Likewise.
71333         * modules/signbit-tests (Files): Likewise.
71334         * modules/sleep-tests (Files): Likewise.
71335         * modules/snprintf-posix-tests (Files): Likewise.
71336         * modules/snprintf-tests (Files): Likewise.
71337         * modules/sprintf-posix-tests (Files): Likewise.
71338         * modules/stat-tests (Files): Likewise.
71339         * modules/stat-time-tests (Files): Likewise.
71340         * modules/strcasestr-tests (Files): Likewise.
71341         * modules/strchrnul-tests (Files): Likewise.
71342         * modules/strerror-tests (Files): Likewise.
71343         * modules/striconv-tests (Files): Likewise.
71344         * modules/striconveh-tests (Files): Likewise.
71345         * modules/striconveha-tests (Files): Likewise.
71346         * modules/strsignal-tests (Files): Likewise.
71347         * modules/strstr-tests (Files): Likewise.
71348         * modules/strtod-tests (Files): Likewise.
71349         * modules/strverscmp-tests (Files): Likewise.
71350         * modules/symlink-tests (Files): Likewise.
71351         * modules/symlinkat-tests (Files): Likewise.
71352         * modules/trunc-tests (Files): Likewise.
71353         * modules/truncf-tests (Files): Likewise.
71354         * modules/truncl-tests (Files): Likewise.
71355         * modules/uname-tests (Files): Likewise.
71356         * modules/unicase/cased-tests (Files): Likewise.
71357         * modules/unicase/ignorable-tests (Files): Likewise.
71358         * modules/unicase/locale-language-tests (Files): Likewise.
71359         * modules/unicase/tolower-tests (Files): Likewise.
71360         * modules/unicase/totitle-tests (Files): Likewise.
71361         * modules/unicase/toupper-tests (Files): Likewise.
71362         * modules/unicase/u8-casecmp-tests (Files): Likewise.
71363         * modules/unicase/u8-casecoll-tests (Files): Likewise.
71364         * modules/unicase/u8-casefold-tests (Files): Likewise.
71365         * modules/unicase/u8-is-cased-tests (Files): Likewise.
71366         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
71367         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
71368         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
71369         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
71370         * modules/unicase/u8-tolower-tests (Files): Likewise.
71371         * modules/unicase/u8-totitle-tests (Files): Likewise.
71372         * modules/unicase/u8-toupper-tests (Files): Likewise.
71373         * modules/unicase/u16-casecmp-tests (Files): Likewise.
71374         * modules/unicase/u16-casecoll-tests (Files): Likewise.
71375         * modules/unicase/u16-casefold-tests (Files): Likewise.
71376         * modules/unicase/u16-is-cased-tests (Files): Likewise.
71377         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
71378         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
71379         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
71380         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
71381         * modules/unicase/u16-tolower-tests (Files): Likewise.
71382         * modules/unicase/u16-totitle-tests (Files): Likewise.
71383         * modules/unicase/u16-toupper-tests (Files): Likewise.
71384         * modules/unicase/u32-casecmp-tests (Files): Likewise.
71385         * modules/unicase/u32-casecoll-tests (Files): Likewise.
71386         * modules/unicase/u32-casefold-tests (Files): Likewise.
71387         * modules/unicase/u32-is-cased-tests (Files): Likewise.
71388         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
71389         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
71390         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
71391         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
71392         * modules/unicase/u32-tolower-tests (Files): Likewise.
71393         * modules/unicase/u32-totitle-tests (Files): Likewise.
71394         * modules/unicase/u32-toupper-tests (Files): Likewise.
71395         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
71396         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
71397         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
71398         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
71399         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
71400         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
71401         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
71402         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
71403         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
71404         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
71405         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
71406         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
71407         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
71408         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
71409         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
71410         * modules/unictype/bidicategory-name-tests (Files): Likewise.
71411         * modules/unictype/bidicategory-of-tests (Files): Likewise.
71412         * modules/unictype/bidicategory-test-tests (Files): Likewise.
71413         * modules/unictype/block-list-tests (Files): Likewise.
71414         * modules/unictype/block-of-tests (Files): Likewise.
71415         * modules/unictype/block-test-tests (Files): Likewise.
71416         * modules/unictype/category-C-tests (Files): Likewise.
71417         * modules/unictype/category-Cc-tests (Files): Likewise.
71418         * modules/unictype/category-Cf-tests (Files): Likewise.
71419         * modules/unictype/category-Cn-tests (Files): Likewise.
71420         * modules/unictype/category-Co-tests (Files): Likewise.
71421         * modules/unictype/category-Cs-tests (Files): Likewise.
71422         * modules/unictype/category-L-tests (Files): Likewise.
71423         * modules/unictype/category-Ll-tests (Files): Likewise.
71424         * modules/unictype/category-Lm-tests (Files): Likewise.
71425         * modules/unictype/category-Lo-tests (Files): Likewise.
71426         * modules/unictype/category-Lt-tests (Files): Likewise.
71427         * modules/unictype/category-Lu-tests (Files): Likewise.
71428         * modules/unictype/category-M-tests (Files): Likewise.
71429         * modules/unictype/category-Mc-tests (Files): Likewise.
71430         * modules/unictype/category-Me-tests (Files): Likewise.
71431         * modules/unictype/category-Mn-tests (Files): Likewise.
71432         * modules/unictype/category-N-tests (Files): Likewise.
71433         * modules/unictype/category-Nd-tests (Files): Likewise.
71434         * modules/unictype/category-Nl-tests (Files): Likewise.
71435         * modules/unictype/category-No-tests (Files): Likewise.
71436         * modules/unictype/category-P-tests (Files): Likewise.
71437         * modules/unictype/category-Pc-tests (Files): Likewise.
71438         * modules/unictype/category-Pd-tests (Files): Likewise.
71439         * modules/unictype/category-Pe-tests (Files): Likewise.
71440         * modules/unictype/category-Pf-tests (Files): Likewise.
71441         * modules/unictype/category-Pi-tests (Files): Likewise.
71442         * modules/unictype/category-Po-tests (Files): Likewise.
71443         * modules/unictype/category-Ps-tests (Files): Likewise.
71444         * modules/unictype/category-S-tests (Files): Likewise.
71445         * modules/unictype/category-Sc-tests (Files): Likewise.
71446         * modules/unictype/category-Sk-tests (Files): Likewise.
71447         * modules/unictype/category-Sm-tests (Files): Likewise.
71448         * modules/unictype/category-So-tests (Files): Likewise.
71449         * modules/unictype/category-Z-tests (Files): Likewise.
71450         * modules/unictype/category-Zl-tests (Files): Likewise.
71451         * modules/unictype/category-Zp-tests (Files): Likewise.
71452         * modules/unictype/category-Zs-tests (Files): Likewise.
71453         * modules/unictype/category-and-not-tests (Files): Likewise.
71454         * modules/unictype/category-and-tests (Files): Likewise.
71455         * modules/unictype/category-byname-tests (Files): Likewise.
71456         * modules/unictype/category-name-tests (Files): Likewise.
71457         * modules/unictype/category-none-tests (Files): Likewise.
71458         * modules/unictype/category-of-tests (Files): Likewise.
71459         * modules/unictype/category-or-tests (Files): Likewise.
71460         * modules/unictype/category-test-withtable-tests (Files): Likewise.
71461         * modules/unictype/combining-class-tests (Files): Likewise.
71462         * modules/unictype/ctype-alnum-tests (Files): Likewise.
71463         * modules/unictype/ctype-alpha-tests (Files): Likewise.
71464         * modules/unictype/ctype-blank-tests (Files): Likewise.
71465         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
71466         * modules/unictype/ctype-digit-tests (Files): Likewise.
71467         * modules/unictype/ctype-graph-tests (Files): Likewise.
71468         * modules/unictype/ctype-lower-tests (Files): Likewise.
71469         * modules/unictype/ctype-print-tests (Files): Likewise.
71470         * modules/unictype/ctype-punct-tests (Files): Likewise.
71471         * modules/unictype/ctype-space-tests (Files): Likewise.
71472         * modules/unictype/ctype-upper-tests (Files): Likewise.
71473         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
71474         * modules/unictype/decimal-digit-tests (Files): Likewise.
71475         * modules/unictype/digit-tests (Files): Likewise.
71476         * modules/unictype/mirror-tests (Files): Likewise.
71477         * modules/unictype/numeric-tests (Files): Likewise.
71478         * modules/unictype/property-alphabetic-tests (Files): Likewise.
71479         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
71480         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
71481         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
71482         Likewise.
71483         * modules/unictype/property-bidi-block-separator-tests (Files):
71484         Likewise.
71485         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
71486         Likewise.
71487         * modules/unictype/property-bidi-common-separator-tests (Files):
71488         Likewise.
71489         * modules/unictype/property-bidi-control-tests (Files): Likewise.
71490         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
71491         Likewise.
71492         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
71493         Likewise.
71494         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
71495         Likewise.
71496         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
71497         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
71498         Likewise.
71499         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
71500         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
71501         Likewise.
71502         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
71503         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
71504         * modules/unictype/property-bidi-segment-separator-tests (Files):
71505         Likewise.
71506         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
71507         * modules/unictype/property-byname-tests (Files): Likewise.
71508         * modules/unictype/property-combining-tests (Files): Likewise.
71509         * modules/unictype/property-composite-tests (Files): Likewise.
71510         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
71511         * modules/unictype/property-dash-tests (Files): Likewise.
71512         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
71513         * modules/unictype/property-default-ignorable-code-point-tests (Files):
71514         Likewise.
71515         * modules/unictype/property-deprecated-tests (Files): Likewise.
71516         * modules/unictype/property-diacritic-tests (Files): Likewise.
71517         * modules/unictype/property-extender-tests (Files): Likewise.
71518         * modules/unictype/property-format-control-tests (Files): Likewise.
71519         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
71520         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
71521         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
71522         * modules/unictype/property-hex-digit-tests (Files): Likewise.
71523         * modules/unictype/property-hyphen-tests (Files): Likewise.
71524         * modules/unictype/property-id-continue-tests (Files): Likewise.
71525         * modules/unictype/property-id-start-tests (Files): Likewise.
71526         * modules/unictype/property-ideographic-tests (Files): Likewise.
71527         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
71528         * modules/unictype/property-ids-trinary-operator-tests (Files):
71529         Likewise.
71530         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
71531         * modules/unictype/property-iso-control-tests (Files): Likewise.
71532         * modules/unictype/property-join-control-tests (Files): Likewise.
71533         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
71534         * modules/unictype/property-line-separator-tests (Files): Likewise.
71535         * modules/unictype/property-logical-order-exception-tests (Files):
71536         Likewise.
71537         * modules/unictype/property-lowercase-tests (Files): Likewise.
71538         * modules/unictype/property-math-tests (Files): Likewise.
71539         * modules/unictype/property-non-break-tests (Files): Likewise.
71540         * modules/unictype/property-not-a-character-tests (Files): Likewise.
71541         * modules/unictype/property-numeric-tests (Files): Likewise.
71542         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
71543         * modules/unictype/property-other-default-ignorable-code-point-tests
71544         (Files): Likewise.
71545         * modules/unictype/property-other-grapheme-extend-tests (Files):
71546         Likewise.
71547         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
71548         * modules/unictype/property-other-id-start-tests (Files): Likewise.
71549         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
71550         * modules/unictype/property-other-math-tests (Files): Likewise.
71551         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
71552         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
71553         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
71554         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
71555         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
71556         * modules/unictype/property-private-use-tests (Files): Likewise.
71557         * modules/unictype/property-punctuation-tests (Files): Likewise.
71558         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
71559         * modules/unictype/property-radical-tests (Files): Likewise.
71560         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
71561         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
71562         * modules/unictype/property-space-tests (Files): Likewise.
71563         * modules/unictype/property-terminal-punctuation-tests (Files):
71564         Likewise.
71565         * modules/unictype/property-test-tests (Files): Likewise.
71566         * modules/unictype/property-titlecase-tests (Files): Likewise.
71567         * modules/unictype/property-unassigned-code-value-tests (Files):
71568         Likewise.
71569         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
71570         * modules/unictype/property-uppercase-tests (Files): Likewise.
71571         * modules/unictype/property-variation-selector-tests (Files): Likewise.
71572         * modules/unictype/property-white-space-tests (Files): Likewise.
71573         * modules/unictype/property-xid-continue-tests (Files): Likewise.
71574         * modules/unictype/property-xid-start-tests (Files): Likewise.
71575         * modules/unictype/property-zero-width-tests (Files): Likewise.
71576         * modules/unictype/scripts-tests (Files): Likewise.
71577         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
71578         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
71579         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
71580         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
71581         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
71582         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
71583         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
71584         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
71585         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
71586         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
71587         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
71588         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
71589         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
71590         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
71591         * modules/uninorm/composition-tests (Files): Likewise.
71592         * modules/uninorm/decomposing-form-tests (Files): Likewise.
71593         * modules/uninorm/decomposition-tests (Files): Likewise.
71594         * modules/uninorm/filter-tests (Files): Likewise.
71595         * modules/uninorm/nfc-tests (Files): Likewise.
71596         * modules/uninorm/nfd-tests (Files): Likewise.
71597         * modules/uninorm/nfkc-tests (Files): Likewise.
71598         * modules/uninorm/nfkd-tests (Files): Likewise.
71599         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
71600         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
71601         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
71602         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
71603         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
71604         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
71605         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
71606         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
71607         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
71608         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
71609         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
71610         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
71611         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
71612         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
71613         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
71614         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
71615         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
71616         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
71617         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
71618         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
71619         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
71620         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
71621         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
71622         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
71623         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
71624         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
71625         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
71626         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
71627         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
71628         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
71629         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
71630         * modules/uniwidth/u8-width-tests (Files): Likewise.
71631         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
71632         * modules/uniwidth/u16-width-tests (Files): Likewise.
71633         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
71634         * modules/uniwidth/u32-width-tests (Files): Likewise.
71635         * modules/uniwidth/width-tests (Files): Likewise.
71636         * modules/unlink-tests (Files): Likewise.
71637         * modules/unsetenv-tests (Files): Likewise.
71638         * modules/usleep-tests (Files): Likewise.
71639         * modules/utimens-tests (Files): Likewise.
71640         * modules/utimensat-tests (Files): Likewise.
71641         * modules/vasnprintf-posix-tests (Files): Likewise.
71642         * modules/vasnprintf-tests (Files): Likewise.
71643         * modules/vasprintf-posix-tests (Files): Likewise.
71644         * modules/vasprintf-tests (Files): Likewise.
71645         * modules/vdprintf-posix-tests (Files): Likewise.
71646         * modules/vfprintf-posix-tests (Files): Likewise.
71647         * modules/vprintf-posix-tests (Files): Likewise.
71648         * modules/vsnprintf-posix-tests (Files): Likewise.
71649         * modules/vsnprintf-tests (Files): Likewise.
71650         * modules/vsprintf-posix-tests (Files): Likewise.
71651         * modules/wcrtomb-tests (Files): Likewise.
71652         * modules/wcsnrtombs-tests (Files): Likewise.
71653         * modules/wcsrtombs-tests (Files): Likewise.
71654         * modules/wctype-tests (Files): Likewise.
71655         * modules/wcwidth-tests (Files): Likewise.
71656         * modules/xmemdup0-tests (Files): Likewise.
71657         * modules/xprintf-posix-tests (Files): Likewise.
71658         * modules/xvasprintf-tests (Files): Likewise.
71660 2009-12-24  Eric Blake  <ebb9@byu.net>
71662         test-nanosleep: fix typo
71663         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
71664         patch.
71665         Reported by Bruno Haible.
71667 2009-12-24  Bruno Haible  <bruno@clisp.org>
71669         Reduce namespace pollution on glibc systems.
71670         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
71671         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
71672         systems.
71673         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
71674         <getopt.h> on glibc systems.
71675         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
71676         systems.
71677         * lib/fcntl.c: Include <unistd.h> here instead.
71679 2009-12-24  Bruno Haible  <bruno@clisp.org>
71681         * lib/stdlib.in.h (includes): Fix typo in today's commit.
71683 2009-12-24  Eric Blake  <ebb9@byu.net>
71685         tests: add signature checks
71686         * tests/signature.h (SIGNATURE_CHECK): New file.
71687         * modules/atexit-tests (Files): Use it.
71688         * modules/btowc-tests (Files): Likewise.
71689         * modules/canonicalize-lgpl-tests (Files): Likewise.
71690         * modules/ceilf-tests (Files): Likewise.
71691         * modules/ceill-tests (Files): Likewise.
71692         * modules/chown-tests (Files): Likewise.
71693         * modules/dprintf-posix-tests (Files): Likewise.
71694         * modules/dup2-tests (Files): Likewise.
71695         * modules/dup3-tests (Files): Likewise.
71696         * modules/duplocale-tests (Files): Likewise.
71697         * modules/fchdir-tests (Files): Likewise.
71698         * modules/fcntl-tests (Files): Likewise.
71699         * modules/fdopendir-tests (Files): Likewise.
71700         * modules/fflush-tests (Files): Likewise.
71701         * modules/flock-tests (Files): Likewise.
71702         * modules/floorf-tests (Files): Likewise.
71703         * modules/floorl-tests (Files): Likewise.
71704         * modules/fnmatch-tests (Files): Likewise.
71705         * modules/fopen-tests (Files): Likewise.
71706         * modules/fprintf-posix-tests (Files): Likewise.
71707         * modules/freopen-tests (Files): Likewise.
71708         * modules/frexp-nolibm-tests (Files): Likewise.
71709         * modules/frexp-tests (Files): Likewise.
71710         * modules/frexpl-nolibm-tests (Files): Likewise.
71711         * modules/frexpl-tests (Files): Likewise.
71712         * modules/fseek-tests (Files): Likewise.
71713         * modules/fseeko-tests (Files): Likewise.
71714         * modules/fsync-tests (Files): Likewise.
71715         * modules/ftell-tests (Files): Likewise.
71716         * modules/ftello-tests (Files): Likewise.
71717         * modules/futimens-tests (Files): Likewise.
71718         * modules/getaddrinfo-tests (Files): Likewise.
71719         * modules/getcwd-tests (Files): Likewise.
71720         * modules/getdelim-tests (Files): Likewise.
71721         * modules/getdtablesize-tests (Files): Likewise.
71722         * modules/getgroups-tests (Files): Likewise.
71723         * modules/gethostname-tests (Files): Likewise.
71724         * modules/getline-tests (Files): Likewise.
71725         * modules/getopt-posix-tests (Files): Likewise.
71726         * modules/gettimeofday-tests (Files): Likewise.
71727         * modules/glob-tests (Files): Likewise.
71728         * modules/iconv-tests (Files): Likewise.
71729         * modules/inet_ntop-tests (Files): Likewise.
71730         * modules/inet_pton-tests (Files): Likewise.
71731         * modules/isblank-tests (Files): Likewise.
71732         * modules/lchown-tests (Files): Likewise.
71733         * modules/ldexpl-tests (Files): Likewise.
71734         * modules/link-tests (Files): Likewise.
71735         * modules/linkat-tests (Files): Likewise.
71736         * modules/lseek-tests (Files): Likewise.
71737         * modules/lstat-tests (Files): Likewise.
71738         * modules/mbrtowc-tests (Files): Likewise.
71739         * modules/mbsinit-tests (Files): Likewise.
71740         * modules/mbsnrtowcs-tests (Files): Likewise.
71741         * modules/mbsrtowcs-tests (Files): Likewise.
71742         * modules/memchr-tests (Files): Likewise.
71743         * modules/memcmp-tests (Files): Likewise.
71744         * modules/memmem-tests (Files): Likewise.
71745         * modules/memrchr-tests (Files): Likewise.
71746         * modules/mkdir-tests (Files): Likewise.
71747         * modules/mkfifo-tests (Files): Likewise.
71748         * modules/mkfifoat-tests (Files): Likewise.
71749         * modules/mknod-tests (Files): Likewise.
71750         * modules/nanosleep-tests (Files): Likewise.
71751         * modules/nl_langinfo-tests (Files): Likewise.
71752         * modules/obstack-printf-tests (Files): Likewise.
71753         * modules/open-tests (Files): Likewise.
71754         * modules/openat-tests (Files): Likewise.
71755         * modules/perror-tests (Files): Likewise.
71756         * modules/pipe2-tests (Files): Likewise.
71757         * modules/poll-tests (Files): Likewise.
71758         * modules/popen-tests (Files): Likewise.
71759         * modules/posix_spawn-tests (Files): Likewise.
71760         * modules/posix_spawnp-tests (Files): Likewise.
71761         * modules/pread-tests (Files): Likewise.
71762         * modules/printf-posix-tests (Files): Likewise.
71763         * modules/pty-tests (Files): Likewise.
71764         * modules/random_r-tests (Files): Likewise.
71765         * modules/rawmemchr-tests (Files): Likewise.
71766         * modules/readlink-tests (Files): Likewise.
71767         * modules/remove-tests (Files): Likewise.
71768         * modules/rename-tests (Files): Likewise.
71769         * modules/renameat-tests (Files): Likewise.
71770         * modules/rmdir-tests (Files): Likewise.
71771         * modules/round-tests (Files): Likewise.
71772         * modules/roundf-tests (Files): Likewise.
71773         * modules/roundl-tests (Files): Likewise.
71774         * modules/select-tests (Files): Likewise.
71775         * modules/setenv-tests (Files): Likewise.
71776         * modules/sigaction-tests (Files): Likewise.
71777         * modules/sleep-tests (Files): Likewise.
71778         * modules/snprintf-posix-tests (Files): Likewise.
71779         * modules/snprintf-tests (Files): Likewise.
71780         * modules/sprintf-posix-tests (Files): Likewise.
71781         * modules/stat-tests (Files): Likewise.
71782         * modules/strcasestr-tests (Files): Likewise.
71783         * modules/strchrnul-tests (Files): Likewise.
71784         * modules/strerror-tests (Files): Likewise.
71785         * modules/strsignal-tests (Files): Likewise.
71786         * modules/strstr-tests (Files): Likewise.
71787         * modules/strtod-tests (Files): Likewise.
71788         * modules/strverscmp-tests (Files): Likewise.
71789         * modules/symlink-tests (Files): Likewise.
71790         * modules/symlinkat-tests (Files): Likewise.
71791         * modules/times-tests (Files): Likewise.
71792         * modules/trunc-tests (Files): Likewise.
71793         * modules/truncf-tests (Files): Likewise.
71794         * modules/truncl-tests (Files): Likewise.
71795         * modules/tsearch-tests (Files): Likewise.
71796         * modules/uname-tests (Files): Likewise.
71797         * modules/unlink-tests (Files): Likewise.
71798         * modules/unsetenv-tests (Files): Likewise.
71799         * modules/usleep-tests (Files): Likewise.
71800         * modules/utimensat-tests (Files): Likewise.
71801         * modules/vasprintf-tests (Files): Likewise.
71802         * modules/vdprintf-posix-tests (Files): Likewise.
71803         * modules/vfprintf-posix-tests (Files): Likewise.
71804         * modules/vprintf-posix-tests (Files): Likewise.
71805         * modules/vsnprintf-posix-tests (Files): Likewise.
71806         * modules/vsnprintf-tests (Files): Likewise.
71807         * modules/vsprintf-posix-tests (Files): Likewise.
71808         * modules/wcrtomb-tests (Files): Likewise.
71809         * modules/wcsnrtombs-tests (Files): Likewise.
71810         * modules/wcsrtombs-tests (Files): Likewise.
71811         * modules/wcwidth-tests (Files): Likewise.
71812         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
71813         * tests/test-isinf.c (isinf): Likewise.
71814         * tests/test-isnan.c (isnan): Likewise.
71815         * tests/test-signbit.c (signbit): Likewise.
71816         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
71817         declaration, either as macro or with correct signature.
71818         (select): Ensure function under test is declared with correct
71819         signature in correct header.
71820         * tests/test-atexit.c (atexit): Likewise.
71821         * tests/test-btowc.c (btowc): Likewise.
71822         * tests/test-canonicalize-lgpl.c (realpath)
71823         (canonicalize_file_name): Likewise.
71824         * tests/test-ceilf1.c (ceilf): Likewise.
71825         * tests/test-ceill.c (ceill): Likewise.
71826         * tests/test-chown.c (chown): Likewise.
71827         * tests/test-dprintf-posix.c (dprintf): Likewise.
71828         * tests/test-dup2.c (dup2): Likewise.
71829         * tests/test-dup3.c (dup3): Likewise.
71830         * tests/test-duplocale.c (duplocale): Likewise.
71831         * tests/test-fchdir.c (fchdir): Likewise.
71832         * tests/test-fchownat.c (fchownat): Likewise.
71833         * tests/test-fcntl.c (fcntl): Likewise.
71834         * tests/test-fdopendir.c (fdopendir): Likewise.
71835         * tests/test-fflush.c (fflush): Likewise.
71836         * tests/test-flock.c (flock): Likewise.
71837         * tests/test-floorf1.c (floorf): Likewise.
71838         * tests/test-floorl.c (floorl): Likewise.
71839         * tests/test-fnmatch.c (fnmatch): Likewise.
71840         * tests/test-fopen.c (fopen): Likewise.
71841         * tests/test-fprintf-posix.c (fprintf): Likewise.
71842         * tests/test-freopen.c (freopen): Likewise.
71843         * tests/test-frexp.c (frexp): Likewise.
71844         * tests/test-frexpl.c (frexpl): Likewise.
71845         * tests/test-fseek.c (fseek): Likewise.
71846         * tests/test-fseeko.c (fseeko): Likewise.
71847         * tests/test-fstatat.c (fstatat): Likewise.
71848         * tests/test-fsync.c (fsync): Likewise.
71849         * tests/test-ftell.c (ftell): Likewise.
71850         * tests/test-ftello.c (ftello): Likewise.
71851         * tests/test-futimens.c (futimens): Likewise.
71852         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
71853         (gai_strerror): Likewise.
71854         * tests/test-getcwd.c (getcwd): Likewise.
71855         * tests/test-getdelim.c (getdelim): Likewise.
71856         * tests/test-getdtablesize.c (getdtablesize): Likewise.
71857         * tests/test-getgroups.c (getgroups): Likewise.
71858         * tests/test-gethostname.c (gethostname): Likewise.
71859         * tests/test-getline.c (getline): Likewise.
71860         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
71861         Likewise.
71862         * tests/test-gettimeofday.c (gettimeofday): Likewise.
71863         * tests/test-glob.c (glob, globfree): Likewise.
71864         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
71865         * tests/test-inet_ntop.c (inet_ntop): Likewise.
71866         * tests/test-inet_pton.c (inet_pton): Likewise.
71867         * tests/test-isblank.c (isblank): Likewise.
71868         * tests/test-lchown.c (lchown): Likewise.
71869         * tests/test-ldexpl.c (ldexpl): Likewise.
71870         * tests/test-link.c (link): Likewise.
71871         * tests/test-linkat.c (linkat): Likewise.
71872         * tests/test-lseek.c (lseek): Likewise.
71873         * tests/test-lstat.c (lstat): Likewise.
71874         * tests/test-mbrtowc.c (mbrtowc): Likewise.
71875         * tests/test-mbsinit.c (mbsinit): Likewise.
71876         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
71877         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
71878         * tests/test-memchr.c (memchr): Likewise.
71879         * tests/test-memcmp.c (memcmp): Likewise.
71880         * tests/test-memmem.c (memmem): Likewise.
71881         * tests/test-memrchr.c (memrchr): Likewise.
71882         * tests/test-mkdir.c (mkdir): Likewise.
71883         * tests/test-mkdirat.c (mkdirat): Likewise.
71884         * tests/test-mkfifo.c (mkfifo): Likewise.
71885         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
71886         * tests/test-mknod.c (mknod): Likewise.
71887         * tests/test-nanosleep.c (nanosleep): Likewise.
71888         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
71889         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
71890         Likewise.
71891         * tests/test-open.c (open): Likewise.
71892         * tests/test-openat.c (openat): Likewise.
71893         * tests/test-perror.c (perror): Likewise.
71894         * tests/test-pipe2.c (pipe2): Likewise.
71895         * tests/test-poll.c (poll): Likewise.
71896         * tests/test-popen.c (popen, pclose): Likewise.
71897         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
71898         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
71899         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
71900         (posix_spawn_file_actions_destroy)
71901         (posix_spawn_file_actions_addclose)
71902         (posix_spawn_file_actions_addopen)
71903         (posix_spawn_file_actions_adddup2): Likewise.
71904         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
71905         * tests/test-pread.c (pread): Likewise.
71906         * tests/test-printf-posix.c (printf): Likewise.
71907         * tests/test-pty.c (openpty, forkpty): Likewise.
71908         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
71909         (random_r): Likewise.
71910         * tests/test-rawmemchr.c (rawmemchr): Likewise.
71911         * tests/test-readlink.c (readlink): Likewise.
71912         * tests/test-remove.c (remove): Likewise.
71913         * tests/test-rename.c (rename): Likewise.
71914         * tests/test-renameat.c (renameat): Likewise.
71915         * tests/test-rmdir.c (rmdir): Likewise.
71916         * tests/test-round1.c (round): Likewise.
71917         * tests/test-roundf1.c (roundf): Likewise.
71918         * tests/test-roundl.c (roundl): Likewise.
71919         * tests/test-setenv.c (setenv): Likewise.
71920         * tests/test-sigaction.c (sigaction): Likewise.
71921         * tests/test-sleep.c (sleep): Likewise.
71922         * tests/test-snprintf.c (snprintf): Likewise.
71923         * tests/test-sprintf-posix.c (sprintf): Likewise.
71924         * tests/test-stat.c (stat): Likewise.
71925         * tests/test-stpncpy.c (stpncpy): Likewise.
71926         * tests/test-strcasestr.c (strcasestr): Likewise.
71927         * tests/test-strchrnul.c (strchrnul): Likewise.
71928         * tests/test-strerror.c (strerror): Likewise.
71929         * tests/test-strsignal.c (strsignal): Likewise.
71930         * tests/test-strstr.c (strstr): Likewise.
71931         * tests/test-strtod.c (strtod): Likewise.
71932         * tests/test-strverscmp.c (strverscmp): Likewise.
71933         * tests/test-symlink.c (symlink): Likewise.
71934         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
71935         * tests/test-times.c (times): Likewise.
71936         * tests/test-trunc1.c (trunc): Likewise.
71937         * tests/test-truncf1.c (truncf): Likewise.
71938         * tests/test-truncl.c (truncl): Likewise.
71939         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
71940         Likewise.
71941         * tests/test-uname.c (uname): Likewise.
71942         * tests/test-unlink.c (unlink): Likewise.
71943         * tests/test-unlinkat.c (unlinkat): Likewise.
71944         * tests/test-unsetenv.c (unsetenv): Likewise.
71945         * tests/test-usleep.c (usleep): Likewise.
71946         * tests/test-utimensat.c (utimensat): Likewise.
71947         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
71948         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
71949         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
71950         * tests/test-vprintf-posix.c (vprintf): Likewise.
71951         * tests/test-vsnprintf.c (vsnprintf): Likewise.
71952         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
71953         * tests/test-wcrtomb.c (wcrtomb): Likewise.
71954         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
71955         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
71956         * tests/test-wcwidth.c (wcwidth): Likewise.
71958         build: pull in conditional headers during GNULIB_POSIXCHECK
71959         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
71960         definitions from any conditionally-included headers.
71961         * lib/stdlib.in.h (includes): Likewise.
71962         * lib/unistd.in.h (includes): Likewise.
71964 2009-12-24  Bruno Haible  <bruno@clisp.org>
71966         * tests/test-argv-iter.c: Include header file being tested immediately
71967         after config.h.
71968         * tests/test-base64.c: Likewise.
71969         * tests/test-flock.c: Likewise.
71970         * tests/test-fsync.c: Likewise.
71971         * tests/test-getdate.c: Likewise.
71972         * tests/test-getndelim2.c: Likewise.
71973         * tests/test-isfinite.c: Likewise.
71974         * tests/test-isinf.c: Likewise.
71975         * tests/test-strerror.c: Likewise.
71976         * tests/test-strsignal.c: Likewise.
71978 2009-12-23  Eric Blake  <ebb9@byu.net>
71980         unistd: work around cygwin bug
71981         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
71982         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
71983         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
71985 2009-12-23  Bruno Haible  <bruno@clisp.org>
71987         localename: More tests.
71988         * tests/test-localename.c (SIZEOF): New macro.
71989         (categories): New variable.
71990         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
71991         test_locale_name_default): Add test w.r.t. thread locale.
71992         (test_locale_name_thread): New function.
71993         (main): Invoke it.
71995         localename: Make aware of thread locale.
71996         * lib/localename.h (gl_locale_name_thread): New declaration.
71997         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
71998         behaviour with respect to thread locale.
71999         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
72000         <langinfo.h>, glthread/lock.h.
72001         (SIZE_BITS): New macro.
72002         (string_hash): New function.
72003         (struct hash_node): New type.
72004         (HASH_TABLE_SIZE): New macro.
72005         (struniq_hash_table, struniq_lock): New variables.
72006         (struniq): New function.
72007         (gl_locale_name_thread): New function.
72008         (gl_locale_name): Invoke it.
72009         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
72010         * modules/localename (Depends-on): Add lock.
72011         Reported by Mike Gran <spk121@yahoo.com>.
72013 2009-12-23  Eric Blake  <ebb9@byu.net>
72015         va-args: new module
72016         * modules/va-args: New file.
72017         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
72018         * MODULES.html.sh (Core language properties): Mention it.
72020         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
72021         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
72022         named alias for __attribute__((__unused__)).
72023         * lib/chown.c: Update client.
72024         * lib/fchmodat.c: Likewise.
72025         * lib/fts.c: Likewise.
72026         * lib/getdate.y: Likewise.
72027         * lib/getgroups.c: Likewise.
72028         * lib/getopt.c: Likewise.
72029         * lib/getugroups.c: Likewise.
72030         * lib/mkdir.c: Likewise.
72031         * lib/mkfifo.c: Likewise.
72032         * lib/mkfifoat.c: Likewise.
72033         * lib/mknod.c: Likewise.
72034         * lib/mknodat.c: Likewise.
72035         * lib/readlink.c: Likewise.
72036         * lib/se-context.in.h: Likewise.
72037         * lib/se-selinux.in.h: Likewise.
72038         * lib/sockets.c: Likewise.
72039         * lib/symlink.c: Likewise.
72040         * lib/symlinkat.c: Likewise.
72041         * lib/unicodeio.c: Likewise.
72042         * lib/unistr.h: Likewise.
72043         * tests/test-areadlink.c: Likewise.
72044         * tests/test-areadlinkat.c: Likewise.
72045         * tests/test-filenamecat.c: Likewise.
72046         * tests/test-fseeko.c: Likewise.
72047         * tests/test-ftello.c: Likewise.
72048         * tests/test-getdate.c: Likewise.
72049         * tests/test-getgroups.c: Likewise.
72050         * tests/test-gethostname.c: Likewise.
72051         * tests/test-quotearg.c: Likewise.
72052         * tests/test-version-etc.c: Likewise.
72053         * tests/test-xalloc-die.c: Likewise.
72054         * tests/test-xfprintf-posix.c: Likewise.
72055         * tests/test-xprintf-posix.c: Likewise.
72056         * tests/test-xvasprintf.c: Likewise.
72058         tests: avoid compiler warnings
72059         * tests/test-fcntl.c (main): Delete unused parameters.
72060         * tests/test-freopen-safer.c (main): Likewise.
72061         * tests/test-xalloc-die.c (main): Mark unused parameters.
72062         * tests/test-fseeko.c (main): Likewise.
72063         * tests/test-ftello.c (main): Likewise.
72064         * tests/test-nanosleep.c (main): Avoid declaration warning.
72065         * tests/test-sleep.c (main): Likewise.
72066         * tests/test-unsetenv.c (main): Silence warning about string
72067         literal.
72068         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
72070 2009-12-23  Bruno Haible  <bruno@clisp.org>
72072         * tests/test-localename.c (test_locale_name): New function, extracted
72073         from main. Also test mixed situations.
72074         (test_locale_name_posix, test_locale_name_environ,
72075         test_locale_name_default): New functions.
72076         (main): Invoke them all.
72077         * modules/localename-tests (configure.ac): Test for newlocale.
72079 2009-12-23  Bruno Haible  <bruno@clisp.org>
72081         unistd: Ensure getcwd gets declared before being overridden.
72082         * lib/unistd.in.h: Conditionally include <io.h>.
72084 2009-12-22  Bruno Haible  <bruno@clisp.org>
72086         wchar: Diagnose broken combination of glibc and gcc versions and flags.
72087         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
72088         (gl_WCHAR_H): Invoke it.
72089         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
72090         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
72091         Reported by Karl Berry <karl@freefriends.org>.
72093 2009-12-22  Eric Blake  <ebb9@byu.net>
72095         math, unistd: avoid redundant includes
72096         * lib/math.in.h (isnan): No need to re-include <math.h>.
72097         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
72099         getsubopt: work around cygwin bug
72100         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
72101         avoid conflicting with system getsubopt.
72102         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
72103         bug.
72105         getopt: synchronize from glibc
72106         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
72107         parameter order.  Adjust all callers.
72108         (_getopt_internal_r, main): Adjust quoting in error messages.
72109         Drop considerations for outdated POSIX 1003.2 error message.
72110         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
72111         callers.
72112         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
72114         test-getopt: test stderr behavior
72115         * modules/getopt-posix-tests (Depends-on): Add dup2.
72116         * tests/test-getopt.c (ASSERT): Avoid stderr.
72117         (main): Move stderr to a temporary file.
72118         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
72119         Instead, add parameter to inform caller if output occurred.
72120         (test_getopt): Adjust all existing tests to expect silence, and
72121         add new tests of leading ":".
72122         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72123         glibc shortcomings with leading "-:" or "+:" in optstring.
72124         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72125         Likewise.
72126         * doc/posix-functions/getopt.texi (getopt): Likewise.
72128         test-getopt: enhance test
72129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
72130         supports optind=0.
72131         * tests/test-getopt.c (OPTIND_MIN): Move...
72132         * tests/test-getopt.h (OPTIND_MIN): ...here.
72133         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
72134         Require that optind=0 works, since modern BSD supports it in
72135         addition to optreset, and since coreutils expects it.
72136         (test_getopt_long_only): New test.
72137         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
72138         glibc shortcomings with 'W;', and enforcement of optind=0.
72139         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
72140         Likewise.
72142 2009-12-21  Bruno Haible  <bruno@clisp.org>
72144         localename: Improvements for MacOS X and Cygwin.
72145         * lib/localename.h (gl_locale_name_environ): New declaration.
72146         * lib/localename.c (gl_locale_name_environ): New function, extracted from
72147         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
72148         (gl_locale_name_posix): Invoke it.
72149         (gl_locale_name_default): Add comments. Use Windows native API also on
72150         Cygwin.
72152 2009-12-21  Bruno Haible  <bruno@clisp.org>
72154         Update list of Win32 locale ids.
72155         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
72156         (LANG_SAMI): Renamed from LANG_SAAMI.
72157         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
72158         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
72159         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
72160         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
72161         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
72162         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
72163         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
72164         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
72165         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
72166         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
72167         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
72168         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
72169         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
72170         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
72171         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
72172         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
72173         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
72174         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
72175         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
72176         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
72177         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
72178         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
72179         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
72180         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
72181         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
72182         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
72183         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
72184         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
72185         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
72186         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
72187         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
72188         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
72189         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
72190         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
72191         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
72192         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
72193         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
72194         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
72195         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
72196         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
72197         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
72198         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
72199         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
72200         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
72201         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
72202         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
72203         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
72204         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
72205         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
72206         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
72207         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
72208         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
72209         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
72210         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
72211         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
72212         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
72213         Add more languages and countries for Sami, Sorbian. Add more countries
72214         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
72215         for Pashto. Change country for Syriac, Tswana.
72217 2009-12-21  Eric Blake  <ebb9@byu.net>
72219         test-utimens: avoid spurious failure
72220         * tests/test-chown.h (nap): Factor...
72221         * tests/nap.h: ...into new file.
72222         * tests/test-lchown.h (nap): Avoid duplication.
72223         * tests/test-utimens-common.h (nap): Use shared implementation,
72224         necessary on file systems with 1-second resolution.
72225         * modules/chown-tests (Files): Include new file.
72226         * modules/fdutimensat-tests (Files): Likewise.
72227         * modules/futimens-tests (Files): Likewise.
72228         * modules/lchown-tests (Files): Likewise.
72229         * modules/openat-tests (Files): Likewise.
72230         * modules/utimens-tests (Files): Likewise.
72231         * modules/utimensat-tests (Files): Likewise.
72233 2009-12-19  Eric Blake  <ebb9@byu.net>
72235         futimens, utimensat: work around Linux bug
72236         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
72237         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
72238         * lib/utimensat.c (rpl_utimensat): Work around it.
72239         * lib/futimens.c (rpl_futimens): Adjust comment.
72241         utimens: work around Linux ctime bug
72242         * lib/utimens.c (detect_ctime_bug): New helper function.
72243         (update_timespec): Differentiate between workaround needed for
72244         this bug vs. what is needed for systems that lack utimensat.
72245         (fdutimens, lutimens): Work around bug.
72247         utimens: check for ctime update
72248         * tests/test-utimens-common.h (check_ctime): Define.
72249         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
72250         * tests/test-futimens.h (test_futimens): Likewise.
72251         * tests/test-lutimens.h (test_lutimens): Likewise.
72252         * doc/posix-functions/futimens.texi (futimens): Document the bug.
72253         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
72255 2009-12-19  Bruno Haible  <bruno@clisp.org>
72257         dprintf-posix: Check against memory leak fixed on 2009-12-15.
72258         * tests/test-dprintf-posix2.sh: New file.
72259         * tests/test-dprintf-posix2.c: New file.
72260         * modules/dprintf-posix-tests (Files): Add them.
72261         (configure.ac): Check for getrlimit and setrlimit.
72262         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72264 2009-12-19  Bruno Haible  <bruno@clisp.org>
72266         fprintf-posix: Check against memory leak fixed on 2009-12-15.
72267         * tests/test-fprintf-posix3.sh: New file.
72268         * tests/test-fprintf-posix3.c: New file.
72269         * modules/fprintf-posix-tests (Files): Add them.
72270         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
72272 2009-12-19  Eric Blake  <ebb9@byu.net>
72274         dirfd: fix prototype
72275         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
72276         * lib/dirfd.c (dirfd): Likewise.
72278         canonicalize: reduce memory usage
72279         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
72280         allocation to size.
72281         Reported by Solar Designer <solar@openwall.com>.
72283 2009-12-19  Bruno Haible  <bruno@clisp.org>
72285         New module attribute 'Applicability'.
72286         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
72287         * gnulib-tool: New option --extract-applicability.
72288         (func_usage): Document it.
72289         (sed_extract_prog): Recognize it.
72290         (func_get_applicability): New function.
72291         (func_import): Generalize handling of 'link-warning' module.
72292         * modules/link-warning (Applicability): New section.
72293         * modules/arg-nonnull (Applicability): New section.
72294         Repoted by Simon Josefsson <simon@josefsson.org>.
72296 2009-12-19  Bruno Haible  <bruno@clisp.org>
72298         fflush: tweak
72299         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
72300         * lib/fseeko.c (rpl_fseeko): Likewise.
72302 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
72304         * lib/gl_list.h: Fix typo in comment.
72306 2009-12-16  Eric Blake  <ebb9@byu.net>
72308         fcntl: use to simplify other modules
72309         * modules/cloexec (Depends-on): Add fcntl.
72310         * modules/fchdir (Depends-on): Likewise.
72311         * modules/fd-safer-flag (Depends-on): Likewise.
72312         * modules/unistd-safer (Depends-on): Likewise.
72313         * modules/dup3 (configure.ac): Set module indicator.
72314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
72315         missing.
72316         * lib/fchdir.c (_gl_register_dup): Fix comment.
72317         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
72318         * lib/dup-safer.c (dup_safer): Likewise.
72319         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
72320         * lib/dup3.c (dup3): Likewise.
72321         * tests/test-fchdir.c (main): Enhance test.
72322         Fixes a dup_cloexec bug reported by Ondřej Vašík.
72324         fcntl: port portions of fcntl to mingw
72325         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
72326         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
72327         replacement for mingw.
72328         * modules/fcntl (Description): Update.
72329         (Depends-on): Add dup2.
72330         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
72331         * modules/fcntl-h (Makefile.am): Substitute it.
72332         * lib/fcntl.in.h (fcntl): Update declaration.
72333         (F_DUPFD, F_GETFD): New macros, when needed.
72334         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
72335         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
72336         * tests/test-fcntl.c (check_flags, main): Enhance test for items
72337         we now guarantee.
72339         fcntl: work around cygwin bug in F_DUPFD
72340         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
72341         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
72342         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
72343         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
72344         * doc/posix-functions/fcntl.texi (fcntl): Document it.
72346         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
72347         * modules/fcntl (Files): List new files.
72348         (configure.ac): Run a test.
72349         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
72350         * lib/fcntl.c (rpl_fcntl): Likewise.
72351         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
72352         (gl_FCNTL_H): Always replace fcntl.h.
72353         * modules/fcntl-h (Makefile.am): Substitute witnesses.
72354         * lib/fcntl.in.h (fcntl): Declare replacement.
72355         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
72356         needed, plus a witness.
72357         * doc/posix-functions/fcntl.texi (fcntl): Document this.
72358         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
72359         * tests/test-fcntl.c: New file.
72360         * modules/fcntl-tests: Likewise.
72362         binary-io: avoid potential compilation warning
72363         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
72364         directives.
72366         fflush: avoid compilation error on NetBSD
72367         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
72368         between off_t and fpos_t, since the latter is sometimes a struct.
72369         * lib/fseeko.c (rpl_fseeko): Likewise.
72370         Reported by Alexander Nasonov <alnsn@yandex.ru>.
72372 2009-12-15  Eric Blake  <ebb9@byu.net>
72374         fcntl-h, stdio, sys_ioctl: fix declarations
72375         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
72376         function must not take arguments.
72377         * lib/sys_ioctl.in.h (ioctl): Likewise.
72378         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
72379         (open): Add a link warning.
72381 2009-12-15  Jim Meyering  <meyering@redhat.com>
72383         areadlink, areadlink-with-size: relax license to LGPLv2+
72384         * modules/areadlink (License): Relax to LGPLv2+.
72385         * modules/areadlink-with-size (License): Likewise.
72387 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
72388             Bruno Haible  <bruno@clisp.org>
72390         *printf: Fix memory leak.
72391         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
72392         * lib/vfprintf.c (vfprintf): Likewise.
72393         * lib/dprintf.c (dprintf): Likewise.
72394         * lib/vdprintf.c (vdprintf): Likewise.
72396 2009-12-14  Eric Blake  <ebb9@byu.net>
72398         accept4: adjust module dependencies
72399         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
72401         utimens: one more try at avoiding compiler warning
72402         * lib/utimens.c (lutimens): Lower scope of result.
72404 2009-12-13  Bruno Haible  <bruno@clisp.org>
72406         Move the malloc checking from module 'list' to new module 'xlist'.
72407         * modules/xlist: New file.
72408         * lib/gl_xlist.h: New file.
72409         * lib/gl_xlist.c: New file.
72410         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
72411         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
72412         gl_list_add_last, gl_list_add_before, gl_list_add_after,
72413         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
72414         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
72415         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
72416         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
72417         gl_sortedlist_nx_add): New declarations.
72418         (struct gl_list_implementation): Rename and change methods accordingly.
72419         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
72420         (gl_list_nx_create): Renamed from gl_list_create.
72421         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72422         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72423         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72424         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72425         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72426         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72427         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72428         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72429         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
72430         gl_list_create_empty.
72431         (gl_list_nx_create): Renamed from gl_list_create.
72432         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
72433         (gl_list_nx_set_at): Renamed from gl_list_set_at.
72434         (gl_list_nx_add_first): Renamed from gl_list_add_first.
72435         (gl_list_nx_add_last): Renamed from gl_list_add_last.
72436         (gl_list_nx_add_before): Renamed from gl_list_add_before.
72437         (gl_list_nx_add_after): Renamed from gl_list_add_after.
72438         (gl_list_nx_add_at): Renamed from gl_list_add_at.
72439         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
72440         * lib/gl_array_list.c: Don't include xalloc.h.
72441         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
72442         NULL upon out-of-memory.
72443         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
72444         out-of-memory.
72445         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
72446         Change return type to 'int'.
72447         (gl_array_nx_set_at): Renamed from gl_array_set_at.
72448         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72449         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
72450         upon out-of-memory.
72451         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
72452         upon out-of-memory.
72453         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
72454         upon out-of-memory.
72455         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
72456         upon out-of-memory.
72457         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
72458         out-of-memory.
72459         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
72460         Update.
72461         (gl_array_list_implementation): Update.
72462         * lib/gl_carray_list.c: Don't include xalloc.h.
72463         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
72464         Return NULL upon out-of-memory.
72465         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
72466         out-of-memory.
72467         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
72468         Change return type to 'int'.
72469         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
72470         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
72471         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
72472         upon out-of-memory.
72473         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
72474         upon out-of-memory.
72475         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
72476         out-of-memory.
72477         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
72478         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
72479         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
72480         Update.
72481         (gl_carray_list_implementation): Update.
72482         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
72483         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
72484         gl_linked_create_empty. Return NULL upon out-of-memory.
72485         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
72486         out-of-memory.
72487         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
72488         Change return type to 'int'. Return -1 upon out-of-memory.
72489         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
72490         out-of-memory.
72491         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
72492         upon out-of-memory.
72493         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
72494         upon out-of-memory.
72495         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
72496         NULL upon out-of-memory.
72497         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
72498         upon out-of-memory.
72499         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
72500         out-of-memory.
72501         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
72502         Update.
72503         * lib/gl_linked_list.c: Don't include xalloc.h.
72504         (gl_linked_list_implementation): Update.
72505         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
72506         (add_to_bucket): Change return type to 'int'.
72507         (gl_linkedhash_list_implementation): Update.
72508         * lib/gl_anytree_list1.h (free_subtree): New function.
72509         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
72510         gl_tree_create_empty. Return NULL upon out-of-memory.
72511         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
72512         Change return type to 'int'. Return -1 upon out-of-memory.
72513         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
72514         out-of-memory.
72515         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
72516         (gl_tree_remove_node): New function, moved here from
72517         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
72518         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
72519         Update.
72520         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
72521         malloc, not xmalloc. Return NULL upon out-of-memory.
72522         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72523         out-of-memory.
72524         (gl_tree_remove_node_from_tree): New function, extracted from
72525         gl_tree_remove_node.
72526         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72527         upon out-of-memory.
72528         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72529         out-of-memory.
72530         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72531         upon out-of-memory.
72532         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72533         upon out-of-memory.
72534         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72535         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
72536         not xmalloc. Return NULL upon out-of-memory.
72537         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
72538         out-of-memory.
72539         (gl_tree_remove_node_from_tree): New function, extracted from
72540         gl_tree_remove_node.
72541         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
72542         upon out-of-memory.
72543         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
72544         out-of-memory.
72545         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
72546         upon out-of-memory.
72547         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
72548         upon out-of-memory.
72549         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
72550         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
72551         gl_anytree_list1.h before gl_anyavltree_list2.h.
72552         (gl_avltree_list_implementation): Update.
72553         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
72554         gl_anytree_list1.h before gl_anyavltree_list2.h.
72555         (gl_rbtree_list_implementation): Update.
72556         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
72557         Change return type to 'int'. Return -1 upon out-of-memory. Use
72558         __builtin_expect.
72559         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
72560         (gl_avltreehash_list_implementation): Update.
72561         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
72562         (gl_rbtreehash_list_implementation): Update.
72563         * modules/array-list (Depends-on): Remove xalloc.
72564         * modules/carray-list (Depends-on): Likewise.
72565         * modules/linked-list (Depends-on): Likewise.
72566         * modules/linkedhash-list (Depends-on): Likewise.
72567         * modules/avltree-list (Depends-on): Likewise.
72568         * modules/rbtree-list (Depends-on): Likewise.
72569         * modules/avltreehash-list (Depends-on): Likewise.
72570         * modules/rbtreehash-list (Depends-on): Likewise.
72572         * modules/xsublist: New file.
72573         * lib/gl_xsublist.h: New file.
72574         * lib/gl_xsublist.c: New file.
72575         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
72576         (gl_sublist_nx_create): New declaration.
72577         * lib/gl_sublist.c: Don't include xalloc.h.
72578         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
72579         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
72580         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
72581         Change return type to 'int'. Return -1 upon out-of-memory.
72582         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
72583         upon out-of-memory.
72584         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
72585         NULL upon out-of-memory.
72586         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
72587         upon out-of-memory.
72588         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
72589         NULL upon out-of-memory.
72590         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
72591         NULL upon out-of-memory.
72592         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
72593         upon out-of-memory.
72594         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
72595         (gl_sublist_list_implementation): Update.
72596         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
72597         upon out-of-memory.
72598         * modules/sublist (Depends-on): Remove xalloc.
72600         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
72601         * tests/test-carray_list.c: Likewise.
72602         * tests/test-linked_list.c: Likewise.
72603         * tests/test-linkedhash_list.c: Likewise.
72604         * tests/test-avltree_list.c: Likewise.
72605         * tests/test-rbtree_list.c: Likewise.
72606         * tests/test-avltreehash_list.c: Likewise.
72607         * tests/test-rbtreehash_list.c: Likewise.
72608         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
72609         * modules/carray-list-tests (Makefile.am): Likewise.
72610         * modules/linked-list-tests (Makefile.am): Likewise.
72611         * modules/linkedhash-list-tests (Makefile.am): Likewise.
72612         * modules/avltree-list-tests (Makefile.am): Likewise.
72613         * modules/rbtree-list-tests (Makefile.am): Likewise.
72614         * modules/avltreehash-list-tests (Makefile.am): Likewise.
72615         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
72617         * NEWS: Mention the changes.
72619         * lib/clean-temp.c: Include gl_xlist.h.
72620         * modules/clean-temp (Depends-on): Add xlist.
72622         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
72623         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
72625         * tests/test-array_oset.c: Include gl_xlist.h.
72626         * modules/array-oset-tests (Depends-on): Add xlist.
72628         Reported by José E. Marchesi <jemarch@gnu.org>.
72630 2009-12-13  Bruno Haible  <bruno@clisp.org>
72632         Move the malloc checking from module 'oset' to new module 'xoset'.
72633         * modules/xoset: New file.
72634         * lib/gl_xoset.h: New file.
72635         * lib/gl_xoset.c: New file.
72636         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
72637         declarations.
72638         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
72639         (struct gl_oset_implementation): Rename and change methods accordingly.
72640         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
72641         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72642         'int'. Mark as __warn_unused_result__.
72643         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
72644         gl_oset_create_empty.
72645         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
72646         'int'.
72647         * lib/gl_array_oset.c: Don't include xalloc.h.
72648         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
72649         malloc, not xmalloc.
72650         (grow): Change return type to 'int'. Don't call xalloc_die.
72651         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
72652         to 'int'.
72653         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
72654         'int'.
72655         (gl_array_oset_implementation): Update.
72656         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
72657         gl_tree_create_empty.
72658         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
72659         'int'.
72660         * lib/gl_avltree_oset.c: Don't include xalloc.h.
72661         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72662         xmalloc.
72663         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72664         not xmalloc.
72665         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72666         xmalloc.
72667         (gl_avltree_oset_implementation): Update.
72668         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
72669         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
72670         xmalloc.
72671         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
72672         not xmalloc.
72673         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
72674         xmalloc.
72675         (gl_rbtree_oset_implementation): Update.
72676         * modules/array-oset (Depends-on): Remove xalloc.
72677         * modules/avltree-oset (Depends-on): Likewise.
72678         * modules/rbtree-oset (Depends-on): Likewise.
72679         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
72680         * tests/test-avltree_oset.c: Likewise.
72681         * tests/test-rbtree_oset.c: Likewise.
72682         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72683         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
72684         * modules/rbtree-oset-tests (Makefile.am): Likewise.
72685         * NEWS: Mention the change.
72687 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
72689         maint.mk: allow a project to override release-prep commands
72690         * top/maint.mk (alpha, beta, stable): Move release-preparatory
72691         commands into a new rule.
72692         (release-prep): New rule.
72693         (release-prep-hook): New overridable variable.
72695 2009-12-13  Bruno Haible  <bruno@clisp.org>
72697         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
72699 2009-12-13  Jim Meyering  <meyering@redhat.com>
72701         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
72702         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
72704 2009-12-12  Bruno Haible  <bruno@clisp.org>
72706         duplocale: Tweak.
72707         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
72709 2009-12-12  Karl Berry  <karl@gnu.org>
72711         * config/srclist.txt (strtoll.c): tab changes, no more sync.
72713 2009-12-12  Bruno Haible  <bruno@clisp.org>
72715         * m4/po.m4: Undo incorrect untabification.
72717 2009-12-12  Bruno Haible  <bruno@clisp.org>
72719         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
72720         * modules/c-strtod (Depends-on): Add locale.
72721         * modules/c-strtold (Depends-on): Likewise.
72723 2009-12-12  Bruno Haible  <bruno@clisp.org>
72725         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
72727 2009-12-11  Eric Blake  <ebb9@byu.net>
72729         setenv: relax requirement in light of POSIX ruling
72730         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
72731         not NULL.
72732         * tests/test-setenv.c (main): Relax test.
72733         * tests/test-unsetenv.c (main): Likewise.
72734         * doc/posix-functions/setenv.texi (setenv): Document this.
72735         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
72737 2009-12-11  Bruno Haible  <bruno@clisp.org>
72739         New module 'fd-safer-flag'.
72740         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
72741         * lib/dup-safer.c (dup_safer_flag): Remove function.
72742         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
72743         * lib/fd-safer.c (fd_safer_flag): Remove function.
72744         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
72745         * modules/cloexec (configure.ac): Drop indicator macro.
72746         * modules/fd-safer-flag: New file.
72747         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
72748         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
72749         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
72751 2009-12-11  Bruno Haible  <bruno@clisp.org>
72753         Tests for module 'nl_langinfo'.
72754         * modules/nl_langinfo-tests: New file.
72755         * tests/test-nl_langinfo.sh: New file.
72756         * tests/test-nl_langinfo.c: New file.
72758         New module 'nl_langinfo'.
72759         * lib/nl_langinfo.c: New file.
72760         * m4/nl_langinfo.m4: New file.
72761         * modules/nl_langinfo: New file.
72762         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
72764 2009-12-11  Bruno Haible  <bruno@clisp.org>
72766         Tests for module 'langinfo'.
72767         * modules/langinfo-tests: New file.
72768         * tests/test-langinfo.c: New file.
72770         New module 'langinfo'.
72771         * lib/langinfo.in.h: New file.
72772         * m4/langinfo_h.m4: New file.
72773         * modules/langinfo: New file.
72774         * doc/posix-headers/langinfo.texi: Mention the new module.
72776 2009-12-11  Bruno Haible  <bruno@clisp.org>
72778         * lib/config.charset: Untabify.
72780 2009-12-11  Bruno Haible  <bruno@clisp.org>
72782         * modules/unistd-safer (configure.ac): Drop indicator macro.
72784 2009-12-11  Bruno Haible  <bruno@clisp.org>
72786         Move pipe2-safer code to its own file.
72787         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
72788         * lib/pipe-safer.c (pipe2_safer): Remove function.
72789         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
72790         (Makefile.am): Add it to lib_SOURCES.
72792 2009-12-10  Bruno Haible  <bruno@clisp.org>
72794         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
72796 2009-12-10  Bruno Haible  <bruno@clisp.org>
72798         Declare which arguments expect non-NULL values, for GCC and clang.
72799         * build-aux/arg-nonnull.h: New file.
72800         * modules/arg-nonnull: New file.
72801         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
72802         (inet_ntop, inet_pton): Use it.
72803         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
72804         (closedir, dirfd, opendir, scandir, alphasort): Use it.
72805         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
72806         (open, openat): Use it.
72807         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
72808         (fnmatch): Use it.
72809         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
72810         (getopt, getopt_long, getopt_long_only): Use it.
72811         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
72812         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
72813         Use it.
72814         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
72815         (iconv_open): Use it.
72816         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
72817         (strtoimax, strtoumax): Use it.
72818         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
72819         (duplocale): Use it.
72820         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
72821         (frexp, frexpl): Use it.
72822         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
72823         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
72824         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
72825         (tsearch, tfind, tdelete, twalk): Use it.
72826         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
72827         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
72828         sigpending): Use it.
72829         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
72830         (posix_spawn, posix_spawnp, posix_spawnattr_init,
72831         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
72832         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
72833         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
72834         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
72835         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
72836         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
72837         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
72838         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
72839         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
72840         Use it.
72841         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
72842         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
72843         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
72844         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
72845         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
72846         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
72847         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
72848         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
72849         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
72850         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
72851         strtoull, unsetenv): Use it.
72852         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
72853         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
72854         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
72855         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
72856         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
72857         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
72858         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
72859         (strcasecmp, strncasecmp): Use it.
72860         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
72861         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
72862         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
72863         rpl_setsockopt): Use it.
72864         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
72865         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
72866         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
72867         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
72868         (gettimeofday): Use it.
72869         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
72870         (times): Use it.
72871         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
72872         (uname): Use it.
72873         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
72874         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
72875         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
72876         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
72877         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
72878         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
72879         unlinkat, write): Use it.
72880         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
72881         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
72882         * lib/argv-iter.h: Include arg-nonnull.h.
72883         (_ATTRIBUTE_NONNULL_): Remove macro.
72884         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
72885         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
72886         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
72887         optimization.
72888         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
72889         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
72890         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
72891         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
72892         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
72893         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
72894         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
72895         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
72896         * modules/arpa_inet (Depends-on): Add arg-nonnull.
72897         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
72898         * modules/dirent (Depends-on): Add arg-nonnull.
72899         (Makefile.am): Insert arg-nonnull.h into dirent.h.
72900         * modules/fcntl-h (Depends-on): Add arg-nonnull.
72901         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
72902         * modules/fnmatch (Depends-on): Add arg-nonnull.
72903         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
72904         * modules/getopt-posix (Depends-on): Add arg-nonnull.
72905         (Makefile.am): Insert arg-nonnull.h into getopt.h.
72906         * modules/glob (Depends-on): Add arg-nonnull.
72907         (Makefile.am): Insert arg-nonnull.h into glob.h.
72908         * modules/iconv_open (Depends-on): Add arg-nonnull.
72909         (Makefile.am): Insert arg-nonnull.h into iconv.h.
72910         * modules/inttypes (Depends-on): Add arg-nonnull.
72911         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
72912         * modules/locale (Depends-on): Add arg-nonnull.
72913         (Makefile.am): Insert arg-nonnull.h into locale.h.
72914         * modules/math (Depends-on): Add arg-nonnull.
72915         (Makefile.am): Insert arg-nonnull.h into math.h.
72916         * modules/netdb (Depends-on): Add arg-nonnull.
72917         (Makefile.am): Insert arg-nonnull.h into netdb.h.
72918         * modules/search (Depends-on): Add arg-nonnull.
72919         (Makefile.am): Insert arg-nonnull.h into search.h.
72920         * modules/signal (Depends-on): Add arg-nonnull.
72921         (Makefile.am): Insert arg-nonnull.h into signal.h.
72922         * modules/spawn (Depends-on): Add arg-nonnull.
72923         (Makefile.am): Insert arg-nonnull.h into spawn.h.
72924         * modules/stdio (Depends-on): Add arg-nonnull.
72925         (Makefile.am): Insert arg-nonnull.h into stdio.h.
72926         * modules/stdlib (Depends-on): Add arg-nonnull.
72927         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
72928         * modules/string (Depends-on): Add arg-nonnull.
72929         (Makefile.am): Insert arg-nonnull.h into string.h.
72930         * modules/strings (Depends-on): Add arg-nonnull.
72931         (Makefile.am): Insert arg-nonnull.h into strings.h.
72932         * modules/sys_socket (Depends-on): Add arg-nonnull.
72933         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
72934         * modules/sys_stat (Depends-on): Add arg-nonnull.
72935         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
72936         * modules/sys_time (Depends-on): Add arg-nonnull.
72937         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
72938         * modules/sys_times (Depends-on): Add arg-nonnull.
72939         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
72940         * modules/sys_utsname (Depends-on): Add arg-nonnull.
72941         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
72942         * modules/time (Depends-on): Add arg-nonnull.
72943         (Makefile.am): Insert arg-nonnull.h into time.h.
72944         * modules/unistd (Depends-on): Add arg-nonnull.
72945         (Makefile.am): Insert arg-nonnull.h into unistd.h.
72946         * modules/wchar (Depends-on): Add arg-nonnull.
72947         (Makefile.am): Insert arg-nonnull.h into wchar.h.
72948         * modules/argv-iter (Depends-on): Add arg-nonnull.
72949         * tests/test-canonicalize.c (null_ptr): New function.
72950         (main): Use it.
72951         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
72952         (main): Use it.
72953         * tests/test-memmem.c (null_ptr): New function.
72954         (main): Use it.
72955         Reported by Jim Meyering.
72957 2009-12-10  Bruno Haible  <bruno@clisp.org>
72959         Use spaces for indentation, not tabs.
72960         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
72961         * m4/*.m4: Untabify.
72962         * build-aux/*.h: Untabify.
72963         * tests/**/*.[hc]: Untabify.
72964         * README: New section "Indent with spaces, not TABs", based on
72965         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
72966         * NEWS: Mention the change.
72968 2009-12-10  Bruno Haible  <bruno@clisp.org>
72970         pty test: Fix link error.
72971         * modules/pty-tests (Makefile.am): Add the default LDADD value to
72972         test_pty_LDADD.
72974 2009-12-07  Simon Josefsson  <simon@josefsson.org>
72976         * modules/pty: New file.
72977         * modules/pty-tests: New file.
72978         * m4/pty.m4: New file.
72979         * tests/test-pty.c: New file.
72980         * doc/glibc-headers/pty.texi: Modified.
72981         * doc/glibc-functions/forkpty.texi: Modified.
72982         * doc/glibc-functions/openpty.texi: Modified.
72984 2009-12-10  Bruno Haible  <bruno@clisp.org>
72986         Avoid syntax error in C++ mode.
72987         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
72989 2009-12-10  Bruno Haible  <bruno@clisp.org>
72991         Use sed with option -e.
72992         * gnulib-tool (func_version, func_emit_copyright_notice,
72993         func_emit_initmacro_end, func_import, func_create_testdir): Pass
72994         option -e to sed.
72995         * modules/link-warning (Makefile.am): Likewise.
72997 2009-12-10  Jim Meyering  <meyering@redhat.com>
72999         mgetgroups: do not write bytes beyond end of malloc'd buffer
73000         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
73001         username, we call getgroups with a one-element-shorter buffer,
73002         but still told it the length was original, max_n_groups.
73004 2009-12-09  Eric Blake  <ebb9@byu.net>
73006         cloexec: relax license
73007         * modules/cloexec (Maintainer): Add myself.
73008         (License): Use LGPL, not GPL.
73010         link-warning: optimize generation
73011         * modules/link-warning (Makefile.am): Reduce process usage.
73013 2009-12-09  Bruno Haible  <bruno@clisp.org>
73015         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
73016         workaround was added on 2009-11-17.
73018 2009-12-09  Jim Meyering  <meyering@redhat.com>
73019             Bruno Haible  <bruno@clisp.org>
73021         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
73022         * modules/link-warning (Makefile.am): Make the comment-removing sed
73023         command more robust in the face of bootstrap-prepended comment lines.
73025 2009-12-09  Bruno Haible  <bruno@clisp.org>
73027         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
73028         most one group.
73030 2009-12-09  Simon Josefsson  <simon@josefsson.org>
73031             Bruno Haible  <bruno@clisp.org>
73033         * build-aux/link-warning.h: Add copyright notice.
73034         * modules/link-warning (Makefile.am): Generate link-warning.h from
73035         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
73036         * NEWS: Mention change in link-warning module.
73037         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
73038         * modules/dirent (Makefile.am): Add dependency to dirent.h.
73039         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
73040         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
73041         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
73042         * modules/math (Makefile.am): Add dependency to math.h.
73043         * modules/search (Makefile.am): Add dependency to search.h.
73044         * modules/signal (Makefile.am): Add dependency to signal.h.
73045         * modules/spawn (Makefile.am): Add dependency to spawn.h.
73046         * modules/stdio (Makefile.am): Add dependency to stdio.h.
73047         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
73048         * modules/string (Makefile.am): Add dependency to string.h.
73049         * modules/strings (Makefile.am): Add dependency to strings.h.
73050         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
73051         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
73052         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
73053         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
73054         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
73055         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
73056         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
73057         * modules/unistd (Makefile.am): Add dependency to unistd.h.
73058         * modules/wchar (Makefile.am): Add dependency to wchar.h.
73060 2009-12-09  Bruno Haible  <bruno@clisp.org>
73062         fchdir: Optimize away rpl_fstat when possible.
73063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
73064         REPLACE_OPEN_DIRECTORY.
73065         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
73067 2009-12-09  Bruno Haible  <bruno@clisp.org>
73069         * lib/fchdir.c: Update comment.
73071 2009-12-09  Bruno Haible  <bruno@clisp.org>
73073         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
73075 2009-12-08  Eric Blake  <ebb9@byu.net>
73077         fchdir: avoid memory leak on re-registration.
73078         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
73080 2009-12-08  Jim Meyering  <meyering@redhat.com>
73082         init.sh: avoid Solaris 10 /bin/sh portability problem
73083         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
73084         sourced script:
73085           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
73086           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
73087           bar
73088         tests/init.sh relied on that, accepting a --set-path=DIR argument,
73089         and two tests used that idiom.
73090         * tests/init.sh: Update suggested usage comments.
73091         (path_prepend_): New function, to be used in place
73092         of the --src-path=DIR option.
73093         (setup_): Move PATH-prepending code into path_prepend_.
73094         * tests/test-pread.sh: Adapt to new usage.
73095         * tests/test-xalloc-die.sh: Likewise.
73097 2009-12-08  Simon Josefsson  <simon@josefsson.org>
73099         * doc/gnulib.texi (Glibc pty.h): Add.
73100         * doc/glibc-functions/forkpty.texi: Add.
73101         * doc/glibc-functions/openpty.texi: Add.
73102         Suggested by Bruno Haible.
73104 2009-12-08  Eric Blake  <ebb9@byu.net>
73106         fchdir: fix logic bugs
73107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
73108         * tests/test-fchdir.c (main): Enhance test.
73109         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
73110         is in use.
73112         dup2: fix logic bugs
73113         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
73114         REPLACE_DUP2 to decide when rpl_dup2 is needed.
73115         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
73116         exists.
73117         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
73119 2009-12-07  Eric Blake  <ebb9@byu.net>
73121         unlink: fix m4 detection
73122         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
73124         unistd-safer: add unit test
73125         * modules/unistd-safer-tests: New file.
73126         * tests/test-dup-safer.c: Likewise.
73127         * tests/test-cloexec.c (setmode): Avoid compiler warning.
73128         * tests/test-dup2.c (setmode): Likewise.
73129         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
73131         cloexec: preserve text vs. binary across dup_cloexec
73132         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
73133         mode.
73134         * modules/dup2-tests (Depends-on): Add binary-io.
73135         * modules/cloexec-tests (Depends-on): Likewise.
73136         * tests/test-dup2.c (setmode, is_mode): New helpers.
73137         (main): Add tests that translation mode is preserved.
73138         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
73139         Reported by Bruno Haible.
73141         mgetgroups: reduce duplicate listings
73142         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
73143         resulting array.
73144         * tests/test-chown.h (test_chown): Simplify client.
73145         * tests/test-lchown.h (test_lchown): Likewise.
73147 2009-12-06  Bruno Haible  <bruno@clisp.org>
73149         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
73150         value.
73152 2009-12-06  Bruno Haible  <bruno@clisp.org>
73154         * lib/progname.c: Include stdio.h, stdlib.h.
73155         (set_program_name): Reject a NULL argument.
73157 2009-12-05  Eric Blake  <ebb9@byu.net>
73159         pipe2-safer: new module
73160         * modules/pipe2-safer: New file.
73161         * lib/unistd-safer.h (pipe2_safer): New prototype.
73162         * lib/unistd--.h (pipe2): New wrapper.
73163         * lib/pipe-safer.c (pipe2_safer): New function.
73164         * modules/pipe (Depends-on): Add pipe2-safer.
73165         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
73167         stdlib-safer: preserve cloexec flag for mkostemp[s]
73168         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
73169         fd_safer_flag.
73171         unistd-safer: allow preservation of cloexec status via flag
73172         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
73173         prototypes.
73174         * lib/dup-safer.c (dup_safer_flag): New function.
73175         * lib/fd-safer.c (fd_safer_flag): Likewise.
73176         * modules/cloexec (configure.ac): Set witness.
73178         test-dup2: enhance test
73179         * modules/dup2-tests (Depends-on): Add cloexec.
73180         * tests/test-dup2.c (main): Enhance test.
73182         cloexec: add dup_cloexec
73183         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
73184         header and comments.
73185         * lib/cloexec.c (set_cloexec_flag): Add comments.
73186         (dup_cloexec): New function, with mingw implementation borrowed
73187         from...
73188         * lib/w32spawn.h (dup_noinherit): ...here.
73189         * modules/execute (Depends-on): Add cloexec.
73190         * modules/pipe (Depends-on): Likewise.
73191         * modules/cloexec (Depends-on): Add dup2.
73192         * modules/cloexec-tests (Files): New file.
73193         * tests/test-cloexec.c: Likewise.
73195         test-xalloc-die: fix test for mingw
73196         * modules/xalloc-die-tests (Files): Add tests/init.sh.
73197         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
73198         directory and .exe suffix off argv[0] output.
73200         test-fseeko: fix test for mingw
73201         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
73202         than undefining fseek, so test will pass on mingw.
73204 2009-12-05  Bruno Haible  <bruno@clisp.org>
73206         * lib/progname.h (set_program_name): Clarify specification.
73207         * lib/progname.c (set_program_name): Likewise.
73208         Reported by Jim Meyering.
73210 2009-12-05  Jim Meyering  <meyering@redhat.com>
73212         maint.mk: backslash-escape parens in default regexp
73213         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
73214         backslash-escape the literal parentheses.
73216         maint.mk: news-date-check: use grep -E
73217         * top/maint.mk (today): Define a Make variable, not a...
73218         (news-date-check): ...shell variable.
73219         (news-date-regexp): Use the Make variable.
73220         Use grep's -E option.  Change the failing diagnostic to mention
73221         the variable, $(news-date-regexp).
73223 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
73225         maintainer-makefile: allow customization of NEWS entry format
73226         * top/maint.mk (news-date-regexp): New overridable variable.
73227         (news-date-check): Use it.
73229 2009-12-04  Eric Blake  <ebb9@byu.net>
73231         mgetgroups: add xgetgroups, and avoid ENOSYS failures
73232         * lib/mgetgroups.h (xgetgroups): New prototype.
73233         * lib/mgetgroups.c (xgetgroups): New wrapper.
73234         (mgetgroups): Handle ENOSYS.
73235         * modules/mgetgroups (Depends-on): Add realloc.
73236         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
73238         mgetgroups: avoid argument promotion issues with -1
73239         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
73240         for invalid gid_t.
73241         * tests/test-chown.h (getegid, test_chown): Likewise.
73242         * tests/test-lchown.h (getegid, test_lchown): Likewise.
73244 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
73246         exclude: Fix header file problems.
73247         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
73249 2009-12-01  Jim Meyering  <meyering@redhat.com>
73251         fts: fts_open: do not let an empty string cause immediate failure
73252         This is required in support of GNU rm, for which the command
73253         "rm A '' B" must process and remove both A and B, in spite of
73254         the empty string argument.
73255         * lib/fts.c (fts_open): Do not let the presence of an empty string
73256         cause fts_open to fail immediately.  Most fts-using tools must be
73257         able to process all arguments, in order, and can be expected to
73258         diagnose such arguments themselves.
73260 2009-11-30  Eric Blake  <ebb9@byu.net>
73262         utimens: fix compilation error
73263         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
73264         Declare variable at right scope.
73266 2009-11-29  Jim Meyering  <meyering@redhat.com>
73268         bootstrap: handle perl-5.11's changed --version output
73269         * build-aux/bootstrap (get_version): Handle perl separately,
73270         since perl-5.11's --version output is different.
73272 2009-11-28  Jim Meyering  <meyering@redhat.com>
73274         userspec: depend on the inttostr module, too
73275         * modules/userspec (Depends-on): Add inttostr.
73277         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
73278         * lib/userspec.c (parse_with_separator): Do not accept a user ID
73279         number of MAXUID when it evaluates to (uid_t) -1.
73280         Likewise for group ID.  Reported by Matt McCutchen in
73281         <http://savannah.gnu.org/bugs/?28113>
73283         userspec: reformat to use spaces, not TABs
73284         * lib/userspec.c: Expand TABs to spaces.
73285         Add Emacs' "indent-tabs-mode: nil" hint.
73287 2009-11-27  Eric Blake  <ebb9@byu.net>
73289         getopt-gnu: flush out another BSD bug
73290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
73291         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
73292         flush out BSD bug.
73293         * tests/test-getopt.h (test_getopt): End lists with NULL.
73294         * tests/test-getopt_long.h (test_getopt_long): Likewise.
73295         (test_getopt_long_posix): Enhance test.
73296         * modules/getopt-posix-tests (Depends-on): Add stdbool.
73297         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
73298         getopt-gnu.
73299         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73300         Likewise.
73302 2009-11-27  Simon Josefsson  <simon@josefsson.org>
73304         * modules/idpriv-droptemp-tests (Notice): Fix text.
73306 2009-11-27  Jim Meyering  <meyering@redhat.com>
73308         test-xalloc-die: avoid spurious failure due to libtool argv difference
73309         In a libtool-enabled project, this test would fail due to a difference
73310         in the emitted program name, e.g.,
73311         -test-xalloc-die: memory exhausted
73312         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
73313         Use program to avoid that.
73314         * modules/xalloc-die-tests (Depends-on): Add progname.
73315         * tests/test-xalloc-die.c: Include progname.h".
73316         (program_name): Remove decl.
73317         (main): Call set_program_name.
73318         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
73320 2009-11-26  Richard Jones  <rjones@redhat.com>
73322         w32sock: leave win32 error in place.
73323         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
73325 2009-11-26  Eric Blake  <ebb9@byu.net>
73327         init.sh: suggest to use skip_ and fail_ functions in comments
73328         * tests/init.sh: Add a sentence.
73330 2009-11-25  Bruno Haible  <bruno@clisp.org>
73332         init.sh: add documentation in comments
73333         * tests/init.sh: Add some developer and user documentation.
73335 2009-11-26  Jim Meyering  <meyering@redhat.com>
73337         init.sh: accommodate even those who specify bogus srcdir manually
73338         * tests/init.sh: Normally, srcdir is guaranteed by automake and
73339         configure-time tests to be sanitized, so that there is no need to
73340         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
73341         (with no double quotes) suffices.  However, since tests may be
73342         invoked manually, and since you may explicitly set srcdir to the
73343         name of a directory containing spaces, do quote its uses here.
73344         * tests/test-pread.sh: Likewise.
73345         Suggested by Bruno Haible.
73347         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
73348         * tests/test-pread.sh: Write no data into the pipe, because
73349         test-pread actually reads none.  This avoids a diagnostic,
73350         "bash: echo: write error: Broken pipe", that arises in the unusual
73351         event something is ignoring SIGPIPE, and might be interpreted
73352         as some sort of failure.  Reported by Bruno Haible.
73354 2009-11-25  Jim Meyering  <meyering@redhat.com>
73356         test-pread: cover failure with ESPIPE and EINVAL
73357         * tests/test-pread.c (main): Test for failure, too.
73358         * tests/test-pread.sh: Invoke with stdin on a pipe.
73359         Suggested by Eric Blake.
73361         pread: improvement and fix
73362         * modules/pread (Depends-on): Depend on lseek, for portability to
73363         e.g., mingw.  Suggested by Eric Blake.
73364         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
73366         unistd.in.h: correct declaration of pread
73367         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
73368         Reported by Richard W.M. Jones.
73370         test-pread.sh: distribute the test script
73371         * modules/pread-tests (Files): Include test-pread.sh.
73373         test-pread.sh: clean up
73374         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
73375         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
73376         That is unnecessary, since it's always ".".
73377         Suggestion from Eric Blake.
73379         test-pread.sh: make executable
73380         * tests/test-pread.sh: Set executable bit.
73381         Reported by Eric Blake.
73383         correct typo in test-pread.sh
73384         * tests/test-pread.sh: Add #! line.
73386         test pread
73387         * tests/test-pread.c: New file.
73388         * tests/test-pread.sh: Likewise.
73389         * modules/pread-tests: Likewise.
73391         pread: new module
73392         * modules/pread: New file.
73393         * lib/unistd.in.h (pread): Define/declare.
73394         * lib/pread.c (pread): New file.
73395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
73396         * modules/unistd (Makefile.am): Substitute witnesses.
73397         * doc/posix-functions/pread.texi (pread): Update.
73398         * MODULES.html.sh: Add pread.
73400 2009-11-25  Jim Meyering  <meyering@redhat.com>
73402         tests/init.sh: new file to be used via most *.sh tests
73403         * tests/init.sh: New file.
73405 2009-11-25  Eric Blake  <ebb9@byu.net>
73407         utimens: work around older Linux failure with symlinks
73408         * lib/utimens.c (lutimensat_works_really): New variable.
73409         (fdutimens, lutimens): Use it to manage kernels that support
73410         nanosecond times on files, but not on symlinks.
73411         Reported by Ondřej Vašík.
73413         utimes: fix configure grammar
73414         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
73416 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
73418         regex: Fix fastmap for multibyte character ranges.
73419         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
73420         characters when a multibyte character range is included.
73422 2009-11-22  Andy Wingo  <wingo@pobox.com>
73424         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
73425         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
73427 2009-11-24  Bruno Haible  <bruno@clisp.org>
73429         doc: Most *_l functions exist in MacOS X 10.5.
73430         * doc/posix-functions/duplocale.texi: Update platforms list.
73431         * doc/posix-functions/freelocale.texi: Likewise.
73432         * doc/posix-functions/newlocale.texi: Likewise.
73433         * doc/posix-functions/uselocale.texi: Likewise.
73434         * doc/posix-functions/isalnum_l.texi: Likewise.
73435         * doc/posix-functions/isalpha_l.texi: Likewise.
73436         * doc/posix-functions/isblank_l.texi: Likewise.
73437         * doc/posix-functions/iscntrl_l.texi: Likewise.
73438         * doc/posix-functions/isdigit_l.texi: Likewise.
73439         * doc/posix-functions/isgraph_l.texi: Likewise.
73440         * doc/posix-functions/islower_l.texi: Likewise.
73441         * doc/posix-functions/isprint_l.texi: Likewise.
73442         * doc/posix-functions/ispunct_l.texi: Likewise.
73443         * doc/posix-functions/isspace_l.texi: Likewise.
73444         * doc/posix-functions/isupper_l.texi: Likewise.
73445         * doc/posix-functions/iswalnum_l.texi: Likewise.
73446         * doc/posix-functions/iswalpha_l.texi: Likewise.
73447         * doc/posix-functions/iswblank_l.texi: Likewise.
73448         * doc/posix-functions/iswcntrl_l.texi: Likewise.
73449         * doc/posix-functions/iswctype_l.texi: Likewise.
73450         * doc/posix-functions/iswdigit_l.texi: Likewise.
73451         * doc/posix-functions/iswgraph_l.texi: Likewise.
73452         * doc/posix-functions/iswlower_l.texi: Likewise.
73453         * doc/posix-functions/iswprint_l.texi: Likewise.
73454         * doc/posix-functions/iswpunct_l.texi: Likewise.
73455         * doc/posix-functions/iswspace_l.texi: Likewise.
73456         * doc/posix-functions/iswupper_l.texi: Likewise.
73457         * doc/posix-functions/iswxdigit_l.texi: Likewise.
73458         * doc/posix-functions/isxdigit_l.texi: Likewise.
73459         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
73460         * doc/posix-functions/strcasecmp_l.texi: Likewise.
73461         * doc/posix-functions/strcoll_l.texi: Likewise.
73462         * doc/posix-functions/strfmon_l.texi: Likewise.
73463         * doc/posix-functions/strftime_l.texi: Likewise.
73464         * doc/posix-functions/strncasecmp_l.texi: Likewise.
73465         * doc/posix-functions/strxfrm_l.texi: Likewise.
73466         * doc/posix-functions/tolower_l.texi: Likewise.
73467         * doc/posix-functions/toupper_l.texi: Likewise.
73468         * doc/posix-functions/towctrans_l.texi: Likewise.
73469         * doc/posix-functions/towlower_l.texi: Likewise.
73470         * doc/posix-functions/towupper_l.texi: Likewise.
73471         * doc/posix-functions/wcscoll_l.texi: Likewise.
73472         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
73473         * doc/posix-functions/wctrans_l.texi: Likewise.
73474         * doc/posix-functions/wctype_l.texi: Likewise.
73475         * doc/glibc-functions/strptime_l.texi: Likewise.
73476         * doc/glibc-functions/strtod_l.texi: Likewise.
73477         * doc/glibc-functions/strtof_l.texi: Likewise.
73478         * doc/glibc-functions/strtol_l.texi: Likewise.
73479         * doc/glibc-functions/strtold_l.texi: Likewise.
73480         * doc/glibc-functions/strtoll_l.texi: Likewise.
73481         * doc/glibc-functions/strtoul_l.texi: Likewise.
73482         * doc/glibc-functions/strtoull_l.texi: Likewise.
73483         * doc/glibc-functions/wcsftime_l.texi: Likewise.
73484         * doc/glibc-functions/wcstod_l.texi: Likewise.
73485         * doc/glibc-functions/wcstof_l.texi: Likewise.
73486         * doc/glibc-functions/wcstol_l.texi: Likewise.
73487         * doc/glibc-functions/wcstold_l.texi: Likewise.
73488         * doc/glibc-functions/wcstoll_l.texi: Likewise.
73489         * doc/glibc-functions/wcstoul_l.texi: Likewise.
73490         * doc/glibc-functions/wcstoull_l.texi: Likewise.
73492 2009-11-24  Bruno Haible  <bruno@clisp.org>
73494         duplocale: Fix logic bug.
73495         * lib/duplocale.c: Don't include <langinfo.h>.
73496         (_NL_LOCALE_NAME): Remove macro.
73497         (rpl_duplocale): Use setlocale instead of nl_langinfo.
73498         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
73500 2009-11-23  Jim Meyering  <meyering@redhat.com>
73502         test-update-copyright: don't hard-code /usr/bin/perl
73503         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
73504         perl to print the current year.  Gilles Espinasse reported that
73505         the replaced use of perl was hard-coded as /usr/bin/perl.
73507 2009-11-23  Bruno Haible  <bruno@clisp.org>
73509         duplocale: Add support for glibc 2.3.x.
73510         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
73512 2009-11-22  Bruno Haible  <bruno@clisp.org>
73514         vasnprintf: Tiny optimization.
73515         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
73516         MacOS X.
73518 2009-11-22  Bruno Haible  <bruno@clisp.org>
73520         Tests for module 'duplocale'.
73521         * modules/duplocale-tests: New file.
73522         * tests/test-duplocale.c: New file.
73524         New module 'duplocale'.
73525         * m4/duplocale.m4: New file.
73526         * lib/locale.in.h (duplocale): New declaration.
73527         * lib/duplocale.c: New file.
73528         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
73529         gl_LOCALE_H_DEFAULTS): New macros.
73530         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
73531         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
73532         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
73533         REPLACE_DUPLOCALE.
73534         * modules/duplocale: New file.
73535         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
73537 2009-11-22  Bruno Haible  <bruno@clisp.org>
73539         * modules/locale-tests (configure.ac): Test for newlocale function.
73540         * tests/test-locale.c: When the system has extended locale functions,
73541         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
73543         locale: Make locale_t available when possible.
73544         * lib/locale.in.h: Include <xlocale.h> when it exists.
73545         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
73546         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
73547         * modules/locale (Depends-on): Add extensions.
73548         (Makefile.am): Also substitute HAVE_XLOCALE_H.
73549         * doc/posix-headers/locale.texi: Document the problem with locale_t.
73551 2009-11-22  Bruno Haible  <bruno@clisp.org>
73553         Add comments.
73554         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
73555         invocation.
73556         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
73557         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73558         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73560 2009-11-22  Bruno Haible  <bruno@clisp.org>
73562         error: account for the possibility of freopen (stdout).
73563         * lib/error.c: Include <unistd.h>.
73564         (flush_stdout): New function, extracted from error and error_at_line.
73565         Determine stdout's fd dynamically.
73566         (error, error_at_line): Invoke flush_stdout.
73567         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
73568         * modules/error (Depends-on): Add unistd.
73570 2009-11-22  Bruno Haible  <bruno@clisp.org>
73572         diffseq: Add comment.
73573         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
73575 2009-11-22  Jim Meyering  <meyering@redhat.com>
73577         c-stack: avoid defining an unused static function
73578         * lib/c-stack.c (find_stack_direction): Do not define this function
73579         when it will not be used.
73581         diffseq: avoid spurious gcc warnings
73582         * lib/diffseq.h (IF_LINT2): Define.
73583         (compareseq): Use it to initialize two members of "part".
73584         This avoids two used-uninitialized warnings.
73586 2009-11-21  Jim Meyering  <meyering@redhat.com>
73588         c-stack: avoid "ignoring return value of `write'" warning
73589         * lib/c-stack.c: Include "ignore-value.h".
73590         (die): Explicitly ignore each write return value.
73591         * modules/c-stack (Depends-on): Add ignore-value.
73593 2009-11-21  Bruno Haible  <bruno@clisp.org>
73595         diffseq: reduce scope of variable 'best'.
73596         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
73597         variable, earlier used for two different purposes.
73599 2009-11-21  Jim Meyering  <meyering@redhat.com>
73601         diffseq: remove useless assignment to "best"
73602         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
73603         assignment.  At that point "best" is already guaranteed to be zero.
73605 2009-11-20  Eric Blake  <ebb9@byu.net>
73607         build: mention ftp redirector in release announcements
73608         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
73609         values that used to come from cfg.mk; mention FTP redirect URL.
73610         * build-aux/announce-gen: Mention the mirror list.
73611         Suggested by Karl Berry.
73613         nanosleep: improve port to mingw
73614         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
73615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
73616         LIB_NANOSLEEP, but only when needed.
73617         * modules/select (Link): Document LIBSOCKET.
73618         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
73619         enough.
73621         nanosleep: work around cygwin bug
73622         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
73623         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
73624         bug.
73625         (getnow): Delete, not needed.
73626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
73627         LIB_CLOCK_GETTIME.
73628         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
73629         clock-time, gettime.
73630         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
73631         bug.
73632         * modules/nanosleep-tests: New test.
73633         * tests/test-nanosleep.c: New file.
73635         sleep: work around cygwin bug
73636         * lib/sleep.c (rpl_sleep): Work around the bug.
73637         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
73638         (gl_PREREQ_SLEEP): Delete unused macro.
73639         * modules/sleep (Depends-on): Add verify.
73640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73641         * modules/unistd (Makefile.am): Substitute witness.
73642         * lib/unistd.in.h (sleep): Update prototype.
73643         * doc/posix-functions/sleep.texi (sleep): Document the bug.
73644         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
73645         * modules/sleep-tests (Depends-on): Check for alarm.
73647 2009-11-20  Jim Meyering  <meyering@redhat.com>
73649         maint.mk: improve sc_prohibit_magic_number_exit
73650         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
73651         so it does not match uses like System.exit(1).
73652         Add comments showing how to correct all offenders.
73654 2009-11-19  Eric Blake  <ebb9@byu.net>
73656         xalloc-die-tests: add missing library
73657         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
73659         test-xvasprintf: silence compiler warnings
73660         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
73661         empty string from gcc.
73663 2009-11-19  Jim Meyering  <meyering@redhat.com>
73665         xfreopen: new module, from coreutils
73666         * modules/xfreopen: New module.
73667         * lib/xfreopen.c: New file.
73668         * lib/xfreopen.h: New file.
73669         * MODULES.html.sh (File stream based Input/Output"): Add it.
73671 2009-11-19  Eric Blake  <ebb9@byu.net>
73673         manywarnings: depend on warnings
73674         * modules/manywarnings (Depends-on): Add warnings.
73676         build: avoid compiler warnings
73677         * lib/select.c (rpl_select): Delete unused variable.
73678         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
73680 2009-11-18  Eric Blake  <ebb9@byu.net>
73682         tests: avoid false negative with --with-packager
73683         * tests/test-version-etc.sh: Discard packager information.
73684         * tests/test-argp-version-etc-1.sh: Likewise.
73685         Reported by Mike Frysinger.
73687         utimens: fix regression on Solaris
73688         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
73689         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
73690         can only change fd timestamps via futimesat.  Instead, use an
73691         additional witness macro to avoid BSD bug.
73692         Reported by Jim Meyering.
73694 2009-11-17  Eric Blake  <ebb9@byu.net>
73696         usleep: use it to simplify tests
73697         * modules/stat-time-tests (Depends-on): Add usleep.
73698         (configure.ac): Drop usleep check.
73699         * modules/chown-tests (Depends-on, configure.ac): Likewise.
73700         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
73701         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
73702         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
73703         * modules/openat-tests (Depends-on, configure.ac): Likewise.
73704         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
73705         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
73706         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
73707         Likewise.
73708         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
73709         * tests/test-lchown.h (nap): Likewise.
73710         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
73711         * tests/test-stat-time.c (nap): Likewise.
73712         * tests/test-utimens-common.h (nap): Update comments.
73714         usleep: new module
73715         * modules/usleep: New file.
73716         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
73717         * lib/usleep.c (usleep): Likewise.
73718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
73719         * modules/unistd (Makefile.am): Substitute witnesses.
73720         * lib/unistd.in.h (usleep): Add declaration.
73721         * doc/pastposix-functions/usleep.texi (usleep): Document this.
73722         * MODULES.html.sh (Date and time): Likewise.
73723         * modules/usleep-tests (Depends-on): New test.
73724         * tests/test-usleep.c: New file.
73726         chown: work around OpenBSD bug
73727         * lib/chown.c (rpl_chown): Work around the bug.
73728         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
73729         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
73730         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
73731         * modules/chown (Depends-on): Add stdbool.
73732         * modules/lchown (Depends-on): Likewise.
73733         * doc/posix-functions/chown.texi (chown): Document the bug.
73734         * doc/posix-functions/lchown.texi (lchown): Likewise.
73735         * tests/test-lchown.h (test_chown): Relax test.
73737         mkstemp: avoid conflict with C++ keyword template
73738         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
73739         * lib/mkostemp.c (mkostemp): Likewise.
73740         * lib/mkostemps.c (mkostemps): Likewise.
73741         * lib/mkstemp.c (mkstemp): Likewise.
73742         * lib/mkstemps.c (mkstemps): Likewise.
73744         xalloc-die-tests: optimize
73745         * tests/test-xalloc-die.sh: Reduce number of processes.
73747 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73749         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
73750         patch from ludo@gnu.org (Ludovic Courtès).
73752 2009-11-17  Jim Meyering  <meyering@redhat.com>
73754         version-etc: use proper license string
73755         * modules/version-etc (License): Use LGPL, not LGPLv3+.
73756         * modules/version-etc-fsf: Likewise.
73758 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73760         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
73761         printed to stdout.  Deal with EOL differences.
73763 2009-11-17  Eric Blake  <ebb9@byu.net>
73765         unsetenv: work around Solaris bug
73766         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
73767         * lib/unsetenv.c (rpl_unsetenv): Work around it.
73768         Reported by Jim Meyering.
73770         vasnprintf: avoid compiler warnings
73771         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
73772         variables.
73773         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
73775 2009-11-17  Simon Josefsson  <simon@josefsson.org>
73777         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
73778         settings since xalloc-die is no longer the self test,
73779         xalloc-die.sh is.
73781 2009-11-17  Jim Meyering  <meyering@redhat.com>
73783         test-xalloc-die.sh: make the code agree with the commit log
73784         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
73785         at the end, just in case you happen to have a test-xalloc-die
73786         program in some other PATH directory.
73788         test-xalloc-die.sh: fix a portability bug
73789         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
73790         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
73791         Otherwise, argv[0] (as often seen in diagnostics) would be too
73792         system-dependent, sometimes with, and sometimes without the leading "./".
73794         version-etc-fsf: relax license to LGPLv3+
73795         * modules/version-etc-fsf (License): Relax license.
73797 2009-11-16  Eric Blake  <ebb9@byu.net>
73799         xalloc-die-tests: avoid printing null pointer
73800         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
73801         shell script.
73802         * tests/test-xalloc-die.c (program_name): Declare.
73803         * tests/test-xalloc-die.sh (tmpfiles): New file.
73805         setenv, unsetenv: work around various bugs
73806         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
73807         (setenv) [HAVE_SETENV]: Work around bugs.
73808         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
73809         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
73810         for bugs.
73811         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
73812         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
73813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
73814         * modules/stdlib (Makefile.am): Update substitutions.
73815         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
73816         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
73817         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73818         * modules/setenv-tests: New test.
73819         * modules/unsetenv-tests: Likewise.
73820         * tests/test-setenv.c: New file.
73821         * tests/test-unsetenv.c: Likewise.
73823 2009-11-16  Jim Meyering  <meyering@redhat.com>
73825         version-etc: relax license to LGPLv3+
73826         * modules/version-etc (License): Relax license.
73828         better AC_REQUIRE expanded-before-required-warning avoidance
73829         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
73830         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
73831         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
73832         which is no longer needed.
73834 2009-11-16  Eric Blake  <ebb9@byu.net>
73836         test-freading: clean up temporary file
73837         * tests/test-freading.c (main): Remove file on success, and use
73838         ASSERT more liberally.
73839         Reported by Jim Meyering.
73841 2009-11-16  Jim Meyering  <meyering@redhat.com>
73843         avoid new AC_REQUIRE expanded-before-required warnings
73844         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
73845         merely using it.
73846         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
73847         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
73849 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73851         * tests/test-xalloc-die.c: New file.
73852         * modules/xalloc-die-tests: New file.
73853         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
73854         XFAIL_TESTS so it can be appended by modules.
73856 2009-11-15  Simon Josefsson  <simon@josefsson.org>
73858         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
73859         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
73861 2009-11-14  Eric Blake  <ebb9@byu.net>
73863         fnmatch: avoid compiler warning
73864         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
73865         to silence compiler warning about mismatch signedness in ?:.
73866         Reported by Robert Millan.
73868         intprops: add double-inclusion guard
73869         * lib/intprops.h: Allow idempotent includes.
73870         Suggested by Bruce Korb.
73872         openat: detect Solaris fchownat bug
73873         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
73874         penalizing glibc chownat when only lchownat is broken.
73875         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
73876         trailing slash bugs.
73877         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
73878         * modules/openat-tests (Files): Include more files.
73879         (Depends-on): Add mgetgroups, sleep, stat-time.
73880         (configure.ac): Add additional checks.
73881         (Makefile.am): Build new test.
73882         * tests/test-fchownat.c: New file.
73884         lchown: detect Solaris and FreeBSD bug
73885         * lib/lchown.c (rpl_lchown): Work around bug.
73886         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
73887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73888         * modules/unistd (Makefile.am): Populate it.
73889         * lib/unistd.in.h (lchown): Update declaration.
73890         * doc/posix-functions/lchown.texi (lchown): Document the bug.
73891         * modules/lchown-tests: New file.
73892         * tests/test-lchown.h (test_lchown): Likewise.
73893         * tests/test-lchown.c (main): Likewise.
73895         chown: detect Solaris and FreeBSD bug
73896         * lib/chown.c (rpl_chown): Work around bug.
73897         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
73898         (gl_PREREQ_CHOWN): Delete.
73899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
73900         * modules/unistd (Makefile.am): Populate it.
73901         * lib/unistd.in.h (chown): Update declaration.
73902         * lib/lchown.c (chown): Update client.
73903         * modules/lchown (Depends-on): Add lstat.
73904         * doc/posix-functions/chown.texi (chown): Document the bug.
73905         * doc/posix-functions/getgroups.texi (getgroups): Document
73906         getgroups pitfall.
73907         * modules/chown-tests: New file.
73908         * tests/test-chown.h (test_chown): Likewise.
73909         * tests/test-chown.c (main): Likewise.
73911 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
73913         gnulib-tool: correctly detect absence of m4 directories
73914         * gnulib-tool: Avoid extra newline on data passed to wc -l.
73916 2009-11-14  Jim Meyering  <meyering@redhat.com>
73918         maint.mk: Prohibit inclusion of "xalloc.h" without use.
73919         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
73921 2009-11-14  John W. Eaton  <jwe@gnu.org>
73923         strftime.h: wrap function declaration in extern "C" block
73924         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
73926 2009-11-13  Eric Blake  <ebb9@byu.net>
73928         getgroups: avoid compiler warning
73929         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
73931         getgroups: work around FreeBSD bug
73932         * lib/getgroups.c (rpl_getgroups): Work around the bug.
73933         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
73934         * doc/posix-functions/getgroups.texi (getgroups): Document it.
73935         * tests/test-getgroups.c (main): Fix buffer overrun.
73937         getgroups: avoid compilation failure
73938         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
73939         * modules/getgroups (Depends-on): Add stdint.
73941 2009-11-13  Jim Meyering  <meyering@redhat.com>
73943         test-getgroups: avoid compilation failure
73944         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
73946 2009-11-13  Eric Blake  <ebb9@byu.net>
73948         mgetgroups: new module, taken from coreutils
73949         * modules/mgetgroups: New file.
73950         * lib/mgetgroups.h: Likewise.
73951         * lib/mgetgroups.c (mgetgroups): Likewise.
73952         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
73953         * MODULES.html.sh (Users and groups): Mention it.
73955         getgroups: don't expose GETGROUPS_T to user
73956         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
73957         an element at a time if GETGROUPS_T is wrong size.
73958         * lib/getugroups.h (getugroups): Change signature.
73959         * lib/unistd.in.h (getgroups): Likewise.
73960         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
73961         signature needs fixing.
73962         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
73963         AC_TYPE_GETGROUPS.
73964         * modules/group-member (Depends-on): Add getgroups.
73965         * lib/group-member.c (group_info, get_group_info): Use gid_t.
73966         (group_member): Rely on getgroups replacement.
73967         * lib/getugroups.c (getugroups): Use gid_t.
73968         * tests/test-getgroups.c (main): Likewise.
73969         * NEWS: Mention the signature change.
73970         * doc/posix-functions/getgroups.texi (getgroups): Mention the
73971         problem with signature.
73972         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
73973         GETGROUPS_T is still useful for setgroups.
73975         getgroups, getugroups: provide stubs for mingw
73976         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
73977         * lib/getugroups.c (getugroups): Likewise.
73978         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
73979         function.  Modernize replacement scheme.
73980         (gl_PREREQ_GETGROUPS): Delete.
73981         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
73982         * modules/getgroups (configure.ac): Declare witness.
73983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
73984         * modules/unistd (Depends-on): Substitute witness.
73985         * lib/unistd.in.h (getgroups): Declare replacement.
73987         getgroups: avoid calling exit
73988         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
73989         drop xalloc.
73990         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
73991         dependencies.
73992         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
73993         exiting, in the rare case of malloc failure.
73995         getgroups: fix logic error
73996         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
73997         has more than 20 groups.
73998         * modules/getgroups-tests: New test.
73999         * tests/test-getgroups.c: New file.
74001 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74003         * tests/test-base64.c: Improve.
74005 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74007         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
74008         Blake <ebb9@byu.net>.
74010 2009-11-13  Simon Josefsson  <simon@josefsson.org>
74012         * tests/test-xvasprintf.c: Add %s%s related checks.
74014 2009-11-12  Eric Blake  <ebb9@byu.net>
74016         version-etc: match standards.texi style
74017         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
74018         and use <> only for URLs.
74020 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
74022         fts: do not fail on a submount during traversal
74023         * lib/fts.c (fts_build): Read the stat info again after opening
74024         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
74025         Original report at http://bugzilla.redhat.com/501848.
74027 2009-11-12  Jim Meyering  <meyering@redhat.com>
74029         bootstrap: sync from coreutils
74030         * build-aux/bootstrap (bootstrap_epilogue): New function.
74031         Use git_modules_config in one more place.  This make bootstrap's
74032         --gnulib-srcdir option more useful for testing.
74034         bootstrap: generalize autoheader check
74035         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
74036         AC_CONFIG_HEADERS.
74038 2009-11-11  Eric Blake  <ebb9@byu.net>
74040         mkfifoat: use new modules for Solaris and BSD bugs
74041         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
74042         * lib/mkfifoat.c (mknodat): Split...
74043         * lib/mknodat.c (mknodat): ...into new file.
74044         * modules/mkfifoat (Files): Ship new file.
74045         (Depends-on): Add mkfifo, mknod.
74046         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
74047         (Depends-on): Add symlink.
74048         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
74049         redundant with test_mkfifo.h.
74050         (do_mkfifoat, do_mknodat): New helpers.
74052         mknod: new module
74053         * modules/mknod: New file.
74054         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
74055         * lib/mknod.c (mknod): Likewise.
74056         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74057         defaults.
74058         * modules/sys_stat (Makefile.am): Substitute them.
74059         * lib/sys_stat.in.h (mknod): Declare replacement.
74060         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74061         Document it.
74062         * doc/posix-functions/mknod.texi (mknod): Likewise.
74063         * modules/mknod-tests: New test.
74064         * tests/test-mknod.c: Likewise.
74066         mkfifo: new module
74067         * modules/mkfifo: New file.
74068         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
74069         * lib/mkfifo.c (mkfifo): Likewise.
74070         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
74071         defaults.
74072         * modules/sys_stat (Makefile.am): Substitute them.
74073         * lib/sys_stat.in.h (mkfifo): Declare replacement.
74074         * MODULES.html.sh (Support for systems lacking POSIX:2008):
74075         Document it.
74076         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
74077         * modules/mkfifo-tests: New test.
74078         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
74079         from test-mkfifoat.c.
74080         * tests/test-mkfifo.c: New file.
74082         readlink: detect FreeBSD bug
74083         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
74084         slash on symlink.
74085         * doc/posix-functions/readlink.texi (readlink): Document the bug.
74086         * tests/test-readlink.h (test_readlink): Enhance test.
74088         symlink: detect FreeBSD bug
74089         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
74090         slash on symlink.
74091         * doc/posix-functions/symlink.texi (symlink): Document the bug.
74092         * tests/test-symlink.h (test_symlink): Enhance test.
74094 2009-11-10  Eric Blake  <ebb9@byu.net>
74096         link: detect FreeBSD bug
74097         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
74098         symlink.
74099         * doc/posix-functions/link.texi (link): Document the bug.
74100         * tests/test-link.h (test_link): Enhance test.
74101         * tests/test-linkat.c (main): Update caller.
74103         unlink, remove: detect FreeBSD bug
74104         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
74105         slash on symlink.
74106         * doc/posix-functions/unlink.texi (unlink): Document the bug.
74107         * doc/posix-functions/remove.texi (remove): Likewise.
74108         * tests/test-unlink.h (test_unlink): Enhance test.
74109         * tests/test-remove.c (main): Likewise.
74111 2009-11-09  Eric Blake  <ebb9@byu.net>
74113         rename: detect FreeBSD bug
74114         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
74115         slash on symlink.
74116         * modules/renameat-tests (Depends-on): Add filenamecat.
74117         * tests/test-rename.h (test_rename): Allow one more errno.
74118         * tests/test-renameat.c (main): Likewise.
74119         * doc/posix-functions/rename.texi (rename): Document the bug.
74121         open: detect FreeBSD bug
74122         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
74123         symlink.
74124         * doc/posix-functions/open.texi (open): Document the bug.
74125         * doc/posix-functions/utimes.texi (utimes): Likewise.
74126         * tests/test-open.h (test_open): Add parameters, and test symlink
74127         handling.
74128         * tests/test-open.c (main): Adjust caller.
74129         * tests/test-fcntl-safer.c (main): Likewise.
74130         * modules/open-tests (Depends-on): Add stdbool, symlink.
74131         * modules/fcntl-safer-tests (Depends-on): Likewise.
74132         * tests/test-openat.c (main): Add test-open tests.
74134         stat: detect FreeBSD bug
74135         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
74136         symlink.
74137         * doc/posix-functions/stat.texi (stat): Document the bug.
74138         * tests/test-stat.h (test_stat_func): Add argument.
74139         * tests/test-stat.c (main): Adjust caller.
74140         * tests/test-fstatat.c (main): Likewise.
74141         * modules/stat-tests (Depends-on): Add stdbool, symlink.
74142         Reported by Jim Meyering.
74144 2009-11-09  James Youngman  <jay@gnu.org>
74146         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
74147         * lib/strftime.c: Correct placement of #include "ignore-value.h".
74149 2009-11-08  Jim Meyering  <meyering@redhat.com>
74151         utimens: remove invalid futimesat call
74152         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
74153         It used the file descriptor of the target file as the DIR_FD
74154         parameter and NULL as the file name.  That caused failure with
74155         errno == EFAULT on FreeBSD-8.0-rc2
74157 2009-11-07  Eric Blake  <ebb9@byu.net>
74159         fflush, freadseek: use fseeko, not fseek
74160         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
74161         (clear_ungetc_buffer): Avoid potential problems on large files.
74162         * lib/freadseek.c (freadseek): Likewise.
74163         * modules/freadseek (Depends-on): Add fseeko.
74164         * modules/fseek (configure.ac): Set a witness.
74165         * tests/test-fflush.c (main): Use fseeko.
74166         * tests/test-fpurge.c (fseek): Disable link warning.
74167         * tests/test-freadable.c (fseek): Likewise.
74168         * tests/test-freading.c (fseek): Likewise.
74169         * tests/test-fseeko.c (fseek): Likewise.
74170         * tests/test-ftell.c (fseek): Likewise.
74171         * tests/test-ftello.c (fseek): Likewise.
74172         * tests/test-fwritable.c (fseek): Likewise.
74173         * tests/test-fwriting.c (fseek): Likewise.
74175 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74177         * modules/memchr (Depends-on): Drop getpagesize dependency.
74179 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74181         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
74182         Reported by Ludovic Courtès.
74183         * build-aux/pmccabe2html: Improve example usage.
74184         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
74186 2009-11-06  Jim Meyering  <meyering@redhat.com>
74188         do-release-commit-and-tag: New module.
74189         Automate the release-commit and tag process.
74190         * build-aux/do-release-commit-and-tag: New script, from coreutils.
74191         * modules/do-release-commit-and-tag: New file.
74192         * MODULES.html.sh (Support for maintaining and releasing): Add it.
74194 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74196         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
74197         because test-select.c uses inet_pton.
74199 2009-11-06  Simon Josefsson  <simon@josefsson.org>
74201         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
74202         GETADDRINFO_LIB.  Bump serial number.
74203         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
74204         Suggested by Eric Blake <ebb9@byu.net>.
74206 2009-11-05  Eric Blake  <ebb9@byu.net>
74208         strtod: detect darwin bug
74209         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
74210         Reported by Leo Davis.
74212         freopen-safer: new module
74213         * modules/freopen-safer: New module.
74214         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
74215         * lib/freopen-safer.c (freopen_safer): New file.
74216         * lib/stdio-safer.h (freopen_safer): New declaration.
74217         * lib/stdio--.h (freopen): New override.
74218         * MODULES.html.sh (File stream based Input/Output): Mention it.
74219         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
74220         freopen-safer module.
74221         * doc/posix-functions/stderr.texi (stderr): Likewise.
74222         * doc/posix-functions/stdin.texi (stdin): Likewise.
74223         * doc/posix-functions/stdout.texi (stdout): Likewise.
74224         * modules/freopen-safer-tests: New test.
74225         * tests/test-reopen-safer.c: New file.
74227 2009-11-05  Jim Meyering  <meyering@redhat.com>
74229         maint.mk: Prohibit inclusion of "close-stream.h" without use.
74230         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74232 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74234         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
74236 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74238         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
74240 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74242         Fix link error.
74243         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74244         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74246 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74248         * tests/test-func.c: Also test value of __func__.
74250 2009-11-05  Simon Josefsson  <simon@josefsson.org>
74252         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
74253         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
74255 2009-11-05  Bruno Haible  <bruno@clisp.org>
74257         Fix link error.
74258         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
74259         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74260         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
74262 2009-11-05  Bruno Haible  <bruno@clisp.org>
74264         Tests for module 'inet_pton'.
74265         * modules/inet_pton-tests: New file.
74266         * tests/test-inet_pton.c: New file.
74268 2009-11-05  Bruno Haible  <bruno@clisp.org>
74270         Tests for module 'inet_ntop'.
74271         * modules/inet_ntop-tests: New file.
74272         * tests/test-inet_ntop.c: New file.
74274 2009-11-04  Eric Blake  <ebb9@byu.net>
74276         stdlib-safer: wrap all mkstemp variants
74277         * modules/mkostemp (configure.ac): Set witness.
74278         * modules/mkostemps (configure.ac): Likewise.
74279         * modules/mkstemps (configure.ac): Likewise.
74280         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
74281         (mkstemps_safer): Wrap more functions.
74282         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
74283         wrapping.
74284         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
74285         (mkstemps_safer): Implement the wrappers.
74287         mkstemps, mkostemps: new modules
74288         * modules/mkostemps: New module.
74289         * modules/mkstemps: Likewise.
74290         * lib/mkostemps.c (mkostemps): New file.
74291         * lib/mkstemps.c (mkstemps): Likewise.
74292         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
74293         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
74294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
74295         * modules/stdlib (Makefile.am): Substitute them.
74296         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
74297         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
74298         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
74299         * doc/gnulib.texi (Glibc stdlib.h): Include them.
74300         * MODULES.html.sh (File system functions): Mention them.
74302         tempname: resync from glibc
74303         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
74304         same values for __GT_FILE as glibc.  Abort even when assertions
74305         are disabled.
74306         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
74307         match its value otherwise.  Allow idempotent inclusion.
74308         * lib/mkdtemp.c (mkdtemp): Adjust caller.
74309         * lib/mkostemp.c (mkostemp): Likewise.
74310         * lib/mkstemp.c (mkstemp): Likewise.
74311         * lib/tmpfile.c (tmpfile): Likewise.
74312         * NEWS: Document this.
74314         utimens: fix use of futimens on older Linux
74315         * lib/utimens.c (fdutimens): Use updated, rather than original,
74316         timespec to avoid bug in older Linux kernel.
74317         Reported by Simon Josefsson.
74319 2009-11-04  Bruno Haible  <bruno@clisp.org>
74321         Make num_processors more flexible and consistent.
74322         * lib/nproc.h (enum nproc_query): New type.
74323         (num_processors): Add a 'query' argument.
74324         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
74325         (num_processors): Add a 'query' argument. Test the value of the
74326         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
74327         mingw, count the number of CPUs available for the current process.
74328         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
74329         Check for sched_getaffinity and sched_getaffinity_np.
74330         * modules/nproc (Depends-on): Add c-ctype, extensions.
74331         * NEWS: Mention the change.
74333 2009-11-03  Bruno Haible  <bruno@clisp.org>
74335         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
74337 2009-11-03  Jim Meyering  <meyering@redhat.com>
74339         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
74340         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
74341         if it is defined.
74343 2009-11-02  Eric Blake  <ebb9@byu.net>
74345         mktime, timegm: share common declaration
74346         * lib/mktime-internal.h: New file.
74347         * lib/mktime.c: Use it rather than open-coding a declaration.
74348         * lib/timegm.c: Likewise.
74349         * modules/mktime (Files): Ship it.
74350         * modules/timegm (Files): Likewise.
74351         Suggested by Bruno Haible.
74353         test-update-copyright: update test to match script changes
74354         * tests/test-update-copyright.sh: Avoid hard-coding perl
74355         location.  Don't update *.bak created by earlier runs.
74357 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74358             Simon Josefsson  <simon@josefsson.org>
74359             Bruno Haible  <bruno@clisp.org>
74361         Fix link error on Solaris 8.
74362         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
74363         also in libnsl. Define also INET_PTON_LIB.
74364         * modules/inet_pton (Link): New section.
74366 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74367             Bruno Haible  <bruno@clisp.org>
74369         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
74370         * modules/inet_ntop (Link): New section.
74371         Reported by Boyan Kasarov <bkasarov@gmail.com>.
74373 2009-11-02  Eric Blake  <ebb9@byu.net>
74375         maint: avoid compiler warnings in m4 macros
74376         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
74377         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
74379 2009-11-02  Simon Josefsson  <simon@josefsson.org>
74381         * m4/pmccabe2html.m4: Remove file.
74382         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
74383         function.  Change maintainer.
74384         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
74385         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
74386         Courtès).
74388 2009-10-31  Eric Blake  <ebb9@byu.net>
74390         fseeko: fix m4 regression
74391         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
74392         regression from 2009-10-27.
74393         Reported by Ralf Wildenhues.
74395 2009-10-31  Jim Meyering  <meyering@redhat.com>
74397         inttostr: aesthetics and improved (compile-time) safety
74398         Define inttype_is_signed rather than inttype_is_unsigned,
74399         since the sole use is via "#if inttype_is_signed".
74400         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
74401         inttype_is_unsigned.
74402         * lib/offtostr.c (inttype_is_signed): Likewise.
74403         * lib/uinttostr.c (inttype_is_signed): Likewise.
74404         * lib/umaxtostr.c (inttype_is_signed): Likewise.
74405         * lib/inttostr.c (inttostr): Use verify to cross-check the
74406         inttype_is_signed value and the signedness of the actual type.
74407         * modules/inttostr (Depends-on): Add verify.
74409 2009-10-30  Eric Blake  <ebb9@byu.net>
74411         build: avoid compiler warnings
74412         * lib/fchmodat.c (lchmod): Mark unused variables.
74413         * lib/getopt.c (_getopt_initialize): Likewise.
74414         * lib/mktime.c (__mktime_internal): Provide prototype.
74415         * lib/inttostr.c (inttostr): Avoid compiler warning even with
74416         older gcc that do not understand #pragma GCC diagnostic.
74417         * lib/uinttostr.c (inttype_is_unsigned): Define.
74418         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
74420 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
74422         stat: fix compilation on AIX
74423         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
74424         only see struct stat64.
74426 2009-10-30  Eric Blake  <ebb9@byu.net>
74428         exclude: make more robust
74429         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
74430         rather than masking a coding bug.
74431         Suggested by Bruno Haible.
74433 2009-10-30  Jim Meyering  <meyering@redhat.com>
74435         perl scripts: remove #!/usr/bin/perl in favor of more portable...
74436         Rather than putting #!/usr/bin/perl on the first line,
74437         start with a variant of what's recommended by "man perlrun" that
74438         invokes the first "perl" program from your shell's search path.
74439         * build-aux/gitlog-to-changelog: Replace #!... as above.
74440         Add a "Local Variables" perl mode setting.
74441         Prompted by a patch from Ludovic Courtès.
74442         Improved by Eric Blake.
74443         * build-aux/useless-if-before-free: Likewise.
74444         * build-aux/announce-gen: Likewise.
74445         * build-aux/update-copyright: Likewise.
74447 2009-10-29  Eric Blake  <ebb9@byu.net>
74449         filenamecat-lgpl: adjust clients
74450         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
74451         filenamecat.
74452         * modules/renameat (Depends-on): Likewise.
74454         filenamecat: split into filenamecat-lgpl
74455         * modules/filenamecat-lgpl: New module.
74456         * modules/filenamecat (Files): Move library-safe files into
74457         filenamecat-lgpl.
74458         (Depends-on): Add filenamecat-lgpl.
74459         (configure.ac): Declare witness.
74460         * lib/filenamecat.h (file_name_concat): Only declare when using
74461         GPL module.
74462         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
74463         Move...
74464         * lib/filenamecat-lgpl.c: ...into new file.
74465         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
74466         (gl_FILE_NAME_CONCAT): Use it.
74467         * MODULES.html.sh (File system functions): Mention new module.
74469         argp: avoid memory leak
74470         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
74471         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
74472         base_name, since the latter malloc()s and can call exit().
74473         Leak introduced 2006-07-03.
74475         dirname-lgpl: adjust clients that don't need full dirname
74476         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
74477         * modules/filenamecat (Depends-on): Likewise.
74478         * modules/linkat (Depends-on): Likewise.
74479         * modules/mkancesdirs (Depends-on): Likewise.
74480         * modules/mkdir (Depends-on): Likewise.
74481         * modules/openat (Depends-on): Likewise.
74482         * modules/savewd (Depends-on): Likewise.
74483         * modules/rename (Depends-on): Likewise.
74484         (License): Relax license.
74485         * modules/mkdir-tests (Depends-on): Drop progname.
74486         (Makefile.am): Delete unneeded LDADD.
74487         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
74489         dirname: split into dirname-lgpl
74490         * modules/dirname-lgpl: New module.
74491         * modules/dirname (Files): Move library-safe files into
74492         dirname-lgpl.
74493         (Depends-on): Add dirname-lgpl.
74494         (configure.ac): Declare witness.
74495         * modules/double-slash-root (License): Relax license.
74496         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
74497         module.
74498         * lib/dirname.c (dir_len, mdir_name): Move...
74499         * lib/dirname-lgpl.c: ...into new file.
74500         * lib/basename.c (last_component, base_len): Move...
74501         * lib/basename-lgpl.c: ...into new file.
74502         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
74503         (gl_DIRNAME): Use it.
74504         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
74505         Mention new module.
74506         * modules/dirname-tests (Depends-on): Add progname.
74507         * tests/test-dirname.c (program_name): Delete.
74509         mkdir: make safe for libraries
74510         * modules/mkdir (Depends-on): Drop xalloc.
74511         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
74512         exit.
74514         tests: avoid some compiler warnings
74515         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
74516         literals.
74517         * tests/test-memchr.c (main): Avoid type mismatch.
74518         * tests/test-arpa_inet.c (main): Avoid unused parameters.
74519         * tests/test-base64.c (main): Likewise.
74520         * tests/test-getdelim.c (main): Likewise.
74521         * tests/test-gethostname.c (main): Likewise.
74522         * tests/test-getline.c (main): Likewise.
74523         * tests/test-netinet_in.c (main): Likewise.
74524         * tests/test-select.c (open_server_socket, main): Likewise.
74525         * tests/test-select-stdin.c (main): Likewise.
74526         * tests/test-sockets.c (main): Likewise.
74527         * tests/test-strsignal.c (main): Likewise.
74528         * tests/test-sys_select.c (main): Likewise.
74529         * tests/test-sys_socket.c (main): Likewise.
74530         * tests/test-u64.c (main): Likewise.
74531         * tests/test-xfprintf-posix.c (main): Likewise.
74532         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
74534         sockets: avoid compiler warning
74535         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
74537         maint: detect usage(1) and other suspicious exits
74538         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
74540 2009-10-29  Jim Meyering  <meyering@redhat.com>
74542         timespec: long-to-int truncation could make timespec_cmp malfunction
74543         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
74544         a multiple of 2^32 nanoseconds as no difference.
74546 2009-10-28  Jim Meyering  <meyering@redhat.com>
74548         fprintftime: wrap macro code argument in "do {...} while(0)"
74549         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
74550         cpy macro must be a statement that can be followed by a semicolon.
74551         Now that the else clause contains a comment and is hence longer
74552         than one line, I require curly braces.  That in turn requires
74553         that we wrap this code block in the standard do...while(0).
74555         fprintftime: remove stray semicolon from previous change
74556         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
74558         fprintftime: avoid a warning about ignored fwrite return value
74559         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
74560         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
74561         that is unsafe.
74562         * modules/fprintftime (Depends-on): Add ignore-value.
74564         exclude: avoid an unwarranted warning
74565         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
74567 2009-10-27  Eric Blake  <ebb9@byu.net>
74569         fseek: avoid compilation failure when fflush is replaced
74570         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
74571         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
74572         module is in use.
74573         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
74574         module is not in use; since REPLACE_FSEEK worked otherwise.
74575         (GNULIB_FTELLO): Likewise for ftell.
74576         Reported by Ian Beckwith and others.
74578 2009-10-27  Bruno Haible  <bruno@clisp.org>
74580         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
74581         Reported by Jim Meyering.
74583 2009-10-27  Jim Meyering  <jim@meyering.net>
74584             Bruno Haible  <bruno@clisp.org>
74586         Avoid warning despite dropping the return value of fwrite.
74587         * lib/unicodeio.c: Include ignore-value.h.
74588         (fwrite_success_callback): Explicitly ignore fwrite's return value.
74589         * modules/unicodeio (Depends-on): Add ignore-value.
74591 2009-10-26  Eric Blake  <ebb9@byu.net>
74593         areadlinkat: fix fallback path
74594         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
74595         pointer and zero.
74597 2009-10-22  Pádraig Brady  <P@draigBrady.com>
74599         Use a better IO block size for modern systems
74600         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
74601         * lib/md2.c: Likewise.
74602         * lib/md4.c: Likewise.
74603         * lib/md5.c: Likewise.
74604         * lib/sha1.c: Likewise.
74605         * lib/sha256.c: Likewise.
74606         * lib/sha512.c: Likewise.
74608 2009-10-22  Eric Blake  <ebb9@byu.net>
74610         tests: avoid several compiler warnings
74611         * tests/test-getcwd.c (main): Avoid buffer underflow.
74612         * tests/test-getdate.c (main): String literals are not safe with
74613         putenv, so use setenv.  Declare unused argument.
74614         * modules/getdate-tests (Depends-on): Add setenv.
74615         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
74616         problems with string literals in char *.
74617         * tests/test-hash.c (main): Avoid shadowing declaration.
74618         (insert_new): Treat string literals as char const *.
74619         * tests/test-getopt.h (test_getopt): Likewise.
74620         (getopt_loop): Alter types to minimize casting elsewhere.
74621         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
74622         (test_getopt_long_posix): Likewise.
74623         (do_getopt_long): Add wrapper to minimize casting.
74624         * tests/test-atexit.c (clear_temp_file): Use void.
74625         * tests/test-areadlink-with-size.c (main): Declare unused
74626         arguments.
74627         * tests/test-areadlink.c (main): Likewise.
74628         * tests/test-areadlinkat-with-size.c (main): Likewise.
74629         * tests/test-areadlinkat.c (main): Likewise.
74630         * tests/test-canonicalize-lgpl.c (main): Likewise.
74631         * tests/test-canonicalize.c (main): Likewise.
74632         * tests/test-dirent-safer.c (main): Likewise.
74633         * tests/test-dirname.c (main): Likewise.
74634         * tests/test-dup2.c (main): Likewise.
74635         * tests/test-fchdir.c (main): Likewise.
74636         * tests/test-fcntl-h.c (main): Likewise.
74637         * tests/test-fcntl-safer.c (main): Likewise.
74638         * tests/test-fdopendir.c (main): Likewise.
74639         * tests/test-fdutimensat.c (main): Likewise.
74640         * tests/test-fflush.c (main): Likewise.
74641         * tests/test-filenamecat.c (main): Likewise.
74642         * tests/test-filevercmp.c (main): Likewise.
74643         * tests/test-fopen-safer.c (main): Likewise.
74644         * tests/test-fopen.c (main): Likewise.
74645         * tests/test-fpending.c (main): Likewise.
74646         * tests/test-fpurge.c (main): Likewise.
74647         * tests/test-freading.c (main): Likewise.
74648         * tests/test-fstatat.c (main): Likewise.
74649         * tests/test-fsync.c (main): Likewise.
74650         * tests/test-futimens.c (main): Likewise.
74651         * tests/test-getndelim2.c (main): Likewise.
74652         * tests/test-gettimeofday.c (main): Likewise.
74653         * tests/test-getopt.c (main): Likewise.
74654         * tests/test-i-ring.c (main): Likewise.
74655         * tests/test-inttypes.c (main): Likewise.
74656         * tests/test-link.c (main): Likewise.
74657         * tests/test-lstat.c (main): Likewise.
74658         * tests/test-math.c (main): Likewise.
74659         * tests/test-md5.c (main): Likewise.
74660         * tests/test-memchr2.c (main): Likewise.
74661         * tests/test-memrchr.c (main): Likewise.
74662         * tests/test-mkdir.c (main): Likewise.
74663         * tests/test-mkdirat.c (main): Likewise.
74664         * tests/test-mkfifoat.c (main): Likewise.
74665         * tests/test-open.c (main): Likewise.
74666         * tests/test-openat-safer.c (main): Likewise.
74667         * tests/test-openat.c (main): Likewise.
74668         * tests/test-quotearg.c (main): Likewise.
74669         * tests/test-rawmemchr.c (main): Likewise.
74670         * tests/test-readlink.c (main): Likewise.
74671         * tests/test-remove.c (main): Likewise.
74672         * tests/test-rename.c (main): Likewise.
74673         * tests/test-renameat.c (main): Likewise.
74674         * tests/test-rmdir.c (main): Likewise.
74675         * tests/test-sha1.c (main): Likewise.
74676         * tests/test-signal.c (main): Likewise.
74677         * tests/test-sigaction.c (main): Likewise.
74678         * tests/test-stat.c (main): Likewise.
74679         * tests/test-stat-time.c (main): Likewise.
74680         * tests/test-stddef.c (main): Likewise.
74681         * tests/test-stdint.c (main): Likewise.
74682         * tests/test-stdio.c (main): Likewise.
74683         * tests/test-stdlib.c (main): Likewise.
74684         * tests/test-strchrnul.c (main): Likewise.
74685         * tests/test-strerror.c (main): Likewise.
74686         * tests/test-string.c (main): Likewise.
74687         * tests/test-strtod.c (main): Likewise.
74688         * tests/test-strverscmp.c (main): Likewise.
74689         * tests/test-symlink.c (main): Likewise.
74690         * tests/test-symlinkat.c (main): Likewise.
74691         * tests/test-sys_stat.c (main): Likewise.
74692         * tests/test-sys_time.c (main): Likewise.
74693         * tests/test-time.c (main): Likewise.
74694         * tests/test-unistd.c (main): Likewise.
74695         * tests/test-unlink.c (main): Likewise.
74696         * tests/test-unlinkat.c (main): Likewise.
74697         * tests/test-utimens.c (main): Likewise.
74698         * tests/test-utimensat.c (main): Likewise.
74699         * tests/test-version-etc.c (main): Likewise.
74700         * tests/test-wchar.c (main): Likewise.
74701         * tests/test-wctype.c (main): Likewise.
74702         * tests/test-xprintf-posix.c (main): Likewise.
74703         * tests/test-posixtm.c (main): Likewise.
74704         (STREQ): Delete unused macro.
74705         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
74706         shadowed variables.
74707         * tests/test-memchr.c (main): Likewise.
74709 2009-10-21  Eric Blake  <ebb9@byu.net>
74711         areadlinkat: avoid failure on older glibc
74712         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
74713         rather than mis-comparing 0 against FUNC_RESULT of char*.
74715 2009-10-21  Bruno Haible  <bruno@clisp.org>
74717         * modules/stpncpy (License): Relicense under LGPLv2+.
74718         Reported by David Lutterkort <lutter@redhat.com>.
74720 2009-10-20  Eric Blake  <ebb9@byu.net>
74722         utimensat: work around Solaris 9 bug
74723         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
74724         has trailing slash bugs.
74725         * tests/test-lutimens.h (test_lutimens): Enhance test.
74726         * tests/test-utimens.h (test_utimens): Likewise.
74727         * doc/posix-functions/utime.texi (utime): Enhance documentation.
74728         * doc/posix-functions/utimes.texi (utimes): Likewise.
74729         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74730         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
74731         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
74732         * doc/posix-functions/futimens.texi (futimens): Likewise.
74734         fdutimensat: new module
74735         * modules/fdutimensat: New file.
74736         * lib/fdutimensat.c (fdutimensat): Likewise.
74737         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
74738         * MODULES.html.sh (File system functions): Mention module.
74739         * modules/fdutimensat-tests: New test.
74740         * tests/test-fdutimensat.c: Likewise.
74742         doc: regenerate INSTALL
74743         * doc/INSTALL: Reflect recent autoconf update.
74744         * doc/INSTALL.ISO: Likewise.
74745         * doc/INSTALL.UTF-8: Likewise.
74747 2009-10-20  Pádraig Brady  <P@draigBrady.com>
74749         acl: warn if ACL support is not detected
74750         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
74752 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
74754         * lib/nproc.h: Add extern "C" block for C++.
74756 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
74757             Bruno Haible  <bruno@clisp.org>
74759         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
74760         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
74761         * doc/posix-functions/isalpha.texi: Likewise.
74762         * doc/posix-functions/isblank.texi: Likewise.
74763         * doc/posix-functions/iscntrl.texi: Likewise.
74764         * doc/posix-functions/isdigit.texi: Likewise.
74765         * doc/posix-functions/isgraph.texi: Likewise.
74766         * doc/posix-functions/islower.texi: Likewise.
74767         * doc/posix-functions/isprint.texi: Likewise.
74768         * doc/posix-functions/ispunct.texi: Likewise.
74769         * doc/posix-functions/isspace.texi: Likewise.
74770         * doc/posix-functions/isupper.texi: Likewise.
74771         * doc/posix-functions/isxdigit.texi: Likewise.
74773 2009-10-18  Bruno Haible  <bruno@clisp.org>
74775         Tests for module 'isblank'.
74776         * modules/isblank-tests: New file.
74777         * tests/test-isblank.c: New file.
74779         New module 'isblank'.
74780         * lib/isblank.c: New file.
74781         * m4/isblank.m4: New file.
74782         * modules/isblank: New file.
74783         * doc/posix-functions/isblank.texi: Mention the new module.
74785 2009-10-18  Bruno Haible  <bruno@clisp.org>
74787         New module 'ctype'.
74788         * lib/ctype.in.h: New file.
74789         * m4/ctype.m4: New file.
74790         * modules/ctype: New file.
74791         * doc/posix-headers/ctype.texi: Mention the new module.
74793 2009-10-18  Jim Meyering  <meyering@redhat.com>
74795         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
74796         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
74797         right after its initialization, rather than farther down.
74798         Keeping these in close proximity makes it easier to ensure
74799         that each such variable is initialized.  E.g.,
74801             LIB_CLOCK_GETTIME=
74802             AC_SUBST([LIB_CLOCK_GETTIME])
74804         This change also increments these serial numbers.
74805         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
74806         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74809 2009-10-18  Bruno Haible  <bruno@clisp.org>
74811         Don't let environment variables perturb build.
74812         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
74813         (gl_PREREQ_GETHRXTIME): ... not here.
74815 2009-10-18  Bruno Haible  <bruno@clisp.org>
74817         Avoid symlink attack in localcharset module.
74818         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
74819         (O_NOFOLLOW): Define fallback.
74820         (get_charset_aliases): Don't open the file if it is a symbolic link.
74821         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
74822         gl_FCNTL_H.
74823         (gl_FCNTL_H): Require it.
74824         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
74825         * modules/localcharset (Files): Add m4/fcntl_h.m4.
74826         Reported by Fergal Glynn <fglynn@veracode.com>.
74828 2009-10-18  Bruno Haible  <bruno@clisp.org>
74830         Implement nproc for mingw.
74831         * lib/nproc.c: Include <windows.h>
74832         (num_processors): On native Windows platforms, try GetSystemInfo.
74834 2009-10-18  Bruno Haible  <bruno@clisp.org>
74836         Implement nproc for IRIX.
74837         * lib/nproc.c: Include <sys/sysmp.h>.
74838         (num_processors): On IRIX systems, try sysmp.
74839         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
74841 2009-10-18  Bruno Haible  <bruno@clisp.org>
74843         Implement nproc for HP-UX.
74844         * lib/nproc.c: Include <sys/pstat.h>
74845         (num_processors): On HP-UX systems, try pstat_getdynamic.
74846         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
74847         pstat_getdynamic.
74849 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
74850             Bruno Haible  <bruno@clisp.org>
74852         Implement nproc for NetBSD, OpenBSD.
74853         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
74854         (ARRAY_SIZE): New macro.
74855         (num_processors): On BSD systems, try sysctl of HW_NCPU.
74856         * m4/nproc.m4: New file.
74857         * modules/nproc (Files): Add m4/nproc.m4.
74858         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
74859         (Makefile.am): Instead, augment lib_SOURCES.
74861 2009-10-18  Bruno Haible  <bruno@clisp.org>
74863         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
74864         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
74865         sys/param.h.
74867 2009-10-16  Eric Blake  <ebb9@byu.net>
74869         utimensat: new module
74870         * modules/utimensat: New file.
74871         * lib/utimensat.c (utimensat): Likewise.
74872         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74873         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
74874         so we can work around Linux bugs.
74875         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74876         * modules/sys_stat (Makefile.am): Substitute them.
74877         * lib/sys_stat.in.h (utimensat): Declare it.
74878         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74879         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
74880         * modules/utimensat-tests: New test.
74881         * tests/test-utimensat.c: Likewise.
74883         utimens: let lutimens work on non-symlinks
74884         * lib/utimens.c (lutimens): Fall back to utimens rather than
74885         failing with ENOSYS, when file is not a symlink.
74886         (utimens): Reduce redirection.
74887         * tests/test-lutimens.h (test_lutimens): Update test to cover
74888         non-symlinks.
74889         * tests/test-utimens.h (test_utimens): Update test to cover
74890         symlinks.
74891         * tests/test-utimens.c (main): Update caller.
74893         utimens: cache whether utimensat syscall works
74894         * lib/utimens.c (utimensat_works_really): New cache variable.
74895         (fdutimens, lutimens): Use it to avoid failing syscall.
74897         test-stat-time, test-utimens: improve portability
74898         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
74899         ext4 on alpha, and for cygwin.
74900         * tests/test-utimens-common.h: New file.
74901         (nap): Factor delays into single function.
74902         * tests/test-lutimens.h (test_lutimens): Use new header.
74903         * tests/test-futimens.h (test_futimens): Likewise.
74904         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
74905         timestamps to occur from same machine, as was done previously for
74906         test_utimens.
74907         * modules/utimens-tests (Files): Ship new file.
74908         * modules/futimens-tests (Files): Likewise.
74909         Reported in part by Jim Meyering.
74911         sys_stat: sort replacement declarations
74912         * lib/sys_stat.in.h: Sort declarations.
74913         * lib/futimens.c (futimens): Fix typo.
74915 2009-10-15  Jim Meyering  <meyering@redhat.com>
74917         don't let environment settings perturb build
74918         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
74919         could cause a configure-time and/or build-time malfunction.
74920         Typically, a configure-time function-in-library test is performed
74921         via code like this:
74923           LIB_VAR=
74924           AC_SUBST([LIB_VAR])
74925           prefix_saved_LIBS=$LIBS
74926             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
74927                        [test "$ac_cv_search_FUNC" = "none required" ||
74928                         LIB_VAR=$ac_cv_search_FUNC])
74929           LIBS=$prefix_saved_LIBS
74931         However, in each of the files affected by this change, the LIB_VAR=
74932         initialization was omitted.  Thus, when set in the environment, its
74933         value would propagate into generated Makefiles when FUNC is not found
74934         in LIB_NAME.
74935         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
74936         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74937         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74939 2009-10-14  Eric Blake  <ebb9@byu.net>
74941         fchdir: avoid infinite recursion in mingw
74942         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
74943         recursing.
74945         test-stat-time: port to mingw
74946         * tests/test-stat-time.c (force_unlink): Return a value.
74947         (test_ctime) [W32]: Fix compilation error.
74948         (nap): Don't call usleep with too large an argument.  Use
74949         force_unlink.
74950         * doc/pastposix-functions/usleep.texi (usleep): Document the
74951         portability issue.
74953 2009-10-13  Jim Meyering  <meyering@redhat.com>
74955         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
74956         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
74957         * modules/pipe-filter-ii: Likewise.
74958         * modules/sys_socket-tests: Likewise.
74959         * modules/tsearch-tests: Likewise.
74960         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
74961         (check): Depend on it.
74963 2009-10-12  Eric Blake  <ebb9@byu.net>
74965         utimens-tests: port to NFS file systems
74966         * tests/test-utimens.h (test_utimens): Refactor utimecmp
74967         comparisons to avoid spurious failures from timestamp drift
74968         between NFS machines.
74970 2009-10-12  Eric Blake  <ebb9@byu.net>
74972         stat-time-tests: minor cleanups
74973         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
74974         * tests/test-stat-time.c (nap): Separate assignment from call.
74975         Suggested by Paolo Bonzini and Bruno Haible.
74977         sys_stat: guarantee struct timespec
74978         * lib/sys_stat.in.h (includes): Always include <time.h>
74979         * modules/sys_stat (Depends-on): Add time.
74980         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
74981         mode_t permission values.
74982         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
74983         get at subsecond timestamps.
74985 2009-10-10  Eric Blake  <ebb9@byu.net>
74987         futimens: new module
74988         * modules/futimens: New file.
74989         * lib/futimens.c (futimens): Likewise.
74990         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
74991         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
74992         we can work around Linux bugs.
74993         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
74994         * modules/sys_stat (Makefile.am): Substitute them.
74995         * lib/sys_stat.in.h (futimens): Declare it.
74996         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
74997         * doc/posix-functions/futimens.texi (futimens): Likewise.
74998         * modules/futimens-tests: New test.
74999         * tests/test-futimens.c: Likewise.
75001         utimens: introduce fdutimens
75002         * lib/utimens.h (fdutimens): New prototype.
75003         * lib/utimens.c (gl_futimens): Move guts...
75004         (fdutimens): ...to new interface.
75005         * tests/test-utimens.c (do_fdutimens): Use it.
75007         utimens: add UTIME_NOW and UTIME_OMIT support
75008         * lib/utimens.c (validate_timespec, update_timespec): New helper
75009         functions.
75010         (gl_futimens, lutimens): Use them.
75011         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
75012         stdbool, sys_stat.
75013         (Link): Mention resulting library dependency.
75014         * modules/utimecmp (Link): Likewise.
75015         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
75016         (Makefile.am): Pick up library dependency.
75017         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
75018         definition.
75019         * tests/test-sys_stat.c: Test the definitions.
75020         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
75021         * NEWS: Document library dependency.
75023         utimecmp: support symlink timestamps
75024         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
75025         hashing when possible.  Use pathconf when available.
75026         (SYSCALL_RESOLUTION): Recognize tighter resolution.
75027         * modules/utimecmp (Depends-on): Add lstat.
75029         utimens: add lutimens interface
75030         * lib/utimens.c (lutimens): New function.
75031         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
75032         * lib/utimens.h (lutimens): Declare new interface.
75033         * tests/test-utimens.c (main): Enhance test.
75034         * tests/test-lutimens.h (test_lutimens): New file.
75035         * modules/utimens-tests (Files): Distribute it.
75036         (Depends-on): Add symlink.
75037         (configure.ac): Check for usleep.
75039         utimens: validate futimens usage
75040         * lib/utimens.c (gl_futimens): Require valid fd up front, using
75041         fewer syscalls on failure later on.  Avoid compiler warning on
75042         mingw.
75043         * modules/utimens (Depends-on): Add dup2.
75045         utimens: add test
75046         * modules/utimens-tests: New test.
75047         * tests/test-utimens.h: New file.
75048         * tests/test-futimens.h: Likewise.
75049         * tests/test-utimens.c: Likewise.
75051         doc: mention timestamp portability issues
75052         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
75053         instead.
75054         * doc/posix-functions/utime.texi (utime): Likewise.
75055         * doc/posix-functions/utimes.texi (utimes): Likewise.
75056         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
75057         instead.
75058         * doc/posix-functions/futimens.texi (futimens): Mention utimens
75059         module.
75060         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75061         Mention weakness with symlink timestamps.
75062         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
75063         to utimensat/futimens instead.
75064         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
75066         test-dup2: enhance test
75067         * tests/test-dup2.c (main): Also check AT_FDCWD.
75069         test-stat-time: avoid more spurious failures
75070         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
75071         xfs; and avoid race if the two timestamps cross quantization edge.
75073         relocatable: prefer 'file system' over 'filesystem'
75074         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
75075         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
75076         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
75077         * doc/relocatable.texi (Enabling Relocatability): Likewise.
75078         * lib/relocatable.c (compute_curr_prefix): Likewise.
75080 2009-10-10  Jim Meyering  <meyering@redhat.com>
75082         stat-time-tests: check for the usleep function
75083         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
75085 2009-10-10  Bruno Haible  <bruno@clisp.org>
75087         * modules/xnanosleep: Put the Link section after the Include section.
75089 2009-10-09  Eric Blake  <ebb9@byu.net>
75091         dup2: work around FreeBSD 6.1 bug
75092         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
75093         * doc/posix-functions/dup2.texi (dup2): Document it.
75094         Reported by Nelson H. F. Beebe and Jim Meyering.
75096         test-stat-time: port to buggy NFS clients
75097         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
75098         (test_ctime): Also skip test if mtime and ctime are skewed.
75100         maint: prefer 'file system' over 'filesystem'
75101         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75102         * doc/posix-functions/lstat.texi (lstat): Likewise.
75103         * lib/file-has-acl.c (file_has_acl): Likewise.
75104         * lib/fwriteerror.c [TEST]: Likewise.
75105         * tests/test-areadlink.h (test_areadlink): Likewise.
75106         * tests/test-areadlinkat-with-size.c (main): Likewise.
75107         * tests/test-areadlinkat.c (main): Likewise.
75108         * tests/test-canonicalize-lgpl.c (main): Likewise.
75109         * tests/test-canonicalize.c (main): Likewise.
75110         * tests/test-fstatat.c (main): Likewise.
75111         * tests/test-linkat.c (main): Likewise.
75112         * tests/test-lstat.h (test_lstat_func): Likewise.
75113         * tests/test-mkdir.h (test_mkdir): Likewise.
75114         * tests/test-readlink.h (test_readlink): Likewise.
75115         * tests/test-remove.c (main): Likewise.
75116         * tests/test-rename.h (test_rename): Likewise.
75117         * tests/test-renameat.c (main): Likewise.
75118         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75119         * tests/test-symlink.h (test_symlink): Likewise.
75120         * tests/test-symlinkat.c (main): Likewise.
75121         * tests/test-unlink.h (test_unlink_func): Likewise.
75122         * tests/test-unlinkat.c (main): Likewise.
75124         maint: make realtime library usage explicit
75125         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
75126         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
75127         * modules/settime (Link): Likewise.
75128         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
75130         test-stat-time: speed up execution
75131         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
75132         warning on mingw.
75133         (nap): New helper function.
75134         (prepare_test): Use it to reduce sleep time.
75135         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
75136         execution.
75137         * modules/stat-time-tests (configure.ac): Check for usleep.
75139 2009-10-09  Jim Meyering  <meyering@redhat.com>
75141         selinux-h: always use getfilecon wrappers
75142         * lib/getfilecon.c: New file.
75143         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
75144         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
75145         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
75146         (fgetfilecon): Provide a stub.
75147         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
75148         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
75149         file unconditionally.
75150         When <selinux/selinux.h> is found, arrange to use wrappers.
75151         * modules/selinux-h (Files): Add getfilecon.c.
75152         (Makefile.am): Substitute include-next-related bits
75153         into the now-always-generated selinux/selinux.h file.
75154         * doc/glibc-functions/lgetfilecon.texi: New file.
75155         * doc/glibc-functions/fgetfilecon.texi: New file.
75156         * doc/glibc-functions/getfilecon.texi: New file.
75157         * doc/glibc-functions/getfilecon-desc.texi: New file.
75158         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
75159         which to pull in the new files.
75160         * MODULES.html.sh (Misc): Add selinux-h.
75162 2009-10-08  Jim Meyering  <meyering@redhat.com>
75164         unistd: fix comment typo
75165         * lib/unistd.in.h (euidaccess): Fix a comment typo.
75167 2009-10-08  Eric Blake  <ebb9@byu.net>
75169         areadlink: use SIZE_MAX consistently
75170         * modules/areadlink (Depends-on): Add stdint.
75171         * modules/areadlink-with-size (Depends-on): Likewise.
75172         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
75173         gives NULL; drop sys/types, since unistd gives size_t; and add
75174         stdint for SIZE_MAX.
75175         (SIZE_MAX): Rely on headers.
75176         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
75177         and add stdint.
75178         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
75179         (SIZE_MAX): Likewise.
75180         (INITIAL_BUF_SIZE): Turn into enum.
75181         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
75183 2009-10-08  Jim Meyering  <meyering@redhat.com>
75185         areadlinkat: avoid compilation failure
75186         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
75187         Fix typo in comment.
75189 2009-10-07  Eric Blake  <ebb9@byu.net>
75191         areadlinkat-with-size: new module
75192         * modules/areadlinkat-with-size: New module.
75193         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
75194         * lib/areadlink.h (areadlinkat): Declare it.
75195         * MODULES.html.sh (File system functions): Mention it.
75196         * modules/areadlinkat-with-size-tests: New test.
75197         * tests/test-areadlinkat-with-size.c: New file.
75199         xreadlinkat: new module
75200         * modules/xreadlinkat: New module.
75201         * lib/xreadlinkat.c (xreadlinkat): New file.
75202         * lib/xreadlink.h (xreadlinkat): Declare it.
75203         * MODULES.html.sh (File system functions): Mention it.
75205         areadlinkat: new module
75206         * lib/at-func.c (FUNC_FAIL): New define.
75207         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
75208         * modules/areadlinkat: New module.
75209         * lib/linkat.c (areadlinkat): Move...
75210         * lib/areadlinkat.c (areadlinkat): ...to new file.
75211         * lib/areadlink.h (areadlinkat): Declare it.
75212         * modules/linkat (Depends-on): Add areadlinkat.
75213         * MODULES.html.sh (File system functions): Mention it.
75214         * modules/areadlinkat-tests: New test.
75215         * tests/test-areadlinkat.c: New file.
75217         areadlink, areadlink-with-size: add tests
75218         * modules/areadlink-tests: New test.
75219         * modules/areadlink-with-size-tests: Likewise.
75220         * tests/test-areadlink.h: New file.
75221         * tests/test-areadlink.c: Likewise.
75222         * tests/test-areadlink-with-size.c: Likewise.
75224         maint: minor cleanups
75225         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
75226         _UNUSED_PARAMETER_ instead.
75227         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
75228         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
75229         * modules/linkat-tests (Files): Distribute test-link.h.
75231         openat, utimens: whitespace cleanup
75232         * lib/openat.c: Prefer space throughout, rather than mix of 8
75233         spaces vs. tabs.
75234         * lib/at-func.c: Likewise.
75235         * lib/utimens.c: Likewise.
75237         openat: avoid using wrong fd
75238         * lib/openat.c (openat_permissive): Reject user's fd if saving the
75239         working directory chooses same fd.
75240         * lib/at-func.c (AT_FUNC_NAME): Likewise.
75242         mkdir, mkdirat: fix cygwin 1.5.x bug
75243         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
75244         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
75245         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
75246         bug.
75247         (gl_PREREQ_MKDIR): Delete unused macro.
75248         * modules/mkdir (Files): Track file rename.
75249         (configure.ac): Update macro name.
75250         * modules/openat (Depends-on): Add mkdir.
75251         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
75253         mkdir, mkdirat: add tests
75254         * modules/mkdir-tests: New test.
75255         * tests/test-mkdir.h: New file.
75256         * tests/test-mkdir.c: Likewise.
75257         * tests/test-mkdirat.c: Likewise.
75258         * modules/openat-tests (Files): Add new files.
75259         (Makefile.am): Run new test.
75261 2009-10-06  Eric Blake  <ebb9@byu.net>
75263         doc: tweak *at function documentation
75264         * doc/posix-functions/faccessat.texi (faccessat): Mention
75265         known issue with replacement.
75266         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
75267         * doc/posix-functions/linkat.texi (linkat): Likewise.
75268         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
75269         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
75270         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75271         * doc/posix-functions/renameat.texi (renameat): Likewise.
75272         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75274         openat: fix GNU/Hurd bug in unlinkat
75275         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
75276         broken.
75277         * doc/posix-functions/unlink.texi (unlink): Document this.
75278         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
75280         fdopendir: fix GNU/Hurd bug
75281         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
75282         allowing non-directory fds.
75283         * lib/fdopendir.c (rpl_fdopendir): Work around it.
75284         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
75285         * modules/dirent (Makefile.am): Substitute it.
75286         * lib/dirent.in.h (fdopendir): Declare replacement.
75287         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
75288         * tests/test-fdopendir.c (main): Test something other than
75289         /dev/null, since on Hurd that behaves like a directory.
75291         test-symlink: port to GNU/Hurd
75292         * tests/test-symlink.h (test_symlink): Relax expected errno.
75294         doc: tweak more cygwin information
75295         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
75296         now compatible with glibc.
75297         * doc/posix-functions/getopt.texi (getopt): Likewise.
75299         getopt-gnu: add another test
75300         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
75301         guarantee behavior relied on by m4.
75302         * tests/test-getopt.c (main): Use it.
75303         * modules/getopt-posix-tests (Depends-on): Add setenv.
75304         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
75306         getopt: fix compilation on darwin
75307         * lib/getopt.in.h (includes): Leave breadcrumbs during system
75308         include.
75309         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
75310         Reported by Ludovic Courtès.
75312 2009-10-06  Bruno Haible  <bruno@clisp.org>
75314         * modules/size_max (Description): Discourage its use.
75315         Reported by Simon Josefsson.
75317 2009-10-06  Jim Meyering  <meyering@redhat.com>
75319         linkat: avoid compilation failure
75320         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
75322 2009-10-05  Eric Blake  <ebb9@byu.net>
75324         linkat: support Linux 2.6.17
75325         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
75326         linkat on Linux, but allow cache variable override.
75327         * lib/linkat.c (rpl_linkat): Define override.
75328         * modules/linkat (Depends-on): Add symlinkat.
75329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
75330         * modules/unistd (Makefile.am): Substitute it.
75331         * lib/unistd.in.h (linkat): Declare replacement.
75332         Reported by Pádraig Brady.
75334         quotearg: port test to systems with C.UTF-8 locale
75335         * tests/test-quotearg.c (struct result_strings): Add another
75336         member, differentiating between C.ASCII and C.UTF-8 handling.
75337         (compare_strings): Add parameter.
75338         (main): Adjust all callers.
75340         getopt: avoid clash with FreeBSD _getopt_internal
75341         * lib/getopt.in.h (_getopt_internal): Override the name.
75342         * lib/getopt_int.h (includes): Pick up any overrides.
75343         Reported by Reuben Thomas.
75345         hash: allow C89 compilation
75346         * lib/hash.c (check_tuning): Move declaration before statement.
75347         Reported by Reuben Thomas.
75349 2009-10-05  Karl Berry  <karl@gnu.org>
75351         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
75353 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
75354             Bruno Haible  <bruno@clisp.org>
75356         * lib/uname.c (uname): Use a table-driven algorithm to compute
75357         Windows NT versions.
75359 2009-10-04  Bruno Haible  <bruno@clisp.org>
75361         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
75362         program_invocation_short_name.
75363         * modules/progname (configure.ac): Test for presence of
75364         program_invocation_short_name.
75365         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
75367 2009-10-04  Bruno Haible  <bruno@clisp.org>
75369         * lib/progname.c (set_program_name): Fix comment.
75370         Reported by Jim Meyering.
75372 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75373             Bruno Haible  <bruno@clisp.org>
75375         * lib/uname.c: Include <string.h>.
75376         (uname): Do only one call to GetVersionEx in the common case.
75378 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
75379             Bruno Haible  <bruno@clisp.org>
75381         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
75382         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
75383         (uname): Add support for Windows CE and various non-x86 CPU types.
75385 2009-10-03  Bruno Haible  <bruno@clisp.org>
75387         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
75388         invocation to tests/configure.ac.
75389         Reported by Ian Beckwith <ianb@erislabs.net>.
75391 2009-10-02  Eric Blake  <ebb9@byu.net>
75393         fchdir: avoid compiler warning
75394         * lib/fchdir.c (canonicalize_file_name)
75395         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
75397         test-open: support mingw errno values
75398         * tests/test-open.h (test_open): Relax test.
75399         * tests/test-fopen.h (test_fopen): Likewise.
75400         * tests/test-openat-safer.c (main): Likewise.
75402         open: fix opening directory on mingw
75403         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
75405         test-open: on GNU/Hurd, /dev/null is a directory
75406         * tests/test-fopen.h (main): Rename...
75407         (test_fopen): ...to this.  Use a guaranteed non-directory when
75408         confirming open behavior on trailing slash.
75409         * tests/test-openat-safer.c (main): Likewise.
75410         * tests/test-open.h (main): Likewise....
75411         (test_open): ...to this.
75412         * tests/test-fopen.c (main): Adjust caller.
75413         * tests/test-fopen-safer.c (main): Likewise.
75414         * tests/test-open.c (main): Likewise.
75415         * tests/test-fcntl-safer.c (main): Likewise.
75416         Reported by Samuel Thibault.
75418         rename, fchdir: don't ignore chdir failure
75419         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
75420         * lib/rename.c (rpl_rename) [W32]: Likewise.
75421         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
75422         an empty destination directory if source cannot be renamed,
75423         although there is still possibility for failure.
75424         * doc/posix-functions/rename.texi (rename): Document the race.
75425         Reported by Jim Meyering.
75427         maint: cleanup whitespace in recent commits
75428         * lib/rename.c (rpl_rename): Remove tabs.
75429         * tests/test-link.h (test_link): Likewise.
75430         * lib/fchdir.c (get_name): Likewise.
75431         Reported by Jim Meyering.
75433 2009-10-02  Ben Pfaff  <blp@gnu.org>
75435         relocatable-prog-wrapper: Add missing dependency on
75436         double-slash-root.
75437         * modules/relocatable-prog-wrapper: Add dependency.
75438         Reported by Ian Beckwith <ianb@erislabs.net>.
75440 2009-10-02  Eric Blake  <ebb9@byu.net>
75442         renameat: fix Solaris bugs
75443         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
75444         needed fixing.
75445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
75446         * modules/stdio (Makefile.am): Substitute it.
75447         * lib/stdio.in.h (renameat): Declare replacement.
75448         * lib/renameat.c (rpl_renameat): Implement fix.
75450         renameat: new module
75451         * modules/renameat: New file.
75452         * lib/renameat.c (renameat): Likewise.
75453         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
75454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75455         * modules/stdio (Makefile.am): Substitute them.
75456         * lib/stdio.in.h (renameat): Declare it.
75457         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75458         * doc/posix-functions/renameat.texi (renameat): Likewise.
75459         * modules/renameat-tests: New test.
75460         * tests/test-renameat.c: Likewise.
75462         rename: fix mingw bugs
75463         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
75464         directory overwrite bugs.
75466         rename: fix another cygwin 1.5 bug
75467         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
75468         checks.
75469         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
75470         unnecessary cygwin workarounds.  Also work around bug with moving
75471         full directory onto an empty one.
75472         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
75474         rename-dest-slash: merge into rename module
75475         * modules/rename-dest-slash (Status): Mark obsolete.
75476         (Depends-on): Add rename.
75477         (Files): Let rename do it all.
75478         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
75479         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
75480         * m4/rename-dest-slash.m4: ...so this file can be deleted.
75481         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
75482         * lib/rename.c (rpl_rename): Update comments.
75484         rename: fix cygwin 1.5.x bugs
75485         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
75486         * lib/rename.c (rpl_rename): Work around them.
75487         * modules/rename (Depends-on): Add same-inode.
75489         rename: fix Solaris 10 bug
75490         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75491         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
75492         was the only bug.
75494         rename: fix Solaris 9 bug
75495         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
75496         on non-directory.  Avoid calling exit.
75497         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
75498         strdup.
75499         * modules/rename-tests (Depends-on): Drop lstat.
75500         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
75501         (gl_PREREQ_RENAME): Delete unused macro.
75503         rename-dest-slash: fix NetBSD bug
75504         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
75505         links.
75506         * modules/rename-dest-slash (Depends-on): Add same-inode.
75508         rename-tests: new test, exposes several platform bugs
75509         * modules/rename-tests: New file.
75510         * tests/test-rename.h: Likewise.
75511         * tests/test-rename.c: Likewise.
75512         * doc/posix-functions/rename.texi (rename): Improve documentation,
75513         including bugs that will eventually be fixed in gnulib.
75515 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
75517         * lib/uname.c: Include <stdlib.h>
75518         (uname): Assume version info is available.
75520 2009-10-02  Jim Meyering  <meyering@redhat.com>
75522         gnu-web-doc-update: correct --help output
75523         * build-aux/gnu-web-doc-update: Make --help output relevant.
75525         gnu-web-doc-update: add standard options
75526         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
75528         gnu-web-doc-update: New module.
75529         Use this script to automatically update the on-line web documentation
75530         for your GNU project at http://www.gnu.org/software/$pkg/manual/
75531         * modules/gnu-web-doc-update: New file, from coreutils.
75532         * build-aux/gnu-web-doc-update: New script.
75534 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
75536         link: LoadLibrary is not needed.
75537         * lib/link.c: Use GetModuleHandle.
75539 2009-10-01  Eric Blake  <ebb9@byu.net>
75541         getopt: bump serial number
75542         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
75543         change.
75545         tests: tighten link, rmdir, and remove tests
75546         * tests/test-link.h (includes): No need to use <config.h> here.
75547         Clean up if directory hard link was created, otherwise test for
75548         trailing '.'.
75549         * tests/test-linkat.c (main): Simplify.
75550         * tests/test-remove.c (main): Enhance test for trailing '.'.
75551         * tests/test-rmdir.h (test_rmdir_func): Likewise.
75553 2009-10-01  Jim Meyering  <meyering@redhat.com>
75555         maint.mk: requiring "make major" was annoying, for a "minor" release.
75556         What is intended is "stable", to contrast with alpha and beta,
75557         so require "make stable", not "make major".
75558         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
75559         (get_tool_versions): Likewise.
75560         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
75562 2009-09-30  Ben Pfaff  <blp@gnu.org>
75564         Fix broken build of replacement for Windows tmpfile().
75565         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
75566         flags argument added along with the 'mkostemp' module.
75568 2009-09-28  Bruno Haible  <bruno@clisp.org>
75570         Avoid identifier clash with POSIX function 'remove' defined as a macro.
75571         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
75572         to 'remove_elt'.
75573         (gl_list_remove): Update.
75574         * lib/gl_list.c (gl_list_remove): Update.
75575         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
75576         to 'remove_elt'.
75577         (gl_oset_remove): Update.
75578         * lib/gl_list.c (gl_oset_remove): Update.
75579         Reported by Eric Blake.
75581 2009-09-28  Eric Blake  <ebb9@byu.net>
75583         doc: mention yet more cygwin 1.7 status
75584         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
75585         cygwin.
75586         * doc/glibc-functions/execvpe.texi (execvpe): New file.
75587         * doc/gnulib.texi (Glibc unistd.h): Mention it.
75589         argp: fix test failure
75590         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
75591         that are not upper-case.  Pass correct range to tolower.
75593 2009-09-27  Jim Meyering  <meyering@redhat.com>
75595         test-yesno: work around sparc-dash here-document infelicity
75596         Without this change, the literal \177 byte in a here document
75597         would make dash 0.5.5.1-3 access uninitialized memory.
75598         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
75599         Instead, use a marker, "@", and filter through tr to create the desired
75600         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
75602 2009-09-27  Bruno Haible  <bruno@clisp.org>
75604         Disable untested support for new flavours of ACLs on AIX.
75605         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
75606         progress.
75607         * lib/set-mode-acl.c (qset_acl): Likewise.
75609 2008-12-07  Bruno Haible  <bruno@clisp.org>
75611         Add support for new flavours of ACLs on AIX. (Untested.)
75612         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
75613         (file_has_acl): Add support for newer AIX.
75614         * lib/set-mode-acl.c (qset_acl): Likewise.
75615         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
75616         Rainer Tammer <tammer@tammer.net>.
75618 2009-09-26  Eric Blake  <ebb9@byu.net>
75620         argp: fix compilation of getopt
75621         * lib/getopt.in.h (includes): Use different guard than glibc.
75622         Reported by Sergey Poznyakoff.
75624         doc: mention more cygwin 1.7 status
75625         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
75626         bug.
75627         * doc/posix-functions/execl.texi (execl): Likewise.
75628         * doc/posix-functions/execle.texi (execle): Likewise.
75629         * doc/posix-functions/execlp.texi (execlp): Likewise.
75630         * doc/posix-functions/execv.texi (execv): Likewise.
75631         * doc/posix-functions/execve.texi (execve): Likewise.
75632         * doc/posix-functions/execvp.texi (execvp): Likewise.
75633         * doc/glibc-functions/canonicalize_file_name.texi
75634         (canonicalize_file_name): Cygwin 1.7 now provides this.
75635         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
75636         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
75637         on AT_SYMLINK_NOFOLLOW.
75639 2009-09-24  Eric Blake  <ebb9@byu.net>
75641         test-linkat: make test more robust
75642         * tests/test-linkat.c (main): Avoid collision with EEXIST.
75644         getopt: fix inclusion guards for cygwin
75645         * modules/getopt-posix (Depends-on): Add include-next.
75646         (Makefile.am): Substitute more items in replacement header.
75647         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
75648         <getopt.h>.
75649         * lib/getopt.in.h (includes): Use split inclusion guard, and
75650         prefer <getopt.h> over include <unistd.h> when one is present.
75651         (option): Also override name of 'struct option'.
75653         same-inode: revert prior change; it is not yet ready
75654         * NEWS: Undo mention of this change.
75655         * lib/same-inode.h (same-inode.h): Undo tri-state change.
75656         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75657         * lib/cycle-check.c (cycle_check): Likewise.
75658         * lib/same.c (same_name): Likewise.
75659         * lib/at-func2.c (at_func2): Likewise.
75661 2009-09-23  Eric Blake  <ebb9@byu.net>
75663         linkat: new module
75664         * modules/linkat: New file.
75665         * lib/at-func2.c (at_func2): Likewise.
75666         * lib/linkat.c (linkat): Likewise.
75667         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
75668         * lib/openat-priv.h (at_func2): Add declaration.
75669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75670         * modules/unistd (Makefile.am): Substitute them.
75671         * lib/unistd.in.h (linkat): Declare it.
75672         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75673         * doc/posix-functions/linkat.texi (linkat): Likewise.
75674         * doc/posix-functions/link.texi (link): Tweak wording.
75675         * tests/test-link.c (main): Move guts...
75676         * tests/test-link.h (test_link): ...into new file.
75677         * modules/linkat-tests: New test.
75678         * tests/test-linkat.c: Likewise.
75679         * modules/link-tests (Files): Ship new file.
75680         (Depends-on): Add stdbool.
75682         dirname: add library-safe mdir_name
75683         * lib/dirname.h (mdir_name): New prototype.
75684         * lib/dirname.c (dir_name): Move guts...
75685         (mdir_name): ...to new function that avoids xalloc_die.
75687         fchdir: another mingw fix
75688         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
75689         * lib/fchdir.c (get_name): New helper method; skips canonicalize
75690         on mingw (where it has not yet been ported), and make it optional
75691         elsewhere.
75692         (_gl_register_fd): Use it.
75694         same-inode: make SAME_INODE tri-state, to port to mingw
75695         * NEWS: Mention this change.
75696         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
75697         st_ino always being 0.
75698         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
75699         * lib/cycle-check.c (cycle_check): Likewise.
75700         * lib/same.c (same_name): Likewise.
75702         lstat: avoid mingw compilation error
75703         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
75704         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
75705         lstat ourselves.
75706         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
75707         was adequate.
75708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
75709         the checks for lstat.
75710         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
75712         link: fix test failure on Solaris 9
75713         * lib/link.c (rpl_link): Don't assume link will catch bogus
75714         trailing slash on source.
75716         test-symlinkat: enhance test
75717         * tests/test-readlink.c (main): Move guts...
75718         * tests/test-readlink.h (test_readlink): ...into new file.
75719         * tests/test-symlink.c (main): Move guts...
75720         * tests/test-symlink.h (test_symlink): ...into new file.
75721         * tests/test-symlinkat.c (main): Use new files for further
75722         coverage.
75723         (do_symlink, do_readlink): New helper functions.
75724         * modules/symlink-tests (Files): Ship new file.
75725         (Depends-on): Add stdbool.
75726         * modules/readlink-tests (Files): Ship new file.
75727         (Depends-on): Add stdbool.
75728         * modules/symlinkat-tests (Files): Use new files.
75730 2009-09-23  Eric Blake  <ebb9@byu.net>
75732         readlink: document portability issue with symlink length
75733         * doc/posix-functions/lstat.texi (lstat): Mention that some file
75734         systems have bogus st_size on symlinks, and mention the
75735         areadlink-with-size module.
75736         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
75737         * doc/posix-functions/readlink.texi (readlink): Mention the
75738         areadlink module, and ERANGE failure.
75739         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
75740         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
75742         readlink: fix Solaris 9 bug with trailing slash
75743         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
75744         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
75745         * doc/posix-functions/readlink.texi (readlink): Document this.
75746         * modules/readlink-tests: New test.
75747         * tests/test-readlink.c: Likewise.
75749         readlink: fix cygwin 1.5.x bug with return type
75750         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
75751         * lib/unistd.in.h (readlink): Use ssize_t.
75752         * lib/readlink.c (readlink): Likewise.
75753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75754         * modules/unistd (Makefile.am): Substitute it.
75755         * lib/unistd.in.h (readlink): Declare replacement.
75756         * doc/posix-functions/readlink.texi (readlink): Document this.
75758         symlink: use throughout gnulib
75759         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
75760         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
75761         symlink is not used.
75762         * modules/symlinkat (Depends-on): Add symlink.
75763         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
75764         * modules/canonicalize-tests (Depends-on): Likewise.
75765         * modules/lstat-tests (Depends-on): Likewise.
75766         * modules/openat-tests (Depends-on): Likewise.
75767         * modules/remove-tests (Depends-on): Likewise.
75768         * modules/rmdir-tests (Depends-on): Likewise.
75769         * modules/unlink-tests (Depends-on): Likewise.
75770         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
75771         * tests/test-canonicalize.c (symlink): Likewise.
75772         * tests/test-fstatat.c (symlink): Likewise.
75773         * tests/test-lstat.c (symlink): Likewise.
75774         * tests/test-remove.c (symlink): Likewise.
75775         * tests/test-rmdir.c (symlink): Likewise.
75776         * tests/test-unlink.c (symlink): Likewise.
75777         * tests/test-unlinkat.c (symlink): Likewise.
75779         symlink: new module, for Solaris 9 bug
75780         * modules/symlink: New file.
75781         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
75782         * lib/symlink.c: Likewise.
75783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
75784         * modules/unistd (Makefile.am): Substitute them.
75785         * lib/unistd.in.h (symlink): Declare replacement.
75786         * MODULES.html.sh (File system functions): Mention it.
75787         * doc/posix-functions/symlink.texi (symlink): Likewise.
75788         * modules/symlink-tests: New test.
75789         * tests/test-symlink.c: Likewise.
75791 2009-09-23  Bruno Haible  <bruno@clisp.org>
75793         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
75794         when needed.
75795         Test case: gnulib-tool --import --with-tests atexit inttypes.
75796         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
75798 2009-09-23  Bruno Haible  <bruno@clisp.org>
75800         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
75801         subcommand, not in a subshell.
75803 2009-09-22  Eric Blake  <ebb9@byu.net>
75805         unistd: sort replacement declarations
75806         * lib/unistd.in.h: Sort declarations.
75808         open, openat: minor optimization
75809         * lib/open.c (open): If open succeeded, len is non-zero.
75810         * lib/openat.c (rpl_openat): Likewise.
75812         link-follow: ensure correct result
75813         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
75814         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
75815         distinguish between possible failures.
75817 2009-09-21  Eric Blake  <ebb9@byu.net>
75819         fts: avoid compiler warning
75820         * lib/fts.c (dirent_inode_sort_may_be_useful)
75821         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
75823 2009-09-19  Bruno Haible  <bruno@clisp.org>
75825         * lib/progreloc.c (canonicalize_file_name): New declaration.
75827 2009-09-19  Eric Blake  <ebb9@byu.net>
75829         link: fix quoting
75830         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
75832         openat: fix openat bugs on Solaris 9
75833         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
75834         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
75835         * modules/openat (Depends-on): Add open.
75836         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
75837         * modules/fcntl-h (Makefile.am): Substitute it.
75838         * lib/fcntl.in.h (openat): Declare replacement.
75839         * doc/posix-functions/openat.texi (openat): Document this.
75841         openat: move fstatat and unlinkat into correct files
75842         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
75843         compiled.
75844         * lib/openat.c (fstatat, unlinkat): Move...
75845         * lib/fstatat.c (fstatat): ...into correct files.
75846         * lib/unlinkat.c (unlinkat): Likewise.
75848         openat: fix unlinkat bugs on Solaris 9
75849         * lib/unlinkat.c (unlinkat): New file.
75850         * modules/openat (Depends-on): Add unlink.
75851         (Files): Distribute it.
75852         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
75853         trailing slash behavior is broken.
75854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
75855         * modules/unistd (Makefile.am): Substitute it.
75856         * lib/unistd.in.h (unlinkat): Declare replacement.
75857         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
75859         openat: fix fstatat bugs on Solaris 9
75860         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
75861         stat.
75862         * doc/posix-functions/fstatat.texi (fstatat): Document this.
75864         test-unlinkat: enhance test, to expose Solaris 9 bug
75865         * tests/test-unlink.c (main): Factor guts...
75866         * tests/test-unlink.h (test_rmdir_func): ...into new file.
75867         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
75868         * tests/test-rmdir.c (main): Adjust caller.
75869         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
75870         (unlinker): New helper function.
75871         (rmdirat): Enhance check.
75872         * modules/rmdir-tests (Depends-on): Add stdbool.
75873         * modules/unlink-tests (Depends-on): Likewise.
75874         (Files): Add test-unlink.h.
75875         * modules/openat-tests (Files): Likewise.
75876         (Depends-on): Add unlinkdir.
75878         test-fstatat: new test, to expose Solaris 9 bugs
75879         * tests/test-stat.c (main): Factor guts...
75880         * tests/test-stat.h (test_stat_func): ...into new file.
75881         * tests/test-lstat.c (main): Factor guts...
75882         * tests/test-lstat.h (test_lstat_func): ...into new file.
75883         * tests/test-fstatat.c: New file.
75884         * modules/stat-tests (Files): Add test-stat.h.
75885         * modules/lstat-tests (Files): Add test-lstat.h.
75886         (Depends-on): Add stdbool.
75887         * modules/openat-tests (Depends-on): Add pathmax.
75888         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
75889         (Makefile.am): Run new test.
75891         remove: new module, for mingw and Solaris 9 bugs
75892         * modules/remove: New file.
75893         * lib/remove.c: Likewise.
75894         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
75895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
75896         * modules/stdio (Makefile.am): Use them.
75897         * lib/stdio.in.h (remove): Declare replacement.
75898         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75899         * doc/posix-functions/remove.texi (remove): Likewise.
75900         * modules/remove-tests: New test.
75901         * tests/test-remove.c: Likewise.
75903         unlink: new module, for Solaris 9 bug
75904         * modules/unlink: New file.
75905         * lib/unlink.c: Likewise.
75906         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
75907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
75908         * modules/unistd (Makefile.am): Use them.
75909         * lib/unistd.in.h (stat): Declare replacement.
75910         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75911         * doc/posix-functions/unlink.texi (unlink): Likewise.
75912         * modules/unlink-tests: New test.
75913         * tests/test-unlink.c: Likewise.
75915         lstat: fix Solaris 9 bug
75916         * lib/lstat.c (lstat): Also check for trailing slash on
75917         non-symlink, non-directories.  Use stat module to simplify logic.
75918         * doc/posix-functions/lstat.texi (lstat): Document it.
75919         * modules/lstat-tests (Depends-on): Add errno, same-inode.
75920         (configure.ac): Check for symlink.
75921         * tests/test-lstat.c (main): Add more tests.
75923         stat: add as dependency to other modules
75924         * modules/chown (Depends-on): Add stat.
75925         * modules/euidaccess (Depends-on): Likewise.
75926         * modules/fchdir (Depends-on): Likewise.
75927         * modules/isdir (Depends-on): Likewise.
75928         * modules/link (Depends-on): Likewise.
75929         * modules/lstat (Depends-on): Likewise.
75930         * modules/mkdir-p (Depends-on): Likewise.
75931         * modules/modechange (Depends-on): Likewise.
75932         * modules/open (Depends-on): Likewise.
75933         * modules/readlink (Depends-on): Likewise.
75934         * modules/same (Depends-on): Likewise.
75936         stat: fix Solaris 9 bug
75937         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
75938         slash.
75939         * lib/stat.c (rpl_stat): Work around it.
75940         * doc/posix-functions/stat.texi (stat): Update documentation.
75942         stat: new module, for mingw bug
75943         * modules/stat: New file.
75944         * lib/stat.c: Likewise.
75945         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
75946         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75947         * modules/sys_stat (Makefile.am): Use them.
75948         * lib/sys_stat.in.h (stat): Declare replacement.
75949         * lib/openat.c (fstatat): Deal with lstat and stat being function
75950         macros.
75951         * modules/openat (Depends-on): Add inline.
75952         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75953         * doc/posix-functions/stat.texi (stat): Likewise.
75954         * modules/stat-tests: New test.
75955         * tests/test-stat.c: Likewise.
75957 2009-09-19  Jim Meyering  <meyering@redhat.com>
75959         syntax-check: detect unnecessary inclusion of canonicalize.h
75960         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
75962 2009-09-19  Eric Blake  <ebb9@byu.net>
75964         canonicalize-lgpl: adjust clients to use correct header
75965         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
75966         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
75967         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
75968         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
75969         * lib/progreloc.c (includes): Likewise.
75971 2009-09-19  Jim Meyering  <meyering@redhat.com>
75973         test-posixtm.c: correct a comment
75974         * tests/test-posixtm.c: Correct first-line comment.
75975         Spotted by Eric Blake.
75977 2009-09-16  Jim Meyering  <meyering@redhat.com>
75979         posixtm-tests: make T const-correct; add a test case
75980         * tests/test-posixtm.c (T): Declare const.
75981         Add a test for -(2^31+1).
75982         Remove useless can-succeed-only-in-2002 test.
75984         posixtm-tests: adjust the sole failing test
75985         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
75986         expected output matches what mktime now produces.  Cross-checked via
75987         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
75989         posixtm: move #ifdef'd tests into a new module
75990         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
75991         * tests/test-posixtm.c: ... this new file.
75992         * modules/posixtm-tests: New module.
75994 2009-09-19  Eric Blake  <ebb9@byu.net>
75996         openat: simplify use of at-func.c
75997         * lib/at-func.c (includes): Include prerequisites here, to
75998         simplify requirements on client files.
75999         * lib/openat-priv.h: Add double-inclusion guard.
76000         * lib/faccessat.c (includes): Simplify.
76001         * lib/fchmodat.c (includes): Likewise.
76002         * lib/fchownat.c (includes): Likewise.
76003         * lib/mkdirat.c (includes): Likewise.
76004         * lib/mkfifoat.c (includes): Likewise.
76005         * lib/symlinkat.c (includes): Likewise.
76007         openat: allow return of fd 0
76008         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
76009         * modules/save-cwd (Depends-on): Replace fcntl-safer with
76010         unistd-safer.
76011         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
76012         <fcntl.h>; this module does not leak fds.
76013         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
76014         must be allowed to return 0, leaving openat_safer to add the
76015         safety.
76016         (openat_permissive): Avoid writing to just-opened fd 2 if
76017         restoring the current directory fails.
76018         * lib/openat-die.c (openat_restore_fail): Add comment.
76019         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
76020         (save_cwd): Guarantee safe fd, but without use of open_safer.
76021         * tests/test-openat.c: New test.
76022         * modules/openat-tests (Files, Makefile.am): Distribute and build
76023         new file.
76025         relocatable-prog-wrapper: fix build
76026         * modules/relocatable-prog-wrapper (Files): Update name of
76027         canonicalize m4 file, broken on 2009-09-17.
76028         Reported by emad hajjar <aleppos@hotmail.com>.
76030 2009-09-19  Bruno Haible  <bruno@clisp.org>
76032         * lib/safe-alloc.h: Use the standard header with GPL copyright.
76033         * lib/safe-alloc.c: Likewise.
76034         Reported by Ian Beckwith <ianb@erislabs.net>.
76036 2009-09-18  Bruno Haible  <bruno@clisp.org>
76038         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
76039         Reported by <erobles@sensacd.com.mx>.
76041 2009-09-17  Eric Blake  <ebb9@byu.net>
76043         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
76044         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
76045         slashes when checking if last component is missing.
76046         * tests/test-canonicalize.c (main): Test this.
76048         canonicalize, canonicalize-lgpl: honor // if distinct from /
76049         * modules/canonicalize (Files): Add double-slash-root.m4.
76050         * modules/canonicalize-lgpl (Files): Likewise.
76051         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
76052         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
76053         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
76054         fallback definition.
76055         (canonicalize_filename_mode): Use it to protect //.
76056         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
76057         (__realpath): Likewise.
76058         * tests/test-canonicalize.c (main): Test this.
76059         * tests/test-canonicalize-lgpl.c (main): Likewise.
76060         * modules/canonicalize-tests (Depends-on): Add same-inode.
76061         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76063         canonicalize-lgpl: fix glibc bug with trailing slash
76064         * m4/canonicalize-lgpl.m4: Move contents...
76065         * m4/canonicalize.m4: ...here.
76066         (gl_CANONICALIZE_LGPL): Factor realpath check...
76067         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
76068         glibc 2.3.5 bug, fixed 2005-04-27.
76069         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
76070         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
76071         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
76072         * modules/canonicalize-lgpl (Files): Manage file rename.
76073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76074         * modules/stdlib (Makefile.am): Substitute witness.
76075         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
76076         is needed.
76077         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
76078         replacement is required.
76079         * lib/canonicalize.c (canonicalize_file_name): Likewise.
76080         * doc/glibc-functions/canonicalize_file_name.texi
76081         (canonicalize_file_name): Document this.
76082         * doc/posix-functions/realpath.texi (realpath): Likewise.
76084         canonicalize-lgpl: reject non-directory with trailing slash
76085         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
76086         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
76087         catches failures in glibc 2.3.5.
76088         * tests/test-canonicalize.c (main): Likewise.
76090         canonicalize-lgpl: use native realpath if it works
76091         * lib/canonicalize-lgpl.c (realpath): Guard with
76092         FUNC_REALPATH_WORKS.
76093         * lib/stdlib.in.h (realpath): Make declaration optional based on
76094         HAVE_REALPATH.
76095         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
76096         native realpath works.
76097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
76098         * modules/stdlib (Makefile.am): Substitute witness.
76100         canonicalize, canonicalize-lgpl: use <stdlib.h>
76101         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
76102         (Include): Mention <stdlib.h>.
76103         (configure.ac): Mention functions we provide.
76104         * modules/canonicalize (configure.ac): Likewise.
76105         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
76106         realpath if canonicalize_file_name is missing.
76107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
76108         * modules/stdlib (Makefile.am): Substitute witnesses.
76109         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
76110         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
76111         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
76112         * NEWS: Document this.
76113         * doc/glibc-functions/canonicalize_file_name.texi
76114         (canonicalize_file_name): Likewise.
76115         * doc/posix-functions/realpath.texi (realpath): Likewise.
76116         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
76118         test-canonicalize: consolidate into single C program
76119         * tests/test-canonicalize.sh: Delete; move setup into...
76120         * tests/test-canonicalize.c (main): ...the program, making it
76121         easier to run in debugger.  Add some tests.
76122         * modules/canonicalize-tests (Files): Remove unused file.
76123         (Depends-on): Add progname.
76124         (configure.ac, Makefile.am): Simplify.
76126         test-canonicalize-lgpl: consolidate into single C program
76127         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
76128         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
76129         easier to run in debugger.  Add some tests.
76130         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
76131         (configure.ac, Makefile.am): Simplify.
76133         canonicalize: avoid resolvepath
76134         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
76135         unnecessary checks.
76136         * lib/canonicalize.c (includes): Simplify.
76137         (canonicalize_file_name): Drop resolvepath implementation.
76138         * modules/canonicalize (Depends-on): Drop filenamecat.
76140         canonicalize: don't lose errno
76141         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
76142         over calls to free.
76144         canonicalize: simplify errno handling
76145         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
76146         assignment.
76148         canonicalize, canonicalize-lgpl: update module dependencies
76149         * modules/canonicalize (Depends-on): Add extensions, lstat,
76150         pathmax, stdlib.
76151         (Files): Drop pathmax.h.
76152         (configure.ac): Adjust macro name.
76153         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
76154         lstat, stdlib, sys_stat.
76155         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
76156         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
76157         extensions.
76158         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
76159         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
76160         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
76161         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
76162         declaration, if available.
76163         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
76164         we can rely on the readlink module.
76165         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
76166         (includes): Use <unistd.h> unconditionally.
76168 2009-09-17  Eric Blake  <ebb9@byu.net>
76170         maint: make Include sections of modules consistent
76171         * modules/alloca: Use only header name; no need to list #include.
76172         * modules/alloca-opt: Likewise.
76173         * modules/arpa_inet: Likewise.
76174         * modules/canon-host: Likewise.
76175         * modules/configmake: Likewise.
76176         * modules/dirent: Likewise.
76177         * modules/eealloc: Likewise.
76178         * modules/environ: Likewise.
76179         * modules/fchdir: Likewise.
76180         * modules/fcntl: Likewise.
76181         * modules/fcntl-h: Likewise.
76182         * modules/gethrxtime: Likewise.
76183         * modules/gettime: Likewise.
76184         * modules/ignore-value: Likewise.
76185         * modules/inet_ntop: Likewise.
76186         * modules/inet_pton: Likewise.
76187         * modules/inttypes: Likewise.
76188         * modules/isnand-nolibm: Likewise.
76189         * modules/isnanf-nolibm: Likewise.
76190         * modules/mbchar: Likewise.
76191         * modules/mbfile: Likewise.
76192         * modules/mbiter: Likewise.
76193         * modules/mbuiter: Likewise.
76194         * modules/netdb: Likewise.
76195         * modules/netinet_in: Likewise.
76196         * modules/nproc: Likewise.
76197         * modules/pagealign_alloc: Likewise.
76198         * modules/poll: Likewise.
76199         * modules/printf-frexp: Likewise.
76200         * modules/pthread: Likewise.
76201         * modules/putenv: Likewise.
76202         * modules/random_r: Likewise.
76203         * modules/relocatable-prog: Likewise.
76204         * modules/search: Likewise.
76205         * modules/select: Likewise.
76206         * modules/selinux-h: Likewise.
76207         * modules/settime: Likewise.
76208         * modules/signal: Likewise.
76209         * modules/size_max: Likewise.
76210         * modules/socklen: Likewise.
76211         * modules/ssize_t: Likewise.
76212         * modules/stdarg: Likewise.
76213         * modules/stdbool: Likewise.
76214         * modules/stddef: Likewise.
76215         * modules/stdint: Likewise.
76216         * modules/stdio: Likewise.
76217         * modules/stdlib: Likewise.
76218         * modules/string: Likewise.
76219         * modules/strings: Likewise.
76220         * modules/sys_file: Likewise.
76221         * modules/sys_ioctl: Likewise.
76222         * modules/sys_select: Likewise.
76223         * modules/sys_socket: Likewise.
76224         * modules/sys_stat: Likewise.
76225         * modules/sys_time: Likewise.
76226         * modules/sys_times: Likewise.
76227         * modules/sys_utsname: Likewise.
76228         * modules/sys_wait: Likewise.
76229         * modules/sysexits: Likewise.
76230         * modules/time: Likewise.
76231         * modules/times: Likewise.
76232         * modules/tmpfile: Likewise.
76233         * modules/trim: Likewise.
76234         * modules/unistd: Likewise.
76235         * modules/wchar: Likewise.
76236         * modules/wctype: Likewise.
76238 2009-09-17  Bruno Haible  <bruno@clisp.org>
76240         Make getdate.y compile on QNX and NetBSD 5 / i386.
76241         * m4/getdate.m4 (gl_GETDATE): Conditionally define
76242         TIME_T_FITS_IN_LONG_INT.
76243         * lib/getdate.y (long_time_t): New type.
76244         (relative_time): Change type of 'seconds' field to long_time_t.
76245         (get_date): Update types of local variables. Check against overflow
76246         during conversion from long_time_t to time_t.
76247         Reported by Matt Kraai <kraai@ftbfs.org>
76248         and Hasso Tepper <hasso@netbsd.org>.
76250 2009-09-17  Bruno Haible  <bruno@clisp.org>
76252         * modules/COPYING: Update copyright years.
76253         * modules/README: Likeiwse.
76254         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
76255         Reported by Ian Beckwith <ianb@erislabs.net>.
76257 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76259         * users.txt: Update references for gnuit package.
76261 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
76263         * m4/getdelim.m4: Fix typo in copyright line.
76265 2009-09-17  Bruno Haible  <bruno@clisp.org>
76267         * lib/atoll.c: Use the standard header with GPL copyright.
76268         * lib/argz.in.h: Likewise.
76269         * lib/glob.c: Likewise.
76270         * lib/glob-libc.h: Likewise.
76271         * lib/random_r.c: Likewise.
76272         * lib/siglist.h: Likewise.
76273         * lib/strsignal.c: Likewise.
76274         Reported by Ian Beckwith <ianb@erislabs.net>.
76276 2009-09-17  Eric Blake  <ebb9@byu.net>
76278         rmdir: ensure correct dependency order
76279         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
76281 2009-09-17  Bruno Haible  <bruno@clisp.org>
76283         Disable assertion that fails on NetBSD 5 / i386.
76284         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
76285         Reported by Sam Steingold <sds@gnu.org>
76286         and Hasso Tepper <hasso@netbsd.org>.
76288 2009-09-16  Eric Blake  <ebb9@byu.net>
76290         unlinkdir: port to mingw
76291         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
76292         on which no one can unlink a directory.
76294         stdlib: sort witness names
76295         * modules/stdlib (Makefile.am): Sort replacements.
76296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
76297         * lib/stdlib.in.h: Likewise.
76299         parse-duration-tests: avoid link failure
76300         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
76301         LIBINTL.
76302         Reported by Tom G. Christensen.
76304         openat-tests: ensure unlinkat behaves like rmdir
76305         * tests/test-rmdir.c (main): Factor guts...
76306         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
76307         * modules/rmdir-tests (Files): Ship new file.
76308         * modules/openat-tests: New test.
76309         * tests/test-unlinkat.c: Likewise.
76311         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
76312         * modules/rmdir-errno (Status, Notice): Now obsolete.
76314         rmdir: work around cygwin 1.5.x and mingw bugs
76315         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
76316         * lib/rmdir.c (rmdir): Work around it.
76317         * modules/rmdir (Status, Notice): No longer obsolete.
76318         (Files): Add dos.m4.
76319         (Depends-on): Add unistd.
76320         (configure.ac): Set witnesses.
76321         (License): Relax to LGPLv2+.
76322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
76323         * modules/unistd (Makefile.am): Substitute witnesses.
76324         * lib/unistd.in.h (rmdir): Declare replacement.
76325         * doc/posix-functions/rmdir.texi (rmdir): Document this.
76326         * modules/rmdir-tests: New tests.
76327         * tests/test-rmdir.c: Likewise.
76329 2009-09-15  Eric Blake  <ebb9@byu.net>
76331         fchdir: improve use of replacement functions
76332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
76333         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
76334         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
76335         REPLACE_CLOSEDIR.
76336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
76337         * modules/sys_stat (Makefile.am): Substitute correct witness.
76338         * modules/dirent (Makefile.am): Likewise.
76339         * modules/unistd (Makefile.am): Likewise.
76340         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
76341         * lib/unistd.in.h (dup): Likewise.
76342         * lib/sys_stat.in.h (fstat): Likewise.
76344         maint: ignore gnulib-tool temp files
76345         * .gitignore: Ignore files created during gnulib-tool --test.
76347 2009-09-13  Jim Meyering  <meyering@redhat.com>
76349         posixtm: don't reject a time that specify "60" as the number of seconds
76350         * lib/posixtm.c (posixtime): The code to reject invalid dates
76351         would also reject a time specified with the .60 suffix.
76352         But POSIX allows that, in order to accommodate leap seconds.
76353         So don't reject it.
76354         (main): Adjust tests accordingly.
76355         * modules/posixtm (Depends-on): Add stpcpy.
76357 2009-09-11  Jim Meyering  <meyering@redhat.com>
76359         announce-gen: include [$release_type] in emitted Subject:
76360         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
76361         e.g., [stable] in the emitted Subject: line.
76363 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76365         Remove obsolete macros from several modules.
76366         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
76367         obsolete Autoconf macros with their modern counterparts.
76368         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
76369         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
76370         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
76371         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76372         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
76373         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
76374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
76375         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76376         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
76377         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
76378         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
76379         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
76380         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
76381         * m4/sockets.m4 (gl_SOCKETS): Likewise.
76382         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
76383         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
76384         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
76385         * m4/time_r.m4 (gl_TIME_R): Likewise.
76386         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
76387         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
76388         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76390         Fix copyright header in build-aux scripts.
76391         * build-aux/git-version-gen: Fix copyright header to match GPLv3
76392         recommendation.
76393         * build-aux/ncftpput-ftp: Likewise.
76394         * build-aux/update-copyright: Likewise.
76396 2009-09-09  Eric Blake  <ebb9@byu.net>
76398         test-link: allow Linux choice of errno
76399         * tests/test-link.c (main): Relax test for alternate error.
76401         strndup: fix improper m4 caching
76402         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
76403         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
76404         (gl_PREREQ_STRNDUP): Delete.
76405         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
76406         * modules/string (Makefile.am): Substitute it.
76407         * lib/string.in.h (strndup): Modernize prototype.
76409         getcwd: port to mingw
76410         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
76411         different from the POSIX assumptions made throughout the getcwd
76412         module; fortunately, the mingw getcwd does not need replacement.
76413         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
76414         * modules/getcwd-tests: New test.
76415         * tests/test-getcwd.c: Likewise.
76417         link: fix platform bugs
76418         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
76419         * lib/link.c (link): Work around them.  Fix related mingw bug.
76420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
76421         * modules/unistd (Makefile.am): Substitute it.
76422         * lib/unistd.in.h (link): Declare replacement.
76423         * doc/posix-functions/link.texi (link): Document this.
76424         * modules/link (Depends-on): Add strdup-posix, sys_stat.
76426         test-link: consolidate into single C program, test more cases
76427         * tests/test-link.sh: Delete.
76428         * tests/test-link.c: Test more error conditions.  Exposes bugs on
76429         at least Cygwin and Solaris.
76430         * modules/link-tests (Files): Remove unused file.
76431         (Depends-on): Add errno, sys_stat.
76432         (Makefile.am): Simplify.
76434 2009-09-08  Bruno Haible  <bruno@clisp.org>
76436         Work around towlower, towupper bug on mingw.
76437         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
76438         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
76439         * doc/posix-functions/towlower.texi: Mention the mingw bug.
76440         * doc/posix-functions/towupper.texi: Likewise.
76441         Reported by Eric Blake.
76443 2009-09-08  Jim Meyering  <meyering@redhat.com>
76445         build: don't try to run autoheader if we don't use it
76446         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
76447         is not used in configure.ac.
76449 2009-09-08  Eric Blake  <ebb9@byu.net>
76451         euidaccess: fix compilation error
76452         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
76454         rawmemchr: relax license
76455         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
76456         okay.
76457         Reported by Jim Meyering.
76459         mkfifoat: new module
76460         * modules/mkfifoat: New file.
76461         * lib/mkfifoat.c: Likewise.
76462         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
76463         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76464         * modules/sys_stat (Makefile.am): Use them.
76465         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
76466         * MODULES.html.sh (File system functions): Mention module.
76467         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76468         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76469         * modules/mkfifoat-tests: New test.
76470         * tests/test-mkfifoat.c: Likewise.
76472         strchrnul: relax license
76473         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
76474         okay.
76475         Reported by Jim Meyering.
76477 2009-09-08  Eric Blake  <ebb9@byu.net>
76479         fstatat: fix compilation on Solaris
76480         * lib/fstatat.c (includes): Add fcntl.h.
76481         Reported by Pádraig Brady.
76483 2009-09-07  Eric Blake  <ebb9@byu.net>
76485         rename: modernize replacement
76486         * modules/rename (Depends-on): Add stdio.
76487         (configure.ac): Declare witness.
76488         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
76489         stdio take care of replacement.
76490         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
76491         * modules/stdio (Makefile.am): Substitute them.
76492         * lib/stdio.in.h (rename): Declare replacement.
76493         * lib/rename.c (includes): Allow cross-compilation to non-windows
76494         machines.
76495         * doc/posix-functions/rename.texi (rename): Improve
76496         documentation.
76498         stdio: sort witness names
76499         * modules/stdio (Makefile.am): Sort replacements.
76500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76501         * lib/stdio.in.h: Likewise.
76503         getcwd: minor cleanups
76504         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
76505         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
76507         openat: provide more convenience names
76508         * modules/faccessat (configure.ac): Add C witness.
76509         * lib/unistd.in.h (readlinkat): Fix typo.
76510         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
76511         convenience wrappers.
76512         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
76513         wrappers in syntax checks.
76515 2009-09-06  Eric Blake  <ebb9@byu.net>
76517         doc: fix comments in recent patches
76518         * lib/faccessat.c: Mention correct function.
76519         * lib/fchmodat.c: Likewise.
76520         * lib/fchownat.c: Likewise.
76521         * lib/symlinkat.c: Likewise.
76522         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
76523         constants.
76525         faccessat, symlinkat: continue cleanup of previous patch
76526         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
76527         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76528         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
76529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
76530         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
76531         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
76532         set.
76534 2009-09-06  Bruno Haible  <bruno@clisp.org>
76536         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
76537         (fstatat): Declare if GNULIB_FSTATAT is set.
76538         (mkdirat): Declare if GNULIB_MKDIRAT is set.
76539         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
76540         (unlinkat): Declare if GNULIB_UNLINKAT is set.
76541         * modules/fcntl-h (Files): Remove m4/openat.m4.
76542         * modules/sys_stat (Files): Remove m4/openat.m4.
76543         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
76544         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
76545         * modules/unistd (Files): Remove m4/openat.m4.
76546         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
76547         GNULIB_OPENAT.
76548         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
76549         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
76550         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
76551         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
76552         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
76553         gl_OPENAT_DEFAULTS.
76554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
76555         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
76556         Don't require gl_OPENAT_DEFAULTS.
76557         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
76558         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
76559         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
76560         (gl_OPENAT_DEFAULTS): Remove macro.
76562 2009-09-06  Bruno Haible  <bruno@clisp.org>
76564         * modules/openat (configure.ac): Remove unneeded witness.
76566 2009-09-06  Bruno Haible  <bruno@clisp.org>
76568         Set errno to ENOSYS when a function is entirely unsupported.
76569         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
76570         EOPNOTSUPP.
76571         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
76572         * modules/chown (Depends-on): Remove errno.
76574 2009-09-06  Bruno Haible  <bruno@clisp.org>
76576         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
76578 2009-09-06  Bruno Haible  <bruno@clisp.org>
76580         * lib/sys_stat.in.h: Fix preprocessor command indentation.
76582 2009-09-06  Ben Pfaff  <blp@gnu.org>
76583             Bruno Haible  <bruno@clisp.org>
76585         Work around a glibc bug in strtok_r.
76586         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
76587         Undefine if UNDEFINE_STRTOK_R is set.
76588         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
76589         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76590         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
76591         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
76592         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
76593         UNDEFINE_STRTOK_R.
76594         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
76596 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
76598         exclude: minor fix
76599         * lib/exclude.c: Include wctype.h
76601 2009-09-06  Akim Demaille  <demaille@gostai.com>
76603         bootstrap: improve error message
76604         * build-aux/bootstrap (find_tool): Upon failure, report the list
76605         of candidates.
76606         Honor the initial value of the envvar.
76608 2009-09-05  Eric Blake  <ebb9@byu.net>
76610         symlinkat: new module
76611         * modules/symlinkat: New file.
76612         * lib/symlinkat.c: Likewise.
76613         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
76614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76615         * modules/unistd (Makefile.am): Use them.
76616         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
76617         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
76618         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
76619         * MODULES.html.sh (File system functions): Mention module.
76620         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76621         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76622         * modules/symlinkat-tests: New test.
76623         * tests/test-symlinkat.c: Likewise.
76625         test-openat-safer: add more checks
76626         * tests/test-openat-safer.c (main): Check more code paths.
76628 2009-09-05  Jim Meyering  <meyering@redhat.com>
76630         syntax-check: detect unnecessary inclusion of openat.h
76631         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
76633 2009-09-05  Bruno Haible  <bruno@clisp.org>
76635         Support towlower, towupper.
76636         * doc/posix-functions/towlower.texi: Mention module wctype.
76637         * doc/posix-functions/towupper.texi: Likewise.
76638         * lib/wctype.in.h (towlower, towupper): New functions.
76639         * tests/test-wctype.c: Include stdio.h, stdlib.h.
76640         (ASSERT): New macro.
76641         (e): New variable.
76642         (main): Test also towlower, towupper. Test WEOF argument.
76643         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
76645 2009-09-05  Bruno Haible  <bruno@clisp.org>
76647         Fix conversion behaviour when the input is invalid.
76648         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
76649         mark occurring in first pass of indirect conversion.
76650         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
76651         input.
76652         Found by clang's static analyzer.
76654 2009-09-05  Bruno Haible  <bruno@clisp.org>
76656         * tests/test-striconveh.c (main): Test indirect conversion on platforms
76657         where direct conversion is possible.
76659 2009-09-04  Eric Blake  <ebb9@byu.net>
76661         openat: fail with ENOENT on empty name
76662         * lib/openat-proc.c (openat_proc_name): Special-case the empty
76663         buffer.
76665         link-follow: fix logic bug in prior patch
76666         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
76667         reversed sense of yes and no in prior patch.  Avoid confusing
76668         compilation failure with desired semantics.
76670         link-follow: accommodate mingw and cross-compilation
76671         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
76672         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
76673         cross-compilation results to -1, to make linkat easier to
76674         implement when cross-compiling.  Trivially support mingw.
76675         * modules/link-follow (configure.ac): Call new name.
76676         * NEWS: Mention this.
76678 2009-09-03  Eric Blake  <ebb9@byu.net>
76680         faccessat: compile replacement
76681         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
76682         needed.
76684         fts: fix compilation error
76685         * lib/fts.c (includes): Re-add "openat.h", for
76686         openat_needs_fchdir.
76688         faccessat: new module
76689         * modules/faccessat: New file.
76690         * lib/faccessat.c: Likewise.
76691         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
76692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76693         * modules/unistd (Makefile.am): Use it.
76694         * lib/unistd.in.h (faccessat): Declare it.
76695         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
76696         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
76697         * MODULES.html.sh (File system functions): Mention it.
76698         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
76699         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76701         euidaccess: prefer POSIX over non-standard implementation
76702         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
76703         * lib/euidaccess.c (euidaccess): Use it if available.
76705         openat: make template easier to use
76706         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
76707         AT_FUNC_F2 to be undefined.
76708         (VALIDATE_FLAG): New macro; use it to reject bad flags.
76709         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
76710         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
76711         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
76712         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
76713         Likewise.
76714         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
76715         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
76716         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
76717         Likewise.
76719         openat: declare in POSIX headers
76720         * NEWS: Mention this.
76721         * modules/openat (configure.ac): Declare witnesses.
76722         (Depends-on): Add fcntl-h, sys_stat, unistd.
76723         (Include): Mention correct headers.
76724         * modules/fcntl-h (Depends-on): Add link-warning.
76725         (Files): Add openat.m4.
76726         (Makefile.am): Substitute witnesses.
76727         * modules/sys_stat (Files, Makefile.am): Likewise.
76728         * modules/unistd (Files, Makefile.am): Likewise.
76729         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
76730         (gl_OPENAT_DEFAULTS): New macro.
76731         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
76732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
76733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
76734         (SYS_STAT_H): Remove unused variable.
76735         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
76736         * lib/fcntl--.h (includes): Remove unneeded header.
76737         * lib/openat-safer.c (includes): Likewise.
76738         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
76739         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
76740         appropriate headers.
76741         (__OPENAT_PREFIX): Delete.
76742         * lib/fcntl.in.h (openat): Provide declaration.
76743         (AT_FDCWD): Fix Solaris bug.
76744         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
76745         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
76746         * lib/fchmodat.c (includes):  Adjust to find declaration.
76747         * lib/fchownat.c (includes): Likewise.
76748         * lib/mkdirat.c (includes): Likewise.
76749         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
76750         still visible.
76752 2009-09-02  Eric Blake  <ebb9@byu.net>
76754         errno: use consistently
76755         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
76756         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
76757         * lib/canonicalize.c (ELOOP): Likewise.
76758         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
76759         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
76760         * lib/lchown.c (EOPNOTSUPP): Likewise.
76761         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
76762         * lib/savewd.c (ESTALE): Likewise.
76763         * lib/settime.c (ENOSYS): Likewise.
76764         * lib/utimens.c (ENOSYS): Likewise.
76765         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
76766         * lib/chdir-safer.c (ELOOP): Likewise.
76767         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
76768         * modules/c-stack (Depends-on): Add errno.
76769         * modules/canonicalize (Depends-on): Likewise.
76770         * modules/chdir-safer (Depends-on): Likewise.
76771         * modules/fdopendir (Depends-on): Likewise.
76772         * modules/inet_ntop (Depends-on): Likewise.
76773         * modules/inet_pton (Depends-on): Likewise.
76774         * modules/lchown (Depends-on): Likewise.
76775         * modules/openat (Depends-on): Likewise.
76776         * modules/savewd (Depends-on): Likewise.
76777         * modules/settime (Depends-on): Likewise.
76778         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
76780         fts: avoid leaking fds
76781         * modules/fts (Depends-on): Add cloexec.
76782         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
76783         flag.
76785         fts: make directory fds more robust
76786         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
76787         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
76789         backupfile, chdir-long, fts, savedir: make safer
76790         * lib/backupfile.c (includes): Use "dirent--.h", since
76791         numbered_backup can write to stderr during readdir.
76792         * lib/savedir.c (includes): Likewise.
76793         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
76794         emulation can write to stderr on failure.
76795         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
76796         * lib/getcwd.c: Document why opendir_safer is unused.
76797         * lib/glob.c: Likewise.
76798         * lib/scandir.c: Likewise.
76799         * lib/openat-proc.c: Likewise, for open_safer.
76800         * modules/backupfile (Depends-on): Add dirent-safer.
76801         * modules/savedir (Depends-on): Likewise.
76802         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
76803         * modules/chdir-long (Depends-on): Add openat-safer.
76805         openat-safer: new module
76806         * modules/openat-safer: New file.
76807         * lib/openat-safer.c: Likewise.
76808         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
76809         * lib/fcntl-safer.h (openat_safer): Declare.
76810         * lib/fcntl--.h (openat): Override.
76811         * MODULES.html.sh (File descriptor based I/O): Mention it.
76812         * lib/openat.h: Add double-inclusion guards.
76813         * lib/openat.c (includes): Only include "fcntl-safer.h", not
76814         "fcntl--.h", so we can implement openat.
76815         * modules/openat-safer-tests: New test.
76816         * tests/test-openat-safer.c: New file.
76818         dirent-safer: new module
76819         * modules/dirent-safer: New file.
76820         * lib/dirent--.h: Likewise.
76821         * lib/dirent-safer.h: Likewise.
76822         * lib/opendir-safer.c: Likewise.
76823         * m4/dirent-safer.m4: Likewise.
76824         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
76825         * modules/dirent-safer-tests: New test.
76826         * tests/test-dirent-safer.c: New file.
76827         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
76829         fdopendir: optimize on mingw
76830         * lib/unistd.in.h (_gl_directory_name): New prototype.
76831         * lib/fchdir.c (_gl_directory_name): Implement it.
76832         (fchdir): Use it to simplify implementation.
76833         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
76834         fchdir, when available, to avoid calling [f]chdir().
76836         fdopendir: split into its own module
76837         * lib/openat.c (fdopendir): Move...
76838         * lib/fdopendir.c: ...into new file.
76839         * modules/fdopendir: New module.
76840         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
76841         * modules/openat (Depends-on): Add fdopendir.
76842         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
76843         fdopendir here.
76844         * modules/savedir (Depends-on): Only need fdopendir, not full
76845         openat.
76846         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
76847         * lib/openat.h (fdopendir): Drop prototype.
76848         * lib/dirent.in.h (fdopendir): Provide prototype.
76849         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
76850         * modules/dirent (Makefile.am): Substitute them.
76851         * MODULES.html.sh (File system functions): Mention it.
76852         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
76853         * modules/fdopendir-tests: New file.
76854         * tests/test-fdopendir.c: Likewise.
76856         fchdir: use more consistent macro convention
76857         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
76858         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
76859         REPLACE_FCHDIR, rather than relying on config.h macros.
76860         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
76861         inside a single make-time REPLACE_FCHDIR block, rather than using
76862         the config.h FCHDIR_REPLACEMENT.
76863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
76864         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
76865         Manage fstat replacement.
76866         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
76867         REPLACE_FCHDIR.
76868         * modules/sys_stat (Files): Add m4/unistd_h.m4.
76869         (Makefile.am): Substitute REPLACE_FCHDIR.
76870         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
76871         FCHDIR_REPLACEMENT.
76872         * lib/dup-safer.c (dup_safer): Likewise.
76873         * lib/dup2.c (rpl_dup2): Likewise.
76874         * lib/dup3.c (rpl_dup3): Likewise.
76875         * lib/open.c (rpl_open): Likewise.
76877         fchdir: simplify error handling, and support dup3
76878         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
76879         stdbool, malloc-posix, realloc-posix.
76880         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
76881         (ensure_dirs_slot): Return false on allocation failure.
76882         (rpl_dup2): Delete.
76883         (_gl_register_dup): New function.
76884         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
76885         (_gl_register_fd): Close fd on allocation failure.
76886         * lib/fcntl.in.h (_gl_register_fd): Update signature.
76887         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
76888         prototype.
76889         (rpl_dup2_fchdir): Delete prototype.
76890         * lib/open.c (open): Update caller.
76891         * lib/dup2.c (dup2): Track fchdir metadata.
76892         * lib/dup3.c (dup3): Likewise.
76893         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
76894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
76896 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76898         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
76899         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
76900         don't pass arguments to AC_OUTPUT.
76902 2009-09-02  Bruno Haible  <bruno@clisp.org>
76904         * modules/mkdtemp (License): Relicense under LGPLv2+.
76905         Reported by Paolo Bonzini.
76907 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76909         Replace uses of obsolete autoconf macros in Jim's modules.
76910         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
76911         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
76912         can evoke a warning from autoconf when run with -Wobsolete
76913         enabled.  They were declared obsolete for good reasons (see
76914         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
76915         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
76916         should not continue using the deprecated macros.
76917         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
76918         obsolete Autoconf macros with modern counterparts.
76919         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76920         * m4/dos.m4 (gl_AC_DOS): Likewise.
76921         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
76922         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
76923         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
76924         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
76925         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
76926         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
76927         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
76928         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
76929         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76930         Likewise.
76931         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
76932         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76933         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
76934         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
76935         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
76936         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76938 2009-09-01  Eric Blake  <ebb9@byu.net>
76940         fchdir: fix off-by-one bug in previous patch
76941         * lib/fchdir.c (rpl_fstat): Use correct bounds.
76942         (_gl_unregister_fd): Delete useless if.
76944 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
76946         maint.mk: sort the list of syntax-check rules
76947         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
76948         easier to get a sense of progress when the rules are run sequentially
76949         and take a long time.
76951 2009-09-01  Simon Josefsson  <simon@josefsson.org>
76953         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
76954         * modules/netinet_in: Likewise.
76955         * modules/sys_file: Likewise.
76956         * modules/sys_ioctl: Likewise.
76957         * modules/sys_select: Likewise.
76958         * modules/sys_socket: Likewise.
76959         * modules/sys_stat: Likewise.
76960         * modules/sys_time: Likewise.
76961         * modules/sys_times: Likewise.
76962         * modules/sys_utsname: Likewise.
76963         * modules/sys_wait: Likewise.
76965 2009-09-01  Jim Meyering  <meyering@redhat.com>
76967         fts: help ensure that return values are not ignored
76968         * lib/fts_.h (__GNUC_PREREQ): Define.
76969         (__attribute_warn_unused_result__): Define.
76970         (fts_children, fts_close, fts_open, fts_read): Declare with
76971         __attribute_warn_unused_result__.
76973         fts: fts_close now fails also when closing a dir file descriptor fails
76974         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
76975         and propagate to caller, along with errno.
76977         announce-gen: correct formatting in --help output
76978         * build-aux/announce-gen (usage): Move the one-line description in
76979         --help output "up", to where it belongs, just after Usage:.
76981 2009-08-31  Eric Blake  <ebb9@byu.net>
76983         fchdir: port to mingw
76984         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
76985         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
76986         opened, then use a substitute.
76987         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
76988         replacement.
76989         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
76990         (_gl_register_fd): No need to check stat if open already filters
76991         all directories.
76992         (fchdir): Fix error condition to match POSIX.
76993         * modules/fchdir (Depends-on): Add sys_stat.
76994         * doc/posix-functions/open.texi (open): Document the limitation.
76995         * modules/fchdir-tests: New file.
76996         * tests/test-fchdir.c: Likewise.
76998         canonicalize: allow cross-testing from cygwin to mingw
76999         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
77000         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
77001         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
77002         Likewise.
77003         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
77004         target does not support symlinks.
77005         * tests/test-canonicalize-lgpl.sh: Likewise.
77007         chown: avoid compilation warning on mingw
77008         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
77009         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
77010         mingw.
77011         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77012         * modules/chown (Depends-on): Add errno.
77014 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
77016         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
77017         command.
77019 2009-08-31  Jim Meyering  <meyering@redhat.com>
77021         canonicalize: remove useless initialization
77022         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
77023         initialization of local, "end".
77025 2009-08-30  Bruno Haible  <bruno@clisp.org>
77027         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
77028         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
77029         ENOSYS.
77031 2009-08-30  Bruno Haible  <bruno@clisp.org>
77033         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
77034         /usr/xpg4/bin/tr when it exists.
77035         * tests/test-pipe-filter-gi1.sh: Likewise.
77037 2009-08-30  Bruno Haible  <bruno@clisp.org>
77039         Work around deficient /usr/bin/id program on Solaris.
77040         * tests/test-file-has-acl.sh (ID): New variable.
77041         * tests/test-set-mode-acl.sh (ID): Likewise.
77042         * tests/test-copy-acl.sh (ID): Likewise.
77043         * tests/test-copy-file.sh (ID): Likewise.
77045 2009-08-30  Bruno Haible  <bruno@clisp.org>
77047         New module 'xstriconveh'.
77048         * lib/xstriconveh.h: New file.
77049         * lib/xstriconveh.c: New file.
77050         * modules/xstriconveh: New file.
77052 2009-08-30  Bruno Haible  <bruno@clisp.org>
77054         Make it easier to use mem_cd_iconveh.
77055         * lib/striconveh.h (iconveh_t): New type.
77056         (iconveh_open, iconveh_close): New declarations.
77057         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77058         with a single 'const iconveh_t *' argument.
77059         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
77060         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
77061         with a single 'const iconveh_t *' argument.
77062         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
77063         * tests/test-striconveh.c (main): Update.
77064         * NEWS: Mention the change.
77066 2009-08-30  Bruno Haible  <bruno@clisp.org>
77068         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
77069         problem.
77071 2009-08-30  Bruno Haible  <bruno@clisp.org>
77073         Work around iconv_open problem on Solaris.
77074         * lib/iconv_open-solaris.gperf: New file.
77075         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
77076         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
77077         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
77078         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
77079         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
77080         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
77082 2009-08-29  Jim Meyering  <meyering@redhat.com>
77084         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
77085         * top/maint.mk (cvs-check): Remove target; it was just an alias
77086         to the better-named vc-diff-check.
77087         (maintainer-distcheck): Remove rule.  It was used only from
77088         the (alpha/beta/major) target, and all of its commands but one
77089         were coreutils-specific.
77090         (vc-dist): Remove rule.
77091         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
77092         Run vc-diff-check, not vc-dist.
77093         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
77095 2009-08-27  Bruno Haible  <bruno@clisp.org>
77097         * tests/test-bitrotate.c (main): Remove test that uses a shift count
77098         of 0.
77100 2009-08-27  Bruno Haible  <bruno@clisp.org>
77102         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
77103         compilers.
77104         * doc/func.texi: Document the SunPRO C bug.
77106 2009-08-27  Bruno Haible  <bruno@clisp.org>
77108         Fix link error on Solaris.
77109         * tests/test-parse-duration.c (xstrdup): Remove function.
77111 2009-08-26  Pádraig Brady  <P@draigbrady.com>
77113         ignore-value: handle pointer types, too
77114         * lib/ignore-value.h (__attribute__): Remove definition.
77115         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
77116         of a more concise and more-often effective "(void) i" statement.
77117         (ignore_ptr): New function to suppress warnings from functions that
77118         return pointers, and to make it explicit that one function doesn't
77119         handle all cases.
77121 2009-08-25  Bruno Haible  <bruno@clisp.org>
77123         dup2: work around a Linux bug.
77124         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
77125         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
77126         * doc/posix-functions/dup2.texi: Mention the Linux bug.
77127         Reported by Simon Josefsson.
77129 2009-08-25  Jim Meyering  <meyering@redhat.com>
77131         libguestfs uses gnulib
77132         * users.txt: Add libguestfs.
77134 2009-08-24  Eric Blake  <ebb9@byu.net>
77136         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
77137         * lib/pipe2.c (includes): Add binary-io.h.
77138         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
77140 2009-08-24  Bruno Haible  <bruno@clisp.org>
77142         Tolerate declared but missing accept4 syscall.
77143         * lib/accept4.c (accept4): Invoke original accept4 function first, if
77144         available.
77145         * lib/sys_socket.in.h (accept4): If the function is already present,
77146         override it.
77147         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
77148         * modules/accept4 (Makefile.am): Compile accept4.c always.
77149         Reported by Paolo Bonzini and Eric Blake.
77151 2009-08-23  Bruno Haible  <bruno@clisp.org>
77153         New module 'accept4'.
77154         * lib/sys_socket.in.h (accept4): New declaration.
77155         * lib/accept4.c: New file.
77156         * m4/accept4.m4: New file.
77157         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
77158         GNULIB_ACCEPT4, HAVE_ACCEPT4.
77159         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
77160         HAVE_ACCEPT4.
77161         * modules/accept4: New file.
77162         * doc/glibc-functions/accept4.texi: Mention the new module.
77164 2009-08-24  Jim Meyering  <meyering@redhat.com>
77166         progname: also set global program_invocation_name, when possible
77167         Before this change, a libtool-enabled program that calls glibc's
77168         error function would report the program name as
77169         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
77170         * modules/progname (configure.ac): Check for a declaration of
77171         program_invocation_name.
77172         * lib/progname.c:  Include <errno.h>.
77173         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
77174         Set program_invocation_name.
77176 2009-08-23  Bruno Haible  <bruno@clisp.org>
77178         * lib/dup3.c: Include <string.h>.
77180 2009-08-23  Bruno Haible  <bruno@clisp.org>
77182         * lib/dup3.c (dup3): Test only once whether the system actually exists.
77183         * lib/pipe2.c (pipe2): Likewise.
77184         Suggested by Eric Blake.
77186 2009-08-23  Bruno Haible  <bruno@clisp.org>
77188         Tolerate declared but missing dup3 syscall.
77189         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
77190         * lib/unistd.in.h (dup3): If the function is already present,
77191         override it.
77192         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
77193         * modules/dup3 (Makefile.am): Compile dup3.c always.
77194         Reported by Paolo Bonzini.
77196 2009-08-23  Bruno Haible  <bruno@clisp.org>
77198         Tolerate declared but missing pipe2 syscall.
77199         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
77200         available.
77201         * lib/unistd.in.h (pipe2): If the function is already present,
77202         override it.
77203         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
77204         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
77205         Reported by Paolo Bonzini.
77207 2009-08-23  Bruno Haible  <bruno@clisp.org>
77209         * lib/pipe2.c (pipe2): Move #ifs inside function.
77211 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77213         quotearg: document limitations of quote_these_too
77214         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
77215         those limitations are created.
77216         * lib/quotearg.h (set_char_quoting): Document that digits and
77217         letters that are special after backslash are not permitted.
77218         (quotearg_char): Cross-reference set_char_quoting documentation.
77220 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
77222         quotearg: implement custom_quoting_style
77223         * lib/quotearg.c: (struct quoting_options): Add left_quote and
77224         right_quote fields.
77225         (set_custom_quoting): New public function.
77226         (quotearg_buffer_restyled): Add left_quote and right_quote
77227         arguments, handle them very much like locale quoting, and update
77228         all uses.
77229         (quotearg_n_custom): New public function.
77230         (quotearg_n_custom_mem): New public function.
77231         (quotearg_custom): New public function.
77232         (quotearg_custom_mem): New public function.
77233         * lib/quotearg.h: Prototype and document new public functions.
77234         (enum quoting_style): For escape_quoting_style and
77235         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
77236         ignored even though they're otherwise like c_quoting_style.
77237         Add custom_quoting_style member and document with comparison to
77238         clocale_quoting_style.
77239         * tests/test-quotearg.c (custom_quotes): New array.
77240         (custom_results): New array.
77241         (main): Extend to test custom quoting.
77243 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77245         quotearg: fix right quote escaping when it's in quote_these_too
77246         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
77247         quote, be sure to prepend only one backslash.
77248         * tests/test-quotearg.c (use_quote_double_quotes): New function.
77249         (main): Test it.
77251 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
77253         quotearg-tests: test escaping of embedded locale quotes
77254         * tests/test-quotearg.c (struct result_strings): Add member for
77255         new input.
77256         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
77257         (inputs): Add new input.
77258         (results_g): Add expected results.
77259         (flag_results): Likewise.
77260         (locale_results): Likewise.
77261         (compare_strings): Check those.
77263 2009-08-23  Bruno Haible  <bruno@clisp.org>
77265         Tests for module 'dup3'.
77266         * modules/dup3-tests: New file.
77267         * tests/test-dup3.c: New file.
77269         New module 'dup3'.
77270         * lib/unistd.in.h (dup3): New declaration.
77271         * lib/dup3.c: New file.
77272         * m4/dup3.m4: New file.
77273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
77274         HAVE_DUP3.
77275         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
77276         * modules/dup3: New file.
77277         * doc/glibc-functions/dup3.texi: Mention the new module.
77279 2009-08-23  Bruno Haible  <bruno@clisp.org>
77281         Tweak the dup2 test.
77282         * tests/test-dup2.c (main): Create the test file empty. Verify that an
77283         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
77284         the test file is still empty. Fix argument order of lseek.
77286 2009-08-23  Bruno Haible  <bruno@clisp.org>
77288         Avoid test link errors when the modules getopt-gnu, gettext are used.
77289         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
77290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77292 2009-08-23  Bruno Haible  <bruno@clisp.org>
77294         Fix getdtablesize() on mingw.
77295         * lib/getdtablesize.c (getdtablesize): Implement differently.
77296         * lib/unistd.in.h (getdtablesize): Improve comment.
77298 2009-08-23  Bruno Haible  <bruno@clisp.org>
77300         New module 'mkostemp'.
77301         Based on Ulrich Drepper's 2007-08-10 change in glibc.
77302         * lib/stdlib.in.h (mksotemp): New declaration.
77303         * lib/mkostemp.c: New file, from glibc with modifications.
77304         * lib/tempname.h (GT_FILE): Remove outdated comment.
77305         (gen_tempname): Add flags argument.
77306         * lib/tempname.c (__GT_BIGFILE): Remove macro.
77307         (__GT_FILE): Map to 1.
77308         (small_open, large_open): Remove macros.
77309         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
77310         * lib/mkstemp.c (mkstemp): Update.
77311         * lib/mkdtemp.c (mkdtemp): Likewise.
77312         * m4/mkostemp.m4: New file.
77313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
77314         HAVE_MKOSTEMP.
77315         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
77316         HAVE_MKOSTEMP.
77317         * modules/mkostemp: New file, based on modules/mkstemp.
77318         * doc/glibc-functions/mkostemp.texi: Mention the new module.
77319         * NEWS: Mention the change.
77321 2009-08-23  Bruno Haible  <bruno@clisp.org>
77323         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
77324         Reported by Eric Blake.
77326 2009-08-23  Bruno Haible  <bruno@clisp.org>
77328         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
77329         Reported by Eric Blake.
77331 2009-08-23  Bruno Haible  <bruno@clisp.org>
77333         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
77334         * modules/pipe2 (Depends-on): Likewise.
77336 2009-08-23  Eric Blake  <ebb9@byu.net>
77338         fcntl-h: add O_TTY_INIT support
77339         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
77340         * tests/test-fcntl-h.c (o): Test it.
77341         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77343         fcntl-h: rename from fcntl, in preparation for fcntl(2)
77344         * modules/fcntl: Move <fcntl.h> header replacement...
77345         * modules/fcntl-h: ...to new name, so as not to collide with
77346         like-named function.
77347         * tests/test-fcntl.c: Rename...
77348         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
77349         * modules/fcntl-tests: Rename...
77350         * modules/fcntl-h-tests: ...to this.  Update test file name.
77351         * modules/chdir-long (Depends-on): Update clients.
77352         * modules/chdir-safer (Depends-on): Likewise.
77353         * modules/fcntl-safer (Depends-on): Likewise.
77354         * modules/fts (Depends-on): Likewise.
77355         * modules/mkancesdirs (Depends-on): Likewise.
77356         * modules/mkdir-p (Depends-on): Likewise.
77357         * modules/open (Depends-on): Likewise.
77358         * modules/savewd (Depends-on): Likewise.
77359         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
77360         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
77362 2009-08-22  Bruno Haible  <bruno@clisp.org>
77364         * modules/binary-io (License): Relicense under LGPL.
77365         * modules/pipe2 (License): Likewise.
77367 2009-08-22  Bruno Haible  <bruno@clisp.org>
77369         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
77370         return value.
77371         * lib/pipe-filter-gi.c (filter_init): Likewise.
77372         Reported by Eric Blake.
77374 2009-08-22  Bruno Haible  <bruno@clisp.org>
77376         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
77377         * modules/pipe (Depends-on): Add pipe2.
77379 2009-08-22  Bruno Haible  <bruno@clisp.org>
77381         Tests for module 'pipe2'.
77382         * modules/pipe2-tests: New file.
77383         * tests/test-pipe2.c: New file.
77385         New module 'pipe2'.
77386         * lib/unistd.in.h (pipe2): New declaration.
77387         * lib/pipe2.c: New file.
77388         * m4/pipe2.m4: New file.
77389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
77390         HAVE_PIPE2.
77391         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
77392         * modules/pipe2: New file.
77393         * doc/glibc-functions/pipe2.texi: Mention the new module.
77395 2009-08-22  Bruno Haible  <bruno@clisp.org>
77397         Reference some new glibc functions.
77398         * doc/glibc-functions/accept4.texi: New file.
77399         * doc/glibc-functions/dup3.texi: New file.
77400         * doc/glibc-functions/mkostemp.texi: New file.
77401         * doc/glibc-functions/pipe2.texi: New file.
77402         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
77403         (Glibc sys/socket.h): Refer to accept4.
77404         (Glibc unistd.h): Refer to dup3, pipe2.
77405         Reported by Eric Blake.
77407 2009-08-22  Jim Meyering  <meyering@redhat.com>
77408             Bruno Haible  <bruno@clisp.org>
77410         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
77411         This makes it so packages using automake-1.11's silent-rules option
77412         can print e.g., a single "GEN    configmake.h" line, rather than
77413         the 30+ statements that perform the job.  If you want to see the
77414         actual commands, you can still run "make V=1".
77415         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
77416         so that make output is abbreviated when those variables are defined
77417         appropriately.
77418         * modules/argz: Likewise.
77419         * modules/arpa_inet: Likewise.
77420         * modules/byteswap: Likewise.
77421         * modules/configmake: Likewise.
77422         * modules/dirent: Likewise.
77423         * modules/errno: Likewise.
77424         * modules/fcntl: Likewise.
77425         * modules/float: Likewise.
77426         * modules/fnmatch: Likewise.
77427         * modules/getopt-posix: Likewise.
77428         * modules/glob: Likewise.
77429         * modules/iconv_open: Likewise.
77430         * modules/inttypes: Likewise.
77431         * modules/localcharset: Likewise.
77432         * modules/locale: Likewise.
77433         * modules/math: Likewise.
77434         * modules/netdb: Likewise.
77435         * modules/netinet_in: Likewise.
77436         * modules/poll: Likewise.
77437         * modules/posix_spawnp-tests: Likewise.
77438         * modules/sched: Likewise.
77439         * modules/search: Likewise.
77440         * modules/selinux-h: Likewise.
77441         * modules/signal: Likewise.
77442         * modules/spawn: Likewise.
77443         * modules/stdarg: Likewise.
77444         * modules/stdbool: Likewise.
77445         * modules/stddef: Likewise.
77446         * modules/stdint: Likewise.
77447         * modules/stdio: Likewise.
77448         * modules/stdlib: Likewise.
77449         * modules/string: Likewise.
77450         * modules/strings: Likewise.
77451         * modules/sys_file: Likewise.
77452         * modules/sys_ioctl: Likewise.
77453         * modules/sys_select: Likewise.
77454         * modules/sys_socket: Likewise.
77455         * modules/sys_stat: Likewise.
77456         * modules/sys_time: Likewise.
77457         * modules/sys_times: Likewise.
77458         * modules/sys_utsname: Likewise.
77459         * modules/sys_wait: Likewise.
77460         * modules/sysexits: Likewise.
77461         * modules/time: Likewise.
77462         * modules/unistd: Likewise.
77463         * modules/wchar: Likewise.
77464         * modules/wctype: Likewise.
77466 2009-08-22  Jim Meyering  <meyering@redhat.com>
77468         announce-gen: detect write failure
77469         * build-aux/announce-gen: Add Coda at end.
77470         Remove equivalent-but-more-verbose block at top.
77472 2009-08-19  Akim Demaille  <demaille@gostai.com>
77474         bootstrap: --help to stdout.
77475         * bootstrap (usage): Don't send --help to stderr.
77476         Use a here doc instead of a long string.
77478 2009-08-21  Eric Blake  <ebb9@byu.net>
77480         test-popen-safer: split from test-popen
77481         * tests/test-popen.c (main): Move...
77482         * tests/test-popen.h: ...into new file.
77483         * tests/test-popen-safer2.c: New file.
77484         * modules/popen-tests (Files): Add test-popen.h.
77485         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
77486         Suggested by Bruno Haible.
77488         test-fcntl-safer: split from test-open
77489         * tests/test-open.c (main): Move...
77490         * tests/test-open.h: ...into new file.
77491         * tests/test-fcntl-safer.c: New file.
77492         * modules/open-tests (Files): Add test-open.h.
77493         * modules/fcntl-safer-tests: New file.
77494         Suggested by Bruno Haible.
77496         test-fopen-safer: split from test-fopen
77497         * tests/test-fopen.c (main): Move...
77498         * tests/test-fopen.h: ...into new file.
77499         * tests/test-fopen-safer.c: New file.
77500         * modules/fopen-tests (Files): Add test-fopen.h.
77501         * modules/fopen-safer-tests: New file.
77502         Suggested by Bruno Haible.
77504 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77506         popen-safer: test O_CLOEXEC at run-time.
77507         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
77509 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
77511         fcntl: move more flags to the header
77512         * lib/cloexec.c: Do not define FD_CLOEXEC here.
77513         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
77514         * lib/fcntl.in.h: Do both things here.
77516 2009-08-21  Jim Meyering  <meyering@redhat.com>
77518         consistently remove $@-t before redirecting to it
77519         * modules/argz: Remove $@-t and $@ before redirecting to the former.
77520         * modules/alloca-opt: Likewise.
77521         * modules/byteswap: Likewise.
77522         * modules/fnmatch: Likewise.
77523         * modules/getopt-posix: Likewise.
77524         * modules/glob: Likewise.
77525         * modules/poll: Likewise.
77526         * modules/posix_spawnp-tests: Likewise.
77527         * modules/sys_socket: Likewise.
77528         * modules/sysexits: Likewise.
77530 2009-08-21  Eric Blake  <ebb9@byu.net>
77532         popen: simplify access to original popen
77533         * lib/popen.c (rpl_popen): No need to worry about popen being a
77534         macro.
77535         Reported by Bruno Haible.
77537 2009-08-20  Eric Blake  <ebb9@byu.net>
77539         build: avoid some compiler warnings
77540         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
77541         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
77542         type.
77543         (new_exclude_segment, excluded_file_pattern_p)
77544         (excluded_file_name_p): Reduce scope.
77545         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
77546         old-style declaration.
77548 2009-08-20  Simon Josefsson  <simon@josefsson.org>
77550         * tests/test-exclude1.sh: Handle Windows EOL.
77551         * tests/test-exclude2.sh: Likewise.
77552         * tests/test-exclude3.sh: Likewise.
77553         * tests/test-exclude4.sh: Likewise.
77554         * tests/test-exclude5.sh: Likewise.
77555         * tests/test-exclude6.sh: Likewise.
77556         * tests/test-exclude7.sh: Likewise.
77558 2009-08-19  Akim Demaille  <demaille@gostai.com>
77560         bootstrap: find sha1sum when named gsha1sum.
77561         * bootstrap (find_tool): New.
77562         ($SHA1SUM): New.
77563         Use it.
77565 2009-08-20  Jim Meyering  <meyering@redhat.com>
77567         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
77568         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
77569         expression that converts "." in a file name to "\." in the resulting
77570         regexp.  Start with a dummy statement, so that prior shell variable
77571         definitions are expanded portably.  Reported by Simon Josefsson.
77573 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
77575         Fix polling for writeability of a screen buffer.
77576         * lib/poll.c: Distinguish input and screen buffers for the
77577         Win32 implementation.
77578         * lib/select.c: Likewise.
77580 2009-08-19  Eric Blake  <ebb9@byu.net>
77582         popen-safer: prevent popen from clobbering std descriptors
77583         * modules/popen-safer: New file.
77584         * lib/popen-safer.c: Likewise.
77585         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
77586         * lib/stdio--.h (popen): Provide override.
77587         * lib/stdio-safer.h (popen_safer): Provide declaration.
77588         * tests/test-popen.c (includes): Partially test this.
77589         * modules/popen-safer-tests: New file, for more tests.
77590         * tests/test-popen-safer.c: Likewise.
77591         * MODULES.html.sh (file stream based Input/Output): Mention it.
77593         tests: test some of the *-safer modules
77594         * modules/fopen-safer (Depends-on): Add fopen.
77595         * modules/fcntl-safer (Depends-on): Add fcntl.
77596         * modules/stdlib-safer (Depends-on): Add stdlib.
77597         (configure.ac): Set indicator.
77598         * modules/unistd-safer (configure.ac): Likewise.
77599         * modules/tmpfile-safer (configure.ac): Likewise.
77600         (Depends-on): Add tmpfile.
77601         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
77602         active.
77603         * tests/test-fopen.c (includes): Test safer versions when they are
77604         in use.
77605         * tests/test-open.c (includes): Likewise.
77607         popen: fix cygwin 1.5 bug when stdin closed
77608         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
77609         * modules/popen: New file.
77610         * modules/popen-tests: Likewise.
77611         * tests/test-popen.c: Likewise.
77612         * m4/popen.m4: Likewise.
77613         * lib/popen.c: Likewise.
77614         * lib/stdio.in.h (popen): New declaration.
77615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
77616         * modules/stdio (Makefile.am): Likewise.
77617         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
77619 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
77621         maint.mk: give full control over update-copyright exclusions
77622         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
77623         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
77624         (update-copyright): Don't force inclusion of top-level
77625         ChangeLog.  Don't force exclusion of all COPYING files, but make
77626         them the default exclusion instead.
77628 2009-08-16  Bruno Haible  <bruno@clisp.org>
77630         Fix test failures on Solaris 10.
77631         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
77632         tests when Solaris iconv() is used.
77633         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
77634         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
77635         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
77636         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
77637         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
77639 2009-08-16  Bruno Haible  <bruno@clisp.org>
77641         Fix test failures on Solaris 10.
77642         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
77643         'tr' program and pass it as first argument.
77644         * tests/test-pipe-filter-gi1.sh: Likewise.
77645         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
77646         program as first argument.
77647         * tests/test-pipe-filter-gi1.c (main): Likewise.
77649 2009-08-16  Eric Blake  <ebb9@byu.net>
77651         fpurge: fix previous commits
77652         * modules/fpurge (Makefile.am): Make replacement conditional,
77653         partially reverting 2007-04-29 change; missed in previous
77654         attempt.
77655         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
77656         is missing.
77658 2009-08-16  Bruno Haible  <bruno@clisp.org>
77660         Clarify fpurge's effect on the file position.
77661         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
77662         * tests/test-fpurge.c (main): Make a second pass for checking the file
77663         position.
77665 2009-08-16  Bruno Haible  <bruno@clisp.org>
77667         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
77668         declaration of fpurge is missing.
77669         * tests/test-fpurge.c (main): Check that the file has not more contents
77670         than expected. Close the file before removing it.
77672 2009-08-15  Eric Blake  <ebb9@byu.net>
77674         fpurge: don't wrap working cygwin implementation
77675         * lib/fpurge.c (fpurge): Fix comment typo.
77676         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
77677         1.7 to avoid replacement.
77678         * tests/test-fpurge.c (main): Enhance test.
77680 2009-08-15  Eric Blake  <ebb9@byu.net>
77681         and Jim Meyering  <meyering@redhat.com>
77683         test-update-copyright: skip if perl is insufficient
77684         * tests/test-update-copyright.sh: Failure to run maintainer tool
77685         should not cause testsuite failure on cygwin 1.5.
77687 2009-08-14  Eric Blake  <ebb9@byu.net>
77689         doc: mention more functions added in cygwin 1.7.0
77690         * doc/posix-headers/limits.texi (limits.h): Update for recent
77691         cygwin additions.
77692         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
77693         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
77694         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
77695         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
77696         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
77698 2009-08-14  Eric Blake  <ebb9@byu.net>
77700         maint.mk: simplify update-copyright rule
77701         * top/maint.mk (update-copyright-local): Delete, and document how
77702         to do it in cfg.mk instead.
77703         (update-copyright-exclude-regexp): Delete, and document how to do
77704         it in .x-update-copyright instead.
77705         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
77706         exclude ChangeLog.
77708 2009-08-14  Bruno Haible  <bruno@clisp.org>
77710         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
77712 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77714         maint.mk: support update-copyright-env
77715         * top/maint.mk (update-copyright-env): Define place-holder.
77716         (update-copyright): Expand $(update-copyright-env) before
77717         invoking update-copyright.
77719 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77721         update-copyright: implement forced reformatting
77722         * build-aux/update-copyright: Implement and document
77723         UPDATE_COPYRIGHT_FORCE.
77724         * tests/test-update-copyright.sh: Test it.
77726 2009-08-14  Eric Blake  <ebb9@byu.net>
77727         and Bruno Haible  <bruno@clisp.org>
77729         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
77730         * tests/test-locale.c: Revert previous patch related to NULL.
77731         * tests/test-stdio.c: Likewise.
77732         * tests/test-stdlib.c: Likewise.
77733         * tests/test-string.c: Likewise.
77734         * tests/test-unistd.c: Likewise.
77735         * modules/time-tests (Depends-on): Add verify.
77736         * modules/wchar-tests (Depends-on): Likewise.
77737         * tests/test-time.c: Test for NULL compliance.
77738         * tests/test-wchar.c: Likewise.
77739         * modules/locale (Depends-on): Add stddef.
77740         * modules/stdio (Depends-on): Likewise.
77741         * modules/stdlib (Depends-on): Likewise.
77742         * modules/string (Depends-on): Likewise.
77743         * modules/time (Depends-on): Likewise.
77744         * modules/unistd (Depends-on): Likewise.
77745         * modules/wchar (Depends-on): Likewise.
77746         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
77747         * lib/stdlib.in.h (includes): Likewise.
77748         * lib/string.in.h (includes): Likewise.
77749         * lib/time.in.h (includes): Likewise.
77750         * lib/unistd.in.h (includes): Likewise.
77751         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
77752         replaced.
77753         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77754         * m4/stddef_h.m4: New file.
77755         * modules/stddef: Likewise.
77756         * lib/stddef.in.h: Likewise.
77757         * modules/stddef-tests: Likewise.
77758         * tests/test-stddef.c: Likewise.
77759         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
77760         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
77761         * doc/posix-headers/locale.texi (locale.h): Likewise.
77762         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
77763         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
77764         * doc/posix-headers/string.texi (string.h): Likewise.
77765         * doc/posix-headers/time.texi (time.h): Likewise.
77766         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
77767         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
77769 2009-08-14  Eric Blake  <ebb9@byu.net>
77771         doc: improve git diff of texinfo files
77772         * .gitattributes: Add rule for *.texi files, with hint on how to
77773         use it.
77774         Copied from m4, and based on a report by Bruno Haible.
77776 2009-08-14  Bruno Haible  <bruno@clisp.org>
77778         Disable multithread support by default on Cygwin 1.5.x for real.
77779         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
77781 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
77783         update-copyright: much ado about intervals
77784         * build-aux/update-copyright: Implement and document
77785         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
77786         of copyright year intervals.
77787         Also, document UPDATE_COPYRIGHT_YEAR.
77788         * tests/test-update-copyright.sh: Test it.
77790         update-copyright: convert 2-digit to 4-digit years
77791         * build-aux/update-copyright: Implement and document.
77792         * tests/test-update-copyright.sh: Update.
77794 2009-08-14  Jim Meyering  <meyering@redhat.com>
77796         test-exclude: avoid coreutils "make check" failure
77797         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
77798         just as in test-argmatch.c.
77800 2009-08-13  Eric Blake  <ebb9@byu.net>
77802         test-dup2: fix bad assumption
77803         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
77804         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
77806         test-version-etc: fix CRLF portability issue
77807         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
77808         recognize \r.
77809         * tests/test-argp-version-etc-1.sh: Likewise.
77811         getopt: update client modules
77812         * modules/argp (Depends-on): Use getopt-gnu.
77813         * modules/git-merge-changelog (Depends-on): Likewise.
77814         * modules/long-options (Depends-on): Likewise.
77815         * modules/xstrtol (Depends-on): Likewise.
77817 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77819         * tests/test-version-etc.sh: Don't fail on different
77820         project/version.  Don't fail on CRLF differences.  Rewrite to use
77821         multiple -e instead of multiple sed forks, suggested by Eric Blake
77822         <ebb9@byu.net>.
77823         * tests/test-argp-version-etc-1.sh: Likewise.
77825 2009-08-13  Simon Josefsson  <simon@josefsson.org>
77827         * tests/test-version-etc.sh: Don't fail on different
77828         project/version.
77830 2009-08-12  Bruno Haible  <bruno@clisp.org>
77832         Tests for modules 'getopt-posix', 'getopt-gnu'.
77833         * modules/getopt-posix-tests: New file.
77834         * tests/test-getopt.c: New file.
77835         * tests/test-getopt.h: New file.
77836         * tests/test-getopt_long.h: New file.
77838         New modules 'getopt-posix', 'getopt-gnu'.
77839         * modules/getopt-gnu: New file, renamed from modules/getopt.
77840         * modules/getopt-posix: New file.
77841         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
77842         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
77843         (gl_GETOPT): Remove macro.
77844         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
77845         Disable the test against BSD systems that declare optreset. Test
77846         against mingw bug. Test against lack of support of optional arguments
77847         on many platforms.
77848         * doc/glibc-headers/getopt.texi: Update module name and list of
77849         relevant platforms.
77850         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
77851         'getopt-gnu' and more portability problems.
77852         * NEWS: Mention the changes.
77854 2009-08-12  Bruno Haible  <bruno@clisp.org>
77856         Ensure that optarg etc. get declared by <unistd.h>.
77857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
77858         AC_USE_SYSTEM_EXTENSIONS.
77859         * modules/getopt (Depends-on): Add 'extensions'.
77861 2009-08-12  Bruno Haible  <bruno@clisp.org>
77863         Avoid test link errors.
77864         * modules/pipe-filter-ii-tests (Makefile.am): Define
77865         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
77866         * modules/pipe-filter-gi-tests (Makefile.am): Define
77867         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
77868         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
77870 2009-08-12  Bruno Haible  <bruno@clisp.org>
77872         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
77873         gl_GETOPT_SUBSTITUTE before.
77874         (gl_GETOPT): Use it.
77875         * m4/argp.m4 (gl_ARGP): Update.
77876         Reported by Sergey Poznyakoff.
77878         * m4/getopt.m4: Reorder macros.
77879         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
77880         (gl_GETOPT_SUBSTITUTE): Remove macro.
77882 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77884         Minor improvement in gitlog-to-changelog
77886         * build-aux/gitlog-to-changelog: New option `--format' makes
77887         output format string configurable.
77889 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77891         Optimize exclude: use hash tables for non-wildcard patterns.
77893         * lib/exclude.c: Include hash.h and mbuiter.h
77894         (struct exclude_pattern, exclude_segment): New data types.
77895         (struct exclude): Rewrite.
77896         (fnmatch_pattern_has_wildcards): New function.
77897         (new_exclude_segment, free_exclude_segment): New functions.
77898         (excluded_file_pattern_p, excluded_file_name_p): New functions.
77899         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
77900         * lib/exclude.h (is_fnmatch_pattern): New prototype.
77901         * modules/exclude: Depend on hash and mbuiter.
77903         * modules/exclude-tests: New file.
77904         * tests/test-exclude.c: New file.
77905         * tests/test-exclude1.sh: New file.
77906         * tests/test-exclude2.sh: New file.
77907         * tests/test-exclude3.sh: New file.
77908         * tests/test-exclude4.sh: New file.
77909         * tests/test-exclude5.sh: New file.
77910         * tests/test-exclude6.sh: New file.
77911         * tests/test-exclude7.sh: New file.
77913 2009-08-12  Bruno Haible  <bruno@clisp.org>
77915         Ensure that getopt() gets declared by <unistd.h>.
77916         * lib/unistd.in.h: Conditionally include getopt.h.
77917         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
77918         Set GNULIB_UNISTD_H_GETOPT.
77919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77920         GNULIB_UNISTD_H_GETOPT.
77921         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
77923 2009-08-12  Bruno Haible  <bruno@clisp.org>
77925         Clarify logic.
77926         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
77927         gl_replace_getopt instead of GETOPT_H.
77929 2009-08-12  Bruno Haible  <bruno@clisp.org>
77931         * m4/getopt.m4: Add comments.
77933 2009-08-12  Bruno Haible  <bruno@clisp.org>
77935         Disable multithread support by default on Cygwin 1.5.x.
77936         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
77937         set gl_use_threads=no if not specified otherwise.
77939 2009-08-11  Bruno Haible  <bruno@clisp.org>
77941         Avoid compilation error on NetBSD 5.0.
77942         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
77943         * tests/test-stdio.c: Likewise.
77944         * tests/test-stdlib.c: Likewise.
77945         * tests/test-string.c: Likewise.
77946         * tests/test-unistd.c: Likewise.
77947         Reported by Greg Troxel <gdt@ir.bbn.com>
77948         at <https://savannah.gnu.org/support/?106973>.
77950 2009-08-11  Bruno Haible  <bruno@clisp.org>
77952         * modules/dup2-tests (Depends-on): Remove close.
77954         Undo 2009-07-19 commit.
77955         * modules/acl-tests (Depends-on): Remove close.
77956         * modules/binary-io-tests (Depends-on): Likewise.
77957         * modules/closein-tests (Depends-on): Likewise.
77958         * modules/flock-tests (Depends-on): Likewise.
77959         * modules/fsync-tests (Depends-on): Likewise.
77960         * modules/lseek-tests (Depends-on): Likewise.
77961         * modules/pipe-tests (Depends-on): Likewise.
77962         * modules/posix_spawn-tests (Depends-on): Likewise.
77963         * modules/posix_spawnp-tests (Depends-on): Likewise.
77964         * modules/stat-time-tests (Depends-on): Likewise.
77965         * modules/yesno-tests (Depends-on): Likewise.
77967 2009-08-10  Bruno Haible  <bruno@clisp.org>
77969         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
77971 2009-08-10  Bruno Haible  <bruno@clisp.org>
77973         Fix a gcc warning.
77974         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
77976 2009-08-10  Bruno Haible  <bruno@clisp.org>
77978         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
77979         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
77980         not only the first time.
77981         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
77982         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
77983         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
77984         is 1, not only the first time.
77986 2009-08-10  Bruno Haible  <bruno@clisp.org>
77988         Make it possible to use module 'gethostname' without module 'close'.
77989         * lib/unistd.in.h (close): Evoke a link error only if
77990         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
77991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77992         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77993         * modules/unistd (Makefile.am): Substitute
77994         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77995         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
77996         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
77997         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
77998         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
77999         * modules/sys_ioctl (Makefile.am): Substitute
78000         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78001         * modules/socket (configure.ac): On native Windows, set
78002         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
78003         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
78004         Reported by Sam Steingold <sds@gnu.org>.
78006 2009-08-10  Bruno Haible  <bruno@clisp.org>
78008         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
78009         * modules/ioctl (configure.ac): Likewise.
78011 2009-08-10  Bruno Haible  <bruno@clisp.org>
78013         Avoid collision between gnulib wrapper and libintl wrapper.
78014         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
78015         already defined in intl/printf.c.
78016         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
78017         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
78019 2009-08-09  Bruno Haible  <bruno@clisp.org>
78021         Make <sys/select.h> really self-contained, also on Solaris 10.
78022         * lib/sys_select.in.h: Include <string.h>.
78023         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
78024         Solaris 10 problem.
78025         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
78026         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
78027         Reported by Jim Meyering.
78029 2009-08-09  Bruno Haible  <bruno@clisp.org>
78031         Avoid warnings from 'aclocal' that are due to a use of macro name
78032         AM_XGETTEXT_OPTION that is not defined in automake.
78033         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
78034         automake.
78035         * modules/error (configure.ac): Likewise.
78036         * modules/propername (configure.ac): Likewise.
78037         * modules/vasprintf (configure.ac): Likewise.
78038         * modules/verror (configure.ac): Likewise.
78039         * modules/xprintf (configure.ac): Likewise.
78040         * modules/xvasprintf (configure.ac): Likewise.
78042 2009-08-08  Bruno Haible  <bruno@clisp.org>
78044         Avoid compilation error in C++ mode.
78045         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
78046         Reported by Sam Steingold <sds@gnu.org>.
78048 2009-08-08  Bruno Haible  <bruno@clisp.org>
78050         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
78051         for the various Unix platforms.
78052         * doc/posix-headers/limits.texi: Update platforms list regarding
78053         HOST_NAME_MAX.
78054         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78056 2009-08-07  Jim Meyering  <meyering@redhat.com>
78058         selinux-at: fix typo in a comment
78059         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
78060         Spotted by Paolo Bonzini.
78062         selinux-at: remove redundant m4 code, add documentation
78063         * modules/selinux-at (configure.ac): Remove redundant code.
78064         LIB_SELINUX is already set via the dependent module, selinux-h.
78065         (Include): Add quotes around selinux-at.h.
78066         * lib/selinux-at.h: Add documentation.
78067         Reported by Bruno Haible in
78068         http://marc.info/?l=gnulib-bug&m=124958988300749
78070 2009-08-07  Bruno Haible  <bruno@clisp.org>
78072         Avoid link error on MacOS X 10.3 and 10.4.
78073         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
78074         on non-ELF systems.
78075         * lib/argp-pv.c (argp_program_version): Likewise.
78076         Reported by Simon Josefsson.
78078 2009-08-07  Simon Josefsson  <simon@josefsson.org>
78080         * tests/test-version-etc.sh: Use $EXEEXT.
78082 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
78084         update-copyright: update documentation to point to maint.mk
78085         * build-aux/update-copyright: Here.
78087 2009-08-06  Jim Meyering  <meyering@redhat.com>
78089         maint.mk: support update-copyright-local
78090         * top/maint.mk (update-copyright-local): Define place-holder.
78091         (update-copyright): Depend on $(update-copyright-local).
78093 2009-08-06  Jim Meyering  <meyering@redhat.com>
78095         selinux-at: new module
78096         Initially written for coreutils, this module will soon be
78097         used by findutils, too.
78098         * MODULES.html.sh [Misc]: Add selinux-at.
78099         * lib/selinux-at.h: New file, from coreutils.
78100         * lib/selinux-at.c: Likewise.
78101         * modules/selinux-at: Likewise.
78102         (License): Change from LGPL to GPL, since it depends
78103         on the GPL'd openat module.
78105         doc: update README
78106         * README: Remove references to cogito.
78107         Remove cvs-repo-updating instructions from 2007.
78108         Don't imply that CVS is better if you have limited disk space.
78110 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78112         update-copyright: support C-style comments
78113         * build-aux/update-copyright: Implement and document.
78114         * tests/test-update-copyright.sh: Test.
78116 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78118         update-copyright: support omitted "(C)"
78119         * build-aux/update-copyright: Implement and document.  Also,
78120         allow variable whitespace before "(C)".
78121         * tests/test-update-copyright.sh: Test.
78123 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78125         update-copyright: don't trip on non-FSF copyright statements
78126         * build-aux/update-copyright: Fix so that the first correctly
78127         formatted FSF copyright statement is recognized no matter what
78128         appears before it.  Update documentation.
78129         * tests/test-update-copyright.sh: Test that.
78131 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78133         update-copyright: clean up code a little
78134         * build-aux/update-copyright: Append "_re" to the name of any
78135         variable holding a regular expression.
78136         Replace "old" and "new" with "stmt" in variable names.
78137         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
78138         handled correctly.
78139         Format code more consistently.
78141 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
78143         update-copyright-tests: improve portability
78144         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
78145         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
78147 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78149         update-copyright: support @copyright{} and &copy;
78150         * build-aux/update-copyright: Implement and document.
78151         * tests/test-update-copyright.sh: Test.
78153 2009-08-04  Jim Meyering  <meyering@redhat.com>
78155         update-copyright-tests: correctly test EOL=\r\n handling
78156         * tests/test-update-copyright.sh: Put \r at the end of some lines
78157         for the dos-eol tests.  Based on a patch by Joel E. Denny.
78159         maint.mk: make update-copyright exclusion list more configurable
78160         * top/maint.mk (update-copyright): Default to excluding COPYING,
78161         but allow an override, in case someone does want to update that file.
78163         maint.mk: don't update copyright date in COPYING
78164         * top/maint.mk (update-copyright): Exclude COPYING.
78166         maint.mk: add a copyright-updating rule
78167         * top/maint.mk (update-copyright): New rule.
78168         Derived from coreutils/Makefile.am.
78170         update-copyright: rename some variables
78171         * build-aux/update-copyright: Rename a few variables for clarity.
78172         Tweak syntax.  List Joel E. Denny as coauthor.
78174 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
78176         update-copyright: fix bug for 2-digit last year and add tests
78177         * build-aux/update-copyright: Fix bug.
78178         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
78179         specified.
78180         * modules/update-copyright-tests: New
78181         * tests/test-update-copyright.sh: New.
78183 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78185         update-copyright: handle leading tabs in line prefix
78186         * build-aux/update-copyright: Count leading tabs as 8 spaces
78187         when computing margin.  This helps with the formatting of
78188         ChangeLogs, for example.
78189         Fix documentation a little.
78191 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78193         update-copyright: support EOL=\r\n
78194         * build-aux/update-copyright: Implement that.
78196 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
78198         update-copyright: automatically format copyright statements
78199         * build-aux/update-copyright: Implement that.
78200         Also, be a little more predictable and safer by always failing
78201         when the full copyright format is not perfectly recognized as an
78202         unbroken whole.  Discussed at
78203         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
78204         Rewrite documentation.
78206 2009-08-03  Bruno Haible  <bruno@clisp.org>
78208         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
78210 2009-08-02  Bruno Haible  <bruno@clisp.org>
78212         Tests for module 'uname'.
78213         * modules/uname-tests: New file.
78214         * tests/test-uname.c: New file.
78216         New module 'uname'.
78217         * lib/uname.c: New file.
78218         * m4/uname.m4: New file.
78219         * modules/uname: New file.
78220         * doc/posix-functions/uname.texi: Mention the new module.
78222 2009-08-02  Bruno Haible  <bruno@clisp.org>
78224         Tests for module 'sys_utsname'.
78225         * modules/sys_utsname-tests: New file.
78226         * tests/test-sys_utsname.c: New file.
78228         New module 'sys_utsname'.
78229         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
78230         * m4/sys_utsname_h.m4: New file.
78231         * modules/sys_utsname: New file.
78232         * doc/posix-headers/sys_utsname.texi: Mention the new module.
78234 2009-08-02  Bruno Haible  <bruno@clisp.org>
78236         Implicitly initialize the sockets library.
78237         * lib/gethostname.c: Include sockets.h.
78238         (rpl_gethostname): Invoke gl_sockets_startup.
78239         * lib/socket.c: Include sockets.h.
78240         (rpl_socket): Invoke gl_sockets_startup.
78241         * modules/gethostname (Depends-on): Add sockets.
78242         * modules/socket (Depends-on): Likewise.
78243         * tests/test-poll.c: Don't include sockets.h.
78244         (main): Don't invoke gl_sockets_startup.
78245         * tests/test-select.c: Don't include sockets.h.
78246         (main): Don't invoke gl_sockets_startup.
78248 2009-08-02  Bruno Haible  <bruno@clisp.org>
78250         Allow multiple calls to gl_sockets_startup.
78251         * lib/sockets.c (initialized_sockets_version): New variable.
78252         (gl_sockets_startup): Do nothing if already called for this or a higher
78253         version.
78254         (gl_sockets_cleanup): Reset initialized_sockets_version.
78256 2009-08-03  Simon Josefsson  <simon@josefsson.org>
78258         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
78259         different project/version.
78261 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
78262             Bruno Haible  <bruno@clisp.org>
78264         Tests for module 'pipe-filter-gi'.
78265         * modules/pipe-filter-gi-tests: New file.
78266         * tests/test-pipe-filter-gi1.sh: New file.
78267         * tests/test-pipe-filter-gi1.c: New file.
78268         * tests/test-pipe-filter-gi2.sh: New file.
78269         * tests/test-pipe-filter-gi2-main.c: New file.
78270         * tests/test-pipe-filter-gi2-child.c: New file.
78272         New module 'pipe-filter-gi'.
78273         * lib/pipe-filter-gi.c: New file.
78274         * modules/pipe-filter-gi: New file.
78276 2009-08-02  Bruno Haible  <bruno@clisp.org>
78277             Paolo Bonzini  <bonzini@gnu.org>
78279         Tests for module 'pipe-filter-ii'.
78280         * modules/pipe-filter-ii-tests: New file.
78281         * tests/test-pipe-filter-ii1.sh: New file.
78282         * tests/test-pipe-filter-ii1.c: New file.
78283         * tests/test-pipe-filter-ii2.sh: New file.
78284         * tests/test-pipe-filter-ii2-main.c: New file.
78285         * tests/test-pipe-filter-ii2-child.c: New file.
78287         New module 'pipe-filter-ii'.
78288         * lib/pipe-filter.h: New file.
78289         * lib/pipe-filter-ii.c: New file.
78290         * lib/pipe-filter-aux.h: New file.
78291         * modules/pipe-filter-ii: New file.
78293 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78295         * lib/gc-libgcrypt.c: Change copyright to FSF.
78296         * lib/gc-gnulib.c: Likewise.
78298 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
78300         * lib/gethostname.c: Include limits.h.
78302 2009-08-02  Simon Josefsson  <simon@josefsson.org>
78303             Bruno Haible  <bruno@clisp.org>
78305         Ensure HOST_NAME_MAX as part of the gethostname module.
78306         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
78307         define also HOST_NAME_MAX.
78308         * tests/test-gethostname.c: Include <limits.h>.
78309         (main): Check also HOST_NAME_MAX.
78310         * doc/posix-headers/limits.texi: Document the mingw problem.
78312 2009-08-02  Bruno Haible  <bruno@clisp.org>
78314         * lib/gethostname.c (gethostname): Fix handling of large len argument.
78315         Add comments.
78317 2009-03-31  Simon Josefsson  <simon@josefsson.org>
78319         * lib/gethostname.c: Add Windows wrapper.
78320         * m4/gethostname.m4: Look for gethostname in -lws2_32.
78321         * modules/gethostname: Depend on sys_socket & errno, for also
78322         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
78323         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
78325 2009-07-31  Jim Meyering  <meyering@redhat.com>
78327         getloadavg: fix symbol name in comment
78328         * lib/getloadavg.c: Correct a typo I introduced when adding
78329         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
78330         Matt Kraai spotted the problem.
78332 2009-07-29  Matt Kraai  <mkraai@beckman.com>
78334         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
78335         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
78336         code also if ! defined N_NAME_POINTER.
78337         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
78338         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
78339         but the n_name member is a 12-byte array.
78341 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
78343         update-copyright: generalize comment handling
78344         * build-aux/update-copyright: Handle copyright statements
78345         within more comment styles.
78346         Document usage.
78347         Report any file with an external copyright holder or parse failure.
78349 2009-07-29  Jim Meyering  <meyering@redhat.com>
78351         mktime: correct setting of REPLACE_MKTIME
78352         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
78354         update-copyright: new module
78355         * modules/update-copyright: New file.
78356         * build-aux/update-copyright: New file.
78357         * MODULES.html.sh (maint+release support): Add update-copyright.
78359 2009-07-27  Bruno Haible  <bruno@clisp.org>
78361         Fix compilation error when <ctime> is used and mktime is replaced.
78362         * lib/time.in.h (mktime): New declaration.
78363         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
78364         REPLACE_MKTIME instead of defining mktime in config.h.
78365         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
78366         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
78367         Reported by Ross McFarland <rwmcfa1@neces.com>.
78369 2009-07-27  Bruno Haible  <bruno@clisp.org>
78371         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
78372         Reported by Matt Kraai <mkraai@beckman.com>.
78374 2009-07-25  Jim Meyering  <meyering@redhat.com>
78376         maint.mk: avoid warnings about missing files
78377         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
78378         diagnostic when .prev-version does not exist.
78379         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
78380         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
78381         nonexistent cfg.mk.
78382         Suggestions from Simon Josefsson.
78384 2009-07-25  Bruno Haible  <bruno@clisp.org>
78386         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
78387         defined as macros. Needed on QNX 6.4.1.
78388         Reported by Matt Kraai <mkraai@beckman.com>.
78390 2009-07-23  Jim Meyering  <meyering@redhat.com>
78392         maint.mk: invoke "make dist" with a working value of XZ_OPT
78393         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
78395 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
78397         Make fseeko.c compile on QNX.
78398         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
78400 2009-07-22  Peter Simons  <simons@cryp.to>
78402         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
78403         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
78404         * lib/md4.h: Likewise.
78405         * lib/md5.h: Likewise.
78406         * lib/sha1.h: Likewise.
78407         * lib/sha256.h: Likewise.
78408         * lib/sha512.h: Likewise.
78410         tests-sha1: don't assign literal string to 'char *' variable
78411         * tests/test-sha1.c (main): Declare locals with "const" to match
78412         attributes of the right hand side.
78414 2009-07-21  Eric Blake  <ebb9@byu.net>
78416         dup2: fix more mingw problems
78417         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
78418         fd to itself.
78419         * doc/posix-functions/dup2.texi (dup2): Document the bug.
78420         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
78421         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
78422         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
78423         care of mingw bugs.
78425 2009-07-21  Jim Meyering  <meyering@redhat.com>
78427         vc-list-files: avoid failure when /bin/sh is dash
78428         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
78429         On some Debian based systems, /bin/sh is a symlink to dash, and running
78430         this command would omit the "/" following each 'tests' prefix:
78431           dash -x build-aux/vc-list-files -C . tests
78432         That is because bash and dash work differently:
78433           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
78434           bash ok
78435           dash odd
78437 2009-07-21  Eric Blake  <ebb9@byu.net>
78439         dup2-tests: test previous patch
78440         * modules/dup2-tests: New file.
78441         * tests/test-dup2.c: Likewise.
78442         * tests/test-open.c (main): Avoid unspecified behavior.
78443         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
78444         test.
78446         dup2: work around mingw and cygwin 1.5 bug
78447         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
78448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78449         * modules/unistd (Makefile.am): Substitute it.
78450         * lib/unistd.in.h (dup2): Declare the replacement.
78451         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
78452         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
78453         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
78454         * modules/execute (Depends-on): Add dup2.
78455         * modules/fseterr (Depends-on): Likewise.
78456         * modules/pipe (Depends-on): Likewise.
78457         * modules/posix_spawn-internal (Depends-on): Likewise.
78459 2009-07-21  Bruno Haible  <bruno@clisp.org>
78461         * modules/.gitattributes: New file.
78463 2009-07-20  Bruno Haible  <bruno@clisp.org>
78465         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
78466         (main): Use it.
78468 2009-07-20  Eric Blake  <ebb9@byu.net>
78470         test-pipe: make a bit more robust.
78471         * tests/test-pipe.c (myerr): Allow error messages regardless of
78472         what we do to stderr.
78473         (test_pipe): Rearrange to avoid deadlock.
78474         (child_main): Try a larger read, to ensure we avoided deadlock.
78475         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
78476         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
78477         if misused.
78479 2009-07-19  Jim Meyering  <meyering@redhat.com>
78481         fts: avoid false-positive cycle-detection
78482         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
78483         for each new command line argument.
78485 2009-07-19  Bruno Haible  <bruno@clisp.org>
78487         Fix build error on mingw with the modules sys_select and unistd.
78488         * modules/acl-tests (Depends-on): Add close.
78489         * modules/binary-io-tests (Depends-on): Likewise.
78490         * modules/closein-tests (Depends-on): Likewise.
78491         * modules/flock-tests (Depends-on): Likewise.
78492         * modules/fsync-tests (Depends-on): Likewise.
78493         * modules/lseek-tests (Depends-on): Likewise.
78494         * modules/pipe-tests (Depends-on): Likewise.
78495         * modules/posix_spawn-tests (Depends-on): Likewise.
78496         * modules/posix_spawnp-tests (Depends-on): Likewise.
78497         * modules/stat-time-tests (Depends-on): Likewise.
78498         * modules/yesno-tests (Depends-on): Likewise.
78500 2009-07-19  Bruno Haible  <bruno@clisp.org>
78502         Unify conditionals.
78503         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
78504         macros, not at the compiler macros.
78505         * lib/pipe.c: Likewise.
78506         * lib/execute.c: Likewise.
78507         * lib/spawni.c: Likewise.
78509 2009-07-19  Bruno Haible  <bruno@clisp.org>
78511         Fix handling of closed stdin/stdout/stderr on mingw.
78512         * lib/w32spawn.h: Include unistd.h.
78513         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
78514         file descriptor with O_NOINHERIT flag.
78515         (fd_safer_noinherit): New function, based on fd-safer.c.
78516         (dup_safer_noinherit): New function, based on dup-safer.c.
78517         (undup_safer_noinherit): New function.
78518         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
78519         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
78520         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
78521         instead of fd_safer.
78522         * tests/test-pipe.c: Include <windows.h>.
78523         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
78524         result.
78526         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
78527         from main.
78528         (test_pipe): Pass an extra argument for disambiguation.
78529         (main): Invoke parent_main or child_main.
78531         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
78532         consistently.
78534 2009-07-18  Eric Blake  <ebb9@byu.net>
78536         test-pipe: fix mingw build
78537         * tests/test-pipe.c (main): Avoid fcntl on mingw.
78539 2009-07-18  Bruno Haible  <bruno@clisp.org>
78541         * modules/pipe-tests (Makefile.am): Fix typo.
78543 2009-07-18  Eric Blake  <ebb9@byu.net>
78545         error: fix mingw build
78546         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
78547         Reported by Bruno Haible.
78549         error: avoid undefined use of stdout
78550         * lib/error.c (error, error_at_line): Check that fd 1 is open
78551         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
78552         is handling faults and the close_stdout module wants to report the
78553         detection of closed stdout as an error.
78555 2009-07-17  Eric Blake  <ebb9@byu.net>
78557         pipe: be robust in face of closed fds
78558         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
78559         should cause child to misbehave.
78560         * modules/pipe-tests: New module.
78561         * tests/test-pipe.c: New file.
78562         * tests/test-pipe.sh: New file.
78563         Reported by Akim Demaille.
78565 2009-07-14  Bruno Haible  <bruno@clisp.org>
78567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
78568         Reported by anonymous kc.
78570 2009-07-07  Jim Meyering  <meyering@redhat.com>
78572         maint.mk: don't look for translatable strings in *.m4 or *.mk
78573         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
78574         when searching for translatable strings.
78576 2009-07-05  Jim Meyering  <meyering@redhat.com>
78578         remove superfluous parentheses in STREQ definition
78579         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
78580         * lib/getugroups.c (STREQ): Likewise.
78581         * lib/fnmatch.c (STREQ): Likewise.
78582         Spotted by Bruno Haible.
78584 2009-07-04  Jim Meyering  <meyering@redhat.com>
78586         argv-iter: new module
78587         * MODULES.html.sh: Add argv-iter.
78588         * lib/argv-iter.c, lib/argv-iter.h: New files.
78589         * modules/argv-iter: New file.
78590         * modules/argv-iter-tests: New file.
78591         * tests/test-argv-iter.c: Test it.
78593 2009-07-04  Bruno Haible  <bruno@clisp.org>
78595         Fix assertion.
78596         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
78597         contains more exact copies of a given entry than file2, leave the extra
78598         copies unpaired rather than aborting.
78599         Reported by Eric Blake.
78601 2009-07-02  Bruno Haible  <bruno@clisp.org>
78603         Speedup git-merge-changelog for git cherry-pick.
78604         * lib/git-merge-changelog.c (struct entries_mapping): New type.
78605         (entries_mapping_get): New function, extracted from compute_mapping.
78606         (entries_mapping_reverse_get): New function.
78607         (compute_mapping): Add a 'full' argument. Return the result in a
78608         'struct entries_mapping'.
78609         (main): Update. Access the mappings through entries_mapping_get.
78610         Reported by Eric Blake.
78612 2009-07-02  Bruno Haible  <bruno@clisp.org>
78614         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
78615         best_i.
78617 2009-07-02  Bruno Haible  <bruno@clisp.org>
78619         Speed up approximate search for matching ChangeLog entries.
78620         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
78621         argument. Call fstrcmp_bounded instead of fstrcmp.
78622         (compute_mapping, try_split_merged_entry, main): Update callers.
78624 2009-07-02  Bruno Haible  <bruno@clisp.org>
78626         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
78628 2009-06-30  Bruno Haible  <bruno@clisp.org>
78630         Reduce the number of uc_is_cased calls.
78631         * lib/unicase.h (casing_suffix_context_t): Add
78632         'first_char_except_ignorable' field.
78633         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
78634         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
78635         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
78636         Update initializer.
78637         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
78638         case-ignorable characters.
78639         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
78640         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
78641         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
78642         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
78643         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
78645 2009-06-30  Bruno Haible  <bruno@clisp.org>
78647         Tests for module 'unicase/ignorable'.
78648         * modules/unicase/ignorable-tests: New file.
78649         * tests/unicase/test-ignorable.c: New file, generated by
78650         gen-uni-tables.
78652         Tests for module 'unicase/cased'.
78653         * modules/unicase/cased-tests: New file.
78654         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
78655         * tests/unicase/test-predicate-part1.h: New file, derived from
78656         tests/unictype/test-predicate-part1.h.
78657         * tests/unicase/test-predicate-part2.h: New file, same as
78658         tests/unictype/test-predicate-part2.h.
78660         Fix evaluation of "Before C" condition of FINAL_SIGMA.
78661         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
78662         (output_casing_properties): New function.
78663         (main): Call it.
78664         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
78665         * lib/unicase/cased.c: Include unictype/bitmap.h.
78666         (uc_is_cased): Define through a bitmap lookup.
78667         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
78668         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
78669         (uc_is_case_ignorable): Define through a bitmap lookup.
78670         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
78671         lib/unictype/bitmap.h.
78672         (Depends-on): Add inline. Clean up.
78673         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
78674         lib/unictype/bitmap.h.
78675         (Depends-on): Add inline. Clean up.
78676         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
78677         recognition.
78678         * tests/unicase/test-u16-tolower.c (main): Likewise.
78679         * tests/unicase/test-u32-tolower.c (main): Likewise.
78681 2009-06-30  Bruno Haible  <bruno@clisp.org>
78683         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
78684         * lib/unicase/u16-casemap.c: Likewise.
78685         * lib/unicase/u32-casemap.c: Likewise.
78687 2009-06-29  Bruno Haible  <bruno@clisp.org>
78689         Define u32_casefold as a wrapper around u32_ct_casefold.
78690         * lib/unicase/u32-casefold.c: Update.
78691         * modules/unicase/u32-casefold (Depends-on): Add
78692         unicase/u32-ct-casefold, unicase/empty-prefix-context,
78693         unicase/empty-suffix-context. Clean up.
78695         Define u16_casefold as a wrapper around u16_ct_casefold.
78696         * lib/unicase/u16-casefold.c: Update.
78697         * modules/unicase/u16-casefold (Depends-on): Add
78698         unicase/u16-ct-casefold, unicase/empty-prefix-context,
78699         unicase/empty-suffix-context. Clean up.
78701         Define u8_casefold as a wrapper around u8_ct_casefold.
78702         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
78703         * lib/unicase/u8-casefold.c: Update.
78704         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
78705         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78707         Define u32_totitle as a wrapper around u32_ct_totitle.
78708         * lib/unicase/u32-totitle.c: Update.
78709         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
78710         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78712         Define u16_totitle as a wrapper around u16_ct_totitle.
78713         * lib/unicase/u16-totitle.c: Update.
78714         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
78715         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78717         Define u8_totitle as a wrapper around u8_ct_totitle.
78718         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
78719         functions.
78720         (FUNC): Delegate to U_CT_TOTITLE.
78721         * lib/unicase/u8-totitle.c: Update.
78722         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
78723         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
78725         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
78726         invocation.
78727         * modules/unicase/u32-tolower (Depends-on): Add
78728         unicase/empty-prefix-context, unicase/empty-suffix-context.
78730         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
78731         invocation.
78732         * modules/unicase/u16-tolower (Depends-on): Add
78733         unicase/empty-prefix-context, unicase/empty-suffix-context.
78735         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
78736         * modules/unicase/u8-tolower (Depends-on): Add
78737         unicase/empty-prefix-context, unicase/empty-suffix-context.
78739         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
78740         invocation.
78741         * modules/unicase/u32-toupper (Depends-on): Add
78742         unicase/empty-prefix-context, unicase/empty-suffix-context.
78744         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
78745         invocation.
78746         * modules/unicase/u16-toupper (Depends-on): Add
78747         unicase/empty-prefix-context, unicase/empty-suffix-context.
78749         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
78750         * modules/unicase/u8-toupper (Depends-on): Add
78751         unicase/empty-prefix-context, unicase/empty-suffix-context.
78753         New module 'unicase/u32-ct-casefold'.
78754         * lib/unicase/u32-ct-casefold.c: New file.
78755         * modules/unicase/u32-ct-casefold: New file.
78757         New module 'unicase/u16-ct-casefold'.
78758         * lib/unicase/u16-ct-casefold.c: New file.
78759         * modules/unicase/u16-ct-casefold: New file.
78761         New module 'unicase/u8-ct-casefold'.
78762         * lib/unicase/u8-ct-casefold.c: New file.
78763         * lib/unicase/u-ct-casefold.h: New file, derived from
78764         lib/unicase/u-casefold.h.
78765         * modules/unicase/u8-ct-casefold: New file.
78767         New module 'unicase/u32-ct-totitle'.
78768         * lib/unicase/u32-ct-totitle.c: New file.
78769         * modules/unicase/u32-ct-totitle: New file.
78771         New module 'unicase/u16-ct-totitle'.
78772         * lib/unicase/u16-ct-totitle.c: New file.
78773         * modules/unicase/u16-ct-totitle: New file.
78775         New module 'unicase/u8-ct-totitle'.
78776         * lib/unicase/u8-ct-totitle.c: New file.
78777         * lib/unicase/u-ct-totitle.h: New file, derived from
78778         lib/unicase/u-totitle.h.
78779         * modules/unicase/u8-ct-totitle: New file.
78781         New module 'unicase/u32-ct-tolower'.
78782         * lib/unicase/u32-ct-tolower.c: New file.
78783         * modules/unicase/u32-ct-tolower: New file.
78785         New module 'unicase/u16-ct-tolower'.
78786         * lib/unicase/u16-ct-tolower.c: New file.
78787         * modules/unicase/u16-ct-tolower: New file.
78789         New module 'unicase/u8-ct-tolower'.
78790         * lib/unicase/u8-ct-tolower.c: New file.
78791         * modules/unicase/u8-ct-tolower: New file.
78793         New module 'unicase/u32-ct-toupper'.
78794         * lib/unicase/u32-ct-toupper.c: New file.
78795         * modules/unicase/u32-ct-toupper: New file.
78797         New module 'unicase/u16-ct-toupper'.
78798         * lib/unicase/u16-ct-toupper.c: New file.
78799         * modules/unicase/u16-ct-toupper: New file.
78801         New module 'unicase/u8-ct-toupper'.
78802         * lib/unicase/u8-ct-toupper.c: New file.
78803         * modules/unicase/u8-ct-toupper: New file.
78805         Add context arguments to u*_casemap functions.
78806         * lib/unicase/unicasemap.h: Include unicase.h.
78807         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
78808         suffix_context arguments.
78809         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
78810         functions.
78811         (FUNC): Add prefix_context and suffix_context arguments. Use
78812         uc_is_cased and uc_is_case_ignorable.
78813         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
78814         * lib/unicase/u16-casemap.c: Likewise.
78815         * lib/unicase/u32-casemap.c: Likewise.
78816         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
78817         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78818         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
78819         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78820         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
78821         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
78823         New module 'unicase/u32-suffix-context'.
78824         * lib/unicase/u32-suffix-context.c: New file.
78825         * modules/unicase/u32-suffix-context: New file.
78827         New module 'unicase/u16-suffix-context'.
78828         * lib/unicase/u16-suffix-context.c: New file.
78829         * modules/unicase/u16-suffix-context: New file.
78831         New module 'unicase/u8-suffix-context'.
78832         * lib/unicase/u8-suffix-context.c: New file.
78833         * lib/unicase/u-suffix-context.h: New file.
78834         * modules/unicase/u8-suffix-context: New file.
78836         New module 'unicase/empty-suffix-context'.
78837         * lib/unicase/empty-suffix-context.c: New file.
78838         * modules/unicase/empty-suffix-context: New file.
78840         New module 'unicase/u32-prefix-context'.
78841         * lib/unicase/u32-prefix-context.c: New file.
78842         * modules/unicase/u32-prefix-context: New file.
78844         New module 'unicase/u16-prefix-context'.
78845         * lib/unicase/u16-prefix-context.c: New file.
78846         * modules/unicase/u16-prefix-context: New file.
78848         New module 'unicase/u8-prefix-context'.
78849         * lib/unicase/u8-prefix-context.c: New file.
78850         * lib/unicase/u-prefix-context.h: New file.
78851         * lib/unicase/context.h: New file.
78852         * modules/unicase/u8-prefix-context: New file.
78854         New module 'unicase/empty-prefix-context'.
78855         * lib/unicase/empty-prefix-context.c: New file.
78856         * modules/unicase/empty-prefix-context: New file.
78858         New module 'unicase/ignorable'.
78859         * lib/unicase/ignorable.c: New file.
78860         * modules/unicase/ignorable: New file.
78862         New module 'unicase/cased'.
78863         * lib/unicase/caseprop.h: New file.
78864         * lib/unicase/cased.c: New file.
78865         * modules/unicase/cased: New file.
78867         New functions for case mapping of substrings.
78868         * lib/unicase.h (casing_prefix_context_t): New type.
78869         (unicase_empty_prefix_context): New variable.
78870         (u8_casing_prefix_context, u16_casing_prefix_context,
78871         u32_casing_prefix_context, u8_casing_prefixes_context,
78872         u16_casing_prefixes_context, u32_casing_prefixes_context): New
78873         declarations.
78874         (casing_suffix_context_t): New type.
78875         (unicase_empty_suffix_context): New variable.
78876         (u8_casing_suffix_context, u16_casing_suffix_context,
78877         u32_casing_suffix_context, u8_casing_suffixes_context,
78878         u16_casing_suffixes_context, u32_casing_suffixes_context,
78879         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
78880         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
78881         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
78882         declarations.
78884 2009-06-28  Jim Meyering  <meyering@redhat.com>
78886         boostrap: indent only with spaces
78887         * build-aux/bootstrap: Indent only with spaces, never TABs.
78889         bootstrap: split long lines
78890         * build-aux/bootstrap: Keep line length < 80.
78892         bootstrap: sync from coreutils
78893         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
78894         just as autoreconf does.  Verify a list of prerequisite
78895         package-name,version-number pairs if defined in bootstrap.conf.
78896         Refer to README-prereq, if prerequisites are not satisfied.
78898 2009-06-27  Eric Blake  <ebb9@byu.net>
78900         tests: add test for bogus NULL definition
78901         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
78902         * tests/test-stdlib.c: Likewise.
78903         * tests/test-string.c: Likewise.
78904         * tests/test-locale.c: Likewise.
78905         * tests/test-unistd.c: Likewise.
78906         * modules/stdio-tests (Depends-on): Add verify.
78907         * modules/stdlib-tests (Depends-on): Likewise.
78908         * modules/string-tests (Depends-on): Likewise.
78909         * modules/locale-tests (Depends-on): Likewise.
78910         * modules/unistd-tests (Depends-on): Likewise.
78912 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
78914         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
78915         self-explaining comment.
78916         * m4/selinux-selinux-h: Update serial.
78917         (gl_LIBSELINUX): New macro, adding a warning for missing development
78918         packages to code extracted from...
78919         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
78920         Add warning for missing development packages here, too.
78922 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
78924         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
78926 2009-06-25  Eric Blake  <ebb9@byu.net>
78928         version-etc: fix regression
78929         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
78930         gcc.
78931         (version_etc): Use it, to catch bugs with trailing NULL.
78932         * lib/version-etc.c (version_etc_arn): Delete unused argument.
78933         (version_etc_va): Fix logic bug.
78934         * modules/version-etc-tests: Add test.
78935         * tests/test-version-etc.c: New file.
78936         * tests/test-version-etc.sh: Likewise.
78938 2009-06-25  Sam Steingold  <sds@gnu.org>
78940         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
78941         mbtowc declaration.
78943 2009-06-25  Eric Blake  <ebb9@byu.net>
78945         fpurge: migrate into <stdio.h>
78946         * lib/fpurge.h: Delete...
78947         * lib/stdio.in.h (fpurge): ...and declare here, instead.
78948         * lib/fpurge.c (fpurge): Change declaring header.
78949         * modules/fpurge (Files): Drop deleted file.
78950         (Depends-on): Add stdio.
78951         (configure.ac): Set witness.
78952         * modules/stdio (Makefile.am): Support fpurge macros.
78953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
78954         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
78955         * lib/fflush.c: Update client.
78956         * tests/test-fpurge.c: Likewise.
78957         * NEWS: Mention the change.
78959 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78961         * lib/argp-version-etc.c (program_authors): Add const
78962         qualifier.
78963         * lib/version-etc.c: Fix typos in the comments.
78964         * modules/argp-version-etc: Depends on version-etc.
78966 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78968         argp-version-etc: new module.
78970         * lib/argp-version-etc.c: New file.
78971         * lib/argp-version-etc.h: New file.
78972         * modules/argp-version-etc: New file.
78973         * modules/argp-version-etc-tests: New file.
78974         * tests/test-argp-version-etc.c: New test.
78975         * tests/test-argp-version-etc-1.sh: New test.
78977 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78979         Provide additional interfaces and documentation for version-etc
78980         module.
78982         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
78983         interfaces.
78984         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
78985         prototypes.
78987 2009-06-24  Bruno Haible  <bruno@clisp.org>
78989         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
78990         HAVE_LIB${NAME} macro.
78991         Reported by Sam Steingold <sds@gnu.org>.
78993 2009-06-23  Simon Josefsson  <simon@josefsson.org>
78995         * modules/hash-tests (test_hash_LDADD): Link to libintl when
78996         needed.
78998 2009-06-21  Bruno Haible  <bruno@clisp.org>
79000         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
79001         work.
79002         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
79003         together with LIB${NAME}, LTLIB${NAME}.
79004         Reported by Sam Steingold <sds@gnu.org>.
79006 2009-06-20  Jim Meyering  <meyering@redhat.com>
79008         tests: make sc_require_test_exit_idiom more generic
79009         * top/maint.mk (Exit_witness_file): New overridable variable.
79010         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
79011         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
79013 2009-06-19  Jim Meyering  <meyering@redhat.com>
79015         hash: reverse order of src/dst parameters in an internal interface
79016         * lib/hash.c (transfer_entries): Reverse order of parameters to
79017         put DST before SRC.  Adjust callers.
79019         tests: test-hash: avoid wholesale duplication
79020         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
79021         Instead, use a loop and add a single conditional.
79023         tests: test-hash: allow seed selection via a command line argument
79024         * tests/test-hash.c (get_seed): New function.
79025         (main): Use it.
79027 2009-06-19  Eric Blake  <ebb9@byu.net>
79029         hash: avoid memory leak on allocation failure
79030         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
79031         failure.  Factor repeated algorithm...
79032         (transfer_entries): ...into new helper routine.
79033         (hash_delete): React to hash_rehash return value.
79035         hash: reduce memory pressure in hash_rehash no-op case
79036         * lib/hash.c (next_prime): Avoid overflow.
79037         (hash_initialize): Factor bucket size computation...
79038         (compute_bucket_size): ...into new helper function.
79039         (hash_rehash): Use new function and open coding to reduce memory
79040         pressure, and avoid a memory leak in USE_OBSTACK code.
79041         Reported by Jim Meyering.
79043 2009-06-18  Eric Blake  <ebb9@byu.net>
79045         hash: make rotation more obvious
79046         * modules/hash (Depends-on): Add bitrotate and stdint.
79047         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
79048         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
79049         (SIZE_MAX): Rely on headers for definition.
79050         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
79051         (raw_hasher): Use rotr_sz.
79052         Suggested by Jim Meyering.
79054         hash: fix memory leak in last patch
79055         * lib/hash.c (hash_rehash): Avoid memory leak.
79057         hash: avoid no-op rehashing
79058         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
79060         hash: provide default callback functions
79061         * lib/hash.c (raw_hasher, raw_comparator): New functions.
79062         (hash_initialize): Use them as defaults.
79063         * tests/test-hash.c (main): Test this.
79065         hash: minor optimization
79066         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
79067         when possible.
79068         (hash_initialize): Document this promise.
79069         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
79070         * tests/test-hash.c (hash_compare_strings): Test this.
79072 2009-06-18  Bruno Haible  <bruno@clisp.org>
79074         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
79075         going to be replaced anyway.
79077 2009-06-18  Bruno Haible  <bruno@clisp.org>
79079         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
79080         in one place.
79081         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
79082         be replaced anyway.
79084 2009-06-18  Eric Blake  <ebb9@byu.net>
79086         hash: check for resize before insertion
79087         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
79088         threshold before insertion, so that a pathological hash_rehash
79089         that fills every bucket can still trigger another rehash.
79091 2009-06-18  Jim Meyering  <meyering@redhat.com>
79093         hash-tests: add a loop around the small tests
79094         * tests/test-hash.c (main): Repeat small tests with selected
79095         small initial table sizes.
79097 2009-06-17  Eric Blake  <ebb9@byu.net>
79099         hash: minor cleanups
79100         * lib/hash.h (hash_entry): Make opaque, by moving...
79101         * lib/hash.c (hash_entry): ...here.
79102         (hash_insert): Clarify restrictions on what can be inserted.
79103         (hash_get_next): Clarify when it is safe to remove an element
79104         during traversal.
79105         (check_tuning): Skip verification when tuning is known safe.
79106         (hash_initialize): Clarify restrictions on tuning.
79108 2009-06-17  Jim Meyering  <jim@meyering.net>
79109         and Eric Blake  <ebb9@byu.net>
79111         hash-tests: new module
79112         * modules/hash-tests: New file.
79113         * tests/test-hash.c: New file.
79115 2009-06-17  Eric Blake  <ebb9@byu.net>
79117         strstr-simple: document new module
79118         * MODULES.html.sh: Document new module.
79120         strstr, strcasestr: replace on platforms with broken memchr
79121         * modules/strstr: Split into...
79122         * modules/strstr-simple: ...new module that does not care about
79123         performance, but does care about glibc bug.
79124         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
79125         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
79126         if platform memchr is broken, per Debian bug 521737.
79127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
79128         memchr.
79129         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
79130         * doc/posix-functions/strstr.texi (strstr): Document the fix.
79131         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
79132         * modules/mountlist (Depends-on): Add strstr-simple.
79133         * modules/gen-uni-tables (Depends-on): Likewise.
79134         * modules/argz (Depends-on): Add strstr.
79136 2009-06-17  Bruno Haible  <bruno@clisp.org>
79138         * modules/posix_spawn-internal (Depends-on): Add errno.
79140 2009-06-17  Bruno Haible  <bruno@clisp.org>
79142         Define missing ESTALE on Interix 3.5.
79143         * lib/errno.in.h (ESTALE): Assign a value if missing.
79144         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
79145         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
79146         missing.
79147         * doc/posix-headers/errno.texi: Mention the Interix bug.
79148         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
79150 2009-06-15  Eric Blake  <ebb9@byu.net>
79152         memchr, memchr2: add valgrind exception
79153         * lib/memchr.valgrind: New file.
79154         * lib/memchr2.valgrind: New file.
79155         * modules/memchr (Files): Distribute valgrind file.
79156         * modules/memchr2 (Files): Likewise.
79158         docs: memchr is no longer obsolete
79159         * MODULES.html.sh: Move memchr from obsolete to string.h section.
79160         * lib/string.in.h (memchr): Simplify logic.
79162 2009-06-14  Jim Meyering  <meyering@redhat.com>
79164         link-follow: fix the "checking..." message to not mention trailing slash
79165         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
79166         never considered trailing slashes.
79168 2009-06-14  Bruno Haible  <bruno@clisp.org>
79170         * m4/memchr.m4: Mention also the bug on IA-64.
79171         * doc/posix-functions/memchr.texi: Likewise.
79173 2009-06-12  Eric Blake  <ebb9@byu.net>
79175         memchr: detect broken x86_64 and alpha implementations
79176         * modules/memchr-tests (Depends-on): Move mmap detection...
79177         * modules/memchr (Depends-on): ...here.
79178         (configure.ac): Set indicator.
79179         * lib/string.in.h (memchr): Declare replacement.
79180         * modules/string (Makefile.am): Trigger replacement.
79181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79182         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
79183         bugs.
79184         * doc/posix-functions/memchr.texi (memchr): Document the bug.
79185         * modules/getpagesize (License): Relax license.
79187 2009-06-11  Bruno Haible  <bruno@clisp.org>
79189         * lib/idpriv.h: Add more references.
79191 2009-06-08  Bruno Haible  <bruno@clisp.org>
79193         Tests for module 'idpriv-droptemp'.
79194         * modules/idpriv-droptemp-tests: New file.
79195         * tests/test-idpriv-droptemp.sh: New file.
79196         * tests/test-idpriv-droptemp.su.sh: New file.
79197         * tests/test-idpriv-droptemp.c: New file.
79199         New module 'idpriv-droptemp'.
79200         * lib/idpriv-droptemp.c: New file.
79201         * modules/idpriv-droptemp: New file.
79203 2009-06-08  Bruno Haible  <bruno@clisp.org>
79205         Tests for module 'idpriv-drop'.
79206         * modules/idpriv-drop-tests: New file.
79207         * tests/test-idpriv-drop.sh: New file.
79208         * tests/test-idpriv-drop.su.sh: New file.
79209         * tests/test-idpriv-drop.c: New file.
79211         New module 'idpriv-drop'.
79212         * lib/idpriv.h: New file.
79213         * lib-idpriv-drop.c: New file.
79214         * m4/idpriv.m4: New file.
79215         * modules/idpriv-drop: New file.
79217 2009-06-08  Bruno Haible  <bruno@clisp.org>
79219         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
79220         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79221         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79222         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79223         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79224         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79225         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79227 2009-06-08  Eric Blake  <ebb9@byu.net>
79229         test-strstr: use memory fence, when possible
79230         * tests/test-strstr.c (main): Use memory fence, in order to be
79231         more likely to trigger Debian bug 521737.
79232         * modules/strstr-tests (Files): Pull in additional files.
79234         memchr: no longer obsolete, for wider field testing
79235         * modules/memchr (Status, Notice): Delete, this module is no
79236         longer obsolete.
79237         * modules/vasnprintf (Depends-on): Add memchr.
79239 2009-06-07  Jim Meyering  <meyering@redhat.com>
79241         hash: declare some functions with the warn_unused_result attribute
79242         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
79244 2009-06-07  Bruno Haible  <bruno@clisp.org>
79246         * tests/test-alignof.c: Don't test int64_t if it does not exist.
79247         Reported by Eric Blake.
79249 2009-06-06  Eric Blake  <ebb9@byu.net>
79251         test-alignof: fix typo with long double
79252         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
79253         compiler error.
79255 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
79257         Escape non-texinfo { and }s.
79258         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
79259         markup error.
79261 2009-06-04  Jim Meyering  <meyering@redhat.com>
79263         gitlog-to-changelog: don't infloop on an empty commit log
79264         * build-aux/gitlog-to-changelog: Warn about an empty log message.
79265         Reported by Boris Petersen <transacid@centerim.org>.
79267 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
79269         version-etc: extend for packagers
79270         Add three new configure options, intended for packagers:
79271           --with-packager="packager name"
79272           --with-packager-version="packager-specific version"
79273           --with-packager-bug-reports="packager bug reporting"
79274         An example with coreutils:
79275           $ ./configure \
79276             --with-packager=Gentoo \
79277             --with-packager-bug-report=http://bugs.gentoo.org/ \
79278             --with-packager-version="patchset 1.6"
79279           $ ./src/ls --version | head -n2
79280           ls (GNU coreutils) 7.1-dirty
79281           Packaged by Gentoo (patchset 1.6)
79282         Note that the bug reporting info via --help doesn't show up because
79283         coreutils uses its own custom emit_bug_reporting_address() implementation
79284         in src/system.h.  If it didn't, it'd look like:
79285           $ ./src/ls --help | tail -n4
79286           Report bugs to <bug-coreutils@gnu.org>.
79287           Report Gentoo bugs to <http://bugs.gentoo.org/>.
79288           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
79289           General help using GNU software: <http://www.gnu.org/gethelp/>.
79290         * lib/version-etc.c: Print new information, if provided.
79291         * m4/version-etc.m4: New file.
79292         * modules/version-etc (Files): Add m4/version-etc.m4.
79293         (configure.ac): Add gl_VERSION_ETC.
79295 2009-05-31  Bruno Haible  <bruno@clisp.org>
79297         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
79298         and 'int64_t'.
79299         * modules/alignof-tests (Dependencies): Add stdint.
79300         Reported by Eric Blake.
79302 2009-05-31  Bruno Haible  <bruno@clisp.org>
79304         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
79305         restriction due to compiler bugs.
79306         Reported by Eric Blake.
79308 2009-05-31  Simon Josefsson  <simon@josefsson.org>
79309             Bruno Haible  <bruno@clisp.org>
79311         Fix test-alignof failure.
79312         * lib/alignof.h (alignof_slot): New macro.
79313         (alignof_type): New macro, with the same semantics as the previous
79314         'alignof'.
79315         (alignof): Alias to alignof_slot.
79316         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
79317         check that the results are usable as constant expressions.
79319 2009-05-31  Bruno Haible  <bruno@clisp.org>
79321         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
79322         * tests/test-memchr.c (main): Check that memchr does not read past the
79323         first occurrence of the byte.
79324         * tests/test-strstr.c (main): Update comment.
79325         Suggested by Eric Blake.
79327 2009-05-30  Bruno Haible  <bruno@clisp.org>
79329         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
79330         detail how to use dumpbin.
79331         Reported by David Byron <dbyron@dbyron.com>.
79333 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79335         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
79337 2009-06-02  Simon Josefsson  <simon@josefsson.org>
79339         * m4/manywarnings.m4: Add GCC 4.4 warnings.
79341 2009-05-28  Bruno Haible  <bruno@clisp.org>
79343         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
79344         build-aux/ files.
79346 2009-05-28  Simon Josefsson  <simon@josefsson.org>
79348         * gnulib-tool (func_import): Transform license on build-aux/ files too.
79350 2009-05-27  Simon Josefsson  <simon@josefsson.org>
79352         * gnulib-tool (sed_transform_main_lib_file)
79353         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
79354         regexps.
79356 2009-05-26  Simon Josefsson  <simon@josefsson.org>
79358         * tests/test-strstr.c: Add another self-test.
79359         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
79360         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
79362 2009-05-23  Bruno Haible  <bruno@clisp.org>
79364         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
79365         change.
79367 2009-05-21  Bruno Haible  <bruno@clisp.org>
79369         Simplify use of mode_t varargs.
79370         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
79371         uses 'mode_t' or 'int'.
79372         * lib/openat.c (openat): Likewise.
79373         * lib/open-safer.c (open_safer): Likewise.
79374         * m4/mode_t.m4: New file.
79375         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
79376         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
79377         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
79378         * modules/open (Files): Add m4/mode_t.m4.
79379         * modules/openat (Files): Likewise.
79380         * modules/fcntl-safer (Files): Likewise.
79381         Suggested by Eric Blake.
79383 2009-05-21  Pádraig Brady  <P@draigbrady.com>
79385         * doc/glibc-functions/fallocate.texi: New file.
79386         * doc/gnulib.texi: Include it.
79388 2009-05-21  Eric Blake  <ebb9@byu.net>
79389             Bruno Haible  <bruno@clisp.org>
79391         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
79392         invocations.
79393         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79395 2009-05-21  Eric Blake  <ebb9@byu.net>
79396             Bruno Haible  <bruno@clisp.org>
79398         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
79399         include_next. Fix of 2008-11-20 commit.
79400         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
79401         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
79402         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
79403         NEXT_MATH_H.
79404         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
79405         instead of NEXT_MATH_H.
79407 2009-05-21  Bruno Haible  <bruno@clisp.org>
79409         Avoid redefinition warnings for SIZE_MAX.
79410         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
79411         Reported by Simon Josefsson.
79413 2009-05-21  Bruno Haible  <bruno@clisp.org>
79415         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
79416         AC_CACHE_VAL.
79418 2009-05-20  Bruno Haible  <bruno@clisp.org>
79420         Make zeroptr.h work on mingw.
79421         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
79422         mprotect.
79423         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
79424         * modules/memchr2-tests (configure.ac): Likewise.
79425         * modules/memcmp-tests (configure.ac): Likewise.
79426         * modules/memmem-tests (configure.ac): Likewise.
79427         * modules/memrchr-tests (configure.ac): Likewise.
79428         Reported by Simon Josefsson.
79430 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79432         * tests/test-glob.c: Include string.h for strcmp prototype.
79434 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79436         * modules/getdelim (Depends-on): Add explicit stdint, although it
79437         was implicitly already pulled in via realloc-posix.
79438         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
79440 2009-05-20  Simon Josefsson  <simon@josefsson.org>
79442         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
79443         G. Christensen" <tgc@jupiterrise.com>.
79444         * m4/sys_socket_h.m4: Check for sa_family_t.
79445         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
79446         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
79447         * tests/test-sys_socket.c: Check that sa_family_t works.
79449 2009-05-18  Eric Blake  <ebb9@byu.net>
79451         maint.mk: allow gnulib_dir in VPATH build
79452         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
79454 2009-05-15  Jim Meyering  <meyering@redhat.com>
79456         maint.mk: Give gnulib_dir a default definition.
79457         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
79458         Thus, most packages no longer need to specify this variable in cfg.mk
79460 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
79462         rename.m4: fix typos that would make non-mingw cross-configure fail
79463         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
79465 2009-05-13  Eric Blake  <ebb9@byu.net>
79467         mmap-anon: avoid out-of-order autoconf expansion
79468         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
79469         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
79470         * modules/memchr-tests (Depends-on): Add extensions.
79471         * modules/memchr2-tests (Depends-on): Add extensions.
79472         * modules/memcmp-tests (Depends-on): Add extensions.
79473         * modules/memmem-tests (Depends-on): Add extensions.
79474         * modules/memrchr-tests (Depends-on): Add extensions.
79476 2009-05-13  Bruno Haible  <bruno@clisp.org>
79478         Make some tests ISO C 99 compliant.
79479         * tests/zerosize-ptr.h: New file.
79480         * tests/test-memchr.c: Include zerosize-ptr.h.
79481         (main): Use a zero-size object pointer instead of NULL.
79482         * tests/test-memchr2.c: Include zerosize-ptr.h.
79483         (main): Use a zero-size object pointer instead of NULL.
79484         * tests/test-memcmp.c: Include zerosize-ptr.h.
79485         (main): Use a zero-size object pointer instead of NULL.
79486         * tests/test-memmem.c: Include zerosize-ptr.h.
79487         (main): Use a zero-size object pointer instead of NULL.
79488         * tests/test-memrchr.c: Include zerosize-ptr.h.
79489         (main): Use a zero-size object pointer instead of NULL.
79490         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
79491         m4/mmap-anon.m4.
79492         (Depends-on): Add getpagesize.
79493         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79494         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
79495         m4/mmap-anon.m4.
79496         (Depends-on): Add getpagesize.
79497         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79498         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
79499         m4/mmap-anon.m4.
79500         (Depends-on): Add getpagesize.
79501         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79502         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
79503         m4/mmap-anon.m4.
79504         (Depends-on): Add getpagesize.
79505         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79506         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
79507         m4/mmap-anon.m4.
79508         (Depends-on): Add getpagesize.
79509         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
79511 2009-05-12  Bruno Haible  <bruno@clisp.org>
79513         Tests for module 'alignof'.
79514         * modules/alignof-tests: New file.
79515         * tests/test-alignof.c: New file.
79517 2009-05-12  Bruno Haible  <bruno@clisp.org>
79519         Fix alignof macro.
79520         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
79521         vendor compilers that are always correct.
79523 2009-05-12  Bruno Haible  <bruno@clisp.org>
79525         Make the MAP_ANONYMOUS detection work on HP-UX 11.
79526         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
79527         not whether its fully works.
79529 2009-05-12  Bruno Haible  <bruno@clisp.org>
79531         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
79533 2009-05-12  Jim Meyering  <meyering@redhat.com>
79535         * top/maint.mk: Adjust backslash alignment.
79537 2009-05-11  Simon Josefsson  <simon@josefsson.org>
79539         * top/maint.mk: Make $(srcdir)/build-aux configurable.
79541 2009-05-11  Eric Blake  <ebb9@byu.net>
79543         argp: avoid undefined behavior
79544         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
79545         macros.
79547 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79549         * tests/test-vc-list-files-git.sh: Do git config of user.email and
79550         user.name to prevent git commit from complaining.
79552 2009-05-10  Bruno Haible  <bruno@clisp.org>
79554         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
79555         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
79556         it rewrites every file name only once.
79557         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
79559 2009-05-08  Bruno Haible  <bruno@clisp.org>
79561         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
79562         instead of 'max'.
79564 2009-05-08  Simon Josefsson  <simon@josefsson.org>
79566         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
79567         sockaddr_storage test.
79569 2009-05-07  Simon Josefsson  <simon@josefsson.org>
79571         * modules/sys_socket (Makefile.am): Substitute
79572         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
79573         * m4/sys_socket_h.m4: Check for sockaddr_storage.
79574         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
79575         * tests/test-sys_socket.c: Check sockaddr_storage.
79577 2009-05-08  Bruno Haible  <bruno@clisp.org>
79579         New module 'alignof'.
79580         * lib/alignof.h: New file.
79581         * modules/alignof: New file.
79583 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79584             Bruno Haible  <bruno@clisp.org>
79586         Fix test-file-has-acl on FreeBSD.
79587         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
79588         mask is implicitly added.
79589         * tests/test-file-has-acl.c: Include <signal.h>.
79590         (main): Terminate the test after 5 seconds.
79591         * modules/acl-tests (configure.ac): Check for alarm function.
79593 2009-05-04  Bruno Haible  <bruno@clisp.org>
79595         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
79596         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
79597         * modules/errno (configure.ac): Drop AC_REQUIRE.
79598         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
79599         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
79601 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79603         * modules/glob-tests: New module.
79604         * tests/test-glob.c: Add.
79606 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79608         * modules/fnmatch-tests: New module.
79609         * tests/test-fnmatch.c: Add.
79611 2009-05-04  Eric Blake  <ebb9@byu.net>
79613         maint: make the new no-submodule-changes rule VPATH-safe
79614         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
79616 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79617             Bruno Haible  <bruno@clisp.org>
79619         acl: Fix infinite loop on FreeBSD.
79620         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
79621         of return value from acl_get_entry.
79622         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
79623         Likewise.
79625 2009-05-03  Bruno Haible  <bruno@clisp.org>
79627         * lib/acl-internal.h (acl_entries): Clarify return value.
79628         * lib/acl_entries.c (acl_entries): Likewise.
79630 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79632         Bug fix in acl module.
79633         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
79635 2009-05-03  Bruno Haible  <bruno@clisp.org>
79637         Create gperf-generated file in the source dir, not in the build dir.
79638         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
79639         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
79640         * modules/unicase/locale-language (unicase/locale-languages.h):
79641         Likewise.
79642         * modules/unicase/special-casing (unicase/special-casing-table.h):
79643         Likewise.
79644         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
79645         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
79646         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
79647         Reported by Ralf Wildenhues.
79649 2009-05-03  Bruno Haible  <bruno@clisp.org>
79651         * modules/fnmatch (Description, configure.ac): Taken from
79652         fnmatch-posix.
79653         * modules/fnmatch-posix: Turn into a symbolic reference to the
79654         'fnmatch' module, and deprecate.
79655         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
79657 2009-05-03  Bruno Haible  <bruno@clisp.org>
79659         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
79660         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
79661         Reported by Ralf Wildenhues.
79663 2009-05-04  Simon Josefsson  <simon@josefsson.org>
79665         * m4/fnmatch.m4: Fix fnmatch re-define.
79667 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
79669         priv-set: new module and tests; adapt write-any-file
79670         * lib/priv-set.c: New file.
79671         * lib/priv-set.h: New file.
79672         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
79673         * lib/write-any-file.c: Simplify by using priv-set module.
79674         * m4/priv-set.m4: New file.
79675         * modules/priv-set: New file.
79676         * modules/unlinkdir: Add dependency on priv-set module.
79677         * modules/write-any-file: Likewise.
79679         Tests for module 'priv-set'.
79680         * modules/priv-set-tests: New file.
79681         * tests/test-priv-set.c: New file.
79683 2009-05-03  Jim Meyering  <meyering@redhat.com>
79684             Bruno Haible  <bruno@clisp.org>
79686         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
79687         use the converted UTF-8 variant of the name instead.
79689 2009-05-03  Jim Meyering  <meyering@redhat.com>
79691         tests: tighten some getdate tests
79692         * tests/test-getdate.c (main): Tighten tests: require equality,
79693         not just greater than.  Set TZ envvar to UTC0.
79695 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
79697         getdate: correctly interpret "next monday" when run on a Monday
79698         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
79699         that e.g., "next tues" (when run on a tuesday) results in a date
79700         that is one week in the future, and not today's date.
79701         I.e., add a week when the wday is the same as the current one.
79702         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
79703         and earlier by Martin Bernreuther and Jan Minář.
79704         * tests/test-getdate.c (main): Check that "next DAY" is always in
79705         the future and that "last DAY" is always in the past.
79707 2009-05-02  Jim Meyering  <meyering@redhat.com>
79709         build: ensure that a release build fails when a submodule is unclean
79710         * top/maint.mk (no-submodule-changes): New rule.
79711         (alpha beta major): Depend on it.
79713 2009-05-02  Bruno Haible  <bruno@clisp.org>
79715         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
79716         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
79717         shell variable gl_fnmatch_required to detect which variant is
79718         requested.
79719         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
79720         gl_FUNC_FNMATCH_POSIX.
79721         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
79722         exclude fnmatch-posix.
79724 2009-05-02  Bruno Haible  <bruno@clisp.org>
79726         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
79727         * modules/mbsrtowcs (License): Change to LGPLv2+.
79728         * modules/strnlen1 (License): Likewise.
79729         Reported by Simon Josefsson.
79731 2009-05-02  Bruno Haible  <bruno@clisp.org>
79733         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
79734         "cross".
79735         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
79736         gnulib-tool was called with option --source-base=lib.
79738 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79740         Use automake *-local hooks without commands, for extensibility.
79741         * modules/localcharset (Makefile.am): Rename install-exec-local
79742         rule to install-exec-localcharset, and make it a prerequisite of
79743         install-exec-local.  Likewise, rename the uninstall-local rule to
79744         uninstall-localcharset, and make it a prerequisite of the former.
79746 2009-05-01  Bruno Haible  <bruno@clisp.org>
79748         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
79749         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79750         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
79751         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
79752         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
79753         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79754         m4/locale-zh.m4, m4/codeset.m4.
79756         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
79757         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
79758         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
79759         m4/locale-zh.m4.
79761         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
79762         REPLACE_WCRTOMB if mbstate_t must be replaced.
79763         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
79764         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
79766 2009-05-01  Bruno Haible  <bruno@clisp.org>
79768         Avoid compiler warnings when redefining macros defined by <libintl.h>.
79769         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
79770         dngettext, dcngettext, textdomain, bindtextdomain,
79771         bind_textdomain_codeset): Undefine before redefining.
79773 2009-04-30  Bruno Haible  <bruno@clisp.org>
79775         Fix bug introduced on 2009-04-25.
79776         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
79777         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
79778         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
79779         is defined.
79780         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
79781         is defined.
79782         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
79783         is defined.
79784         Reported by Elbert_Pol <elbert.pol@gmail.com>.
79786 2009-04-28  Bruno Haible  <bruno@clisp.org>
79788         Comment tweaks.
79789         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
79790         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
79791         * lib/unicase.h (u*_casexfrm): Likewise.
79792         Reported by Paolo Bonzini.
79794 2009-04-28  Bruno Haible  <bruno@clisp.org>
79796         Fix a compilation error.
79797         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
79798         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
79799         Reported by Jim Meyering.
79801 2009-04-27  Bruno Haible  <bruno@clisp.org>
79803         New module 'libunistring'.
79804         * modules/libunistring: New file.
79805         * m4/libunistring.m4: New file.
79806         * MODULES.html.sh (Unicode string functions): Add it.
79808 2009-04-27  Eric Blake  <ebb9@byu.net>
79810         maint.mk: allow package-specific header to provide <config.h>
79811         * top/maint.mk (sc_require_config_h): New variable.
79812         (sc_require_config_h, sc_require_config_h_first): Use it.
79814 2009-04-27  Simon Josefsson  <simon@josefsson.org>
79816         * top/maint.mk (sc_avoid_if_before_free): Except
79817         useless-if-before-free script.
79819 2009-04-27  Eric Blake  <ebb9@byu.net>
79821         maintainer-makefile: depend on all required helper scripts
79822         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
79823         useless-if-before-free.
79824         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
79825         version, rather than assuming gnulib checkout is available.
79826         Reported by Simen Josefsson.
79828 2009-04-26  Bruno Haible  <bruno@clisp.org>
79830         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
79831         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
79832         "../" or "..".
79834 2009-04-26  Bruno Haible  <bruno@clisp.org>
79836         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
79837         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
79838         AC_LIB_HAVE_LINKFLAGS.
79840 2009-04-26  Bruno Haible  <bruno@clisp.org>
79842         Simplify calling convention of u*_conv_from_encoding.
79843         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
79844         u32_conv_from_encoding): Expect a resultbuf argument and return the
79845         result directly as a pointer.
79846         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
79847         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
79848         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
79849         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
79850         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
79851         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79852         Update.
79853         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
79854         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
79855         * lib/vasnprintf.c (VASNPRINTF): Update.
79856         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
79857         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
79858         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
79859         * NEWS: Mention the change.
79861 2009-04-26  Bruno Haible  <bruno@clisp.org>
79863         Simplify calling convention of u*_conv_to_encoding.
79864         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
79865         u32_conv_to_encoding): Expect a resultbuf argument and return the
79866         result directly as a pointer.
79867         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79868         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
79869         freeing scaled_offsets if mem_iconveha failed.
79870         * lib/unicase/u-casexfrm.h (FUNC): Update.
79871         * lib/uninorm/u-normxfrm.h (FUNC): Update.
79872         * lib/vasnprintf.c (VASNPRINTF): Update.
79873         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
79874         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
79875         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
79876         * NEWS: Mention the change.
79878 2009-04-26  Bruno Haible  <bruno@clisp.org>
79880         Avoid test failures on AIX and OSF/1.
79881         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
79882         malloc(0).
79883         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
79884         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
79885         Likewise.
79886         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
79887         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
79888         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
79889         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
79890         * doc/posix-functions/malloc.texi: Document the portability problem
79891         related to malloc(0).
79893 2009-04-26  Bruno Haible  <bruno@clisp.org>
79895         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
79896         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
79897         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
79899 2009-04-25  Bruno Haible  <bruno@clisp.org>
79901         Avoid link error when creating a namespace clean library.
79902         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
79903         as macro with arguments if already defined as an alias.
79904         * lib/signbitf.c (gl_signbitf): Don't undefine.
79905         * lib/signbitd.c (gl_signbitd): Don't undefine.
79906         * lib/signbitl.c (gl_signbitl): Don't undefine.
79908 2009-04-25  Jim Meyering  <meyering@redhat.com>
79910         vc-list-files: fix another quoting bug
79911         * build-aux/vc-list-files: Avoid sed backslash expansion
79912         of pathological directory names.
79914 2009-04-25  Eric Blake  <ebb9@byu.net>
79916         vc-list-files: fix shell quoting error
79917         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
79918         timestamp.
79920 2009-04-25  Jim Meyering  <meyering@redhat.com>
79922         vc-list-files: restore lost functionality with subdir argument
79923         * build-aux/vc-list-files: When given a non-"." sub-directory
79924         argument, substitute the $dir/ prefix back onto each resulting name.
79925         Otherwise, coreutils' root_tests check would fail.
79927 2009-04-24  Eric Blake  <ebb9@byu.net>
79929         vc-list-files: ignore git symlinks
79930         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
79931         than ls-files, to ignore git symlinks.
79933         maint.mk: import improvements from m4
79934         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
79935         (move_if_change): Delete unused macro.
79936         (news-date-check, vc-diff-check): Support VPATH builds.
79937         (announcement): Likewise.  Split --bootstrap-tools list...
79938         (boostrap-tools): ...into separate list, which can be overridden
79939         in cfg.mk.
79940         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
79941         requiring dependency on useless-if-before-free module.
79942         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
79943         Support VPATH builds.
79945 2009-04-24  Jim Meyering  <meyering@redhat.com>
79947         maint.mk: remove coreutils-specific rules and variables
79948         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
79949         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
79950         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
79952         maint.mk: remove obsolete rule
79953         * top/maint.mk (rel-check): Remove rule.
79954         (WGET, WGETFLAGS): Remove now-unused variables.
79956 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79958         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
79959         consistency.
79961         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
79962         '$(PATH_SEPARATOR)' instead of ':'.
79964 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79966         * lib/getopt1.c (main): Use 'const' for static array.
79968 2009-04-24  Simon Josefsson  <simon@josefsson.org>
79970         * top/maint.mk: Sync with coreutils.
79971         * NEWS: Explain incompatibilities.
79973 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79974             Bruno Haible  <bruno@clisp.org>
79976         Fix cross-compilation results.
79977         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
79978         statement, as third argument of AC_TRY_RUN.
79979         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
79980         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
79981         Likewise.
79982         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
79983         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
79984         Likewise.
79985         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
79986         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
79987         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
79989 2009-04-20  Bruno Haible  <bruno@clisp.org>
79991         Avoid test failure on mingw.
79992         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
79994 2009-04-20  Bruno Haible  <bruno@clisp.org>
79996         Avoid compilation error on mingw.
79997         * modules/localename-tests (Depends-on): Add locale.
79999 2009-04-19  Bruno Haible  <bruno@clisp.org>
80001         Support for building a shared library on Windows platforms.
80002         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
80003         (main): Test the presence of UNINORM_NFC here.
80004         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
80005         (main): Test the presence of UNINORM_NFD here.
80006         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
80007         (main): Test the presence of UNINORM_NFKC here.
80008         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
80009         (main): Test the presence of UNINORM_NFKD here.
80011 2009-04-19  Bruno Haible  <bruno@clisp.org>
80013         Avoid a compiler warning.
80014         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
80015         Change type of variable 'sequence'.
80017 2009-04-19  Bruno Haible  <bruno@clisp.org>
80019         * modules/configmake (Makefile.am): When the contents of configmake.h
80020         does not change, arrange to preserve its modification time.
80022 2009-04-17  Simon Josefsson  <simon@josefsson.org>
80024         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
80025         gettext domain.
80027 2009-04-16  Jim Meyering  <meyering@redhat.com>
80029         useless-if-before-free: improve conversion code
80030         * build-aux/useless-if-before-free: Adjust code-in-comment to match
80031         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
80033 2009-04-14  Bruno Haible  <bruno@clisp.org>
80035         * modules/fcntl (Depends-on): Add extensions.
80036         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
80038 2009-04-12  Ben Pfaff  <blp@gnu.org>
80040         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
80041         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
80043 2009-03-20  Ben Pfaff  <blp@gnu.org>
80045         Make rename replace existing destinations on Windows.
80046         * m4/rename.m4: Add test for Mingw.
80047         * lib/rename.c: Add rename replacement that uses MoveFileEx with
80048         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
80049         * doc/posix-functions/rename.texi: Document.
80051 2009-04-10  Bruno Haible  <bruno@clisp.org>
80053         New include file "iconveh.h".
80054         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
80055         * lib/striconveh.h: Include it.
80056         (enum iconv_ilseq_handler): Remove definition.
80057         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
80058         striconveh.h.
80059         * lib/striconveha.c: Include striconveh.h.
80060         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
80061         * modules/striconveh (Files): Add lib/iconveh.h.
80062         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
80063         lib/striconveh.h.
80065 2009-04-10  Bruno Haible  <bruno@clisp.org>
80067         * lib/uniconv.h: Update comment.
80069 2009-04-10  Bruno Haible  <bruno@clisp.org>
80071         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
80072         always.
80073         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
80074         * lib/unistr/u16-mbtouc-aux.c: Likewise.
80075         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
80076         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
80077         "unistring-notinline.h", so that the function gets defined always.
80078         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
80079         * lib/unistr/u8-uctomb.c: Likewise.
80080         * lib/unistr/u16-mbtouc.c: Likewise.
80081         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
80082         * lib/unistr/u16-uctomb.c: Likewise.
80083         * lib/unistr/u32-mbtouc.c: Likewise.
80084         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
80085         * lib/unistr/u32-uctomb.c: Likewise.
80087 2009-04-10  Bruno Haible  <bruno@clisp.org>
80089         Mark 'utime' obsolete.
80090         * modules/utime (Status, Notice): New sections.
80091         Suggested by Jim Meyering.
80093         Fix cross-compile guess for utime test.
80094         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
80095         autoconf.
80096         * doc/posix-functions/utime.texi: Give more precisions.
80097         Reported by Jan <ipif@ymail.com>.
80099 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
80101         filevercmp: correct today's change
80102         * lib/filevercmp.c: Also handle coreutils' test inputs.
80103         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
80105         Fix regression in 'filevercmp' module. Thanks Sven Joachim
80106         for reporting it.
80107         * lib/filevercmp.c: Special handle for "", "." and "..".
80108         * tests/test-filevercmp.c: Enlarge the set suite.
80110 2009-04-07  Jim Meyering  <meyering@redhat.com>
80112         useless-if-before-free: show how to remove braced useless free, too
80113         * build-aux/useless-if-before-free: still only in a comment, though.
80115 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
80117         maint.mk: import changes to syntax-check macros from coreutils
80118         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
80119         Use them in the relevant macros.
80121 2009-04-06  Bruno Haible  <bruno@clisp.org>
80123         Fix unportable use of bit-fields.
80124         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
80125         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
80126         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
80128 2009-04-06  Bruno Haible  <bruno@clisp.org>
80130         Avoid test failures on AIX and OSF/1.
80131         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
80132         that malloc(0) = NULL.
80133         * tests/unicase/test-u8-tolower.c (check): Likewise.
80134         * tests/unicase/test-u8-totitle.c (check): Likewise.
80135         * tests/unicase/test-u8-toupper.c (check): Likewise.
80136         * tests/unicase/test-u16-casefold.c (check): Likewise.
80137         * tests/unicase/test-u16-tolower.c (check): Likewise.
80138         * tests/unicase/test-u16-totitle.c (check): Likewise.
80139         * tests/unicase/test-u16-toupper.c (check): Likewise.
80140         * tests/unicase/test-u32-casefold.c (check): Likewise.
80141         * tests/unicase/test-u32-tolower.c (check): Likewise.
80142         * tests/unicase/test-u32-totitle.c (check): Likewise.
80143         * tests/unicase/test-u32-toupper.c (check): Likewise.
80144         * tests/uninorm/test-u8-nfc.c (check): Likewise.
80145         * tests/uninorm/test-u8-nfd.c (check): Likewise.
80146         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
80147         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
80148         * tests/uninorm/test-u16-nfc.c (check): Likewise.
80149         * tests/uninorm/test-u16-nfd.c (check): Likewise.
80150         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
80151         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
80152         * tests/uninorm/test-u32-nfc.c (check): Likewise.
80153         * tests/uninorm/test-u32-nfd.c (check): Likewise.
80154         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
80155         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
80157 2009-04-05  Bruno Haible  <bruno@clisp.org>
80159         Work around an autoconf limitation.
80160         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
80161         comment line if it would be longer than 3 KB.
80163 2009-04-05  Bruno Haible  <bruno@clisp.org>
80165         Avoid test failure with libiconv-1.13.
80166         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
80167         of the expected test results.
80169 2009-04-05  Bruno Haible  <bruno@clisp.org>
80171         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
80172         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
80173         that it should be installed.
80175 2009-04-05  Bruno Haible  <bruno@clisp.org>
80177         * gnulib-tool: New option --copy-file.
80178         (func_usage): Document it.
80179         (func_dest_tmpfilename): Moved out of func_import.
80180         (func_add_file, func_update_file): New functions, extracted from
80181         func_import.
80182         (func_import): Update.
80184 2009-04-05  Karl Berry  <karl@gnu.org>
80186         * README: prominently mention gnulib-tool.
80187         Rearrange sections so getting the code is near the top.
80189 2009-04-05  Bruno Haible  <bruno@clisp.org>
80191         * lib/unicase.h: Mention u*_cmp2.
80192         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80193         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
80194         * lib/unicase/ulc-casecmp.c: Likewise.
80195         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
80196         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
80197         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
80198         unistr/u8-cmp.
80199         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
80200         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
80201         unistr/u16-cmp.
80202         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
80203         unistr/u32-cmp.
80205         * lib/uninorm.h: Mention u*_cmp2.
80206         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
80207         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
80208         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
80209         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
80210         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
80211         unistr/u8-cmp.
80212         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
80213         unistr/u16-cmp.
80214         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
80215         unistr/u32-cmp.
80217         New module 'unistr/u32-cmp2'.
80218         * lib/unistr/u32-cmp2.c: New file.
80219         * modules/unistr/u32-cmp2: New file.
80221         New module 'unistr/u16-cmp2'.
80222         * lib/unistr/u16-cmp2.c: New file.
80223         * modules/unistr/u16-cmp2: New file.
80225         New module 'unistr/u8-cmp2'.
80226         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
80227         * lib/unistr/u8-cmp2.c: New file.
80228         * lib/unistr/u-cmp2.h: New file.
80229         * modules/unistr/u8-cmp2: New file.
80231 2009-04-05  Bruno Haible  <bruno@clisp.org>
80233         * lib/unictype.h (uc_property_is_valid): New macro.
80234         * tests/unictype/test-pr_byname.c (main): Use it.
80236         * lib/unistr.h: Doc fixes.
80237         * lib/uniconv.h: Doc fixes.
80238         * lib/unictype.h: Doc fixes.
80240 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
80242         Port coreutils 7.2 to Solaris 8.
80244         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
80245         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
80246         for Solaris 8.  This is a bit of a hack, as it means it's the
80247         caller's responsibility to add -lnsl if needed, but most likely it
80248         won't be needed since only getaddrinfo uses this and getaddrinfo
80249         isn't needed on Solaris 8.
80251         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
80252         problem to Solaris 8 encountered with coreutils 7.2, which
80253         resulted in a message "fnmatch.c:292: warning: passing argument 4
80254         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
80255         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
80257 2009-04-03  Simon Josefsson  <simon@josefsson.org>
80259         * m4/ld-version-script.m4: Add FIXME comment.
80261 2009-04-02  Simon Josefsson  <simon@josefsson.org>
80263         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
80264         SOVERSION variable.
80266 2009-04-02  Bruno Haible  <bruno@clisp.org>
80268         * Makefile (info, html, dvi, pdf): Combine the rules.
80269         Suggested by Jim Meyering.
80271 2009-04-01  Bruno Haible  <bruno@clisp.org>
80273         * Makefile (info, html, dvi, pdf): New targets.
80274         Reported by Reuben Thomas <rrt@sc3d.org>.
80276 2009-04-01  Bruno Haible  <bruno@clisp.org>
80278         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
80279         can be put into PATH.
80280         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
80282 2009-04-01  Bruno Haible  <bruno@clisp.org>
80284         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
80286 2009-04-01  Bruno Haible  <bruno@clisp.org>
80288         Rename module 'visibility'.
80289         * modules/lib-symbol-visibility: Renamed from modules/visibility.
80290         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
80291         * doc/gnulib.texi: Update.
80292         * MODULES.html.sh (Misc): Update.
80293         * NEWS: Mention the change.
80295 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80297         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
80298         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
80299         Eric Blake <ebb9@byu.net> for review.
80300         * MODULES.html.sh: Add lib-msvc-compat.
80301         * doc/gnulib.texi: Link to new section.
80302         * m4/ld-output-def.m4: New file.
80303         * doc/ld-output-def.texi: New file.
80305 2009-04-01  Simon Josefsson  <simon@josefsson.org>
80307         Rename ld-version-script to lib-symbol-versions.  Suggested by
80308         Bruno Haible <bruno@clisp.org>.
80309         * modules/ld-version-script: Renamed to lib-symbol-versions.
80310         * doc/ld-version-script.texi: Fix module name.
80311         * MODULES.html.sh: Add lib-symbol-versions.
80313 2009-03-31  Simon Josefsson  <simon@josefsson.org>
80315         * modules/u64-tests: New file.
80316         * tests/test-u64.c: New file.
80318 2009-03-04  Simon Josefsson  <simon@josefsson.org>
80320         * MODULES.html.sh: Mention u64.
80321         * modules/u64: New module.
80322         * modules/crypto/sha512: Depend on u64 module instead of providing
80323         u64.h.
80325 2009-03-27  Eric Blake  <ebb9@byu.net>
80327         test-strerror: make debugging EAI_SYSTEM easier
80328         * modules/getaddrinfo-tests (Depends-on): Add strerror.
80329         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
80330         failure was EAI_SYSTEM.
80332 2009-03-25  Bruno Haible  <bruno@clisp.org>
80334         Fix a problem with --enable-relocatable on Solaris 7.
80335         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
80336         since 2008-02-24.
80338 2009-03-25  Eric Blake  <ebb9@byu.net>
80340         test-sockets: avoid gcc warning
80341         * tests/test-sockets.c (main): Silence compiler warning.
80343 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80345         New modules nproc, pthread, contributed by Glen Lenker.
80347         * MODULES.html.sh: Add pthread, nproc.
80348         * lib/nproc.c: New file.
80349         * lib/nproc.h: New file.
80350         * lib/pthread.in.h: New file.
80351         * m4/pthread.m4: New file.
80352         * modules/nproc: New file.
80353         * modules/pthread: New file.
80355 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80357         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
80358         New variable.
80360 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
80362         filevercmp: handle simple~ and numbered.~3~ backup suffixes
80363         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
80364         * tests/test-filevercmp.c: Add tests for backup suffixes.
80366 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80368         * modules/stdlib (Depends-on): Add stdint, needed when defining
80369         struct random_data on, for example, HP-UX 10.20.  Reported by
80370         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
80372 2009-03-24  Simon Josefsson  <simon@josefsson.org>
80374         * lib/readline.c (readline): Call fflush on stdout after printing
80375         prompt.
80377 2009-03-20  Bruno Haible  <bruno@clisp.org>
80379         Remove dependency from 'close' module to -lws2_32 on native Windows.
80380         * lib/close-hook.h: New file.
80381         * lib/close-hook.c: New file.
80382         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
80383         w32sock.h.
80384         (_gl_close_fd_maybe_socket): Remove function.
80385         (rpl_close): Invoke execute_all_close_hooks instead of
80386         _gl_close_fd_maybe_socket.
80387         * lib/sockets.c: Include close-hook.h, w32sock.h.
80388         (close_fd_maybe_socket): New function, essentially from lib/close.c.
80389         (close_sockets_hook): New variable.
80390         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
80391         (gl_sockets_cleanup): Unregister it.
80392         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
80393         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
80394         * modules/close-hook: New file.
80395         * modules/close (Files): Remove lib/w32sock.h.
80396         (Depends-on): Add close-hook.
80397         (Link): Remove section.
80398         * modules/sockets (Files): Add lib/w32sock.h.
80399         (Depends-on): Add close-hook.
80400         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
80401         invocation.
80402         * NEWS: Mention that LIB_CLOSE is gone.
80404 2009-03-23  Eric Blake  <ebb9@byu.net>
80406         signal-tests: test previous patch
80407         * tests/test-signal.c: New file.
80408         * modules/signal-tests: Likewise.
80410         signal.h: always support 'volatile sig_atomic_t'
80411         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
80412         (gl_SIGNAL_H_DEFAULTS): Add a default.
80413         * modules/signal (Makefile.am): Substitute if needed.
80414         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
80415         users can blindly add volatile.
80416         * doc/posix-headers/signal.texi (signal.h): Document it.
80417         Reported by Matthew Woehlke.
80419 2009-03-23  Jim Meyering  <meyering@redhat.com>
80421         pathmax: PATH_MAX: use pathconf only when available
80422         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
80423         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
80424         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
80425         This avoids a link failure in a PSP cross-compilation environment
80426         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
80428         * lib/vasnprintf.c (divide): Fix typo in comment.
80430 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80432         * gnulib-tool (func_filter_filelist): Fix comment.
80434 2009-03-20  Bruno Haible  <bruno@clisp.org>
80436         Make sockets.h self-contained.
80437         * lib/sockets.c: Include sockets.h first.
80438         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
80440 2009-03-19  Eric Blake  <ebb9@byu.net>
80442         doc: mention more functions added in cygwin 1.7.0
80443         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
80444         addition.
80445         * doc/posix-functions/log2f.texi: Likewise.
80447 2009-03-19  Jim Meyering  <meyering@redhat.com>
80449         fsusage: avoid syntax error due to statement-before-declaration
80450         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
80451         after all declarations.  Reported by Matthew Woehlke in
80452         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
80454 2009-03-18  Eric Blake  <ebb9@byu.net>
80456         build-aux/compile: sync from automake
80457         * build-aux/compile: New file, from automake.
80458         * config/srclist.txt: Mention build-aux/compile.
80460 2009-03-17  Bruno Haible  <bruno@clisp.org>
80462         * lib/git-merge-changelog.c: Fix typo in comment.
80463         Reported by Reuben Thomas <rrt@sc3d.org>.
80465 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
80467         * m4/regex.m4: update and improve help for
80468         --without-included-regex.
80470 2009-03-17  Simon Josefsson  <simon@josefsson.org>
80472         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
80473         failure on missing include files.
80475 2009-03-17  Eric Blake  <ebb9@byu.net>
80477         doc: mention more functions added in cygwin 1.7.0
80478         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
80479         addition.
80480         * doc/posix-functions/fwscanf.texi: Likewise.
80481         * doc/posix-functions/swprintf.texi: Likewise.
80482         * doc/posix-functions/swscanf.texi: Likewise.
80483         * doc/posix-functions/vfwprintf.texi: Likewise.
80484         * doc/posix-functions/vfwscanf.texi: Likewise.
80485         * doc/posix-functions/vswprintf.texi: Likewise.
80486         * doc/posix-functions/vswscanf.texi: Likewise.
80487         * doc/posix-functions/vwprintf.texi: Likewise.
80488         * doc/posix-functions/vwscanf.texi: Likewise.
80489         * doc/posix-functions/wcscasecmp.texi: Likewise.
80490         * doc/posix-functions/wcsdup.texi: Likewise.
80491         * doc/posix-functions/wcsftime.texi: Likewise.
80492         * doc/posix-functions/wcsncasecmp.texi: Likewise.
80493         * doc/posix-functions/wprintf.texi: Likewise.
80494         * doc/posix-functions/wscanf.texi: Likewise.
80495         * doc/glibc-functions/gethostbyname2.texi: Likewise.
80497 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80499         maint.mk: really add $(AM_MAKEFLAGS)
80500         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
80501         was inadvertently omitted in the last commit.
80502         Spotted by Bruno Haible.
80504         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
80505         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
80506         $(AM_MAKEFLAGS)' rather than plain `make'.
80508         gnulib-tool: execute $MAKE not make
80509         * gnulib-tool: Default $MAKE to 'make'.
80510         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
80511         than make.  Initialize $MAKE in the do-autobuild script.
80513         gnulib-tool: use $MAKE not make in generated files
80514         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
80515         make, in generated files.  Initialize $MAKE in the do-autobuild
80516         script.
80518         * top/GNUmakefile (_have-git-version-gen): Fix typo.
80520         GNUmakefile: disable parallelism only for multiple, recursive targets
80521         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
80522         additions in the Makefile.
80523         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
80524         by Automake.
80525         (.NOTPARALLEL): Only disable parallel builds if multiple targets
80526         are listed on the command line and at least one of them is
80527         listed in $(ALL_RECURSIVE_TARGETS).
80529 2009-03-14  Bruno Haible  <bruno@clisp.org>
80531         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
80532         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
80533         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
80534         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
80535         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
80536         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
80537         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
80538         unistr/u8-uctomb.
80539         * modules/unistr/u8-strchr (Depends-on): Likewise.
80540         * modules/unistr/u8-strrchr (Depends-on): Likewise.
80541         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
80542         unistr/u16-uctomb.
80543         * modules/unistr/u16-strchr (Depends-on): Likewise.
80544         * modules/unistr/u16-strrchr (Depends-on): Likewise.
80546 2009-03-12  Bruno Haible  <bruno@clisp.org>
80548         Work around select() bug on Interix 3.5.
80549         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
80550         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
80551         * m4/select.m4: New file.
80552         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
80553         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
80554         * modules/select (Files): Add m4/select.m4.
80555         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
80556         * modules/nanosleep (Depends-on): Add select.
80557         * modules/poll (Depends-on): Likewise.
80558         * doc/posix-functions/select.texi: Mention the Interix bug.
80559         Reported by Markus Duft <mduft@gentoo.org>.
80561         * lib/select.c: Renamed from lib/winsock-select.c.
80562         * modules/select (Files): Add lib/select.c, remove
80563         lib/winsock-select.c.
80564         (configure.ac): Update.
80566 2009-03-12  Jim Meyering  <meyering@redhat.com>
80568         avoid gcc warnings about unused macro definitions
80569         * lib/readtokens.c (STREQ): Remove unused definition.
80570         * lib/xmalloc.c (SIZE_MAX): Likewise.
80571         * lib/openat-die.c (N_): Likewise.
80572         * lib/mountlist.c (SIZE_MAX): Remove definition.
80573         Instead, include <stdint.h>.
80574         * lib/readutmp.c: Likewise.
80575         * modules/readutmp (Depends-on): Add stdint.
80576         * modules/mountlist (Depends-on): Add stdint.
80577         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
80579 2009-03-10  Bruno Haible  <bruno@clisp.org>
80581         Tests for module 'mbmemcasecoll'.
80582         * modules/mbmemcasecoll-tests: New file.
80583         * tests/test-mbmemcasecoll1.sh: New file.
80584         * tests/test-mbmemcasecoll2.sh: New file.
80585         * tests/test-mbmemcasecoll3.sh: New file.
80586         * tests/test-mbmemcasecoll.c: New file.
80588         New module 'mbmemcasecoll'.
80589         * lib/mbmemcasecoll.h: New file.
80590         * lib/mbmemcasecoll.c: New file.
80591         * modules/mbmemcasecoll: New file.
80593         * tests/test-mbmemcasecmp.h: New file, extracted from
80594         tests/test-mbmemcasecmp.c.
80595         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
80596         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
80597         (main): Update.
80598         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
80600 2009-03-09  Bruno Haible  <bruno@clisp.org>
80602         Tests for module 'mbmemcasecmp'.
80603         * modules/mbmemcasecmp-tests: New file.
80604         * tests/test-mbmemcasecmp1.sh: New file.
80605         * tests/test-mbmemcasecmp2.sh: New file.
80606         * tests/test-mbmemcasecmp3.sh: New file.
80607         * tests/test-mbmemcasecmp.c: New file.
80609         New module 'mbmemcasecmp'.
80610         * lib/mbmemcasecmp.h: New file.
80611         * lib/mbmemcasecmp.c: New file.
80612         * modules/mbmemcasecmp: New file.
80614 2009-03-09  Bruno Haible  <bruno@clisp.org>
80616         Tests for module 'unicase/ulc-casecoll'.
80617         * modules/unicase/ulc-casecoll-tests: New file.
80618         * tests/unicase/test-ulc-casecoll1.sh: New file.
80619         * tests/unicase/test-ulc-casecoll2.sh: New file.
80620         * tests/unicase/test-ulc-casecoll.c: New file.
80622         New module 'unicase/ulc-casecoll'.
80623         * lib/unicase.h (ulc_casecoll): New declaration.
80624         * lib/unicase/ulc-casecoll.c: New file.
80625         * modules/unicase/ulc-casecoll: New file.
80627         New module 'unicase/ulc-casexfrm'.
80628         * lib/unicase.h (ulc_casexfrm): New declaration.
80629         * lib/unicase/ulc-casexfrm.c: New file.
80630         * modules/unicase/ulc-casexfrm: New file.
80632 2009-03-09  Bruno Haible  <bruno@clisp.org>
80634         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
80635         invocations.
80637         * m4/mbscasecmp.m4: Remove file.
80638         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
80639         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
80641         * m4/mbscasestr.m4: Remove file.
80642         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
80643         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
80645         * m4/mbschr.m4: Remove file.
80646         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
80647         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
80649         * m4/mbscspn.m4: Remove file.
80650         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
80651         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
80653         * m4/mbslen.m4: Remove file.
80654         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
80655         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
80657         * m4/mbsncasecmp.m4: Remove file.
80658         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
80659         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
80661         * m4/mbsnlen.m4: Remove file.
80662         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
80663         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
80665         * m4/mbspbrk.m4: Remove file.
80666         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
80667         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
80669         * m4/mbspcasecmp.m4: Remove file.
80670         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
80671         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
80673         * m4/mbsrchr.m4: Remove file.
80674         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
80675         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
80677         * m4/mbssep.m4: Remove file.
80678         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
80679         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
80681         * m4/mbsspn.m4: Remove file.
80682         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
80683         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
80685         * m4/mbsstr.m4: Remove file.
80686         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
80687         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
80689         * m4/mbstok_r.m4: Remove file.
80690         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
80691         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
80693         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
80695         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
80696         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
80698         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
80700 2009-03-08  Bruno Haible  <bruno@clisp.org>
80702         Tests for module 'unicase/ulc-casecmp'.
80703         * modules/unicase/ulc-casecmp-tests: New file.
80704         * tests/unicase/test-ulc-casecmp1.sh: New file.
80705         * tests/unicase/test-ulc-casecmp2.sh: New file.
80706         * tests/unicase/test-ulc-casecmp.c: New file.
80708         New module 'unicase/ulc-casecmp'.
80709         * lib/unicase.h (ulc_casecmp): New declaration.
80710         * lib/unicase/ulc-casecmp.c: New file.
80711         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
80712         'const SRC_UNIT *'.
80713         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
80714         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
80715         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
80716         * modules/unicase/ulc-casecmp: New file.
80718         Tests for module 'unicase/u32-is-cased'.
80719         * modules/unicase/u32-is-cased-tests: New file.
80720         * tests/unicase/test-u32-is-cased.c: New file.
80722         Tests for module 'unicase/u16-is-cased'.
80723         * modules/unicase/u16-is-cased-tests: New file.
80724         * tests/unicase/test-u16-is-cased.c: New file.
80726         Tests for module 'unicase/u8-is-cased'.
80727         * modules/unicase/u8-is-cased-tests: New file.
80728         * tests/unicase/test-u8-is-cased.c: New file.
80729         * tests/unicase/test-is-cased.h: New file.
80731         New module 'unicase/u32-is-cased'.
80732         * lib/unicase/u32-is-cased.c: New file.
80733         * modules/unicase/u32-is-cased: New file.
80735         New module 'unicase/u16-is-cased'.
80736         * lib/unicase/u16-is-cased.c: New file.
80737         * modules/unicase/u16-is-cased: New file.
80739         New module 'unicase/u8-is-cased'.
80740         * lib/unicase/u8-is-cased.c: New file.
80741         * lib/unicase/u-is-cased.h: New file.
80742         * modules/unicase/u8-is-cased: New file.
80744         Tests for module 'unicase/u32-is-casefolded'.
80745         * modules/unicase/u32-is-casefolded-tests: New file.
80746         * tests/unicase/test-u32-is-casefolded.c: New file.
80748         Tests for module 'unicase/u16-is-casefolded'.
80749         * modules/unicase/u16-is-casefolded-tests: New file.
80750         * tests/unicase/test-u16-is-casefolded.c: New file.
80752         Tests for module 'unicase/u8-is-casefolded'.
80753         * modules/unicase/u8-is-casefolded-tests: New file.
80754         * tests/unicase/test-u8-is-casefolded.c: New file.
80755         * tests/unicase/test-is-casefolded.h: New file.
80757         New module 'unicase/u32-is-casefolded'.
80758         * lib/unicase/u32-is-casefolded.c: New file.
80759         * modules/unicase/u32-is-casefolded: New file.
80761         New module 'unicase/u16-is-casefolded'.
80762         * lib/unicase/u16-is-casefolded.c: New file.
80763         * modules/unicase/u16-is-casefolded: New file.
80765         New module 'unicase/u8-is-casefolded'.
80766         * lib/unicase/u8-is-casefolded.c: New file.
80767         * modules/unicase/u8-is-casefolded: New file.
80769         Tests for module 'unicase/u32-is-titlecase'.
80770         * modules/unicase/u32-is-titlecase-tests: New file.
80771         * tests/unicase/test-u32-is-titlecase.c: New file.
80773         Tests for module 'unicase/u16-is-titlecase'.
80774         * modules/unicase/u16-is-titlecase-tests: New file.
80775         * tests/unicase/test-u16-is-titlecase.c: New file.
80777         Tests for module 'unicase/u8-is-titlecase'.
80778         * modules/unicase/u8-is-titlecase-tests: New file.
80779         * tests/unicase/test-u8-is-titlecase.c: New file.
80780         * tests/unicase/test-is-titlecase.h: New file.
80782         New module 'unicase/u32-is-titlecase'.
80783         * lib/unicase/u32-is-titlecase.c: New file.
80784         * modules/unicase/u32-is-titlecase: New file.
80786         New module 'unicase/u16-is-titlecase'.
80787         * lib/unicase/u16-is-titlecase.c: New file.
80788         * modules/unicase/u16-is-titlecase: New file.
80790         New module 'unicase/u8-is-titlecase'.
80791         * lib/unicase/u8-is-titlecase.c: New file.
80792         * modules/unicase/u8-is-titlecase: New file.
80794         Tests for module 'unicase/u32-is-lowercase'.
80795         * modules/unicase/u32-is-lowercase-tests: New file.
80796         * tests/unicase/test-u32-is-lowercase.c: New file.
80798         Tests for module 'unicase/u16-is-lowercase'.
80799         * modules/unicase/u16-is-lowercase-tests: New file.
80800         * tests/unicase/test-u16-is-lowercase.c: New file.
80802         Tests for module 'unicase/u8-is-lowercase'.
80803         * modules/unicase/u8-is-lowercase-tests: New file.
80804         * tests/unicase/test-u8-is-lowercase.c: New file.
80805         * tests/unicase/test-is-lowercase.h: New file.
80807         New module 'unicase/u32-is-lowercase'.
80808         * lib/unicase/u32-is-lowercase.c: New file.
80809         * modules/unicase/u32-is-lowercase: New file.
80811         New module 'unicase/u16-is-lowercase'.
80812         * lib/unicase/u16-is-lowercase.c: New file.
80813         * modules/unicase/u16-is-lowercase: New file.
80815         New module 'unicase/u8-is-lowercase'.
80816         * lib/unicase/u8-is-lowercase.c: New file.
80817         * modules/unicase/u8-is-lowercase: New file.
80819         Tests for module 'unicase/u32-is-uppercase'.
80820         * modules/unicase/u32-is-uppercase-tests: New file.
80821         * tests/unicase/test-u32-is-uppercase.c: New file.
80823         Tests for module 'unicase/u16-is-uppercase'.
80824         * modules/unicase/u16-is-uppercase-tests: New file.
80825         * tests/unicase/test-u16-is-uppercase.c: New file.
80827         Tests for module 'unicase/u8-is-uppercase'.
80828         * modules/unicase/u8-is-uppercase-tests: New file.
80829         * tests/unicase/test-u8-is-uppercase.c: New file.
80830         * tests/unicase/test-is-uppercase.h: New file.
80832         New module 'unicase/u32-is-uppercase'.
80833         * lib/unicase/u32-is-uppercase.c: New file.
80834         * modules/unicase/u32-is-uppercase: New file.
80836         New module 'unicase/u16-is-uppercase'.
80837         * lib/unicase/u16-is-uppercase.c: New file.
80838         * modules/unicase/u16-is-uppercase: New file.
80840         New module 'unicase/u8-is-uppercase'.
80841         * lib/unicase/u8-is-uppercase.c: New file.
80842         * modules/unicase/u8-is-uppercase: New file.
80844         New module 'unicase/u32-is-invariant'.
80845         * lib/unicase/u32-is-invariant.c: New file.
80846         * modules/unicase/u32-is-invariant: New file.
80848         New module 'unicase/u16-is-invariant'.
80849         * lib/unicase/u16-is-invariant.c: New file.
80850         * modules/unicase/u16-is-invariant: New file.
80852         New module 'unicase/u8-is-invariant'.
80853         * lib/unicase/u8-is-invariant.c: New file.
80854         * lib/unicase/invariant.h: New file.
80855         * lib/unicase/u-is-invariant.h: New file.
80856         * modules/unicase/u8-is-invariant: New file.
80858         Tests for module 'unicase/u32-casecoll'.
80859         * modules/unicase/u32-casecoll-tests: New file.
80860         * tests/unicase/test-u32-casecoll.c: New file.
80862         Tests for module 'unicase/u16-casecoll'.
80863         * modules/unicase/u16-casecoll-tests: New file.
80864         * tests/unicase/test-u16-casecoll.c: New file.
80866         Tests for module 'unicase/u8-casecoll'.
80867         * modules/unicase/u8-casecoll-tests: New file.
80868         * tests/unicase/test-u8-casecoll.c: New file.
80870         New module 'unicase/u32-casecoll'.
80871         * lib/unicase/u32-casecoll.c: New file.
80872         * modules/unicase/u32-casecoll: New file.
80874         New module 'unicase/u16-casecoll'.
80875         * lib/unicase/u16-casecoll.c: New file.
80876         * modules/unicase/u16-casecoll: New file.
80878         New module 'unicase/u8-casecoll'.
80879         * lib/unicase/u8-casecoll.c: New file.
80880         * lib/unicase/u-casecoll.h: New file.
80881         * modules/unicase/u8-casecoll: New file.
80883         New module 'unicase/u32-casexfrm'.
80884         * lib/unicase/u32-casexfrm.c: New file.
80885         * modules/unicase/u32-casexfrm: New file.
80887         New module 'unicase/u16-casexfrm'.
80888         * lib/unicase/u16-casexfrm.c: New file.
80889         * modules/unicase/u16-casexfrm: New file.
80891         New module 'unicase/u8-casexfrm'.
80892         * lib/unicase/u8-casexfrm.c: New file.
80893         * lib/unicase/u-casexfrm.h: New file.
80894         * modules/unicase/u8-casexfrm: New file.
80896         Tests for module 'unicase/u32-casecmp'.
80897         * modules/unicase/u32-casecmp-tests: New file.
80898         * tests/unicase/test-u32-casecmp.c: New file.
80900         Tests for module 'unicase/u16-casecmp'.
80901         * modules/unicase/u16-casecmp-tests: New file.
80902         * tests/unicase/test-u16-casecmp.c: New file.
80904         Tests for module 'unicase/u8-casecmp'.
80905         * modules/unicase/u8-casecmp-tests: New file.
80906         * tests/unicase/test-u8-casecmp.c: New file.
80907         * tests/unicase/test-casecmp.h: New file.
80909         New module 'unicase/u32-casecmp'.
80910         * lib/unicase/u32-casecmp.c: New file.
80911         * modules/unicase/u32-casecmp: New file.
80913         New module 'unicase/u16-casecmp'.
80914         * lib/unicase/u16-casecmp.c: New file.
80915         * modules/unicase/u16-casecmp: New file.
80917         New module 'unicase/u8-casecmp'.
80918         * lib/unicase/u8-casecmp.c: New file.
80919         * lib/unicase/u-casecmp.h: New file.
80920         * modules/unicase/u8-casecmp: New file.
80922         Tests for module 'unicase/u32-casefold'.
80923         * modules/unicase/u32-casefold-tests: New file.
80924         * tests/unicase/test-u32-casefold.c: New file.
80926         Tests for module 'unicase/u16-casefold'.
80927         * modules/unicase/u16-casefold-tests: New file.
80928         * tests/unicase/test-u16-casefold.c: New file.
80930         Tests for module 'unicase/u8-casefold'.
80931         * modules/unicase/u8-casefold-tests: New file.
80932         * tests/unicase/test-u8-casefold.c: New file.
80934         New module 'unicase/u32-casefold'.
80935         * lib/unicase/u32-casefold.c: New file.
80936         * modules/unicase/u32-casefold: New file.
80938         New module 'unicase/u16-casefold'.
80939         * lib/unicase/u16-casefold.c: New file.
80940         * modules/unicase/u16-casefold: New file.
80942         New module 'unicase/u8-casefold'.
80943         * lib/unicase/u8-casefold.c: New file.
80944         * lib/unicase/u-casefold.h: New file.
80945         * modules/unicase/u8-casefold: New file.
80947         New module 'unicase/tocasefold'.
80948         * lib/unicase/casefold.h: New file.
80949         * lib/unicase/tocasefold.c: New file.
80950         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
80951         * modules/unicase/tocasefold: New file.
80953         Tests for module 'unicase/u32-totitle'.
80954         * modules/unicase/u32-totitle-tests: New file.
80955         * tests/unicase/test-u32-totitle.c: New file.
80957         Tests for module 'unicase/u16-totitle'.
80958         * modules/unicase/u16-totitle-tests: New file.
80959         * tests/unicase/test-u16-totitle.c: New file.
80961         Tests for module 'unicase/u8-totitle'.
80962         * modules/unicase/u8-totitle-tests: New file.
80963         * tests/unicase/test-u8-totitle.c: New file.
80965         New module 'unicase/u32-totitle'.
80966         * lib/unicase/u32-totitle.c: New file.
80967         * modules/unicase/u32-totitle: New file.
80969         New module 'unicase/u16-totitle'.
80970         * lib/unicase/u16-totitle.c: New file.
80971         * modules/unicase/u16-totitle: New file.
80973         New module 'unicase/u8-totitle'.
80974         * lib/unicase/u8-totitle.c: New file.
80975         * lib/unicase/u-totitle.h: New file.
80976         * modules/unicase/u8-totitle: New file.
80978         Tests for module 'unicase/u32-tolower'.
80979         * modules/unicase/u32-tolower-tests: New file.
80980         * tests/unicase/test-u32-tolower.c: New file.
80982         Tests for module 'unicase/u16-tolower'.
80983         * modules/unicase/u16-tolower-tests: New file.
80984         * tests/unicase/test-u16-tolower.c: New file.
80986         Tests for module 'unicase/u8-tolower'.
80987         * modules/unicase/u8-tolower-tests: New file.
80988         * tests/unicase/test-u8-tolower.c: New file.
80990         New module 'unicase/u32-tolower'.
80991         * lib/unicase/u32-tolower.c: New file.
80992         * modules/unicase/u32-tolower: New file.
80994         New module 'unicase/u16-tolower'.
80995         * lib/unicase/u16-tolower.c: New file.
80996         * modules/unicase/u16-tolower: New file.
80998         New module 'unicase/u8-tolower'.
80999         * lib/unicase/u8-tolower.c: New file.
81000         * modules/unicase/u8-tolower: New file.
81002         Tests for module 'unicase/u32-toupper'.
81003         * modules/unicase/u32-toupper-tests: New file.
81004         * tests/unicase/test-u32-toupper.c: New file.
81006         Tests for module 'unicase/u16-toupper'.
81007         * modules/unicase/u16-toupper-tests: New file.
81008         * tests/unicase/test-u16-toupper.c: New file.
81010         Tests for module 'unicase/u8-toupper'.
81011         * modules/unicase/u8-toupper-tests: New file.
81012         * tests/unicase/test-u8-toupper.c: New file.
81014         New module 'unicase/u32-toupper'.
81015         * lib/unicase/u32-toupper.c: New file.
81016         * modules/unicase/u32-toupper: New file.
81018         New module 'unicase/u16-toupper'.
81019         * lib/unicase/u16-toupper.c: New file.
81020         * modules/unicase/u16-toupper: New file.
81022         New module 'unicase/u8-toupper'.
81023         * lib/unicase/u8-toupper.c: New file.
81024         * modules/unicase/u8-toupper: New file.
81026         New module 'unicase/u32-casemap'.
81027         * lib/unicase/u32-casemap.c: New file.
81028         * modules/unicase/u32-casemap: New file.
81030         New module 'unicase/u16-casemap'.
81031         * lib/unicase/u16-casemap.c: New file.
81032         * modules/unicase/u16-casemap: New file.
81034         New module 'unicase/u8-casemap'.
81035         * lib/unicase/unicasemap.h: New file.
81036         * lib/unicase/u8-casemap.c: New file.
81037         * lib/unicase/u-casemap.h: New file.
81038         * modules/unicase/u8-casemap: New file.
81040         New module 'unicase/special-casing'.
81041         * lib/unicase/special-casing.h: New file.
81042         * lib/unicase/special-casing.c: New file.
81043         * lib/unicase/special-casing-table.gperf: New file, generated by
81044         gen-uni-tables.c.
81045         * modules/unicase/special-casing: New file.
81047         Tests for module 'unicase/locale-language'.
81048         * modules/unicase/locale-language-tests: New file.
81049         * tests/unicase/test-locale-language.sh: New file.
81050         * tests/unicase/test-locale-language.c: New file.
81052         New module 'unicase/locale-language'.
81053         * lib/unicase/locale-language.c: New file.
81054         * lib/unicase/locale-languages.gperf: New file.
81055         * modules/unicase/locale-language: New file.
81057         Generate more tables for case conversion and case folding.
81058         * lib/gen-uni-tables.c (SCC_*): New enum items.
81059         (struct special_casing_rule): New type.
81060         (casing_rules, num_casing_rules, allocated_casing_rules): New
81061         variables.
81062         (add_casing_rule, fill_casing_rules): New functions.
81063         (struct casefold_rule): New type.
81064         (casefolding_rules, num_casefolding_rules,
81065         allocated_casefolding_rules): New variables.
81066         (fill_casefolding_rules): New function.
81067         (unicode_casefold): New variable.
81068         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
81069         sort_casing_rules, output_casing_rules): New functions.
81070         (main): Accept to more arguments: SpecialCasing.txt and
81071         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
81072         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
81073         Output mapping for casefolding.
81075         * lib/unicase.h: Include stdbool.h, uninorm.h.
81076         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
81077         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
81078         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
81079         arguments.
81080         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
81081         resultp arguments.
81082         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
81083         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
81084         resultp arguments.
81085         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
81086         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
81087         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
81088         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
81089         declarations.
81090         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
81092 2009-03-08  Bruno Haible  <bruno@clisp.org>
81094         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81095         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
81096         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
81097         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81099 2009-03-07  Bruno Haible  <bruno@clisp.org>
81101         Adjust u*_normcmp, u*_normcoll API.
81102         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
81103         u16_normcoll, u32_normcoll): Change failure conventions.
81104         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
81105         errno and return -1.
81106         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
81108 2009-03-07  Bruno Haible  <bruno@clisp.org>
81110         Tests for module 'uninorm/u32-normcoll'.
81111         * modules/uninorm/u32-normcoll-tests: New file.
81112         * tests/uninorm/test-u32-normcoll.c: New file.
81114         Tests for module 'uninorm/u16-normcoll'.
81115         * modules/uninorm/u16-normcoll-tests: New file.
81116         * tests/uninorm/test-u16-normcoll.c: New file.
81118         Tests for module 'uninorm/u8-normcoll'.
81119         * modules/uninorm/u8-normcoll-tests: New file.
81120         * tests/uninorm/test-u8-normcoll.c: New file.
81122 2009-03-07  Bruno Haible  <bruno@clisp.org>
81124         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
81125         tests/uninorm/test-u32-normcmp.c.
81126         * tests/uninorm/test-u32-normcmp.c: Include it.
81127         (test_nonascii): New function, extracted from main. Add some more
81128         tests.
81129         (main): Invoke test_ascii and test_nonascii.
81130         * modules/uninorm/u32-normcmp-tests (Files): Add
81131         tests/uninorm/test-u32-normcmp.h.
81132         (Depends-on): Remove uninorm/u32-normcmp.
81134         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
81135         tests/uninorm/test-u16-normcmp.c.
81136         * tests/uninorm/test-u16-normcmp.c: Include it.
81137         (test_nonascii): New function, extracted from main. Add some more
81138         tests.
81139         (main): Invoke test_ascii and test_nonascii.
81140         * modules/uninorm/u16-normcmp-tests (Files): Add
81141         tests/uninorm/test-u16-normcmp.h.
81142         (Depends-on): Remove uninorm/u16-normcmp.
81144         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
81145         tests/uninorm/test-u8-normcmp.c.
81146         * tests/uninorm/test-u8-normcmp.c: Include it.
81147         (test_nonascii): New function, extracted from main. Add some more
81148         tests.
81149         (main): Invoke test_ascii and test_nonascii.
81150         * modules/uninorm/u8-normcmp-tests (Files): Add
81151         tests/uninorm/test-u8-normcmp.h.
81152         (Depends-on): Remove uninorm/u8-normcmp.
81154 2009-03-07  Bruno Haible  <bruno@clisp.org>
81156         New module 'uninorm/u32-normcoll'.
81157         * lib/uninorm/u32-normcoll.c: New file.
81158         * modules/uninorm/u32-normcoll: New file.
81160         New module 'uninorm/u16-normcoll'.
81161         * lib/uninorm/u16-normcoll.c: New file.
81162         * modules/uninorm/u16-normcoll: New file.
81164         New module 'uninorm/u8-normcoll'.
81165         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
81166         declarations.
81167         * lib/uninorm/u8-normcoll.c: New file.
81168         * lib/uninorm/u-normcoll.h: New file.
81169         * modules/uninorm/u8-normcoll: New file.
81171         New module 'uninorm/u32-normxfrm'.
81172         * lib/uninorm/u32-normxfrm.c: New file.
81173         * modules/uninorm/u32-normxfrm: New file.
81175         New module 'uninorm/u16-normxfrm'.
81176         * lib/uninorm/u16-normxfrm.c: New file.
81177         * modules/uninorm/u16-normxfrm: New file.
81179         New module 'uninorm/u8-normxfrm'.
81180         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
81181         declarations.
81182         * lib/uninorm/u8-normxfrm.c: New file.
81183         * lib/uninorm/u-normxfrm.h: New file.
81184         * modules/uninorm/u8-normxfrm: New file.
81186 2009-03-07  Bruno Haible  <bruno@clisp.org>
81188         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
81189         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
81190         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
81192 2009-03-07  Bruno Haible  <bruno@clisp.org>
81194         New module 'memxfrm'.
81195         * lib/memxfrm.h: New file.
81196         * lib/memxfrm.c: New file.
81197         * modules/memxfrm: New file.
81199 2009-03-07  Bruno Haible  <bruno@clisp.org>
81201         New module 'memcmp2'.
81202         * lib/memcmp2.h: New file.
81203         * lib/memcmp2.c: New file.
81204         * modules/memcmp2: New file.
81206 2009-03-07  Bruno Haible  <bruno@clisp.org>
81208         Tests for module 'uninorm/decomposing-form'.
81209         * modules/uninorm/decomposing-form-tests: New file.
81210         * tests/uninorm/test-decomposing-form.c: New file.
81212         New module 'uninorm/decomposing-form'.
81213         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
81214         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
81215         Add 'decomposing_variant' field.
81216         * lib/uninorm/decomposing-form.c: New file.
81217         * lib/uninorm/nfc.c (uninorm_nfc): Update.
81218         * lib/uninorm/nfd.c (uninorm_nfd): Update.
81219         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
81220         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
81221         * modules/uninorm/decomposing-form: New file.
81222         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
81223         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
81225 2009-03-07  Bruno Haible  <bruno@clisp.org>
81227         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
81228         strings.
81230 2009-03-06  Bruno Haible  <bruno@clisp.org>
81232         Tests for module 'uninorm/u32-normcmp'.
81233         * tests/uninorm/test-u32-normcmp.c: New file.
81234         * modules/uninorm/u32-normcmp-tests: New file.
81236         Tests for module 'uninorm/u16-normcmp'.
81237         * tests/uninorm/test-u16-normcmp.c: New file.
81238         * modules/uninorm/u16-normcmp-tests: New file.
81240         Tests for module 'uninorm/u8-normcmp'.
81241         * tests/uninorm/test-u8-normcmp.c: New file.
81242         * modules/uninorm/u8-normcmp-tests: New file.
81244         New module 'uninorm/u32-normcmp'.
81245         * lib/uninorm/u32-normcmp.c: New file.
81246         * modules/uninorm/u32-normcmp: New file.
81248         New module 'uninorm/u16-normcmp'.
81249         * lib/uninorm/u16-normcmp.c: New file.
81250         * modules/uninorm/u16-normcmp: New file.
81252         New module 'uninorm/u8-normcmp'.
81253         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
81254         declarations.
81255         * lib/uninorm/u8-normcmp.c: New file.
81256         * lib/uninorm/u-normcmp.h: New file.
81257         * modules/uninorm/u8-normcmp: New file.
81259 2009-03-06  Bruno Haible  <bruno@clisp.org>
81261         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
81262         Reported by Eric Blake.
81264 2009-03-06  Eric Blake  <ebb9@byu.net>
81265             Bruno Haible  <bruno@clisp.org>
81267         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
81268         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
81269         condition.
81270         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81271         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
81272         condition.
81273         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
81275 2009-03-06  Eric Blake  <ebb9@byu.net>
81277         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
81278         to avoid compiler warnings.
81279         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
81281 2009-03-05  Bruno Haible  <bruno@clisp.org>
81283         * tests/test-ftell.c (main): Disable test beyond end of file on
81284         FreeMiNT.
81285         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81287 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
81289         * lib/filevercmp.c: Move hidden files up in ordering.
81290         * tests/test-filevercmp.c: Add tests for hidden files.
81292 2009-03-04  Bruno Haible  <bruno@clisp.org>
81294         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
81295         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
81296         AM_CFLAGS.
81297         Reported by Simon Josefsson.
81299 2009-03-03  Bruno Haible  <bruno@clisp.org>
81301         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
81302         Reported by Simon Josefsson.
81304         * doc/ld-version-script.texi: Update node reference.
81306 2009-03-03  Bruno Haible  <bruno@clisp.org>
81308         * modules/visibility (License): Change to 'unlimited'.
81309         Suggested by Simon Josefsson.
81311 2009-03-03  Jim Meyering  <meyering@redhat.com>
81313         unlinkdir: cannot_unlink_dir may modify process state
81314         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
81315         it's neither thread-safe nor appropriate for use in a library.
81317 2009-03-03  Eric Blake  <ebb9@byu.net>
81319         test-closein: silence test under Darwin
81320         * tests/test-closein.sh: Ignore stderr from cat, since we don't
81321         care if it dies from EPIPE or EBADF.
81323 2009-03-03  Bruno Haible  <bruno@clisp.org>
81325         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
81326         earlier.
81327         * doc/visibility.texi: Fix @node and @section.
81329 2009-03-03  Simon Josefsson  <simon@josefsson.org>
81331         * doc/gnulib.texi: Link to sections for ld version script and
81332         visibility.
81333         * doc/visibility.texi: Add @node and @section.
81334         * modules/ld-version-script: New module.
81335         * m4/ld-version-script.m4: New file.
81336         * doc/ld-version-script.texi: New file.
81338 2009-03-02  David Lutterkort  <lutter@redhat.com>
81340         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
81341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81343 2009-03-02  Bruno Haible  <bruno@clisp.org>
81345         * doc/visibility.texi: Mention libtool's -export-symbols option.
81347 2009-03-02  Jim Meyering  <meyering@redhat.com>
81349         announce-gen: new option: --no-print-checksums
81350         * build-aux/announce-gen (usage): Describe it.
81351         (print_checksums): Print a newline here, not in the [*] footnote.
81352         (main): Honor it.
81354 2009-03-01  Bruno Haible  <bruno@clisp.org>
81356         Use socklen_t in the native Windows replacements prototypes.
81357         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
81358         instead of 'int'.
81359         * lib/getsockopt.c (rpl_getsockopt): Likewise.
81360         * lib/setsockopt.c (rpl_setsockopt): Likewise.
81361         * modules/getsockopt (Depends-on): Add socklen.
81362         * modules/setsockopt (Depends-on): Add socklen.
81364 2009-03-01  Bruno Haible  <bruno@clisp.org>
81366         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
81367         least 4.2.
81369 2009-03-01  Eric Blake  <ebb9@byu.net>
81370             Bruno Haible  <bruno@clisp.org>
81372         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
81373         error messages.
81374         * lib/wait-process.c (wait_subprocess): Omit error message about
81375         deadly signal sent to the child of termsigp != NULL.
81377 2009-03-01  Eric Blake  <ebb9@byu.net>
81379         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
81381 2009-03-01  Bruno Haible  <bruno@clisp.org>
81383         Avoid a gcc warning.
81384         * tests/test-sched.c (b): Make global.
81385         Reported by Eric Blake.
81387 2009-01-19  Martin Lambers  <marlam@marlam.de>
81389         Provide POSIX semantics for socket timeout options on W32.
81390         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
81391         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
81392         * modules/setsockopt: Depend on sys_time module for struct timeval.
81393         * modules/getsockopt: Depend on sys_time module for struct timeval.
81395 2009-03-01  Simon Josefsson  <simon@josefsson.org>
81397         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
81398         __USE_GNU, for consistency with netdb.in.h.
81399         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81401 2009-03-01  Bruno Haible  <bruno@clisp.org>
81403         More support for FreeMiNT.
81404         * lib/fseeko.c (rpl_fseeko): Complete last commit.
81405         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81407 2009-03-01  Bruno Haible  <bruno@clisp.org>
81409         More support for FreeMiNT.
81410         * lib/fpurge.c (fpurge): Correct last commit.
81411         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81413 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81415         Fix unportable awk script in vc-list-files.
81416         * build-aux/vc-list-files: In the replacement awk script, use
81417         substr with a second argument of 1, not zero.
81418         Report by Simon Josefsson.
81420 2009-02-28  Bruno Haible  <bruno@clisp.org>
81422         More support for FreeMiNT.
81423         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
81424         to FreeMiNT today.
81425         * lib/fwriting.c (fwriting): Likewise.
81426         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
81428 2009-02-28  Bruno Haible  <bruno@clisp.org>
81430         * tests/test-freadseek.c (main): Disable test beyond end of file on
81431         FreeMiNT.
81432         * tests/test-ftello.c (main): Likewise.
81433         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
81435 2009-02-28  Bruno Haible  <bruno@clisp.org>
81437         Add tentative support for FreeMiNT.
81438         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
81439         * lib/fpurge.c (fpurge): Likewise.
81440         * lib/freadable.c (freadable): Likewise.
81441         * lib/freading.c (freading): Likewise.
81442         * lib/freadptr.c (freadptr): Likewise.
81443         * lib/freadseek.c (freadptrinc): Likewise.
81444         * lib/fseeko.c (rpl_fseeko): Likewise.
81445         * lib/fseterr.c (fseterr): Likewise.
81446         * lib/fwritable.c (fwritable): Likewise.
81447         * lib/fwriting.c (fwriting): Likewise.
81448         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
81449         Hourihane.
81450         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81452 2009-02-28  Bruno Haible  <bruno@clisp.org>
81454         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
81455         SIGCHLD.
81456         Reported by Jim Meyering.
81458 2009-02-28  Bruno Haible  <bruno@clisp.org>
81460         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
81461         Mention the results of these tests on various platforms.
81462         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
81463         order.
81464         * doc/posix-functions/printf.texi: Likewise.
81465         * doc/posix-functions/snprintf.texi: Likewise.
81466         * doc/posix-functions/sprintf.texi: Likewise.
81467         * doc/posix-functions/vfprintf.texi: Likewise.
81468         * doc/posix-functions/vprintf.texi: Likewise.
81469         * doc/posix-functions/vsnprintf.texi: Likewise.
81470         * doc/posix-functions/vsprintf.texi: Likewise.
81471         * doc/glibc-functions/obstack_printf.texi: Likewise.
81472         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
81474 2009-02-28  Bruno Haible  <bruno@clisp.org>
81476         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
81477         Reported by Loïc Minier <lool@dooz.org>.
81479 2009-02-27  Bruno Haible  <bruno@clisp.org>
81481         * gnulib-tool (func_import): Make the sed expression used to create the
81482         sed script for updating the .gitignore file POSIX compliant.
81483         Reported by Eric Blake.
81485 2009-02-27  Bruno Haible  <bruno@clisp.org>
81487         * gnulib-tool (sed): Don't alias as "sed --posix".
81488         Reported by Eric Blake.
81490 2009-02-27  Bruno Haible  <bruno@clisp.org>
81492         Avoid test link errors.
81493         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
81494         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
81495         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
81496         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
81497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81499 2009-02-27  Bruno Haible  <bruno@clisp.org>
81501         Avoid spurious "(cached)" in configure output.
81502         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
81503         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
81504         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81505         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81506         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81507         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
81508         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81509         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
81510         Reported by Eric Blake.
81512 2009-02-27  Eric Blake  <ebb9@byu.net>
81514         printf: fix regression in previous patch
81515         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
81517 2009-02-27  Bruno Haible  <bruno@clisp.org>
81519         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
81520         value.
81521         * lib/stdint.in.h: Likewise.
81522         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
81524 2009-02-27  Eric Blake  <ebb9@byu.net>
81526         doc: mention more functions added in cygwin 1.7.0
81527         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
81528         addition.
81529         * doc/posix-functions/open_wmemstream.texi: Likewise.
81530         * doc/posix-functions/wcsnlen.texi: Likewise.
81531         * doc/posix-functions/wcsnrtombs.texi: Likewise.
81532         * doc/posix-functions/wcstod.texi: Likewise.
81533         * doc/posix-functions/wcstof.texi: Likewise.
81534         * doc/posix-functions/wcstoimax.texi: Likewise.
81535         * doc/posix-functions/wcstok.texi: Likewise.
81536         * doc/posix-functions/wcstoumax.texi: Likewise.
81538         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
81539         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
81540         * doc/posix-functions/fprintf.texi: Update.
81541         * doc/posix-functions/printf.texi: Update.
81542         * doc/posix-functions/snprintf.texi: Update.
81543         * doc/posix-functions/sprintf.texi: Update.
81544         * doc/posix-functions/vfprintf.texi: Update.
81545         * doc/posix-functions/vprintf.texi: Update.
81546         * doc/posix-functions/vsnprintf.texi: Update.
81547         * doc/posix-functions/vsprintf.texi: Update.
81548         * doc/glibc-functions/obstack_printf.texi: Update.
81549         * doc/glibc-functions/obstack_vprintf.texi: Update.
81551 2009-02-26  Eric Blake  <ebb9@byu.net>
81553         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
81554         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
81555         compilation bug by using runtime conversion.
81556         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
81557         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
81558         * modules/ceill-tests (Files): Use nan.h.
81559         * modules/floorl-tests (Files): Likewise.
81560         * modules/frexpl-tests (Files): Likewise.
81561         * modules/isnanl-tests (Files): Likewise.
81562         * modules/ldexpl-tests (Files): Likewise.
81563         * modules/roundl-tests (Files): Likewise.
81564         * modules/truncl-tests (Files): Likewise.
81565         * tests/test-ceill.c (main): Use a working NaN.
81566         * tests/test-floorl.c (main): Likewise.
81567         * tests/test-frexpl.c (main): Likewise.
81568         * tests/test-isnan.c (test_long_double): Likewise.
81569         * tests/test-isnanl.h (main): Likewise.
81570         * tests/test-ldexpl.h (main): Likewise.
81571         * tests/test-roundl.h (main): Likewise.
81572         * tests/test-truncl.h (main): Likewise.
81573         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
81575 2009-02-26  Eric Blake  <ebb9@byu.net>
81576             Bruno Haible  <bruno@clisp.org>
81578         Work around a *printf bug with %ls on Solaris.
81579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
81580         precision is specified, sprintf stops converting the wide string
81581         argument when the number of bytes that have been produced by this
81582         conversion equals or exceeds the precision.
81583         * doc/posix-functions/fprintf.texi: Update.
81584         * doc/posix-functions/printf.texi: Update.
81585         * doc/posix-functions/snprintf.texi: Update.
81586         * doc/posix-functions/sprintf.texi: Update.
81587         * doc/posix-functions/vfprintf.texi: Update.
81588         * doc/posix-functions/vprintf.texi: Update.
81589         * doc/posix-functions/vsnprintf.texi: Update.
81590         * doc/posix-functions/vsprintf.texi: Update.
81591         * doc/glibc-functions/obstack_printf.texi: Update.
81592         * doc/glibc-functions/obstack_vprintf.texi: Update.
81594 2009-02-26  Eric Blake  <ebb9@byu.net>
81596         stdlib: favor compiler check of random.h
81597         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
81598         to avoid an ObjC random.h installed by Swarm.
81600 2009-02-26  Bruno Haible  <bruno@clisp.org>
81602         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
81603         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
81604         Reported by Gary V. Vaughan <gary@gnu.org>.
81606 2009-02-26  Bruno Haible  <bruno@clisp.org>
81608         Fix *printf behaviour regarding the %ls directive.
81609         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
81610         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
81611         NEED_PRINTF_DIRECTIVE_LS.
81612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
81613         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81615         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
81616         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
81617         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
81618         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
81619         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81620         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81621         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81622         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81623         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
81624         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81625         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81626         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81627         * doc/posix-functions/fprintf.texi: Update.
81628         * doc/posix-functions/printf.texi: Update.
81629         * doc/posix-functions/snprintf.texi: Update.
81630         * doc/posix-functions/sprintf.texi: Update.
81631         * doc/posix-functions/vfprintf.texi: Update.
81632         * doc/posix-functions/vprintf.texi: Update.
81633         * doc/posix-functions/vsnprintf.texi: Update.
81634         * doc/posix-functions/vsprintf.texi: Update.
81635         * doc/glibc-functions/obstack_printf.texi: Update.
81636         * doc/glibc-functions/obstack_vprintf.texi: Update.
81637         Reported by Eric Blake.
81639 2009-02-25  Bruno Haible  <bruno@clisp.org>
81641         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
81642         with known value.
81643         Reported by Gary V. Vaughan <gary@gnu.org>.
81645 2009-02-25  Bruno Haible  <bruno@clisp.org>
81647         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
81648         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
81649         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
81650         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
81651         Reported by Gary V. Vaughan <gary@gnu.org>.
81653 2009-02-25  Bruno Haible  <bruno@clisp.org>
81655         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
81656         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
81657         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
81658         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
81659         Reported by Gary V. Vaughan <gary@gnu.org>.
81661 2009-02-25  Eric Blake  <ebb9@byu.net>
81663         tests: skip fseek/ftell tests if ungetc is broken
81664         * m4/ungetc.m4: New file.
81665         * modules/fseek-tests: Split test, so ungetc dependency is
81666         separate from rest of test.
81667         * modules/fseeko-tests: Likewise.
81668         * modules/ftell-tests: Likewise.
81669         * modules/ftello-tests: Likewise.
81670         * tests/test-fseek.c (main): Isolate ungetc dependency.
81671         * tests/test-fseeko.c (main): Likewise.
81672         * tests/test-ftell.c (main): Likewise.
81673         * tests/test-ftello.c (main): Likewise.
81674         * tests/test-fseek2.sh: New file.
81675         * tests/test-fseeko2.sh: Likewise.
81676         * tests/test-ftell2.sh: Likewise.
81677         * tests/test-ftello2.sh: Likewise.
81679 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
81681         test-getaddrinfo: fix usage of skip return code 77
81682         * tests/test-gettaddrinfo.c: Return skip code 77 only
81683         for first occurrence of skip (4x77 is not 77)
81685 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
81687         strtod: avoid C99 decl-after-statement
81688         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
81690 2009-02-24  Eric Blake  <ebb9@byu.net>
81692         strtod: detect HP-UX 11.31 bug
81693         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
81694         Reported by Gary V. Vaughan.
81696 2009-02-23  Bruno Haible  <bruno@clisp.org>
81698         Fix invalid read past end of memory block.
81699         * lib/vasnprintf.c (DCHAR_SET): Define.
81700         (local_wcslen): Define only when needed.
81701         (local_strnlen, local_wcsnlen): New functions.
81702         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
81703         directives that involve a conversion ourselves.
81704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
81705         wcsnlen, mbrtowc, wcrtomb.
81706         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
81707         * tests/test-vasprintf-posix.c (test_function): Likewise.
81708         * tests/test-snprintf-posix.h (test_function): Likewise.
81709         * tests/test-sprintf-posix.h (test_function): Likewise.
81710         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81712 2009-02-22  Bruno Haible  <bruno@clisp.org>
81714         Implement new clarified decomposition of Hangul syllables.
81715         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
81716         of type LTV, return only a pairwise decomposition.
81717         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
81718         Likewise.
81719         * tests/uninorm/test-decomposition.c (main): Updated expected result.
81720         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
81721         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
81723 2009-02-22  Bruno Haible  <bruno@clisp.org>
81725         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
81726         zero-length results and shrink excess allocated memory.
81727         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
81728         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
81729         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
81730         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
81731         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
81732         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
81733         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
81734         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
81735         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
81736         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
81737         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
81738         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
81740 2009-02-21  Bruno Haible  <bruno@clisp.org>
81742         * doc/gnulib.texi: Include safe-alloc.texi earlier.
81743         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
81744         spaces after a period. Put a space between a macro name and its
81745         argument list. Trivial rewordings.
81746         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
81747         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
81748         (main): Return 0 explicitly.
81750 2009-02-21  Bruno Haible  <bruno@clisp.org>
81752         Tests for module 'uninorm/filter'.
81753         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
81754         * modules/uninorm/filter-tests: New file.
81756         New module 'uninorm/filter'.
81757         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
81758         uninorm_filter_flush, uninorm_filter_free): New declarations.
81759         * lib/uninorm/uninorm-filter.c: New file.
81760         * modules/uninorm/filter: New file.
81762 2009-02-21  Bruno Haible  <bruno@clisp.org>
81764         Tests for module 'uninorm/nfkc'.
81765         * tests/uninorm/test-nfkc.c: New file.
81766         * tests/uninorm/test-u8-nfkc.c: New file.
81767         * tests/uninorm/test-u16-nfkc.c: New file.
81768         * tests/uninorm/test-u32-nfkc.c: New file.
81769         * tests/uninorm/test-u32-nfkc-big.sh: New file.
81770         * tests/uninorm/test-u32-nfkc-big.c: New file.
81771         * modules/uninorm/nfkc-tests: New file.
81773         New module 'uninorm/nfkc'.
81774         * lib/uninorm/nfkc.c: New file.
81775         * modules/uninorm/nfkc: New file.
81777         Tests for module 'uninorm/nfkd'.
81778         * tests/uninorm/test-nfkd.c: New file.
81779         * tests/uninorm/test-u8-nfkd.c: New file.
81780         * tests/uninorm/test-u16-nfkd.c: New file.
81781         * tests/uninorm/test-u32-nfkd.c: New file.
81782         * tests/uninorm/test-u32-nfkd-big.sh: New file.
81783         * tests/uninorm/test-u32-nfkd-big.c: New file.
81784         * modules/uninorm/nfkd-tests: New file.
81786         New module 'uninorm/nfkd'.
81787         * lib/uninorm/nfkd.c: New file.
81788         * modules/uninorm/nfkd: New file.
81790         Tests for module 'uninorm/nfc'.
81791         * tests/uninorm/test-nfc.c: New file.
81792         * tests/uninorm/test-u8-nfc.c: New file.
81793         * tests/uninorm/test-u16-nfc.c: New file.
81794         * tests/uninorm/test-u32-nfc.c: New file.
81795         * tests/uninorm/test-u32-nfc-big.sh: New file.
81796         * tests/uninorm/test-u32-nfc-big.c: New file.
81797         * modules/uninorm/nfc-tests: New file.
81799         New module 'uninorm/nfc'.
81800         * lib/uninorm/nfc.c: New file.
81801         * modules/uninorm/nfc: New file.
81803         Tests for module 'uninorm/nfd'.
81804         * tests/uninorm/test-nfd.c: New file.
81805         * tests/uninorm/test-u8-nfd.c: New file.
81806         * tests/uninorm/test-u16-nfd.c: New file.
81807         * tests/uninorm/test-u32-nfd.c: New file.
81808         * tests/uninorm/test-u32-nfd-big.sh: New file.
81809         * tests/uninorm/test-u32-nfd-big.c: New file.
81810         * tests/uninorm/test-u32-normalize-big.h: New file.
81811         * tests/uninorm/test-u32-normalize-big.c: New file.
81812         * tests/uninorm/NormalizationTest.txt: New file, created from
81813         Unicode 5.1.0 NormalizationTest.txt.
81814         * modules/uninorm/nfd-tests: New file.
81816         New module 'uninorm/nfd'.
81817         * lib/uninorm/nfd.c: New file.
81818         * modules/uninorm/nfd: New file.
81820         New module 'uninorm/u32-normalize'.
81821         * lib/uninorm/u32-normalize.c: New file.
81822         * modules/uninorm/u32-normalize: New file.
81824         New module 'uninorm/u16-normalize'.
81825         * lib/uninorm/u16-normalize.c: New file.
81826         * modules/uninorm/u16-normalize: New file.
81828         New module 'uninorm/u8-normalize'.
81829         * lib/uninorm/u8-normalize.c: New file.
81830         * lib/uninorm/normalize-internal.h: New file.
81831         * lib/uninorm/u-normalize-internal.h: New file.
81832         * modules/uninorm/u8-normalize: New file.
81834         New module 'uninorm/decompose-internal'.
81835         * lib/uninorm/decompose-internal.c: New file.
81836         * modules/uninorm/decompose-internal: New file.
81838         Tests for module 'uninorm/composition'.
81839         * tests/uninorm/test-composition.c: New file.
81840         * modules/uninorm/composition-tests: New file.
81842         New module 'uninorm/composition'.
81843         * lib/uninorm/composition.c: New file.
81844         * lib/uninorm/composition-table.gperf: New file, generated by
81845         gen-uni-tables.
81846         * modules/uninorm/composition: New file.
81848         Tests for module 'uninorm/compat-decomposition'.
81849         * tests/uninorm/test-compat-decomposition.c: New file.
81850         * modules/uninorm/compat-decomposition-tests: New file.
81852         New module 'uninorm/compat-decomposition'.
81853         * lib/uninorm/decompose-internal.h: New file.
81854         * lib/uninorm/compat-decomposition.c: New file.
81855         * modules/uninorm/compat-decomposition: New file.
81857         Tests for module 'uninorm/canonical-decomposition'.
81858         * tests/uninorm/test-canonical-decomposition.c: New file.
81859         * modules/uninorm/canonical-decomposition-tests: New file.
81861         New module 'uninorm/canonical-decomposition'.
81862         * lib/uninorm/canonical-decomposition.c: New file.
81863         * modules/uninorm/canonical-decomposition: New file.
81865         Tests for module 'uninorm/decomposition'.
81866         * tests/uninorm/test-decomposition.c: New file.
81867         * modules/uninorm/decomposition-tests: New file.
81869         New module 'uninorm/decomposition'.
81870         * lib/uninorm/decomposition.c: New file.
81871         * modules/uninorm/decomposition: New file.
81873         New module 'uninorm/decomposition-table'.
81874         * lib/uninorm/decomposition-table.h: New file.
81875         * lib/uninorm/decomposition-table.c: New file.
81876         * lib/uninorm/decomposition-table1.h: New file, generated by
81877         gen-uni-tables.
81878         * lib/uninorm/decomposition-table2.h: New file, generated by
81879         gen-uni-tables.
81880         * modules/uninorm/decomposition-table: New file.
81882         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
81883         (UC_DECOMP_*): New enumeration items.
81884         (get_decomposition): New function.
81885         (struct decomp_table): New type.
81886         (output_decomposition, output_decomposition_tables): New functions.
81887         (unicode_composition_exclusions): New variable.
81888         (fill_composition_exclusions, debug_output_composition_tables): New
81889         functions.
81890         (main): Accept one more argument. Invoke fill_composition_exclusions.
81891         Output decomposition and composition tables.
81893         New module 'uninorm/base'.
81894         * lib/uninorm.h: New file.
81895         * lib/unictype.h: Update comment.
81896         * modules/uninorm/base: New file.
81898 2009-02-21  David Lutterkort  <lutter@redhat.com>
81900         Tests for module 'safe-alloc'.
81901         * tests/test-safe-alloc.c: New file.
81902         * modules/safe-alloc-tests: New file.
81904         New module 'safe-alloc'.
81905         * lib/safe-alloc.h: New file.
81906         * lib/safe-alloc.c: New file.
81907         * m4/safe-alloc.m4: New file.
81908         * modules/safe-alloc: New file.
81909         * doc/safe-alloc.texi: New file.
81910         * doc/gnulib.texi: Include it.
81911         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
81912         safe-alloc.
81914 2009-02-18  Bruno Haible  <bruno@clisp.org>
81916         Fix link error on non-glibc systems.
81917         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
81918         variable.
81919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81921 2009-02-18  Jim Meyering  <meyering@redhat.com>
81923         fts: avoid used-uninitialized error due to recent change
81924         * lib/fts.c (fts_read): Guard uses of the new member,
81925         parent->fts_n_dirs_remaining, since it's not relevant for
81926         the parent of a directory specified on the command-line.
81928 2009-02-17  James Youngman  <jay@gnu.org>
81929             Bruno Haible  <bruno@clisp.org>
81931         * m4/include_next.m4: Reformulate comment.
81933 2009-02-16  Jim Meyering  <meyering@redhat.com>
81935         fts: add #if guards so that the fts_lgpl module still builds
81936         * lib/fts.c: Guard just-added hash-table-using parts with
81937         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
81938         Reported by Simon Josefsson.
81940 2009-02-15  Bruno Haible  <bruno@clisp.org>
81942         * modules/array-mergesort-tests: New file.
81943         * tests/test-array-mergesort.c: New file.
81945         New module 'array-mergesort'.
81946         * modules/array-mergesort: New file.
81947         * lib/array-mergesort.h: New file.
81949 2009-02-15  Bruno Haible  <bruno@clisp.org>
81951         Fix 2009-02-07 commit.
81952         * lib/gen-uni-tables.c (output_predicate, output_category,
81953         output_combclass, output_bidi_category, output_decimal_digit,
81954         output_digit, output_numeric, output_mirror, output_scripts,
81955         output_ident_category, output_simple_mapping): Fix format directives.
81956         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
81958 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
81960         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
81961         fixes are available from IBM.
81963 2009-02-13  Jim Meyering  <meyering@redhat.com>
81965         fts: arrange not to stat non-directories in more cases
81966         This makes GNU find (when it doesn't need to stat each file)
81967         *much* more efficient at traversing reiserfs file systems.
81968         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
81969         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
81970         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
81971         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
81972         (leaf_optimization_applies): New function.
81973         (LCO_hash, LCO_compare): New helper functions.
81974         (link_count_optimize_ok): New function.
81975         (fts_stat): Initialize new member (if dir).
81976         (fts_read): Decrement parent's fts_n_dirs_remaining count if
81977         we've just stat'ed a directory.  Skip the stat call when possible.
81978         ---
81979         Note this AFS-related exchange:
81980         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
81981         and note find's pioctl call in find/fstype.c.
81982         But that is necessary only if you want to enable the
81983         optimization for AFS, and for now, I don't.
81985         fts: move a function definition "up" (no semantic change)
81986         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
81987         "up" to precede upcoming use of a related function.
81989 2009-02-11  Jim Meyering  <meyering@redhat.com>
81991         fts: correct internal computation of nlinks (optimization-related)
81992         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
81993         whether the current entry is a directory, so don't test it.
81995 2009-02-10  Bruno Haible  <bruno@clisp.org>
81997         Tests for module 'uniwbrk/ulc-wordbreaks'.
81998         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
81999         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
82000         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
82002         Tests for module 'uniwbrk/u32-wordbreaks'.
82003         * modules/uniwbrk/u32-wordbreaks-tests: New file.
82004         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
82006         Tests for module 'uniwbrk/u16-wordbreaks'.
82007         * modules/uniwbrk/u16-wordbreaks-tests: New file.
82008         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
82010         Tests for module 'uniwbrk/u8-wordbreaks'.
82011         * modules/uniwbrk/u8-wordbreaks-tests: New file.
82012         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
82014 2009-02-10  Bruno Haible  <bruno@clisp.org>
82016         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
82017         property.
82018         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
82019         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
82020         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
82022 2009-02-10  Simon Josefsson  <simon@josefsson.org>
82024         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
82025         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
82027 2009-02-10  Bruno Haible  <bruno@clisp.org>
82029         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
82030         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
82031         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
82032         * lib/unilbrk/u8-possible-linebreaks.c: Update.
82033         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
82034         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
82036 2009-02-09  Simon Josefsson  <simon@josefsson.org>
82038         * lib/sockets.h (gl_fd_to_handle): New function.
82040         * tests/test-sockets.c: Call gl_fd_to_handle.
82042 2009-02-09  Bruno Haible  <bruno@clisp.org>
82044         * doc/havelib.texi: Document the conventions on bi-arch systems.
82046 2009-02-08  Bruno Haible  <bruno@clisp.org>
82048         Document the AC_LIB_LINKFLAGS macro.
82049         * doc/havelib.texi: New file, mostly written on 2005-05-24.
82050         * doc/gnulib.texi: Include it.
82052 2009-02-08  Bruno Haible  <bruno@clisp.org>
82054         Fix wrong order of sections, compared to TOC.
82055         * doc/gnulib.texi: Include relocatable-maint.texi after the
82056         "Regular expressions" node, not before.
82058 2009-02-08  Bruno Haible  <bruno@clisp.org>
82060         Tests for module 'unicase/totitle'.
82061         * modules/unicase/totitle-tests: New file.
82063         Tests for module 'unicase/tolower'.
82064         * modules/unicase/tolower-tests: New file.
82066         Tests for module 'unicase/toupper'.
82067         * modules/unicase/toupper-tests: New file.
82068         * tests/unicase/test-mapping-part1.h: New file.
82069         * tests/unicase/test-mapping-part2.h: New file.
82071         New module 'unicase/totitle'.
82072         * modules/unicase/totitle: New file.
82073         * lib/unicase/totitle.c: New file.
82075         New module 'unicase/tolower'.
82076         * modules/unicase/tolower: New file.
82077         * lib/unicase/tolower.c: New file.
82079         New module 'unicase/toupper'.
82080         * modules/unicase/toupper: New file.
82081         * lib/unicase/toupper.c: New file.
82082         * lib/unicase/simple-mapping.h: New file.
82084         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
82085         (mapping_table): New structure.
82086         (output_simple_mapping): New function.
82087         (main): Invoke output_simple_mapping_test and output_simple_mapping.
82088         * modules/gen-uni-tables (Description): Update.
82089         * lib/unicase/toupper.h: New file, automatically generated by
82090         gen-uni-tables.
82091         * lib/unicase/tolower.h: New file, automatically generated by
82092         gen-uni-tables.
82093         * lib/unicase/totitle.h: New file, automatically generated by
82094         gen-uni-tables.
82095         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
82096         gen-uni-tables.
82097         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
82098         gen-uni-tables.
82099         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
82100         gen-uni-tables.
82102         New module 'unicase/base'.
82103         * modules/unicase/base: New file.
82104         * lib/unicase.h: New file.
82106 2009-02-08  Bruno Haible  <bruno@clisp.org>
82108         New module 'uniwbrk/ulc-wordbreaks'.
82109         * modules/uniwbrk/ulc-wordbreaks: New file.
82110         * lib/uniwbrk/ulc-wordbreaks.c: New file.
82112         New module 'uniwbrk/u32-wordbreaks'.
82113         * modules/uniwbrk/u32-wordbreaks: New file.
82114         * lib/uniwbrk/u32-wordbreaks.c: New file.
82116         New module 'uniwbrk/u16-wordbreaks'.
82117         * modules/uniwbrk/u16-wordbreaks: New file.
82118         * lib/uniwbrk/u16-wordbreaks.c: New file.
82120         New module 'uniwbrk/u8-wordbreaks'.
82121         * modules/uniwbrk/u8-wordbreaks: New file.
82122         * lib/uniwbrk/u8-wordbreaks.c: New file.
82123         * lib/uniwbrk/u-wordbreaks.h: New file.
82125         New module 'uniwbrk/table'.
82126         * modules/uniwbrk/table: New file.
82127         * lib/uniwbrk/wbrktable.h: New file.
82128         * lib/uniwbrk/wbrktable.c: New file.
82130         New module 'uniwbrk/wordbreak-property'.
82131         * modules/uniwbrk/wordbreak-property: New file.
82132         * lib/uniwbrk/wordbreak-property.c: New file.
82134         * lib/gen-uni-tables.c (WBP_*): New enum items.
82135         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
82136         (unicode_org_wbp): New variable.
82137         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
82138         New functions.
82139         (wbp_table): New structure.
82140         (output_wbp, output_wbrk_tables): New functions.
82141         (main): Accept additional argument. Invoke fill_org_wbp,
82142         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
82143         output_wbrk_tables.
82144         * modules/gen-uni-tables (Description): Update.
82145         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
82146         gen-uni-tables.
82148         New module 'uniwbrk/base'.
82149         * modules/uniwbrk/base: New file.
82150         * lib/uniwbrk.h: New file.
82152 2009-02-08  Bruno Haible  <bruno@clisp.org>
82154         Update to Unicode 5.1.0.
82155         * lib/gen-uni-tables.c (is_property_alphabetic): Include
82156         U+2185..U+2188.
82157         (is_property_default_ignorable_code_point): Don't include characters
82158         of category Cc or Cs and not-a-characters.
82159         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
82160         U+0D79, U+109E, U+109F, U+A60C.
82161         * lib/unictype/bidi_of.h: Regenerated.
82162         * lib/unictype/blocks.h: Regenerated.
82163         * lib/unictype/categ_C.h: Regenerated.
82164         * lib/unictype/categ_Cf.h: Regenerated.
82165         * lib/unictype/categ_Cn.h: Regenerated.
82166         * lib/unictype/categ_L.h: Regenerated.
82167         * lib/unictype/categ_Ll.h: Regenerated.
82168         * lib/unictype/categ_Lm.h: Regenerated.
82169         * lib/unictype/categ_Lo.h: Regenerated.
82170         * lib/unictype/categ_Lu.h: Regenerated.
82171         * lib/unictype/categ_M.h: Regenerated.
82172         * lib/unictype/categ_Mc.h: Regenerated.
82173         * lib/unictype/categ_Me.h: Regenerated.
82174         * lib/unictype/categ_Mn.h: Regenerated.
82175         * lib/unictype/categ_N.h: Regenerated.
82176         * lib/unictype/categ_Nd.h: Regenerated.
82177         * lib/unictype/categ_Nl.h: Regenerated.
82178         * lib/unictype/categ_No.h: Regenerated.
82179         * lib/unictype/categ_P.h: Regenerated.
82180         * lib/unictype/categ_Pd.h: Regenerated.
82181         * lib/unictype/categ_Pe.h: Regenerated.
82182         * lib/unictype/categ_Pf.h: Regenerated.
82183         * lib/unictype/categ_Pi.h: Regenerated.
82184         * lib/unictype/categ_Po.h: Regenerated.
82185         * lib/unictype/categ_Ps.h: Regenerated.
82186         * lib/unictype/categ_S.h: Regenerated.
82187         * lib/unictype/categ_Sk.h: Regenerated.
82188         * lib/unictype/categ_Sm.h: Regenerated.
82189         * lib/unictype/categ_So.h: Regenerated.
82190         * lib/unictype/categ_of.h: Regenerated.
82191         * lib/unictype/combining.h: Regenerated.
82192         * lib/unictype/ctype_alnum.h: Regenerated.
82193         * lib/unictype/ctype_alpha.h: Regenerated.
82194         * lib/unictype/ctype_graph.h: Regenerated.
82195         * lib/unictype/ctype_lower.h: Regenerated.
82196         * lib/unictype/ctype_print.h: Regenerated.
82197         * lib/unictype/ctype_punct.h: Regenerated.
82198         * lib/unictype/ctype_upper.h: Regenerated.
82199         * lib/unictype/decdigit.h: Regenerated.
82200         * lib/unictype/digit.h: Regenerated.
82201         * lib/unictype/mirror.h: Regenerated.
82202         * lib/unictype/numeric.h: Regenerated.
82203         * lib/unictype/pr_alphabetic.h: Regenerated.
82204         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
82205         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
82206         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
82207         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
82208         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
82209         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
82210         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
82211         * lib/unictype/pr_combining.h: Regenerated.
82212         * lib/unictype/pr_dash.h: Regenerated.
82213         * lib/unictype/pr_decimal_digit.h: Regenerated.
82214         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
82215         * lib/unictype/pr_deprecated.h: Regenerated.
82216         * lib/unictype/pr_diacritic.h: Regenerated.
82217         * lib/unictype/pr_extender.h: Regenerated.
82218         * lib/unictype/pr_format_control.h: Regenerated.
82219         * lib/unictype/pr_grapheme_base.h: Regenerated.
82220         * lib/unictype/pr_grapheme_extend.h: Regenerated.
82221         * lib/unictype/pr_grapheme_link.h: Regenerated.
82222         * lib/unictype/pr_id_continue.h: Regenerated.
82223         * lib/unictype/pr_id_start.h: Regenerated.
82224         * lib/unictype/pr_ideographic.h: Regenerated.
82225         * lib/unictype/pr_ignorable_control.h: Regenerated.
82226         * lib/unictype/pr_lowercase.h: Regenerated.
82227         * lib/unictype/pr_math.h: Regenerated.
82228         * lib/unictype/pr_numeric.h: Regenerated.
82229         * lib/unictype/pr_other_alphabetic.h: Regenerated.
82230         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
82231         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
82232         * lib/unictype/pr_other_id_continue.h: Regenerated.
82233         * lib/unictype/pr_other_lowercase.h: Regenerated.
82234         * lib/unictype/pr_other_math.h: Regenerated.
82235         * lib/unictype/pr_punctuation.h: Regenerated.
82236         * lib/unictype/pr_sentence_terminal.h: Regenerated.
82237         * lib/unictype/pr_soft_dotted.h: Regenerated.
82238         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
82239         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
82240         * lib/unictype/pr_unified_ideograph.h: Regenerated.
82241         * lib/unictype/pr_uppercase.h: Regenerated.
82242         * lib/unictype/pr_xid_continue.h: Regenerated.
82243         * lib/unictype/pr_xid_start.h: Regenerated.
82244         * lib/unictype/pr_zero_width.h: Regenerated.
82245         * lib/unictype/scripts.h: Regenerated.
82246         * lib/unictype/scripts_byname.gperf: Regenerated.
82247         * lib/unictype/sy_java_ident.h: Regenerated.
82248         * lib/unilbrk/lbrkprop1.h: Regenerated.
82249         * lib/unilbrk/lbrkprop2.h: Regenerated.
82250         * tests/unictype/test-categ_C.c: Regenerated.
82251         * tests/unictype/test-categ_Cf.c: Regenerated.
82252         * tests/unictype/test-categ_Cn.c: Regenerated.
82253         * tests/unictype/test-categ_L.c: Regenerated.
82254         * tests/unictype/test-categ_Ll.c: Regenerated.
82255         * tests/unictype/test-categ_Lm.c: Regenerated.
82256         * tests/unictype/test-categ_Lo.c: Regenerated.
82257         * tests/unictype/test-categ_Lu.c: Regenerated.
82258         * tests/unictype/test-categ_M.c: Regenerated.
82259         * tests/unictype/test-categ_Mc.c: Regenerated.
82260         * tests/unictype/test-categ_Me.c: Regenerated.
82261         * tests/unictype/test-categ_Mn.c: Regenerated.
82262         * tests/unictype/test-categ_N.c: Regenerated.
82263         * tests/unictype/test-categ_Nd.c: Regenerated.
82264         * tests/unictype/test-categ_Nl.c: Regenerated.
82265         * tests/unictype/test-categ_No.c: Regenerated.
82266         * tests/unictype/test-categ_P.c: Regenerated.
82267         * tests/unictype/test-categ_Pd.c: Regenerated.
82268         * tests/unictype/test-categ_Pe.c: Regenerated.
82269         * tests/unictype/test-categ_Pf.c: Regenerated.
82270         * tests/unictype/test-categ_Pi.c: Regenerated.
82271         * tests/unictype/test-categ_Po.c: Regenerated.
82272         * tests/unictype/test-categ_Ps.c: Regenerated.
82273         * tests/unictype/test-categ_S.c: Regenerated.
82274         * tests/unictype/test-categ_Sk.c: Regenerated.
82275         * tests/unictype/test-categ_Sm.c: Regenerated.
82276         * tests/unictype/test-categ_So.c: Regenerated.
82277         * tests/unictype/test-ctype_alnum.c: Regenerated.
82278         * tests/unictype/test-ctype_alpha.c: Regenerated.
82279         * tests/unictype/test-ctype_graph.c: Regenerated.
82280         * tests/unictype/test-ctype_lower.c: Regenerated.
82281         * tests/unictype/test-ctype_print.c: Regenerated.
82282         * tests/unictype/test-ctype_punct.c: Regenerated.
82283         * tests/unictype/test-ctype_upper.c: Regenerated.
82284         * tests/unictype/test-decdigit.h: Regenerated.
82285         * tests/unictype/test-digit.h: Regenerated.
82286         * tests/unictype/test-numeric.h: Regenerated.
82287         * tests/unictype/test-pr_alphabetic.c: Regenerated.
82288         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
82289         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
82290         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
82291         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
82292         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
82293         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
82294         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
82295         * tests/unictype/test-pr_combining.c: Regenerated.
82296         * tests/unictype/test-pr_dash.c: Regenerated.
82297         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
82298         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
82299         * tests/unictype/test-pr_deprecated.c: Regenerated.
82300         * tests/unictype/test-pr_diacritic.c: Regenerated.
82301         * tests/unictype/test-pr_extender.c: Regenerated.
82302         * tests/unictype/test-pr_format_control.c: Regenerated.
82303         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
82304         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
82305         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
82306         * tests/unictype/test-pr_id_continue.c: Regenerated.
82307         * tests/unictype/test-pr_id_start.c: Regenerated.
82308         * tests/unictype/test-pr_ideographic.c: Regenerated.
82309         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
82310         * tests/unictype/test-pr_lowercase.c: Regenerated.
82311         * tests/unictype/test-pr_math.c: Regenerated.
82312         * tests/unictype/test-pr_numeric.c: Regenerated.
82313         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
82314         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
82315         Regenerated.
82316         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
82317         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
82318         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
82319         * tests/unictype/test-pr_other_math.c: Regenerated.
82320         * tests/unictype/test-pr_punctuation.c: Regenerated.
82321         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
82322         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
82323         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
82324         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
82325         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
82326         * tests/unictype/test-pr_uppercase.c: Regenerated.
82327         * tests/unictype/test-pr_xid_continue.c: Regenerated.
82328         * tests/unictype/test-pr_xid_start.c: Regenerated.
82329         * tests/unictype/test-pr_zero_width.c: Regenerated.
82331         Update to Unicode 5.1.0.
82332         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
82333         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
82334         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
82335         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
82336         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
82337         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
82338         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
82339         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
82340         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
82341         (nonspacing_table_ind): Update.
82342         * tests/uniwidth/test-uc_width2.sh: Update expected result.
82344         Update to Unicode 5.1.0.
82345         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
82346         code transform.
82347         * lib/uniname/uniname.c (unicode_character_name,
82348         unicode_name_character): Add the range 0x1Fxxx to the code transform.
82349         * lib/uniname/uninames.h: Regenerated.
82350         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
82352 2009-02-07  Bruno Haible  <bruno@clisp.org>
82354         Merge gen-ctype and gen-lbrk into a single program.
82355         * lib/gen-uni-tables.c: New file, incorporating
82356         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
82357         Add directory prefixes to the names of the generated files.
82358         * lib/unictype/gen-ctype.c: Remove file.
82359         * lib/unilbrk/gen-lbrk.c: Remove file.
82360         * modules/gen-uni-tables: New file.
82361         * modules/unictype/gen-ctype: Remove file.
82362         * modules/unilbrk/gen-lbrk: Remove file.
82364 2009-02-07  Bruno Haible  <bruno@clisp.org>
82366         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
82368         New module 'unistr/u32-strcoll'.
82369         * modules/unistr/u32-strcoll: New file.
82370         * lib/unistr/u32-strcoll.c: New file.
82372         New module 'unistr/u16-strcoll'.
82373         * modules/unistr/u16-strcoll: New file.
82374         * lib/unistr/u16-strcoll.c: New file.
82376         New module 'unistr/u8-strcoll'.
82377         * modules/unistr/u8-strcoll: New file.
82378         * lib/unistr/u8-strcoll.c: New file.
82379         * lib/unistr/u-strcoll.h: New file.
82381 2009-02-07  Bruno Haible  <bruno@clisp.org>
82383         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
82384         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82385         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
82386         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
82387         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
82388         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
82390 2009-02-07  Bruno Haible  <bruno@clisp.org>
82392         Make 64-bit clean.
82393         * lib/unictype/gen-ctype.c (output_predicate, output_category,
82394         output_combclass, output_bidi_category, output_decimal_digit,
82395         output_digit, output_numeric, output_mirror, output_scripts,
82396         output_ident_category): Use proper width specifier in format strings.
82398 2009-02-07  Bruno Haible  <bruno@clisp.org>
82400         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
82401         failure behaviour.
82403 2009-02-07  Jim Meyering  <meyering@redhat.com>
82405         regex: avoid compilation failure with upcoming gcc-4.4
82406         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
82407         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
82408         "... error: integer overflow in preprocessor expression".
82410 2009-02-05  Ben Pfaff  <blp@gnu.org>
82412         Fix link errors on Windows when close module is used.
82413         * modules/close: Add $(LIB_CLOSE) to Link section.
82414         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
82415         $(LIB_CLOSE) on Windows.
82417 2009-02-05  Jim Meyering  <meyering@redhat.com>
82419         still avoid unused-parameter warnings, but do it cleanly
82420         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
82421         (get_fs_usage): Cast to void instead.
82422         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
82423         (dev_from_mount_options, read_file_system_list): Cast to void.
82424         Prompted by Bruno Haible.
82426 2009-02-04  Jim Meyering  <meyering@redhat.com>
82428         fsusage.c: correct copyright year
82429         * lib/fsusage.c: Reflect year in which the change is pushed into
82431         avoid misc. warnings
82432         * lib/fsusage.c (UNUSED_PARAM): Define.
82433         (get_fs_usage): Mark parameter "disk" as unused.
82434         * lib/getugroups.c (getgrent): Use "void" in prototype.
82435         * lib/mountlist.c: Mark unused parameters.
82436         (read_file_system_list): Declare a local with "const".
82437         * lib/nanosleep.c (getnow): Declare static.
82438         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
82440         dirfd: set errno upon failure
82441         * lib/dirfd.c: Include <errno.h>.
82442         Set errno to ENOTSUP when returning -1.
82443         * modules/dirfd (Depends-on): Add errno.
82444         Suggested by John Kodis <kodis@comcast.net>.
82446 2009-02-01  Bruno Haible  <bruno@clisp.org>
82448         Don't assume sizeof (long) >= sizeof (void *).
82449         * lib/memcmp.c: Include stdint.h.
82450         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
82451         srcp2 to 'const byte *'.
82452         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
82453         types to uintptr_t.
82454         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
82455         * modules/memcmp (Depends-on): Add stdint.
82456         Reported by Ozkan Sezer <sezeroz@gmail.com>.
82458 2009-01-30  Eric Blake  <ebb9@byu.net>
82460         fix more require-before-expand issues
82461         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
82462         expand, AC_PROG_AWK.
82463         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
82465 2009-01-28  Eric Blake  <ebb9@byu.net>
82467         version-etc: use consistent URL formatting
82468         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
82469         Improve formatting.  Use fputs for string without %.
82471 2009-01-28  Jim Meyering  <meyering@redhat.com>
82473         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
82474         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
82475         "underquoted definition of NAME" from autoconf-2.59.
82477 2009-01-28  Bruno Haible  <bruno@clisp.org>
82479         * doc/gnulib.texi: Add "Obsolete modules" to index.
82481 2009-01-28  Jim Meyering  <meyering@redhat.com>
82483         useless-if-before-free: recognize more variants
82484         * build-aux/useless-if-before-free: Also recognize e.g.,
82485         if (NULL != p) free (p);
82487 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
82489         test-getaddrinfo: skip (don't fail) this test when there's no network
82490         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
82491         on the presumption that it means you lack network access.
82493 2009-01-26  Jim Meyering  <meyering@redhat.com>
82495         fflush: avoid warnings on modern systems
82496         * lib/fflush.c (rpl_fflush): Move declarations of locals,
82497         pos and result, into scopes where they're used.
82499 2009-01-26  Eric Blake  <ebb9@byu.net>
82501         Silence warning reintroduced by recent extensions patch.
82502         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
82503         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
82504         autoconf.
82506         Backport improved autoconf semantics of AC_DEFUN_ONCE.
82507         * m4/00gnulib.m4: New file.
82508         * gnulib-tool (func_get_filelist): Always use it.
82509         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
82510         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
82512 2009-01-25  Bruno Haible  <bruno@clisp.org>
82514         Make test-quotearg work on MacOS X and AIX.
82515         * tests/test-quotearg.sh: New file.
82516         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
82517         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
82518         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
82519         include <libintl.h>.
82520         (fake_locale): Remove variable.
82521         (gettext, dgettext, dcgettext): Remove functions.
82522         (main): Instead of setting a fake locale, set a real locale. Call
82523         textdomain and bindtextdomain.
82524         * modules/quotearg-tests (Files): Add the new files.
82525         (Depends-on): Add gettext, setenv, unsetenv.
82526         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
82527         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
82528         Augment TESTS_ENVIRONMENT.
82530 2009-01-25  Bruno Haible  <bruno@clisp.org>
82532         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
82533         fr_FR.ISO8859-1 locale on MacOS X.
82534         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
82535         ja_JP.eucJP locale on MacOS X.
82536         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
82537         zh_CN.GB18030 locale on MacOS X.
82539 2009-01-25  Bruno Haible  <bruno@clisp.org>
82541         Avoid link errors on MacOS X 10.3.
82542         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
82543         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82545 2009-01-25  Bruno Haible  <bruno@clisp.org>
82547         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82548         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
82549         * modules/pipe (Files): Remove m4/posix_spawn.m4.
82550         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82551         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
82552         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82553         posix_spawnattr_init, posix_spawnattr_setsigmask,
82554         posix_spawnattr_setflags, posix_spawnattr_destroy.
82556         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
82557         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
82558         * modules/execute (Files): Remove m4/posix_spawn.m4.
82559         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
82560         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
82561         posix_spawnattr_init, posix_spawnattr_setsigmask,
82562         posix_spawnattr_setflags, posix_spawnattr_destroy.
82564 2009-01-25  Bruno Haible  <bruno@clisp.org>
82566         * lib/glthread/threadlib.c: Include <stdlib.h>.
82568 2009-01-25  Bruno Haible  <bruno@clisp.org>
82570         * lib/glthread/threadlib.c (dummy): New declaration.
82572 2009-01-25  Bruno Haible  <bruno@clisp.org>
82574         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
82575         multibyte characters also for the GB18030 encoding. Don't crash when
82576         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
82578 2009-01-25  Bruno Haible  <bruno@clisp.org>
82580         Avoid redefining 'struct random_data' on OSF/1 5.1.
82581         * lib/stdlib.in.h: Include <random.h> if it exists.
82582         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
82583         HAVE_RANDOM_H. Include <random.h> when testing whether
82584         'struct random_data' exists.
82585         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
82587 2009-01-25  Bruno Haible  <bruno@clisp.org>
82589         Don't install charset.alias on MacOS X >= 10.3.
82590         * lib/localcharset.c (DARWIN7): New macro.
82591         (get_charset_aliases): Hardcode the result for Darwin7.
82592         * modules/localcharset (install-exec-local): Don't install
82593         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
82595 2009-01-25  Bruno Haible  <bruno@clisp.org>
82597         Don't install charset.alias on mingw and Cygwin.
82598         * modules/localcharset (install-exec-local): Don't install
82599         charset.alias on mingw and Cygwin, if the file does not yet exist.
82600         The result for these platforms is hardcoded in localcharset.c.
82602 2009-01-25  Bruno Haible  <bruno@clisp.org>
82604         Make it possible again to use AC_GNU_SOURCE together with gnulib.
82605         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
82606         before requiring AC_USE_SYSTEM_EXTENSIONS.
82608 2009-01-25  Jim Meyering  <meyering@redhat.com>
82610         c-strtod: avoid warnings
82611         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
82612         "assignment discards qualifiers from pointer target type" warnings.
82614 2009-01-24  Bruno Haible  <bruno@clisp.org>
82616         Add support for non-UTF-8 locales on MacOS X.
82617         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
82618         canonical encodings. For Darwin 7 and newer, don't map traditional
82619         encodings to UTF-8.
82620         Reported by Vincent Lefevre <vincent@vinc17.org>
82621         at <http://savannah.gnu.org/bugs/?25235>.
82623 2009-01-24  Bruno Haible  <bruno@clisp.org>
82625         * doc/gnulib.texi (Obsolete modules): New section.
82626         Reported by Mike Frysinger <vapier@gentoo.org>.
82628 2009-01-24  Bruno Haible  <bruno@clisp.org>
82630         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
82631         (%.dvi): New rule.
82633 2009-01-24  Bruno Haible  <bruno@clisp.org>
82635         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
82636         Reported by Eric Blake.
82638 2009-01-24  Bruno Haible  <bruno@clisp.org>
82640         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
82641         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
82642         Reported by Gary V. Vaughan <gary@gnu.org>.
82644 2009-01-24  Bruno Haible  <bruno@clisp.org>
82646         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
82648 2009-01-23  Bruno Haible  <bruno@clisp.org>
82650         Make c-strtod, c-strtold usable in libraries.
82651         * lib/c-strtod.c: Include string.h instead of xalloc.h.
82652         (C_STRTOD): Call strdup instead of xstrdup.
82653         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
82654         * modules/c-strtold (Depends-on): Likewise.
82655         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
82656         * NEWS: Mention the change.
82657         Reported by Michael Gold <mgold@ncf.ca>.
82659 2009-01-23  Jim Meyering  <meyering@redhat.com>
82661         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
82662         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
82663         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
82665 2009-01-23  Simon Josefsson  <simon@josefsson.org>
82667         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
82668         GNU CoreUtils.
82669         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
82670         * modules/version-etc (Description): Update.
82672 2009-01-22  Bruno Haible  <bruno@clisp.org>
82674         Cache the C locale object.
82675         * lib/c-strtod.c (c_locale_cache): New variable.
82676         (c_locale): New function.
82677         (C_STRTOD): Use it, and don't call freelocale.
82678         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
82679         Suggested by Paolo Bonzini.
82681 2009-01-21  Bruno Haible  <bruno@clisp.org>
82683         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
82684         conditions other than overflow.
82686 2009-01-21  Bruno Haible  <bruno@clisp.org>
82688         * lib/c-strtod.c: Include errno.h.
82689         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
82690         value from STRTOD_L and STRTOD.
82692 2009-01-21  Bruno Haible  <bruno@clisp.org>
82693         and Jim Meyering  <meyering@redhat.com>
82695         nanosleep: skip configure test (fail it) for apple universal builds
82696         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
82697         universal builds, assume that nanosleep does not work.
82698         * modules/nanosleep (Depends-on): Add multiarch.
82700         mktime: skip configure test (fail it) for apple universal builds
82701         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
82702         universal builds, assume that mktime does not work.
82703         * modules/mktime (Depends-on): Add multiarch.
82705 2009-01-21  Eric Blake  <ebb9@byu.net>
82707         multiarch: avoid expand-before-require warning
82708         * modules/multiarch (configure.ac): Require, rather than expand,
82709         gl_MULTIARCH.
82710         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
82711         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
82712         enforce that all clients require it.  Partial reversion of
82713         2008-12-29 patch.
82715         error: avoid expand-before-require warning
82716         * modules/errno (configure.ac): Require, rather than expand,
82717         gl_HEADER_ERRNO_H.
82718         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
82719         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
82720         enforce that all clients require it.
82722         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
82723         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
82724         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
82725         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
82727 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
82729         Revert:
82730         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82732         regex: do not depend on obsolete modules.
82733         * modules/regex: Remove memcmp and memmove.
82735 2009-01-20  Bruno Haible  <bruno@clisp.org>
82737         Make the 'link' module link on Windows NT 4.
82738         * lib/link.c (_WIN32_WINNT): Don't define.
82739         (CreateHardLinkFuncType): New type.
82740         (CreateHardLinkFunc, initialized): New variables.
82741         (initialize): New function.
82742         (link): Invoke CreateHardLink indirectly through the function pointer.
82744 2009-01-20  Bruno Haible  <bruno@clisp.org>
82746         Fix compilation failure on mingw.
82747         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
82749 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
82751         * doc/c-strtod.texi: Mention a couple of restrictions.
82753 2009-01-20  Jim Meyering  <meyering@redhat.com>
82755         gettimeofday: move more declarations out of functions
82756         * lib/gettimeofday.c: Move extern declarations of tzset and
82757         gmtime out of containing functions.  Prompted by Bruno Haible.
82759 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
82761         regex: do not depend on obsolete modules.
82762         * modules/regex: Remove memcmp and memmove.
82764 2009-01-19  Bruno Haible  <bruno@clisp.org>
82766         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82767         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
82768         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82769         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
82770         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
82772 2009-01-19  Bruno Haible  <bruno@clisp.org>
82774         * tests/test-link.c: Include <errno.h>.
82775         (main): Exit with code 77 when a hard link cannot be created due to
82776         the file system.
82777         * tests/test-link.sh: Skip test when a hard link cannot be created due
82778         to the file system.
82779         Suggested by Eric Blake.
82781 2009-01-19  Martin Lambers  <marlam@marlam.de>
82783         * modules/link-tests: New file.
82784         * tests/test-link.sh: New file.
82785         * tests/test-link.c: New file.
82787 2009-01-19  Eric Blake  <ebb9@byu.net>
82789         doc: mention another function added in cygwin 1.7.0
82790         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
82791         Another new function in cygwin 1.7.
82793 2009-01-19  Bruno Haible  <bruno@clisp.org>
82795         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
82796         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
82797         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
82798         gl_BIGENDIAN, not AC_C_BIGENDIAN.
82799         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
82800         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
82801         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
82802         * m4/md4.m4 (gl_MD4): Likewise.
82803         * m4/md5.m4 (gl_MD5): Likewise.
82804         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
82805         * m4/sha1.m4 (gl_SHA1): Likewise.
82806         * m4/sha256.m4 (gl_SHA256): Likewise.
82807         * m4/sha512.m4 (gl_SHA512): Likewise.
82809 2009-01-19  Bruno Haible  <bruno@clisp.org>
82811         * modules/uniname/uniname-tests (Depends-on): Add progname.
82812         * tests/uniname/test-uninames.c: Include progname.h.
82813         (main): Call set_program_name.
82815         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
82816         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
82817         (main): Call set_program_name.
82819         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
82820         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
82821         (main): Call set_program_name.
82823         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
82824         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
82825         (main): Call set_program_name.
82827         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
82828         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
82829         (main): Call set_program_name.
82831         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
82832         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
82833         (main): Call set_program_name.
82835         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
82836         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
82837         (main): Call set_program_name.
82839         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
82840         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
82841         (main): Call set_program_name.
82843         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
82844         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
82845         (main): Call set_program_name.
82847 2009-01-19  Eric Blake  <ebb9@byu.net>
82849         test-unistd: test previous patch
82850         * tests/test-unistd.c: Test *_FILENO macros.
82852         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
82853         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82854         Guarantee a definition.
82855         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
82856         * modules/unistd-safer (Depends-on): Add dependency on unistd.
82857         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
82858         * lib/dup-safer.c (STDERR_FILENO): Likewise.
82859         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82860         Likewise.
82861         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
82862         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
82863         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
82864         Likewise.
82865         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
82866         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
82867         (STDERR_FILENO): Likewise.
82868         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
82869         (STDERR_FILENO): Likewise.
82870         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
82871         (STDERR_FILENO): Likewise.
82872         Reported by Elbert Pol.
82874 2009-01-19  Eric Blake  <ebb9@byu.net>
82876         doc: mention more functions added in cygwin 1.7.0
82877         * doc/posix-functions/abort.texi (abort): Update wording related
82878         to cygwin.
82879         * doc/posix-functions/daylight.texi (daylight): Likewise.
82880         * doc/posix-functions/optarg.texi (optarg): Likewise.
82881         * doc/posix-functions/optarg.texi (opterr): Likewise.
82882         * doc/posix-functions/optarg.texi (optind): Likewise.
82883         * doc/posix-functions/optarg.texi (optopt): Likewise.
82884         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
82885         worked in 1.5.x, and was withdrawn in 1.7.
82886         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
82887         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
82888         cygwin versions.
82889         * doc/posix-functions/perror.texi (perror): Likewise.
82890         * doc/posix-functions/printf.texi (printf): Likewise.
82891         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
82892         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
82893         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
82894         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
82895         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
82896         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
82897         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
82898         Likewise.
82899         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
82900         Likewise.
82901         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
82902         this function.
82903         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
82904         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
82905         Likewise.
82906         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
82907         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
82908         * doc/posix-functions/confstr.texi (confstr): Likewise.
82909         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
82910         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
82911         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
82912         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
82913         * doc/posix-functions/fputws.texi (fputws): Likewise.
82914         * doc/posix-functions/fwide.texi (fwide): Likewise.
82915         * doc/posix-functions/getwc.texi (getwc): Likewise.
82916         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
82917         * doc/posix-functions/putwc.texi (putwc): Likewise.
82918         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
82919         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
82920         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
82921         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
82922         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
82923         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
82924         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
82925         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
82926         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
82927         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
82928         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
82930 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
82932         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
82933         * lib/ioctl.c: Include <sys/ioctl.h>.
82935 2009-01-19  Simon Josefsson  <simon@josefsson.org>
82937         * modules/getdate-tests (Depends-on): Add progname.
82938         * tests/test-getdate.c: Use progname module, to avoid link errors
82939         on non-glibc systems.
82941 2009-01-18  Simon Josefsson  <simon@josefsson.org>
82943         * modules/filenamecat-tests (Depends-on): Add progname.
82944         * modules/fstrcmp-tests (Depends-on): Likewise.
82946         * tests/test-filenamecat.c: Use progname module, to avoid link
82947         errors on non-glibc systems.
82948         * tests/test-fstrcmp.c: Likewise.
82950 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
82952         gettimeofday: avoid warning: nested extern declaration of 'localtime'
82953         * lib/gettimeofday.c: Move extern declaration out of function.
82955 2009-01-18  Bruno Haible  <bruno@clisp.org>
82957         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
82958         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
82959         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
82961 2009-01-18  Bruno Haible  <bruno@clisp.org>
82963         * lib/strftime.c (MEMPCPY): Remove unused macro.
82964         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
82966 2009-01-18  Martin Lambers  <marlam@marlam.de>
82968         New module 'link'.
82969         * lib/unistd.in.h (link): New declaration.
82970         * lib/link.c: New file.
82971         * m4/link.m4: New file.
82972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
82973         HAVE_LINK.
82974         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
82975         * modules/link: New file.
82976         * doc/posix-functions/link.texi: Mention the new module.
82978 2009-01-18  Bruno Haible  <bruno@clisp.org>
82980         * tests/test-avltree_list.c (main): Call set_program_name.
82981         * tests/test-avltree_oset.c (main): Likewise.
82982         * tests/test-obstack-printf.c: Include progname.h.
82983         (main): Call set_program_name.
82984         * tests/test-quotearg.c: Include progname.h.
82985         (main): Call set_program_name.
82986         * tests/test-xmemdup0.c: Include progname.h.
82987         (main): Call set_program_name.
82989 2009-01-18  Bruno Haible  <bruno@clisp.org>
82991         New module 'alphasort'.
82992         * lib/dirent.in.h (alphasort): New declaration.
82993         * lib/alphasort.c: New file, from glibc with modifications.
82994         * m4/alphasort.m4: New file.
82995         * modules/alphasort: New file.
82996         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
82997         HAVE_ALPHASORT.
82998         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
82999         HAVE_ALPHASORT.
83000         * doc/posix-functions/alphasort.texi: Mention the new module and the
83001         portability problems.
83003 2009-01-18  Bruno Haible  <bruno@clisp.org>
83005         New module 'scandir'.
83006         * lib/dirent.in.h (scandir): New declaration.
83007         * lib/scandir.c: New file, from glibc with modifications.
83008         * m4/scandir.m4: New file.
83009         * modules/scandir: New file.
83010         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
83011         HAVE_SCANDIR.
83012         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
83013         HAVE_SCANDIR.
83014         * doc/posix-functions/scandir.texi: Mention the new module and the
83015         portability problems.
83017 2009-01-17  Bruno Haible  <bruno@clisp.org>
83019         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
83020         Update documentation.
83021         (func_remove_suffix): Escape all dots in the suffix. Update
83022         documentation.
83023         (func_filter_filelist): Update documentation.
83024         Reported by Ralf Wildenhues.
83026 2009-01-17  Bruno Haible  <bruno@clisp.org>
83028         * modules/dprintf-posix-tests: New file.
83029         * tests/test-dprintf-posix.sh: New file.
83030         * tests/test-dprintf-posix.c: New file.
83032         New modules 'dprintf', 'dprintf-posix'.
83033         * lib/stdio.in.h (dprintf): New declaration.
83034         * lib/dprintf.c: New file.
83035         * m4/dprintf.m4: New file.
83036         * m4/dprintf-posix.m4: New file.
83037         * modules/dprintf: New file.
83038         * modules/dprintf-posix: New file.
83039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
83040         HAVE_DPRINTF, REPLACE_DPRINTF.
83041         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
83042         HAVE_DPRINTF, REPLACE_DPRINTF.
83043         * doc/posix-functions/dprintf.texi: Mention the new modules.
83045 2009-01-17  Bruno Haible  <bruno@clisp.org>
83047         * modules/vdprintf-posix-tests: New file.
83048         * tests/test-vdprintf-posix.sh: New file.
83049         * tests/test-vdprintf-posix.c: New file.
83051         New modules 'vdprintf', 'vdprintf-posix'.
83052         * lib/stdio.in.h (vdprintf): New declaration.
83053         * lib/vdprintf.c: New file.
83054         * m4/vdprintf.m4: New file.
83055         * m4/vdprintf-posix.m4: New file.
83056         * modules/vdprintf: New file.
83057         * modules/vdprintf-posix: New file.
83058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
83059         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83060         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
83061         HAVE_VDPRINTF, REPLACE_VDPRINTF.
83062         * doc/posix-functions/vdprintf.texi: Mention the new modules.
83064 2009-01-17  Bruno Haible  <bruno@clisp.org>
83066         Fix replacement of fopen on mingw.
83067         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
83068         mingw.
83070 2009-01-17  Bruno Haible  <bruno@clisp.org>
83072         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
83073         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
83075 2009-01-17  Bruno Haible  <bruno@clisp.org>
83077         Avoid test-fflush2.sh failure on mingw.
83078         * tests/test-fflush2.c: Include binary-io.h.
83079         (main): Put standard input into binary mode.
83080         * modules/fflush-tests (Depends-on): Add binary-io.
83082 2009-01-17  Bruno Haible  <bruno@clisp.org>
83084         * lib/wchar.in.h: In another particular situation, include only the
83085         system's <wchar.h> file.
83086         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
83087         Reported by Albert Chin-A-Young <china@thewrittenword.com>
83088         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
83090 2009-01-17  Bruno Haible  <bruno@clisp.org>
83092         Support for stripping executables in --enable-relocatable.
83093         * build-aux/install-reloc: Expect one more argument, or an environment
83094         variable RELOC_STRIP_PROG. If set, strip the destination program and
83095         its wrapper.
83096         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
83097         RELOC_STRIP_PROG.
83098         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
83099         to set RELOCATABLE_STRIP.
83100         * NEWS: Mention the new Makefile requirement.
83102 2009-01-17  Bruno Haible  <bruno@clisp.org>
83104         * build-aux/install-reloc: Remove debugging information left over by
83105         C compiler on MacOS X.
83107 2009-01-17  Bruno Haible  <bruno@clisp.org>
83109         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
83110         * lib/progreloc.c (find_executable): Fix type of pointer passed to
83111         _NSGetExecutablePath.
83113 2009-01-16  Jim Meyering  <meyering@redhat.com>
83115         strerror: avoid warnings about discarding "const"
83116         * lib/strerror.c (rpl_strerror): Instead of returning a const
83117         string from each and every "case", use a variable, and add a single
83118         cast after the switch.
83120 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
83122         * lib/arpa_inet.in.h: Add extern "C" block for C++.
83124 2009-01-16  Bruno Haible  <bruno@clisp.org>
83126         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
83127         array initializer syntax that also works in C++ mode.
83128         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83130 2009-01-16  Jim Meyering  <meyering@redhat.com>
83132         poll: suppress a warning
83133         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
83134         to ignore "...unsigned expression < 0 is always false" warnings.
83136 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
83138         poll: remove declarations of unused variables
83139         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
83140         sockbuf and optlen.
83142 2009-01-15  Bruno Haible  <bruno@clisp.org>
83144         Make fflush-after-ungetc POSIX compliant on BSD systems.
83145         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
83146         (clear_ungetc_buffer): Implement also for other systems.
83147         (rpl_fflush): On glibc systems, invoke
83148         clear_ungetc_buffer_preserving_position. Otherwise, invoke
83149         clear_ungetc_buffer after fetching the stream's position, not before.
83151 2009-01-15  Bruno Haible  <bruno@clisp.org>
83153         Make fflush-after-ungetc POSIX compliant on glibc systems.
83154         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
83155         after ungetc.
83156         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
83157         (rpl_fflush): On glibc systems, simply call the system's fflush
83158         function after clearing the ungetc buffer.
83159         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
83160         Instead, lseek only to the end of file, then use the system's fseeko
83161         for the rest. On glibc systems, reset the EOF indicator bit.
83163 2009-01-15  Jim Meyering  <meyering@redhat.com>
83165         openmp.m4: revert quote-adding change, for portability to older autoconf
83166         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
83167         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
83168         Simon Josefsson noticed the problem when using autoconf-2.61.
83170 2009-01-15  Bruno Haible  <bruno@clisp.org>
83172         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
83173         * tests/test-fflush2.c (ASSERT): Always fail.
83174         (main): Add two tests for fflush() after ungetc(), taking into account
83175         the Austin Group's clarification.
83176         Suggested by Eric Blake.
83178 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
83180         mktime.m4: remove K&R-style function prototypes
83181         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
83182         for the Sun C++ compiler.
83184 2009-01-14  Bruno Haible  <bruno@clisp.org>
83186         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
83187         while including <wchar.h>.
83188         * lib/wchar.in.h: In two particular situations on HP-UX, include only
83189         the system's <wchar.h> file.
83190         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83192 2009-01-14  Bruno Haible  <bruno@clisp.org>
83194         * m4/csharp.m4: Don't mention gettext on the serial number line.
83195         * m4/csharpexec.m4: Likewise.
83196         * m4/eaccess.m4: Likewise.
83197         * m4/javaexec.m4: Likewise.
83198         * m4/sig_atomic_t.m4: Likewise.
83199         * m4/tmpdir.m4: Likewise.
83200         * m4/intldir.m4: Bump gettext version.
83201         * m4/lib-ld.m4: Likewise.
83203 2009-01-14  Bruno Haible  <bruno@clisp.org>
83205         * lib/progname.c (set_program_name): Add more comments.
83206         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
83208 2009-01-14  Simon Josefsson  <simon@josefsson.org>
83210         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
83211         were sys/stat.h does not define it.
83213 2009-01-14  Jim Meyering  <meyering@redhat.com>
83215         many *.m4 files: improve m4 quoting
83216         99% of this change was performed by running the following commands:
83217         git ls-files | grep '\.m4$' | xargs perl -pi \
83218           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
83219           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83220           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
83221           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
83222         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
83223         The remainder were to add Copyright dates, increment serial numbers,
83224         undo some changes in comments, exclude m4/intl.m4, and add quotes
83225         around the "1" in ",1" where the unusual spacing prohibited the
83226         above regexps from doing the job.  For more details, see
83227         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
83228         * m4/acl.m4: Modified.
83229         * m4/afs.m4: Likewise.
83230         * m4/alloca.m4: Likewise.
83231         * m4/argp.m4: Likewise.
83232         * m4/argz.m4: Likewise.
83233         * m4/atexit.m4: Likewise.
83234         * m4/bison-i18n.m4: Likewise.
83235         * m4/bison.m4: Likewise.
83236         * m4/byteswap.m4: Likewise.
83237         * m4/c-stack.m4: Likewise.
83238         * m4/c-strtod.m4: Likewise.
83239         * m4/calloc.m4: Likewise.
83240         * m4/canonicalize-lgpl.m4: Likewise.
83241         * m4/chown.m4: Likewise.
83242         * m4/clock_time.m4: Likewise.
83243         * m4/codeset.m4: Likewise.
83244         * m4/copy-file.m4: Likewise.
83245         * m4/csharp.m4: Likewise.
83246         * m4/csharpcomp.m4: Likewise.
83247         * m4/csharpexec.m4: Likewise.
83248         * m4/d-ino.m4: Likewise.
83249         * m4/d-type.m4: Likewise.
83250         * m4/dirfd.m4: Likewise.
83251         * m4/double-slash-root.m4: Likewise.
83252         * m4/eaccess.m4: Likewise.
83253         * m4/eealloc.m4: Likewise.
83254         * m4/environ.m4: Likewise.
83255         * m4/errno_h.m4: Likewise.
83256         * m4/euidaccess.m4: Likewise.
83257         * m4/execute.m4: Likewise.
83258         * m4/fatal-signal.m4: Likewise.
83259         * m4/fchdir.m4: Likewise.
83260         * m4/fcntl_h.m4: Likewise.
83261         * m4/fileblocks.m4: Likewise.
83262         * m4/filenamecat.m4: Likewise.
83263         * m4/findprog.m4: Likewise.
83264         * m4/flexmember.m4: Likewise.
83265         * m4/fnmatch.m4: Likewise.
83266         * m4/fopen.m4: Likewise.
83267         * m4/fpending.m4: Likewise.
83268         * m4/fprintf-posix.m4: Likewise.
83269         * m4/free.m4: Likewise.
83270         * m4/frexp.m4: Likewise.
83271         * m4/frexpl.m4: Likewise.
83272         * m4/fsusage.m4: Likewise.
83273         * m4/ftruncate.m4: Likewise.
83274         * m4/gc-camellia.m4: Likewise.
83275         * m4/gc-random.m4: Likewise.
83276         * m4/gc.m4: Likewise.
83277         * m4/getaddrinfo.m4: Likewise.
83278         * m4/getcwd-abort-bug.m4: Likewise.
83279         * m4/getcwd-path-max.m4: Likewise.
83280         * m4/getdate.m4: Likewise.
83281         * m4/getdomainname.m4: Likewise.
83282         * m4/getgroups.m4: Likewise.
83283         * m4/gethostname.m4: Likewise.
83284         * m4/gethrxtime.m4: Likewise.
83285         * m4/getline.m4: Likewise.
83286         * m4/getloadavg.m4: Likewise.
83287         * m4/getndelim2.m4: Likewise.
83288         * m4/getpass.m4: Likewise.
83289         * m4/gettext.m4: Likewise.
83290         * m4/gettime.m4: Likewise.
83291         * m4/gettimeofday.m4: Likewise.
83292         * m4/gnulib-common.m4: Likewise.
83293         * m4/group-member.m4: Likewise.
83294         * m4/host-os.m4: Likewise.
83295         * m4/iconv.m4: Likewise.
83296         * m4/iconv_open.m4: Likewise.
83297         * m4/inet_ntop.m4: Likewise.
83298         * m4/inet_pton.m4: Likewise.
83299         * m4/inline.m4: Likewise.
83300         * m4/intldir.m4: Likewise.
83301         * m4/intlmacosx.m4: Likewise.
83302         * m4/intmax.m4: Likewise.
83303         * m4/intmax_t.m4: Likewise.
83304         * m4/inttypes.m4: Likewise.
83305         * m4/inttypes_h.m4: Likewise.
83306         * m4/inttypes-pri.m4: Likewise.
83307         * m4/isapipe.m4: Likewise.
83308         * m4/isnand.m4: Likewise.
83309         * m4/isnanf.m4: Likewise.
83310         * m4/isnanl.m4: Likewise.
83311         * m4/javacomp.m4: Likewise.
83312         * m4/javaexec.m4: Likewise.
83313         * m4/jm-winsz1.m4: Likewise.
83314         * m4/jm-winsz2.m4: Likewise.
83315         * m4/lchown.m4: Likewise.
83316         * m4/lcmessage.m4: Likewise.
83317         * m4/ldexpl.m4: Likewise.
83318         * m4/lib-ld.m4: Likewise.
83319         * m4/lib-link.m4: Likewise.
83320         * m4/libsigsegv.m4: Likewise.
83321         * m4/link-follow.m4: Likewise.
83322         * m4/localcharset.m4: Likewise.
83323         * m4/locale-fr.m4: Likewise.
83324         * m4/locale-ja.m4: Likewise.
83325         * m4/locale-tr.m4: Likewise.
83326         * m4/locale-zh.m4: Likewise.
83327         * m4/lock.m4: Likewise.
83328         * m4/longlong.m4: Likewise.
83329         * m4/ls-mntd-fs.m4: Likewise.
83330         * m4/lstat.m4: Likewise.
83331         * m4/malloc.m4: Likewise.
83332         * m4/mathl.m4: Likewise.
83333         * m4/mbrtowc.m4: Likewise.
83334         * m4/mbstate_t.m4: Likewise.
83335         * m4/mbswidth.m4: Likewise.
83336         * m4/memchr.m4: Likewise.
83337         * m4/memcmp.m4: Likewise.
83338         * m4/memcpy.m4: Likewise.
83339         * m4/memmem.m4: Likewise.
83340         * m4/memmove.m4: Likewise.
83341         * m4/mempcpy.m4: Likewise.
83342         * m4/memrchr.m4: Likewise.
83343         * m4/memset.m4: Likewise.
83344         * m4/minmax.m4: Likewise.
83345         * m4/mkdir-slash.m4: Likewise.
83346         * m4/mkdtemp.m4: Likewise.
83347         * m4/mktime.m4: Likewise.
83348         * m4/mmap-anon.m4: Likewise.
83349         * m4/mountlist.m4: Likewise.
83350         * m4/nanosleep.m4: Likewise.
83351         * m4/nls.m4: Likewise.
83352         * m4/nocrash.m4: Likewise.
83353         * m4/open.m4: Likewise.
83354         * m4/openat.m4: Likewise.
83355         * m4/openmp.m4: Likewise.
83356         * m4/pathmax.m4: Likewise.
83357         * m4/perl.m4: Likewise.
83358         * m4/physmem.m4: Likewise.
83359         * m4/pipe.m4: Likewise.
83360         * m4/po.m4: Likewise.
83361         * m4/poll.m4: Likewise.
83362         * m4/posixtm.m4: Likewise.
83363         * m4/posixver.m4: Likewise.
83364         * m4/printf-frexp.m4: Likewise.
83365         * m4/printf-frexpl.m4: Likewise.
83366         * m4/printf-posix.m4: Likewise.
83367         * m4/printf-posix-rpl.m4: Likewise.
83368         * m4/printf.m4: Likewise.
83369         * m4/progtest.m4: Likewise.
83370         * m4/putenv.m4: Likewise.
83371         * m4/readline.m4: Likewise.
83372         * m4/readlink.m4: Likewise.
83373         * m4/readutmp.m4: Likewise.
83374         * m4/realloc.m4: Likewise.
83375         * m4/regex.m4: Likewise.
83376         * m4/relocatable.m4: Likewise.
83377         * m4/relocatable-lib.m4: Likewise.
83378         * m4/rename-dest-slash.m4: Likewise.
83379         * m4/rename.m4: Likewise.
83380         * m4/rmdir-errno.m4: Likewise.
83381         * m4/rmdir.m4: Likewise.
83382         * m4/roundf.m4: Likewise.
83383         * m4/roundl.m4: Likewise.
83384         * m4/rpmatch.m4: Likewise.
83385         * m4/save-cwd.m4: Likewise.
83386         * m4/selinux-selinux-h.m4: Likewise.
83387         * m4/setenv.m4: Likewise.
83388         * m4/settime.m4: Likewise.
83389         * m4/sig2str.m4: Likewise.
83390         * m4/sig_atomic_t.m4: Likewise.
83391         * m4/signalblocking.m4: Likewise.
83392         * m4/signbit.m4: Likewise.
83393         * m4/sigpipe.m4: Likewise.
83394         * m4/sockets.m4: Likewise.
83395         * m4/sockpfaf.m4: Likewise.
83396         * m4/st_dm_mode.m4: Likewise.
83397         * m4/stat-time.m4: Likewise.
83398         * m4/stdbool.m4: Likewise.
83399         * m4/stdint.m4: Likewise.
83400         * m4/stdint_h.m4: Likewise.
83401         * m4/stpcpy.m4: Likewise.
83402         * m4/stpncpy.m4: Likewise.
83403         * m4/strcase.m4: Likewise.
83404         * m4/strchrnul.m4: Likewise.
83405         * m4/strcspn.m4: Likewise.
83406         * m4/strdup.m4: Likewise.
83407         * m4/strftime.m4: Likewise.
83408         * m4/strndup.m4: Likewise.
83409         * m4/strnlen.m4: Likewise.
83410         * m4/strpbrk.m4: Likewise.
83411         * m4/strptime.m4: Likewise.
83412         * m4/strsep.m4: Likewise.
83413         * m4/strtod.m4: Likewise.
83414         * m4/strtoimax.m4: Likewise.
83415         * m4/strtok_r.m4: Likewise.
83416         * m4/strtol.m4: Likewise.
83417         * m4/strtoll.m4: Likewise.
83418         * m4/strtoul.m4: Likewise.
83419         * m4/strtoull.m4: Likewise.
83420         * m4/strtoumax.m4: Likewise.
83421         * m4/strverscmp.m4: Likewise.
83422         * m4/threadlib.m4: Likewise.
83423         * m4/timegm.m4: Likewise.
83424         * m4/tm_gmtoff.m4: Likewise.
83425         * m4/tmpdir.m4: Likewise.
83426         * m4/tmpfile.m4: Likewise.
83427         * m4/tzset.m4: Likewise.
83428         * m4/uintmax_t.m4: Likewise.
83429         * m4/unlinkdir.m4: Likewise.
83430         * m4/unlocked-io.m4: Likewise.
83431         * m4/uptime.m4: Likewise.
83432         * m4/userspec.m4: Likewise.
83433         * m4/utimbuf.m4: Likewise.
83434         * m4/utime.m4: Likewise.
83435         * m4/utimes-null.m4: Likewise.
83436         * m4/utimes.m4: Likewise.
83437         * m4/vararrays.m4: Likewise.
83438         * m4/vasnprintf.m4: Likewise.
83439         * m4/vfprintf-posix.m4: Likewise.
83440         * m4/vprintf-posix.m4: Likewise.
83441         * m4/wait-process.m4: Likewise.
83442         * m4/wchar_t.m4: Likewise.
83443         * m4/wint_t.m4: Likewise.
83444         * m4/write-any-file.m4: Likewise.
83445         * m4/yield.m4: Likewise.
83447 2009-01-13  Bruno Haible  <bruno@clisp.org>
83449         Avoid test-copy-file.sh failures when ACL support insufficient.
83450         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
83451         TESTS_ENVIRONMENT.
83452         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
83453         Reported by Jim Meyering.
83455 2009-01-13  Bruno Haible  <bruno@clisp.org>
83457         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
83458         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
83459         * modules/unistdio/u8-printf-parse (Files): Likewise.
83460         * modules/unistdio/u32-printf-parse (Files): Likewise.
83461         * modules/unistdio/ulc-printf-parse (Files): Likewise.
83463 2009-01-13  Simon Josefsson  <simon@josefsson.org>
83465         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
83466         and m4/inttypes_h.m4 too.
83468 2009-01-12  Eric Blake  <ebb9@byu.net>
83470         tests: IRIX 6.2 cc can't compile -0.0 into .data
83471         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
83472         rather than at compile-time.
83473         * tests/test-floorl.c (minus_zero): Likewise.
83474         * tests/test-frexpl.c (minus_zero): Likewise.
83475         * tests/test-isnan.c (minus_zerol): Likewise.
83476         * tests/test-isnanl.h (minus_zero): Likewise.
83477         * tests/test-ldexpl.c (minus_zero): Likewise.
83478         * tests/test-roundl.c (minus_zero): Likewise.
83479         * tests/test-signbit.c (minus_zerol): Likewise.
83480         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
83481         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
83482         * tests/test-truncl.c (minus_zero): Likewise.
83483         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
83484         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
83485         Reported by Tom G. Christensen and Nelson H. F. Beebe.
83487 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83489         regex: fix glibc bug 9697
83490         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
83491         handling.
83493 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83495         regex: fix glibc bug 697
83496         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
83497         being NULL also if there are no backreferences.
83499 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
83501         regex: merge glibc changes
83502         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
83503         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
83504         re_string_skip_chars, re_string_reconstruct): Likewise.
83505         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
83507 2009-01-07  Jim Meyering  <meyering@redhat.com>
83509         poll: filter through cppi
83510         * lib/poll.c: Indent cpp directives to reflect nesting.
83512 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
83514         poll: don't return uninitialized
83515         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
83517 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
83519         avoid compile failure on AIX 6.1
83520         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
83521         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
83523 2009-01-04  Jim Meyering  <meyering@redhat.com>
83525         remove duplicate inclusion of <stdio.h>
83526         * tests/test-fprintf-posix.c: Likewise.
83527         * tests/test-printf-posix.c: Likewise.
83528         * tests/test-snprintf-posix.c: Likewise.
83529         * tests/test-sprintf-posix.c: Likewise.
83530         * tests/test-vasprintf-posix.c: Likewise.
83531         * tests/test-vfprintf-posix.c: Likewise.
83532         * tests/test-vprintf-posix.c: Likewise.
83533         * tests/test-vsnprintf-posix.c: Likewise.
83534         * tests/test-vsprintf-posix.c: Likewise.
83536 2009-01-03  Jim Meyering  <meyering@redhat.com>
83538         gnulib-tool: fix sed-based filtering
83539         * gnulib-tool (func_filter_filelist): Remove extra backslash
83540         in sed_fff_filter definition.
83542 2009-01-02  Jim Meyering  <meyering@redhat.com>
83544         strftime: avoid compilation failure on Solaris 2.6
83545         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
83546         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
83547         Don't #define mbrlen or mbsinit, since now they're guaranteed to
83548         be available.  Reported by Tom G. Christensen.  Details in
83549         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
83551 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83552             Bruno Haible  <bruno@clisp.org>
83554         Speed up gnulib-tool by doing more string processing through shell
83555         built-ins.
83556         * gnulib-tool (fast_func_append): New variable.
83557         (func_remove_prefix, func_remove_suffix): New functions.
83558         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
83559         (func_filter_filelist): New function.
83560         (func_get_dependencies): Use func_remove_suffix instead of sed.
83561         (func_get_automake_snippet): Use func_filter_filelist instead of a
83562         subshell and sed invocation.
83564 2009-01-01  Bruno Haible  <bruno@clisp.org>
83566         Fix a security bug.
83567         * gnulib-tool (func_import, import, update): Don't allow the characters
83568         '"', '$', '`', '\' in macro arguments that become part of commands that
83569         are evaluated.
83571 2009-01-01  Bruno Haible  <bruno@clisp.org>
83573         * gnulib-tool (func_reset_sigpipe): Add more comments.
83575 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83577         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
83578         func_emit_tests_Makefile_am, func_import): Abort loops early if we
83579         already know the answer.
83581 2009-01-01  Jim Meyering  <meyering@redhat.com>
83583         * lib/version-etc.c (version_etc_va): Update copyright year.
83585 2008-12-30  Bruno Haible  <bruno@clisp.org>
83587         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
83588         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
83589         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
83591 2008-12-29  Eric Blake  <ebb9@byu.net>
83593         multiarch: avoid autoconf AC_REQUIRE bug
83594         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
83595         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
83596         2.63 and older.
83597         Reported by Bruno Haible, and analyzed in
83598         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
83600 2008-12-29  Bruno Haible  <bruno@clisp.org>
83602         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
83603         files in subdirectories correctly.
83604         Reported by Ralf Wildenhues.
83606 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83608         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
83609         rather than 'join FILE -', for Solaris join.
83611 2008-12-29  Bruno Haible  <bruno@clisp.org>
83613         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
83614         quoting.
83615         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
83616         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
83617         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
83618         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
83619         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
83620         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
83621         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
83622         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
83623         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
83624         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
83625         * m4/nls.m4 (AM_NLS): Likewise.
83626         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
83627         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
83628         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83629         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
83630         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
83631         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
83632         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
83633         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
83634         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
83635         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
83636         * m4/xsize.m4 (gl_XSIZE): Likewise.
83637         Suggested by Jim Meyering.
83639 2008-11-17  Bruce Korb  <bkorb@gnu.org>
83641         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
83642         * lib/parse-duration.c: use a switch instead of cascading if's.
83644 2008-12-29  Eric Blake  <ebb9@byu.net>
83646         wchar.h: supply WEOF on Irix 5.3
83647         * lib/wchar.in.h (wint_t): Also supply WEOF.
83648         * lib/wctype.in.h (wint_t): Likewise.
83649         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
83650         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
83651         Reported by Tom G. Christensen.
83653 2008-12-26  Bruno Haible  <bruno@clisp.org>
83655         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
83656         i486, i586, i686.
83658 2008-12-26  Bruno Haible  <bruno@clisp.org>
83660         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
83662 2008-12-26  Bruno Haible  <bruno@clisp.org>
83664         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
83665         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
83666         not __STDC_CONSTANT_MACROS.
83667         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
83669 2008-12-25  Bruno Haible  <bruno@clisp.org>
83671         Add support for universal builds to vasnprintf.
83672         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
83673         universal builds, guess no.
83674         * modules/vasnprintf-posix (Depends-on): Add multiarch.
83675         * modules/vasprintf-posix (Depends-on): Likewise.
83676         * modules/fprintf-posix (Depends-on): Likewise.
83677         * modules/vfprintf-posix (Depends-on): Likewise.
83678         * modules/snprintf-posix (Depends-on): Likewise.
83679         * modules/vsnprintf-posix (Depends-on): Likewise.
83680         * modules/sprintf-posix (Depends-on): Likewise.
83681         * modules/vsprintf-posix (Depends-on): Likewise.
83682         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83683         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83684         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83685         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83686         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83687         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83688         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83690         Add support for universal builds to <inttypes.h>.
83691         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
83692         _SCNu64_PREFIX): In Apple
83693         universal builds, define directly, using _LP64.
83694         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
83695         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
83696         * modules/inttypes (Depends-on): Add multiarch.
83697         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83699         Add support for universal builds to <stdint.h>.
83700         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
83701         universal builds, define directly, using _LP64.
83702         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
83703         Apple universal builds, don't test for the size and suffix of ptrdiff_t
83704         and size_t.
83705         * modules/stdint (Depends-on): Add multiarch.
83706         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
83708         New module 'multiarch'.
83709         * modules/multiarch: New file.
83710         * m4/multiarch.m4: New file.
83712 2008-12-25  Bruno Haible  <bruno@clisp.org>
83714         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
83716 2008-12-25  Bruno Haible  <bruno@clisp.org>
83718         * modules/btowc (License): Relicense under LGPLv2+.
83719         * modules/mbsinit (License): Likewise.
83720         * modules/mbrtowc (License): Likewise.
83721         * modules/wcrtomb (License): Likewise.
83722         * modules/streq (License): Likewise.
83723         Reported by David Lutterkort <lutter@redhat.com>.
83725 2008-12-23  Bruno Haible  <bruno@clisp.org>
83727         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
83729 2008-12-23  Bruno Haible  <bruno@clisp.org>
83731         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
83732         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
83733         GETADDRINFO_LIB, not in LIBS.
83734         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
83735         * modules/canon-host (Link): Likewise.
83736         * NEWS: Mention the change.
83737         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
83738         GETADDRINFO_LIB.
83740 2008-12-22  Bruno Haible  <bruno@clisp.org>
83742         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
83743         * doc/posix-functions/iswalpha_l.texi: Likewise.
83744         * doc/posix-functions/iswblank_l.texi: Likewise.
83745         * doc/posix-functions/iswcntrl_l.texi: Likewise.
83746         * doc/posix-functions/iswctype_l.texi: Likewise.
83747         * doc/posix-functions/iswdigit_l.texi: Likewise.
83748         * doc/posix-functions/iswgraph_l.texi: Likewise.
83749         * doc/posix-functions/iswlower_l.texi: Likewise.
83750         * doc/posix-functions/iswprint_l.texi: Likewise.
83751         * doc/posix-functions/iswpunct_l.texi: Likewise.
83752         * doc/posix-functions/iswspace_l.texi: Likewise.
83753         * doc/posix-functions/iswupper_l.texi: Likewise.
83754         * doc/posix-functions/iswxdigit_l.texi: Likewise.
83755         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
83756         * doc/posix-functions/open_wmemstream.texi: Likewise.
83757         * doc/posix-functions/swscanf.texi: Likewise.
83758         * doc/posix-functions/towctrans_l.texi: Likewise.
83759         * doc/posix-functions/towlower.texi: Likewise.
83760         * doc/posix-functions/towlower_l.texi: Likewise.
83761         * doc/posix-functions/towupper.texi: Likewise.
83762         * doc/posix-functions/towupper_l.texi: Likewise.
83763         * doc/posix-functions/vfwprintf.texi: Likewise.
83764         * doc/posix-functions/vfwscanf.texi: Likewise.
83765         * doc/posix-functions/vswscanf.texi: Likewise.
83766         * doc/posix-functions/vwprintf.texi: Likewise.
83767         * doc/posix-functions/vwscanf.texi: Likewise.
83768         * doc/posix-functions/wcpcpy.texi: Likewise.
83769         * doc/posix-functions/wcpncpy.texi: Likewise.
83770         * doc/posix-functions/wcscasecmp.texi: Likewise.
83771         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
83772         * doc/posix-functions/wcscoll_l.texi: Likewise.
83773         * doc/posix-functions/wcsdup.texi: Likewise.
83774         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83775         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
83776         * doc/posix-functions/wcsnlen.texi: Likewise.
83777         * doc/posix-functions/wcsnrtombs.texi: Likewise.
83778         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
83779         * doc/posix-functions/wctrans_l.texi: Likewise.
83780         * doc/posix-functions/wctype_l.texi: Likewise.
83781         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
83782         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
83783         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
83784         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
83785         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
83786         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
83787         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
83788         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
83789         * doc/glibc-functions/wcschrnul.texi: Likewise.
83790         * doc/glibc-functions/wcsftime_l.texi: Likewise.
83791         * doc/glibc-functions/wcstod_l.texi: Likewise.
83792         * doc/glibc-functions/wcstof_l.texi: Likewise.
83793         * doc/glibc-functions/wcstol_l.texi: Likewise.
83794         * doc/glibc-functions/wcstold_l.texi: Likewise.
83795         * doc/glibc-functions/wcstoll_l.texi: Likewise.
83796         * doc/glibc-functions/wcstoq.texi: Likewise.
83797         * doc/glibc-functions/wcstoul_l.texi: Likewise.
83798         * doc/glibc-functions/wcstoull_l.texi: Likewise.
83799         * doc/glibc-functions/wcstouq.texi: Likewise.
83800         * doc/glibc-functions/wmempcpy.texi: Likewise.
83802 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
83803             Eric Blake  <ebb9@byu.net>
83804             Paolo Bonzini  <bonzini@gnu.org>
83805             Bruno Haible  <bruno@clisp.org>
83807         Make c-stack work on Haiku.
83808         * lib/c-stack.c (SA_ONSTACK): Define fallback.
83809         (c_stack_action): Use SA_ONSTACK flag.
83811 2008-12-22  Bruno Haible  <bruno@clisp.org>
83813         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
83815 2008-12-22  Bruno Haible  <bruno@clisp.org>
83817         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
83818         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
83819         being overridden.
83820         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
83821         New macros.
83822         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
83823         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
83824         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
83825         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
83827 2008-12-22  Bruno Haible  <bruno@clisp.org>
83829         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
83830         from test code.
83832 2008-12-22  Eric Blake  <ebb9@byu.net>
83834         Avoid gcc warnings on cygwin.
83835         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
83836         Avoid unused variable.
83837         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
83838         Likewise.
83840 2008-12-22  Bruno Haible  <bruno@clisp.org>
83842         Remove HAVE_MBRTOWC conditionals.
83843         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
83844         (mbscasecmp): Assume mbrtowc function.
83845         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
83846         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
83847         * lib/mbschr.c: Include mbuiter.h unconditionally.
83848         (mbschr): Assume mbrtowc function.
83849         * lib/mbscspn.c: Include mbuiter.h unconditionally.
83850         (mbscspn): Assume mbrtowc function.
83851         * lib/mbslen.c: Include mbuiter.h unconditionally.
83852         (mbslen): Assume mbrtowc function.
83853         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
83854         (mbsncasecmp): Assume mbrtowc function.
83855         * lib/mbsnlen.c: Include mbiter.h unconditionally.
83856         (mbsnlen): Assume mbrtowc function.
83857         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
83858         (mbspbrk): Assume mbrtowc function.
83859         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
83860         (mbspcasecmp): Assume mbrtowc function.
83861         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
83862         (mbsrchr): Assume mbrtowc function.
83863         * lib/mbssep.c: Include mbuiter.h unconditionally.
83864         (mbssep): Assume mbrtowc function.
83865         * lib/mbsspn.c: Include mbuiter.h unconditionally.
83866         (mbsspn): Assume mbrtowc function.
83867         * lib/mbsstr.c: Include mbuiter.h unconditionally.
83868         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
83869         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
83870         (mbstok_r): Assume mbrtowc function.
83871         * lib/propername.c: Include mbuiter.h unconditionally.
83872         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
83873         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
83874         (trim2): Assume mbrtowc function.
83875         * lib/mbswidth.c (mbsinit): Remove fallback definition.
83876         (mbsnwidth): Assume mbrtowc function.
83877         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
83878         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
83879         fallback definitions.
83880         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
83882 2008-12-22  Bruno Haible  <bruno@clisp.org>
83884         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
83886 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
83888         * modules/regex: Request emulations for the mb*/wc* functions we need.
83889         * m4/regex.m4: Don't look for those functions here.
83890         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
83892 2008-12-22  Bruno Haible  <bruno@clisp.org>
83894         * modules/fnmatch (Depends-on): Remove duplicated dependency.
83896 2008-12-21  Bruno Haible  <bruno@clisp.org>
83898         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
83899         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
83900         (Include): Remove conditionalization.
83901         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
83902         (Include): Remove conditionalization.
83903         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
83904         (Include): Remove conditionalization.
83905         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
83906         * m4/mbfile.m4 (gl_MBFILE): Likewise.
83907         * NEWS: Mention the change.
83908         Reported by Alan Hourihane <alanh@fairlite.co.uk>
83909         via Sergey Poznyakoff <gray@gnu.org.ua>.
83911 2008-12-21  Bruno Haible  <bruno@clisp.org>
83913         * MODULES.html.sh (Extended multibyte and wide character utilities
83914         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
83915         wcrtomb, wcsrtombs.
83916         (Support for systems lacking POSIX:2008): Add accept, bind, close,
83917         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
83918         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
83919         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
83921 2008-12-21  Bruno Haible  <bruno@clisp.org>
83923         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
83925 2008-12-21  Bruno Haible  <bruno@clisp.org>
83927         * modules/wcsnrtombs-tests: New file.
83928         * tests/test-wcsnrtombs1.sh: New file.
83929         * tests/test-wcsnrtombs2.sh: New file.
83930         * tests/test-wcsnrtombs3.sh: New file.
83931         * tests/test-wcsnrtombs4.sh: New file.
83932         * tests/test-wcsnrtombs.c: New file.
83934         New module 'wcsnrtombs'.
83935         * lib/wchar.in.h (wcsnrtombs): New declaration.
83936         * lib/wcsnrtombs.c: New file.
83937         * lib/wcsrtombs-state.c: New file.
83938         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
83939         (internal_state): Remove variable.
83940         * m4/wcsnrtombs.m4: New file.
83941         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
83942         compilation units.
83943         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
83944         HAVE_WCSNRTOMBS.
83945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
83946         HAVE_WCSNRTOMBS.
83947         * modules/wcsnrtombs: New file.
83948         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
83949         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
83951 2008-12-21  Bruno Haible  <bruno@clisp.org>
83953         * modules/wcsrtombs-tests: New file.
83954         * tests/test-wcsrtombs1.sh: New file.
83955         * tests/test-wcsrtombs2.sh: New file.
83956         * tests/test-wcsrtombs3.sh: New file.
83957         * tests/test-wcsrtombs4.sh: New file.
83958         * tests/test-wcsrtombs.c: New file.
83960         New module 'wcsrtombs'.
83961         * lib/wchar.in.h (wcsrtombs): New declaration.
83962         * lib/wcsrtombs.c: New file.
83963         * m4/wcsrtombs.m4: New file.
83964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
83965         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
83966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
83967         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
83968         * modules/wcsrtombs: New file.
83969         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
83970         bugs.
83972 2008-12-21  Bruno Haible  <bruno@clisp.org>
83974         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
83975         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
83976         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
83977         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
83978         if not correct.
83979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
83980         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
83981         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
83982         m4/locale-zh.m4, m4/codeset.m4.
83983         * doc/posix-functions/wcrtomb.texi: Document the bug.
83985 2008-12-21  Bruno Haible  <bruno@clisp.org>
83987         Work around a btowc() bug on IRIX 6.5.
83988         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
83989         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
83990         REPLACE_WTOBC if not.
83991         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
83992         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
83993         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
83995 2008-12-21  Bruno Haible  <bruno@clisp.org>
83997         * modules/wcrtomb-tests: New file.
83998         * tests/test-wcrtomb.sh: New file.
83999         * tests/test-wcrtomb.c: New file.
84001         New module 'wcrtomb'.
84002         * lib/wchar.in.h (wcrtomb): New declaration.
84003         * lib/wcrtomb.c: New file.
84004         * m4/wcrtomb.m4: New file.
84005         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
84006         HAVE_WCRTOMB.
84007         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
84008         HAVE_WCRTOMB.
84009         * modules/wcrtomb: New file.
84010         * doc/posix-functions/wcrtomb.texi: Mention the new module.
84012 2008-12-21  Bruno Haible  <bruno@clisp.org>
84014         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
84015         * modules/mbsrtowcs (Files): Likewise.
84016         * modules/wctob (Files): Likewise.
84017         * modules/c-strcase-tests (Files): Likewise.
84018         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
84019         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
84020         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
84021         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
84022         * modules/vasnprintf-posix-tests (Files): Likewise.
84024 2008-12-21  William Pursell  <bill.pursell@gmail.com>
84026         gitlog-to-changelog: pass all command-line arguments to git-log
84027         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
84028         it is sometimes convenient to filter the commits in various ways.
84029         gitlog-to-changelog only allows --since to specify a start date,
84030         but git-log itself supports many other filtering mechanisms.
84031         At the moment, I want to filter by branch name.  Rather than
84032         adding a --branch option to gitlog-to-changelog, it seems more
84033         flexible to simply pass all options directly to git-log and let
84034         git do the work.  Notice that this effectively makes --since a
84035         redundant option for gitlog-to-changelog, but removing it would
84036         require current usage to change since calls would then require
84037         an additional '--'.
84039 2008-12-21  Bruno Haible  <bruno@clisp.org>
84041         * modules/mbsnrtowcs-tests: New file.
84042         * tests/test-mbsnrtowcs1.sh: New file.
84043         * tests/test-mbsnrtowcs2.sh: New file.
84044         * tests/test-mbsnrtowcs3.sh: New file.
84045         * tests/test-mbsnrtowcs4.sh: New file.
84046         * tests/test-mbsnrtowcs.c: New file.
84048         New module 'mbsnrtowcs'.
84049         * lib/wchar.in.h (mbsnrtowcs): New declaration.
84050         * lib/mbsnrtowcs.c: New file.
84051         * lib/mbsrtowcs-state.c: New file.
84052         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
84053         (internal_state): Remove variable.
84054         * m4/mbsnrtowcs.m4: New file.
84055         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
84056         compilation units.
84057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
84058         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84059         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
84060         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
84061         * modules/mbsnrtowcs: New file.
84062         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
84063         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
84064         portability problem.
84066 2008-12-21  Bruno Haible  <bruno@clisp.org>
84068         Work around mbsrtowcs bug.
84069         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
84070         (gl_FUNC_MBSRTOWCS): Invoke it.
84071         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84072         m4/locale-zh.m4.
84073         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
84075 2008-12-21  Bruno Haible  <bruno@clisp.org>
84077         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
84079 2008-12-21  Bruno Haible  <bruno@clisp.org>
84081         Update doc for AIX.
84082         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
84083         16-bit wchar_t type.
84084         * doc/posix-functions/btowc.texi: Likewise.
84085         * doc/posix-functions/fgetwc.texi: Likewise.
84086         * doc/posix-functions/fgetws.texi: Likewise.
84087         * doc/posix-functions/fputwc.texi: Likewise.
84088         * doc/posix-functions/fputws.texi: Likewise.
84089         * doc/posix-functions/fwide.texi: Likewise.
84090         * doc/posix-functions/fwprintf.texi: Likewise.
84091         * doc/posix-functions/fwscanf.texi: Likewise.
84092         * doc/posix-functions/getwchar.texi: Likewise.
84093         * doc/posix-functions/getwc.texi: Likewise.
84094         * doc/posix-functions/iswalnum.texi: Likewise.
84095         * doc/posix-functions/iswalpha.texi: Likewise.
84096         * doc/posix-functions/iswblank.texi: Likewise.
84097         * doc/posix-functions/iswcntrl.texi: Likewise.
84098         * doc/posix-functions/iswctype.texi: Likewise.
84099         * doc/posix-functions/iswdigit.texi: Likewise.
84100         * doc/posix-functions/iswgraph.texi: Likewise.
84101         * doc/posix-functions/iswlower.texi: Likewise.
84102         * doc/posix-functions/iswprint.texi: Likewise.
84103         * doc/posix-functions/iswpunct.texi: Likewise.
84104         * doc/posix-functions/iswspace.texi: Likewise.
84105         * doc/posix-functions/iswupper.texi: Likewise.
84106         * doc/posix-functions/iswxdigit.texi: Likewise.
84107         * doc/posix-functions/mbrtowc.texi: Likewise.
84108         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84109         * doc/posix-functions/mbstowcs.texi: Likewise.
84110         * doc/posix-functions/mbtowc.texi: Likewise.
84111         * doc/posix-functions/putwchar.texi: Likewise.
84112         * doc/posix-functions/putwc.texi: Likewise.
84113         * doc/posix-functions/swprintf.texi: Likewise.
84114         * doc/posix-functions/tolower.texi: Likewise.
84115         * doc/posix-functions/toupper.texi: Likewise.
84116         * doc/posix-functions/towctrans.texi: Likewise.
84117         * doc/posix-functions/ungetwc.texi: Likewise.
84118         * doc/posix-functions/vswprintf.texi: Likewise.
84119         * doc/posix-functions/wcrtomb.texi: Likewise.
84120         * doc/posix-functions/wcscat.texi: Likewise.
84121         * doc/posix-functions/wcschr.texi: Likewise.
84122         * doc/posix-functions/wcscmp.texi: Likewise.
84123         * doc/posix-functions/wcscoll.texi: Likewise.
84124         * doc/posix-functions/wcscpy.texi: Likewise.
84125         * doc/posix-functions/wcscspn.texi: Likewise.
84126         * doc/posix-functions/wcsftime.texi: Likewise.
84127         * doc/posix-functions/wcslen.texi: Likewise.
84128         * doc/posix-functions/wcsncat.texi: Likewise.
84129         * doc/posix-functions/wcsncmp.texi: Likewise.
84130         * doc/posix-functions/wcsncpy.texi: Likewise.
84131         * doc/posix-functions/wcspbrk.texi: Likewise.
84132         * doc/posix-functions/wcsrchr.texi: Likewise.
84133         * doc/posix-functions/wcsrtombs.texi: Likewise.
84134         * doc/posix-functions/wcsspn.texi: Likewise.
84135         * doc/posix-functions/wcsstr.texi: Likewise.
84136         * doc/posix-functions/wcstod.texi: Likewise.
84137         * doc/posix-functions/wcstof.texi: Likewise.
84138         * doc/posix-functions/wcstoimax.texi: Likewise.
84139         * doc/posix-functions/wcstok.texi: Likewise.
84140         * doc/posix-functions/wcstold.texi: Likewise.
84141         * doc/posix-functions/wcstoll.texi: Likewise.
84142         * doc/posix-functions/wcstol.texi: Likewise.
84143         * doc/posix-functions/wcstombs.texi: Likewise.
84144         * doc/posix-functions/wcstoull.texi: Likewise.
84145         * doc/posix-functions/wcstoul.texi: Likewise.
84146         * doc/posix-functions/wcstoumax.texi: Likewise.
84147         * doc/posix-functions/wcswidth.texi: Likewise.
84148         * doc/posix-functions/wcsxfrm.texi: Likewise.
84149         * doc/posix-functions/wctob.texi: Likewise.
84150         * doc/posix-functions/wctomb.texi: Likewise.
84151         * doc/posix-functions/wctrans.texi: Likewise.
84152         * doc/posix-functions/wctype.texi: Likewise.
84153         * doc/posix-functions/wcwidth.texi: Likewise.
84154         * doc/posix-functions/wmemchr.texi: Likewise.
84155         * doc/posix-functions/wmemcmp.texi: Likewise.
84156         * doc/posix-functions/wmemcpy.texi: Likewise.
84157         * doc/posix-functions/wmemmove.texi: Likewise.
84158         * doc/posix-functions/wmemset.texi: Likewise.
84159         * doc/posix-functions/wprintf.texi: Likewise.
84160         * doc/posix-functions/wscanf.texi: Likewise.
84162 2008-12-21  Bruno Haible  <bruno@clisp.org>
84164         Update doc for HP-UX 11.11.
84165         * doc/posix-functions/btowc.texi: Clarify that the function is missing
84166         in HP-UX version 11.00, not in all versions of HP-UX 11.
84167         * doc/posix-functions/fwide.texi: Likewise.
84168         * doc/posix-functions/fwprintf.texi: Likewise.
84169         * doc/posix-functions/fwscanf.texi: Likewise.
84170         * doc/posix-functions/inet_ntop.texi: Likewise.
84171         * doc/posix-functions/inet_pton.texi: Likewise.
84172         * doc/posix-functions/mbrlen.texi: Likewise.
84173         * doc/posix-functions/mbrtowc.texi: Likewise.
84174         * doc/posix-functions/mbsinit.texi: Likewise.
84175         * doc/posix-functions/mbsrtowcs.texi: Likewise.
84176         * doc/posix-functions/swprintf.texi: Likewise.
84177         * doc/posix-functions/swscanf.texi: Likewise.
84178         * doc/posix-functions/towctrans.texi: Likewise.
84179         * doc/posix-functions/vfwprintf.texi: Likewise.
84180         * doc/posix-functions/vswprintf.texi: Likewise.
84181         * doc/posix-functions/vwprintf.texi: Likewise.
84182         * doc/posix-functions/wcrtomb.texi: Likewise.
84183         * doc/posix-functions/wcsrtombs.texi: Likewise.
84184         * doc/posix-functions/wcsstr.texi: Likewise.
84185         * doc/posix-functions/wctob.texi: Likewise.
84186         * doc/posix-functions/wctrans.texi: Likewise.
84187         * doc/posix-functions/wmemchr.texi: Likewise.
84188         * doc/posix-functions/wmemcmp.texi: Likewise.
84189         * doc/posix-functions/wmemcpy.texi: Likewise.
84190         * doc/posix-functions/wmemmove.texi: Likewise.
84191         * doc/posix-functions/wmemset.texi: Likewise.
84192         * doc/posix-functions/wprintf.texi: Likewise.
84193         * doc/posix-functions/wscanf.texi: Likewise.
84195 2008-12-21  Bruno Haible  <bruno@clisp.org>
84197         Work around a portability problem.
84198         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
84199         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
84201 2008-12-20  Bruno Haible  <bruno@clisp.org>
84203         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
84204         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
84205         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
84206         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
84207         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
84209         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
84210         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
84211         set.
84212         (GNULIB_defined_mbstate_t): New macro.
84213         (mbsinit): Redefine if REPLACE_MBSINIT is set.
84214         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
84215         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
84216         reuses the system's mbrtowc function but works around the bugs.
84217         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
84218         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
84219         macros.
84220         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
84221         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
84222         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
84223         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
84224         REPLACE_MBSINIT if mbsinit needs to be overridden.
84225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
84226         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84227         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
84228         REPLACE_MBSINIT, REPLACE_MBRTOWC.
84229         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
84230         m4/locale-zh.m4.
84231         (Depends): Add mbsinit.
84232         * modules/mbsinit (Depends): Add mbrtowc.
84233         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
84235 2008-12-20  Bruno Haible  <bruno@clisp.org>
84237         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
84238         so that there are no conversion errors on AIX.
84239         * tests/test-mbsrtowcs.c (main): LIkewise.
84241 2008-12-20  Bruno Haible  <bruno@clisp.org>
84243         Work around wctob bug on Solaris <= 9.
84244         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
84245         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
84246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
84247         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
84248         * modules/wctob (Files): Add m4/locale-fr.m4.
84249         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
84251 2008-12-20  Bruno Haible  <bruno@clisp.org>
84253         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
84254         /dev/null.
84255         * tests/test-select-in.sh: Likewise.
84256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84258 2008-12-20  Bruno Haible  <bruno@clisp.org>
84260         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
84261         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
84262         Cygwin 1.5.x.
84264 2008-12-20  Bruno Haible  <bruno@clisp.org>
84266         Ensure mbstate_t is defined on HP-UX 11.11.
84267         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
84268         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
84269         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
84270         AC_USE_SYSTEM_EXTENSIONS.
84271         * modules/fnmatch (Depends-on): Add extensions.
84272         * modules/mbrlen (Depends-on): Likewise.
84273         * modules/mbrtowc (Depends-on): Likewise.
84274         * modules/mbsinit (Depends-on): Likewise.
84275         * modules/mbsrtowcs (Depends-on): Likewise.
84276         * modules/mbswidth (Depends-on): Likewise.
84277         * modules/quotearg (Depends-on): Likewise.
84278         * modules/strftime (Depends-on): Likewise.
84280 2008-12-20  Bruno Haible  <bruno@clisp.org>
84282         Ensure wctob is declared on IRIX 6.5.
84283         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
84284         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
84285         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
84286         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
84287         of HAVE_WCTOB.
84288         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
84289         HAVE_WCTOB.
84290         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
84292 2008-12-19  Bruno Haible  <bruno@clisp.org>
84294         * modules/mbsrtowcs-tests: New file.
84295         * tests/test-mbsrtowcs1.sh: New file.
84296         * tests/test-mbsrtowcs2.sh: New file.
84297         * tests/test-mbsrtowcs3.sh: New file.
84298         * tests/test-mbsrtowcs4.sh: New file.
84299         * tests/test-mbsrtowcs.c: New file.
84301         New module 'mbsrtowcs'.
84302         * lib/wchar.in.h (mbsrtowcs): New declaration.
84303         * lib/mbsrtowcs.c: New file.
84304         * m4/mbsrtowcs.m4: New file.
84305         * modules/mbsrtowcs: New file.
84306         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
84307         HAVE_MBSRTOWCS.
84308         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
84309         HAVE_MBSRTOWCS.
84310         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
84312 2008-12-19  Bruno Haible  <bruno@clisp.org>
84314         New module 'mbrlen'.
84315         * lib/wchar.in.h (mbrlen): New declaration.
84316         * lib/mbrlen.c: New file.
84317         * m4/mbrlen.m4: New file.
84318         * modules/mbrlen: New file.
84319         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
84320         HAVE_MBRLEN.
84321         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
84322         HAVE_MBRLEN.
84323         * doc/posix-functions/mbrlen.texi: Document the new module.
84325 2008-12-19  Bruno Haible  <bruno@clisp.org>
84327         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
84328         * modules/mbrtowc (Depends-on): Add verify.
84329         Suggested by Paul Eggert.
84331 2008-12-18  Bruno Haible  <bruno@clisp.org>
84333         * modules/mbsinit-tests: New file.
84334         * tests/test-mbsinit.sh: New file.
84335         * tests/test-mbsinit.c: New file.
84337 2008-12-18  Bruno Haible  <bruno@clisp.org>
84339         * modules/mbrtowc-tests: New file.
84340         * tests/test-mbrtowc1.sh: New file.
84341         * tests/test-mbrtowc2.sh: New file.
84342         * tests/test-mbrtowc3.sh: New file.
84343         * tests/test-mbrtowc4.sh: New file.
84344         * tests/test-mbrtowc.c: New file.
84346         New module 'mbrtowc'.
84347         * lib/wchar.in.h (mbstate_t): Override when the system does not have
84348         mbsinit and mbrtowc.
84349         (mbrtowc): New declaration.
84350         * lib/mbrtowc.c: New file.
84351         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
84352         * modules/mbrtowc: New file.
84353         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
84354         HAVE_MBRTOWC.
84355         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
84356         HAVE_MBRTOWC.
84357         * doc/posix-functions/mbrtowc.texi: Document the new module.
84359 2008-12-18  Bruno Haible  <bruno@clisp.org>
84361         New module 'wctob'.
84362         * lib/wchar.in.h (wctob): New declaration.
84363         * lib/wctob.c: New file.
84364         * m4/wctob.m4: New file.
84365         * modules/wctob: New file.
84366         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
84367         HAVE_WCTOB.
84368         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
84369         * doc/posix-functions/wctob.texi: Document the new module.
84371 2008-12-18  Bruno Haible  <bruno@clisp.org>
84373         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
84374         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
84376 2008-12-18  Simon Josefsson  <simon@josefsson.org>
84378         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
84379         G. Christensen" <tgc@jupiterrise.com>.
84381         * lib/flock.c: Need to include errno.h.  Reported by "Tom
84382         G. Christensen" <tgc@jupiterrise.com>.
84384         * lib/flock.c: Need to include string.h.  Reported by "Tom
84385         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
84386         <ebb9@byu.net>.
84388 2008-12-18  Bruno Haible  <bruno@clisp.org>
84390         * m4/locale-ja.m4: New file, from GNU gettext.
84392 2008-12-17  Bruno Haible  <bruno@clisp.org>
84394         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
84395         Suggested by Eric Blake.
84397 2008-12-17  Bruno Haible  <bruno@clisp.org>
84399         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
84401 2008-12-17  Bruno Haible  <bruno@clisp.org>
84403         * lib/mbsinit.c: Include verify.h. Verify an assumption.
84404         * modules/mbsinit (Depends-on): Add verify.
84405         Suggested by Paul Eggert.
84407 2008-12-17  Bruno Haible  <bruno@clisp.org>
84409         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
84410         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
84411         gl_FUNC_MBRTOWC.
84412         * m4/mbiter.m4 (gl_MBITER): LIkewise.
84413         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
84414         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
84415         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
84416         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
84417         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
84418         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
84419         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
84420         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
84421         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
84422         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
84423         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
84424         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
84425         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
84426         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
84427         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
84428         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
84429         * modules/trim (configure.ac): Likewise.
84431 2008-12-17  Bruno Haible  <bruno@clisp.org>
84433         * modules/btowc-tests: New file.
84434         * tests/test-btowc1.sh: New file.
84435         * tests/test-btowc2.sh: New file.
84436         * tests/test-btowc.c: New file.
84438         New module 'btowc'.
84439         * lib/wchar.in.h (btowc): New declaration.
84440         * lib/btowc.c: New file.
84441         * m4/btowc.m4: New file.
84442         * modules/btowc: New file.
84443         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
84444         HAVE_BTOWC.
84445         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
84446         * doc/posix-functions/btowc.texi: Document the new module.
84448 2008-12-17  Bruno Haible  <bruno@clisp.org>
84450         New module 'mbsinit'.
84451         * lib/wchar.in.h (mbsinit): New declaration.
84452         * lib/mbsinit.c: New file.
84453         * m4/mbsinit.m4: New file.
84454         * modules/mbsinit: New file.
84455         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
84456         HAVE_MBSINIT.
84457         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
84458         HAVE_MBSINIT.
84459         * doc/posix-functions/mbsinit.texi: Document the new module.
84461 2008-12-16  Bruno Haible  <bruno@clisp.org>
84463         * lib/unistd.in.h: Add comment.
84464         * tests/test-environ.c: Don't include <stdlib.h>.
84466 2008-12-16  Bruno Haible  <bruno@clisp.org>
84468         * lib/parse-duration.h (parse_duration): Document return value
84469         convention.
84470         * lib/parse-duration.c: Include specification header first. Add
84471         comments.
84472         (_): Remove macro.
84473         (parse_year_month_day, parse_hour_minute_second): Move side effects
84474         outside of strchr call.
84475         (parse_non_iso8601): Move side effects outside of isspace call.
84476         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
84477         call.
84479 2008-12-16  Bruno Haible  <bruno@clisp.org>
84481         * tests/test-parse-duration.sh: Produce no output when the test
84482         succeeds.
84484 2008-12-16  Bruno Haible  <bruno@clisp.org>
84486         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
84487         expressions.
84489 2008-12-15  Bruno Haible  <bruno@clisp.org>
84491         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
84492         * doc/glibc-functions/flistxattr.texi: Likewise.
84493         * doc/glibc-functions/fopencookie.texi: Likewise.
84494         * doc/glibc-functions/fremovexattr.texi: Likewise.
84495         * doc/glibc-functions/fsetxattr.texi: Likewise.
84496         * doc/glibc-functions/getxattr.texi: Likewise.
84497         * doc/glibc-functions/lgetxattr.texi: Likewise.
84498         * doc/glibc-functions/listxattr.texi: Likewise.
84499         * doc/glibc-functions/llistxattr.texi: Likewise.
84500         * doc/glibc-functions/lremovexattr.texi: Likewise.
84501         * doc/glibc-functions/lsetxattr.texi: Likewise.
84502         * doc/glibc-functions/removexattr.texi: Likewise.
84503         * doc/glibc-functions/setxattr.texi: Likewise.
84504         * doc/posix-functions/open_memstream.texi: Likewise.
84506 2008-12-15  Eric Blake  <ebb9@byu.net>
84508         Update doc for cygwin 1.7.
84509         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
84510         functions.
84511         * doc/posix-functions/fchmodat.texi: Likewise.
84512         * doc/posix-functions/fchownat.texi: Likewise.
84513         * doc/posix-functions/fdopendir.texi: Likewise.
84514         * doc/posix-functions/fmemopen.texi: Likewise.
84515         * doc/posix-functions/freeaddrinfo.texi: Likewise.
84516         * doc/posix-functions/fstatat.texi: Likewise.
84517         * doc/posix-functions/futimens.texi: Likewise.
84518         * doc/posix-functions/gai_strerror.texi: Likewise.
84519         * doc/posix-functions/getaddrinfo.texi: Likewise.
84520         * doc/posix-functions/getnameinfo.texi: Likewise.
84521         * doc/posix-functions/if_freenameindex.texi: Likewise.
84522         * doc/posix-functions/if_indextoname.texi: Likewise.
84523         * doc/posix-functions/if_nameindex.texi: Likewise.
84524         * doc/posix-functions/if_nametoindex.texi: Likewise.
84525         * doc/posix-functions/insque.texi: Likewise.
84526         * doc/posix-functions/linkat.texi: Likewise.
84527         * doc/posix-functions/llrint.texi: Likewise.
84528         * doc/posix-functions/llrintf.texi: Likewise.
84529         * doc/posix-functions/llrintl.texi: Likewise.
84530         * doc/posix-functions/lockf.texi: Likewise.
84531         * doc/posix-functions/lrintl.texi: Likewise.
84532         * doc/posix-functions/mkdirat.texi: Likewise.
84533         * doc/posix-functions/mkfifoat.texi: Likewise.
84534         * doc/posix-functions/mknodat.texi: Likewise.
84535         * doc/posix-functions/mq_close.texi: Likewise.
84536         * doc/posix-functions/mq_getattr.texi: Likewise.
84537         * doc/posix-functions/mq_notify.texi: Likewise.
84538         * doc/posix-functions/mq_open.texi: Likewise.
84539         * doc/posix-functions/mq_receive.texi: Likewise.
84540         * doc/posix-functions/mq_send.texi: Likewise.
84541         * doc/posix-functions/mq_setattr.texi: Likewise.
84542         * doc/posix-functions/mq_timedreceive.texi: Likewise.
84543         * doc/posix-functions/mq_timedsend.texi: Likewise.
84544         * doc/posix-functions/mq_unlink.texi: Likewise.
84545         * doc/posix-functions/open_memstream.texi: Likewise.
84546         * doc/posix-functions/openat.texi: Likewise.
84547         * doc/posix-functions/posix_fadvise.texi: Likewise.
84548         * doc/posix-functions/posix_fallocate.texi: Likewise.
84549         * doc/posix-functions/posix_madvise.texi: Likewise.
84550         * doc/posix-functions/posix_memalign.texi: Likewise.
84551         * doc/posix-functions/posix_openpt.texi: Likewise.
84552         * doc/posix-functions/readlinkat.texi: Likewise.
84553         * doc/posix-functions/remque.texi: Likewise.
84554         * doc/posix-functions/renameat.texi: Likewise.
84555         * doc/posix-functions/rintl.texi: Likewise.
84556         * doc/posix-functions/sem_unlink.texi: Likewise.
84557         * doc/posix-functions/shm_open.texi: Likewise.
84558         * doc/posix-functions/shm_unlink.texi: Likewise.
84559         * doc/posix-functions/signgam.texi: Likewise.
84560         * doc/posix-functions/sigset.texi: Likewise.
84561         * doc/posix-functions/stpcpy.texi: Likewise.
84562         * doc/posix-functions/stpncpy.texi: Likewise.
84563         * doc/posix-functions/strerror.texi: Likewise.
84564         * doc/posix-functions/strtod.texi: Likewise.
84565         * doc/posix-functions/symlinkat.texi: Likewise.
84566         * doc/posix-functions/unlinkat.texi: Likewise.
84567         * doc/posix-functions/utimensat.texi: Likewise.
84568         * doc/glibc-functions/bindresvport.texi: Likewise.
84569         * doc/glibc-functions/dn_expand.texi: Likewise.
84570         * doc/glibc-functions/exp10.texi: Likewise.
84571         * doc/glibc-functions/exp10f.texi: Likewise.
84572         * doc/glibc-functions/fgetxattr.texi: Likewise.
84573         * doc/glibc-functions/flistxattr.texi: Likewise.
84574         * doc/glibc-functions/fopencookie.texi: Likewise.
84575         * doc/glibc-functions/freeifaddrs.texi: Likewise.
84576         * doc/glibc-functions/fremovexattr.texi: Likewise.
84577         * doc/glibc-functions/fsetxattr.texi: Likewise.
84578         * doc/glibc-functions/getifaddrs.texi: Likewise.
84579         * doc/glibc-functions/getxattr.texi: Likewise.
84580         * doc/glibc-functions/lgetxattr.texi: Likewise.
84581         * doc/glibc-functions/listxattr.texi: Likewise.
84582         * doc/glibc-functions/llistxattr.texi: Likewise.
84583         * doc/glibc-functions/lremovexattr.texi: Likewise.
84584         * doc/glibc-functions/lsetxattr.texi: Likewise.
84585         * doc/glibc-functions/pow10.texi: Likewise.
84586         * doc/glibc-functions/pow10f.texi: Likewise.
84587         * doc/glibc-functions/rcmd_af.texi: Likewise.
84588         * doc/glibc-functions/removexattr.texi: Likewise.
84589         * doc/glibc-functions/res_init.texi: Likewise.
84590         * doc/glibc-functions/res_mkquery.texi: Likewise.
84591         * doc/glibc-functions/res_query.texi: Likewise.
84592         * doc/glibc-functions/res_querydomain.texi: Likewise.
84593         * doc/glibc-functions/res_send.texi: Likewise.
84594         * doc/glibc-functions/rresvport_af.texi: Likewise.
84595         * doc/glibc-functions/setxattr.texi: Likewise.
84596         * doc/glibc-functions/strcasestr.texi: Likewise.
84598 2008-12-15  Bruno Haible  <bruno@clisp.org>
84600         Fix compilation error on OSF/1 4.0.
84601         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
84602         <sys/time.h>, simply delegate to the system header.
84603         Reported by Daniel Richard G. <oss@teragram.com>.
84605 2008-12-15  Bruno Haible  <bruno@clisp.org>
84607         * doc/posix-functions/openat.texi: Mention the 'openat' module.
84608         * doc/posix-functions/fchmodat.texi: Likewise.
84609         * doc/posix-functions/fchownat.texi: Likewise.
84610         * doc/posix-functions/fdopendir.texi: Likewise.
84611         * doc/posix-functions/fstatat.texi: Likewise.
84612         * doc/posix-functions/mkdirat.texi: Likewise.
84613         * doc/posix-functions/unlinkat.texi: Likewise.
84615 2008-12-14  Bruno Haible  <bruno@clisp.org>
84617         Update doc for POSIX:2008.
84618         * doc/posix-functions/faccessat.texi: New file.
84619         * doc/posix-functions/fchmodat.texi: New file.
84620         * doc/posix-functions/fchownat.texi: New file.
84621         * doc/posix-functions/fdopendir.texi: New file.
84622         * doc/posix-functions/fstatat.texi: New file.
84623         * doc/posix-functions/futimens.texi: New file.
84624         * doc/posix-functions/linkat.texi: New file.
84625         * doc/posix-functions/mkdirat.texi: New file.
84626         * doc/posix-functions/mkfifoat.texi: New file.
84627         * doc/posix-functions/mknodat.texi: New file.
84628         * doc/posix-functions/open_wmemstream.texi: New file.
84629         * doc/posix-functions/openat.texi: New file.
84630         * doc/posix-functions/psiginfo.texi: New file.
84631         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
84632         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
84633         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
84634         * doc/posix-functions/readlinkat.texi: New file.
84635         * doc/posix-functions/renameat.texi: New file.
84636         * doc/posix-functions/strerror_l.texi: New file.
84637         * doc/posix-functions/symlinkat.texi: New file.
84638         * doc/posix-functions/unlinkat.texi: New file.
84639         * doc/posix-functions/utimensat.texi: New file.
84640         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84642 2008-12-14  Bruno Haible  <bruno@clisp.org>
84644         Update doc for POSIX:2008.
84645         * doc/posix-functions/alphasort.texi: Renamed from
84646         doc/glibc-functions/alphasort.texi.
84647         * doc/posix-functions/dirfd.texi: Renamed from
84648         doc/glibc-functions/dirfd.texi.
84649         * doc/posix-functions/dprintf.texi: Renamed from
84650         doc/glibc-functions/dprintf.texi.
84651         * doc/posix-functions/duplocale.texi: Renamed from
84652         doc/glibc-functions/duplocale.texi.
84653         * doc/posix-functions/fexecve.texi: Renamed from
84654         doc/glibc-functions/fexecve.texi.
84655         * doc/posix-functions/fmemopen.texi: Renamed from
84656         doc/glibc-functions/fmemopen.texi.
84657         * doc/posix-functions/freelocale.texi: Renamed from
84658         doc/glibc-functions/freelocale.texi.
84659         * doc/posix-functions/getdate_err.texi: Renamed from
84660         doc/glibc-functions/getdate_err.texi.
84661         * doc/posix-functions/isalnum_l.texi: Renamed from
84662         doc/glibc-functions/isalnum_l.texi.
84663         * doc/posix-functions/isalpha_l.texi: Renamed from
84664         doc/glibc-functions/isalpha_l.texi.
84665         * doc/posix-functions/isblank_l.texi: Renamed from
84666         doc/glibc-functions/isblank_l.texi.
84667         * doc/posix-functions/iscntrl_l.texi: Renamed from
84668         doc/glibc-functions/iscntrl_l.texi.
84669         * doc/posix-functions/isdigit_l.texi: Renamed from
84670         doc/glibc-functions/isdigit_l.texi.
84671         * doc/posix-functions/isgraph_l.texi: Renamed from
84672         doc/glibc-functions/isgraph_l.texi.
84673         * doc/posix-functions/islower_l.texi: Renamed from
84674         doc/glibc-functions/islower_l.texi.
84675         * doc/posix-functions/isprint_l.texi: Renamed from
84676         doc/glibc-functions/isprint_l.texi.
84677         * doc/posix-functions/ispunct_l.texi: Renamed from
84678         doc/glibc-functions/ispunct_l.texi.
84679         * doc/posix-functions/isspace_l.texi: Renamed from
84680         doc/glibc-functions/isspace_l.texi.
84681         * doc/posix-functions/isupper_l.texi: Renamed from
84682         doc/glibc-functions/isupper_l.texi.
84683         * doc/posix-functions/iswalnum_l.texi: Renamed from
84684         doc/glibc-functions/iswalnum_l.texi.
84685         * doc/posix-functions/iswalpha_l.texi: Renamed from
84686         doc/glibc-functions/iswalpha_l.texi.
84687         * doc/posix-functions/iswblank_l.texi: Renamed from
84688         doc/glibc-functions/iswblank_l.texi.
84689         * doc/posix-functions/iswcntrl_l.texi: Renamed from
84690         doc/glibc-functions/iswcntrl_l.texi.
84691         * doc/posix-functions/iswctype_l.texi: Renamed from
84692         doc/glibc-functions/iswctype_l.texi.
84693         * doc/posix-functions/iswdigit_l.texi: Renamed from
84694         doc/glibc-functions/iswdigit_l.texi.
84695         * doc/posix-functions/iswgraph_l.texi: Renamed from
84696         doc/glibc-functions/iswgraph_l.texi.
84697         * doc/posix-functions/iswlower_l.texi: Renamed from
84698         doc/glibc-functions/iswlower_l.texi.
84699         * doc/posix-functions/iswprint_l.texi: Renamed from
84700         doc/glibc-functions/iswprint_l.texi.
84701         * doc/posix-functions/iswpunct_l.texi: Renamed from
84702         doc/glibc-functions/iswpunct_l.texi.
84703         * doc/posix-functions/iswspace_l.texi: Renamed from
84704         doc/glibc-functions/iswspace_l.texi.
84705         * doc/posix-functions/iswupper_l.texi: Renamed from
84706         doc/glibc-functions/iswupper_l.texi.
84707         * doc/posix-functions/iswxdigit_l.texi: Renamed from
84708         doc/glibc-functions/iswxdigit_l.texi.
84709         * doc/posix-functions/isxdigit_l.texi: Renamed from
84710         doc/glibc-functions/isxdigit_l.texi.
84711         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
84712         doc/glibc-functions/mbsnrtowcs.texi.
84713         * doc/posix-functions/mkdtemp.texi: Renamed from
84714         doc/glibc-functions/mkdtemp.texi.
84715         * doc/posix-functions/newlocale.texi: Renamed from
84716         doc/glibc-functions/newlocale.texi.
84717         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
84718         doc/glibc-functions/nl_langinfo_l.texi.
84719         * doc/posix-functions/open_memstream.texi: Renamed from
84720         doc/glibc-functions/open_memstream.texi.
84721         * doc/posix-functions/opterr.texi: Renamed from
84722         doc/glibc-functions/opterr.texi.
84723         * doc/posix-functions/optind.texi: Renamed from
84724         doc/glibc-functions/optind.texi.
84725         * doc/posix-functions/optopt.texi: Renamed from
84726         doc/glibc-functions/optopt.texi.
84727         * doc/posix-functions/psignal.texi: Renamed from
84728         doc/glibc-functions/psignal.texi.
84729         * doc/posix-functions/scandir.texi: Renamed from
84730         doc/glibc-functions/scandir.texi.
84731         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
84732         doc/glibc-functions/sched_get_priority_min.texi.
84733         * doc/posix-functions/signgam.texi: Renamed from
84734         doc/glibc-functions/signgam.texi.
84735         * doc/posix-functions/stpcpy.texi: Renamed from
84736         doc/glibc-functions/stpcpy.texi.
84737         * doc/posix-functions/stpncpy.texi: Renamed from
84738         doc/glibc-functions/stpncpy.texi.
84739         * doc/posix-functions/strcasecmp_l.texi: Renamed from
84740         doc/glibc-functions/strcasecmp_l.texi.
84741         * doc/posix-functions/strcoll_l.texi: Renamed from
84742         doc/glibc-functions/strcoll_l.texi.
84743         * doc/posix-functions/strfmon_l.texi: Renamed from
84744         doc/glibc-functions/strfmon_l.texi.
84745         * doc/posix-functions/strftime_l.texi: Renamed from
84746         doc/glibc-functions/strftime_l.texi.
84747         * doc/posix-functions/strncasecmp_l.texi: Renamed from
84748         doc/glibc-functions/strncasecmp_l.texi.
84749         * doc/posix-functions/strndup.texi: Renamed from
84750         doc/glibc-functions/strndup.texi.
84751         * doc/posix-functions/strnlen.texi: Renamed from
84752         doc/glibc-functions/strnlen.texi.
84753         * doc/posix-functions/strsignal.texi: Renamed from
84754         doc/glibc-functions/strsignal.texi.
84755         * doc/posix-functions/strxfrm_l.texi: Renamed from
84756         doc/glibc-functions/strxfrm_l.texi.
84757         * doc/posix-functions/timer_gettime.texi: Renamed from
84758         doc/glibc-functions/timer_gettime.texi.
84759         * doc/posix-functions/tolower_l.texi: Renamed from
84760         doc/glibc-functions/tolower_l.texi.
84761         * doc/posix-functions/toupper_l.texi: Renamed from
84762         doc/glibc-functions/toupper_l.texi.
84763         * doc/posix-functions/towctrans_l.texi: Renamed from
84764         doc/glibc-functions/towctrans_l.texi.
84765         * doc/posix-functions/towlower_l.texi: Renamed from
84766         doc/glibc-functions/towlower_l.texi.
84767         * doc/posix-functions/towupper_l.texi: Renamed from
84768         doc/glibc-functions/towupper_l.texi.
84769         * doc/posix-functions/uselocale.texi: Renamed from
84770         doc/glibc-functions/uselocale.texi.
84771         * doc/posix-functions/vdprintf.texi: Renamed from
84772         doc/glibc-functions/vdprintf.texi.
84773         * doc/posix-functions/wcpcpy.texi:
84774         Renamed from doc/glibc-functions/wcpcpy.texi.
84775         * doc/posix-functions/wcpncpy.texi: Renamed from
84776         doc/glibc-functions/wcpncpy.texi.
84777         * doc/posix-functions/wcscasecmp.texi: Renamed from
84778         doc/glibc-functions/wcscasecmp.texi.
84779         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
84780         doc/glibc-functions/wcscasecmp_l.texi.
84781         * doc/posix-functions/wcscoll_l.texi: Renamed from
84782         doc/glibc-functions/wcscoll_l.texi.
84783         * doc/posix-functions/wcsdup.texi: Renamed from
84784         doc/glibc-functions/wcsdup.texi.
84785         * doc/posix-functions/wcsncasecmp.texi: Renamed from
84786         doc/glibc-functions/wcsncasecmp.texi.
84787         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
84788         doc/glibc-functions/wcsncasecmp_l.texi.
84789         * doc/posix-functions/wcsnlen.texi: Renamed from
84790         doc/glibc-functions/wcsnlen.texi.
84791         * doc/posix-functions/wcsnrtombs.texi: Renamed from
84792         doc/glibc-functions/wcsnrtombs.texi.
84793         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
84794         doc/glibc-functions/wcsxfrm_l.texi.
84795         * doc/posix-functions/wctrans_l.texi: Renamed from
84796         doc/glibc-functions/wctrans_l.texi.
84797         * doc/posix-functions/wctype_l.texi: Renamed from
84798         doc/glibc-functions/wctype_l.texi.
84799         * doc/gnulib.texi (Function Substitutes): Add these subsections.
84800         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
84801         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
84802         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
84803         these subsections.
84804         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
84805         Remove sections.
84807 2008-12-14  Bruno Haible  <bruno@clisp.org>
84809         Update doc for POSIX:2008.
84810         * doc/posix-functions/*.texi: Update URL of POSIX specification.
84812 2008-12-14  Bruno Haible  <bruno@clisp.org>
84814         Update doc for POSIX:2008.
84815         * doc/pastposix-functions/bcmp.texi: Renamed from
84816         doc/posix-functions/bcmp.texi.
84817         * doc/pastposix-functions/bcopy.texi: Renamed from
84818         doc/posix-functions/bcopy.texi.
84819         * doc/pastposix-functions/bsd_signal.texi: Renamed from
84820         doc/posix-functions/bsd_signal.texi.
84821         * doc/pastposix-functions/bzero.texi: Renamed from
84822         doc/posix-functions/bzero.texi.
84823         * doc/pastposix-functions/ecvt.texi: Renamed from
84824         doc/posix-functions/ecvt.texi.
84825         * doc/pastposix-functions/fcvt.texi: Renamed from
84826         doc/posix-functions/fcvt.texi.
84827         * doc/pastposix-functions/ftime.texi: Renamed from
84828         doc/posix-functions/ftime.texi.
84829         * doc/pastposix-functions/gcvt.texi: Renamed from
84830         doc/posix-functions/gcvt.texi.
84831         * doc/pastposix-functions/getcontext.texi: Renamed from
84832         doc/posix-functions/getcontext.texi.
84833         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
84834         doc/posix-functions/gethostbyaddr.texi.
84835         * doc/pastposix-functions/gethostbyname.texi: Renamed from
84836         doc/posix-functions/gethostbyname.texi.
84837         * doc/pastposix-functions/getwd.texi: Renamed from
84838         doc/posix-functions/getwd.texi.
84839         * doc/pastposix-functions/h_errno.texi: Renamed from
84840         doc/posix-functions/h_errno.texi.
84841         * doc/pastposix-functions/index.texi: Renamed from
84842         doc/posix-functions/index.texi.
84843         * doc/pastposix-functions/makecontext.texi: Renamed from
84844         doc/posix-functions/makecontext.texi.
84845         * doc/pastposix-functions/mktemp.texi: Renamed from
84846         doc/posix-functions/mktemp.texi.
84847         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
84848         doc/posix-functions/pthread_attr_getstackaddr.texi.
84849         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
84850         doc/posix-functions/pthread_attr_setstackaddr.texi.
84851         * doc/pastposix-functions/rindex.texi: Renamed from
84852         doc/posix-functions/rindex.texi.
84853         * doc/pastposix-functions/scalb.texi: Renamed from
84854         doc/posix-functions/scalb.texi.
84855         * doc/pastposix-functions/setcontext.texi: Renamed from
84856         doc/posix-functions/setcontext.texi.
84857         * doc/pastposix-functions/swapcontext.texi: Renamed from
84858         doc/posix-functions/swapcontext.texi.
84859         * doc/pastposix-functions/ualarm.texi: Renamed from
84860         doc/posix-functions/ualarm.texi.
84861         * doc/pastposix-functions/usleep.texi: Renamed from
84862         doc/posix-functions/usleep.texi.
84863         * doc/pastposix-functions/vfork.texi: Renamed from
84864         doc/posix-functions/vfork.texi.
84865         * doc/pastposix-functions/wcswcs.texi: Renamed from
84866         doc/posix-functions/wcswcs.texi.
84867         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
84868         (Function Substitutes): Update.
84870 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84872         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
84873         m4/strerror.m4.
84875 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84876             Bruno Haible  <bruno@clisp.org>
84878         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
84880 2008-12-13  Bruno Haible  <bruno@clisp.org>
84882         * modules/strtoull (Depends-on): Remove unistd.
84884 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84886         * modules/strtoull (Depends-on): Add stdlib.
84888 2008-12-11  Simon Josefsson  <simon@josefsson.org>
84890         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
84892 2008-12-10  Jim Meyering  <meyering@redhat.com>
84894         gl_ASSERT: don't say assertions are disabled when they're not
84895         * m4/assert.m4 (gl_ASSERT): Do not make configure report
84896         "checking whether to enable assertions... no", when they are in
84897         fact enabled.  This is solely a bug in the output of configure.
84898         In spite of saying "no", NDEBUG was not defined in that case.
84899         Also, as noted by Eric Blake, leave assertions enabled upon
84900         --enable-assert=INVALID.
84902 2008-12-10  Bruno Haible  <bruno@clisp.org>
84904         Change MODULES.html to refer to POSIX:2008 where possible.
84905         * MODULES.html.sh (POSIX2008_URL): New variable.
84906         (posix_headers): Remove sys/timeb, ucontext.
84907         (posix2001_headers): New variable.
84908         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
84909         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
84910         index, makecontext, mktemp, pthread_attr_getstackaddr,
84911         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
84912         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
84913         (posix2001_functions): New variable.
84914         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
84915         otherwise.
84917 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84919         add missing include to parse-duration.c
84920         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
84921         * modules/parse-duration (Depends-on): Add xalloc.
84923         fix sed script reading maint.mk
84924         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
84925         (syntax-check-rules): Use it.
84927 2008-12-09  Bruno Haible  <bruno@clisp.org>
84929         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
84930         MacOS X 10.4/PowerPC.
84931         Reported by Simon Josefsson.
84933 2008-12-08  Jim Meyering  <meyering@redhat.com>
84935         work around mingw's lack of some S_IF definitions
84936         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
84937         Reported by Simon Josefsson.
84939 2008-12-08  Bruno Haible  <bruno@clisp.org>
84941         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
84942         applied to variables. Needed on MacOS X 10.4/PowerPC.
84943         Reported by Simon Josefsson.
84945 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
84946         and Eric Blake  <ebb9@byu.net>
84948         assert: honor --enable-assert
84949         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
84950         order to honor --enable-assert, rather than treating it as a
84951         synonym for --disable-assert.
84953 2008-12-08  Jim Meyering  <meyering@redhat.com>
84955         * lib/posixtm.c: Remove now-useless declaration of mktime.
84957         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
84959 2008-12-07  Bruno Haible  <bruno@clisp.org>
84961         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
84962         test_once): Mark functions as static.
84963         * tests/test-tls.c (test_tls): Likewise.
84965 2008-12-07  Bruno Haible  <bruno@clisp.org>
84967         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
84968         iconv_register_autodetect.
84970 2008-12-07  Jim Meyering  <meyering@redhat.com>
84972         posixtm.c: avoid a warning
84973         * lib/posixtm.c (posixtime): Don't initialize tm0.
84974         It's no longer needed to placate gcc4's -Wuninitialized,
84975         and the attempt to placate would elicit a new warning.
84977         unicodeio.c: mark unused parameters
84978         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
84979         (fallback_failure_callback): Likewise.
84981 2008-12-07  Bruno Haible  <bruno@clisp.org>
84983         * gnulib-tool (func_create_testdir): When building the tests
84984         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
84985         Reported by Simon Josefsson.
84987 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84989         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
84991 2008-12-06  Bruno Haible  <bruno@clisp.org>
84993         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
84994         Suggested by Eric Blake.
84996 2008-12-06  Bruno Haible  <bruno@clisp.org>
84998         Fix a c-stack test failure on MacOS X.
84999         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
85000         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
85001         handler for SIGBUS as well.
85002         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
85003         install a signal handler for SIGBUS as well.
85004         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
85006 2008-12-06  Bruno Haible  <bruno@clisp.org>
85008         Advocacy documentation.
85009         * doc/gnulib-intro.texi (Benefits): New section.
85010         * doc/gnulib.texi: Update.
85012 2008-12-06  Bruno Haible  <bruno@clisp.org>
85014         Document the 'manywarnings' module.
85015         * doc/manywarnings.texi: New file.
85016         * doc/gnulib.texi: Include it.
85018 2008-12-05  Eric Blake  <ebb9@byu.net>
85020         tests: silence some gcc warnings
85021         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
85022         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
85023         type mismatches.
85025 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85026             Bruno Haible  <bruno@clisp.org>
85028         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
85030 2008-11-29  Jim Meyering  <meyering@redhat.com>
85032         unicodeio.c: mark unused parameters
85033         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
85034         (fallback_failure_callback): Likewise.
85036         fts: fix a thinko
85037         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
85038         (set_stat_type): Return S_IF*-valued "type" directly.
85039         Prompted by James Youngman's spotting a related bug.
85040         Confirmed by further testing through find.
85042         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
85043         * lib/fts.c (D_TYPE): Define.
85044         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
85045         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
85046         (s_ifmt_shift_bits): New function.
85047         (set_stat_type): New function.
85048         (fts_build): When not calling fts_stat, call set_stat_type
85049         to propagate dirent.d_type info to fts_read caller.
85050         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
85051         fts_statp->st_mode type information may be valid.
85053 2008-11-28  Simon Josefsson  <simon@josefsson.org>
85055         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
85056         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
85057         <sds@gnu.org>.
85059 2008-11-20  Bruno Haible  <bruno@clisp.org>
85061         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
85062         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
85063         INCLUDE_NEXT.
85064         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
85065         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
85066         * modules/math (Makefile.am): Substitute
85067         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
85068         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
85070 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
85071             Bruno Haible  <bruno@clisp.org>
85073         * lib/stdint.in.h: Define all type macros so that their expansion is
85074         a single typedef'ed token. Fixes a compilation failure in Boost which
85075         does "using ::int8_t;".
85077 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85079         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
85080         gl_MANYWARN_ALL_GCC.
85081         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
85082         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
85083         * modules/manywarnings: New file.
85084         * MODULES.html.sh: Mention manywarnings module.
85086 2008-11-18  Bruno Haible  <bruno@clisp.org>
85088         * doc/gnulib-tool.texi (Unit tests): New section.
85090 2008-11-18  Simon Josefsson  <simon@josefsson.org>
85092         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
85093         paths like 'lib/po/foo.po'.
85095 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85097         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
85098         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
85100 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85102         * m4/warnings.m4: Use CPPFLAGS to really check whether the
85103         parameter works.
85105 2008-11-17  Simon Josefsson  <simon@josefsson.org>
85107         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
85109 2008-11-17  Bruce Korb  <bkorb@gnu.org>
85111         * modules/parse-duration-tests: New file.
85112         * tests/test-parse-duration.sh: New file.
85113         * tests/test-parse-duration.c: New file.
85115         New module 'parse-duration'.
85116         * lib/parse-duration.h: New file.
85117         * lib/parse-duration.c: New file.
85118         * modules/parse-duration: New file.
85120 2008-11-17  Bruno Haible  <bruno@clisp.org>
85122         * tests/test-select-out.sh: Comment out the first pipe test.
85123         Reported by Simon Josefsson.
85125 2008-11-17  Bruno Haible  <bruno@clisp.org>
85127         * modules/getaddrinfo (Depends-on): Add servent, hostent.
85128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
85129         gl_HOSTENT.
85131 2008-11-17  Bruno Haible  <bruno@clisp.org>
85133         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
85134         -lnetwork and -lnet. Needed for Haiku and BeOS.
85136 2008-11-16  Bruno Haible  <bruno@clisp.org>
85138         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
85140 2008-11-16  Bruno Haible  <bruno@clisp.org>
85142         Avoid test failure on Haiku.
85143         * tests/test-fsync.c: Include <errno.h>.
85144         (main): Don't require that fsync (0) fails.
85146 2008-11-15  Bruno Haible  <bruno@clisp.org>
85148         New module 'hostent'.
85149         * modules/hostent: New file.
85150         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
85152 2008-11-15  Bruno Haible  <bruno@clisp.org>
85154         New module 'servent'.
85155         * modules/servent: New file.
85156         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
85158 2008-11-15  Bruno Haible  <bruno@clisp.org>
85160         Avoid generating same test program with two different rules.
85161         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
85162         test-frexp to test-frexp-nolibm.
85163         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
85164         test-frexpl to test-frexpl-nolibm.
85166 2008-11-15  Bruno Haible  <bruno@clisp.org>
85168         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
85169         $(FREXPL_LIBM).
85171 2008-11-15  Bruno Haible  <bruno@clisp.org>
85173         * lib/netdb.in.h: Activate the definitions also when the system's
85174         <netdb.h> has 'struct addrinfo'.
85175         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
85176         EAI_OVERFLOW or AI_NUMERICSERV.
85177         * doc/posix-headers/netdb.texi: Document the problem.
85179 2008-11-15  Bruno Haible  <bruno@clisp.org>
85181         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
85183         Make the 'sched' module work on platforms where <sched.h> exists but
85184         is incomplete (such as Haiku).
85185         * lib/sched.in.h; Include the system's <sched.h> if it exists.
85186         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
85187         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
85188         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
85189         HAVE_STRUCT_SCHED_PARAM.
85190         * modules/sched (Depends-on): Add include_next.
85191         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
85192         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
85193         * doc/posix-headers/sched.texi: Document the issue.
85195 2008-11-13  Jim Meyering  <meyering@redhat.com>
85197         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
85198         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
85199         test would fail due to the difference in the Report bugs to ...
85200         line.  The expected address is empty, "<>", while the actual
85201         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
85203 2008-11-12  Bruno Haible  <bruno@clisp.org>
85205         lstat: don't compile lstat.c on systems lacking lstat
85206         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
85207         which don't have lstat; this is handled by lib/sys_stat.in.h already.
85208         Reported by Daniel P. Berrange via Jim Meyering.
85210 2008-11-12  Jim Meyering  <meyering@redhat.com>
85212         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
85214 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85216         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
85217         instead.
85219 2008-11-12  Bruno Haible  <bruno@clisp.org>
85221         * lib/unicodeio.c: Include unistr.h.
85222         (utf8_wctomb): Remove function.
85223         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
85225 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85227         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
85228         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
85229         <bruno@clisp.org>.
85230         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
85232 2008-11-12  Simon Josefsson  <simon@josefsson.org>
85234         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
85235         * doc/gnulib.texi: Add section for warnings.
85237 2008-11-11  Bruno Haible  <bruno@clisp.org>
85239         * lib/sockets.h: Add a comment.
85241 2008-11-11  Karl Berry  <karl@gnu.org>
85243         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
85245 2008-11-11  Eric Blake  <ebb9@byu.net>
85247         fdl.texi: avoid git symlinks
85248         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
85250 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85252         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
85254 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85256         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
85257         (gl_WARN_ADD): Substitute $2 if literal.
85259 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85261         * m4/warning.m4: Remove.
85263 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
85265         * m4/warnings.m4: Almost complete rewrite. :-)
85267 2008-11-10  Simon Josefsson  <simon@josefsson.org>
85269         * modules/warnings: New module.
85270         * m4/warnings.m4: New file.
85271         * MODULES.html.sh: Mention warnings module.
85272         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
85273         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85275 2008-11-10  Eric Blake  <ebb9@byu.net>
85277         fdl.texi: make a symlink to the latest version
85278         * doc/standards.texi: Revert today's earlier change.
85279         * doc/fdl-1.2.texi: Rename from old fdl.texi...
85280         * doc/fdl.texi: ...and replace this with a symlink to the newer
85281         fdl-1.3.texi.
85283 2008-11-10  Bruno Haible  <bruno@clisp.org>
85285         * tests/test-select-fd.c (main): Accept the result file name as fourth
85286         argument.
85287         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
85288         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
85290 2008-11-10  Bruno Haible  <bruno@clisp.org>
85292         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
85293         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
85294         as autoconf-substituted macros.
85295         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
85296         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
85297         gl_NETDB_H_DEFAULTS. Set these variables.
85298         * modules/netdb (Makefile.am): Substitute these variables.
85300 2008-11-10  Eric Blake  <ebb9@byu.net>
85302         standards.texi: include correct file for FDL 1.3
85303         * doc/standards.texi (GNU Free Documentation License): Change
85304         include file to pull in FDL 1.3, not 1.2.
85306         fdl.texi: revert accidental change to license
85307         * doc/fdl.texi: This is FDL 1.2, not 1.3.
85309 2008-11-10  Bruno Haible  <bruno@clisp.org>
85311         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
85312         cross-compiling guesses also when the native compile gives no result.
85314 2008-11-10  Bruno Haible  <bruno@clisp.org>
85316         * lib/spawni.c (__spawni): Force variable into the stack.
85318 2008-11-10  Bruno Haible  <bruno@clisp.org>
85320         Add support for Haiku.
85321         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
85322         glibc and BeOS, but also on Haiku.
85323         * lib/fpurge.c (fpurge): Likewise.
85324         * lib/freadable.c (freadable): Likewise.
85325         * lib/freadahead.c (freadahead): Likewise.
85326         * lib/freading.c (freading): Likewise.
85327         * lib/freadptr.c (freadptr): Likewise.
85328         * lib/freadseek.c (freadptrinc): Likewise.
85329         * lib/fseeko.c (rpl_fseeko): Likewise.
85330         * lib/fseterr.c (fseterr): Likewise.
85331         * lib/fwritable.c (fwritable): Likewise.
85332         * lib/fwriting.c (fwriting): Likewise.
85333         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
85335 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85337         * lib/config.charset: Treat Haiku like BeOS.
85339 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
85341         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
85342         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
85344 2008-11-08  Bruno Haible  <bruno@clisp.org>
85346         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
85347         AC_CACHE_CHECK.
85349 2008-11-08  Bruno Haible  <bruno@clisp.org>
85351         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
85353 2008-11-08  Bruno Haible  <bruno@clisp.org>
85355         * tests/test-select-fd.c: New file.
85356         * tests/test-select-in.sh: New file.
85357         * tests/test-select-out.sh: New file.
85358         * tests/test-select-stdin.c: New file.
85359         * modules/select-tests (Files): Add the new files.
85360         (Depends-on): Add gettimeofday.
85361         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
85362         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
85363         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
85365 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
85366             Bruno Haible  <bruno@clisp.org>
85368         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
85370 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
85372         * build-aux/pmccabe2html: Added support for C++ source files.
85374 2008-11-05  Ben Pfaff  <blp@gnu.org>
85376         Fix lib/close.c build on Windows.
85377         * modules/close (Files): Add lib/w32sock.h.
85379 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
85381         Accept Bison's NEWS format.
85382         * build-aux/announce-gen (print_news_deltas): Tweak
85383         $re_prefix.
85385 2008-11-04  Bruno Haible  <bruno@clisp.org>
85387         * modules/random_r (Maintainer): Add glibc.
85389 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85391         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
85392         by karl@freefriends.org (Karl Berry).
85393         * doc/alloca.texi: Likewise.
85394         * doc/c-ctype.texi: Likewise.
85395         * doc/c-strcase.texi: Likewise.
85396         * doc/c-strcaseeq.texi: Likewise.
85397         * doc/c-strcasestr.texi: Likewise.
85398         * doc/c-strstr.texi: Likewise.
85399         * doc/c-strtod.texi: Likewise.
85400         * doc/c-strtold.texi: Likewise.
85401         * doc/ctime.texi: Likewise.
85402         * doc/error.texi: Likewise.
85403         * doc/fdl.texi: Likewise.
85404         * doc/gcd.texi: Likewise.
85405         * doc/getdate.texi: Likewise.
85406         * doc/gnulib-intro.texi: Likewise.
85407         * doc/gnulib-tool.texi: Likewise.
85408         * doc/gnulib.texi: Likewise.
85409         * doc/inet_ntoa.texi: Likewise.
85410         * doc/maintain.texi: Likewise.
85411         * doc/make-stds.texi: Likewise.
85412         * doc/quote.texi: Likewise.
85413         * doc/regexprops-generic.texi: Likewise.
85414         * doc/standards.texi: Likewise.
85415         * doc/verify.texi: Likewise.
85416         * doc/visibility.texi: Likewise.
85417         * doc/gnulib.texi (GNU Free Documentation License): Include
85418         fdl-1.3.texi instead of fdl.texi.
85420 2008-11-04  Simon Josefsson  <simon@josefsson.org>
85422         * doc/fdl-1.3.texi: New file, from
85423         <http://www.gnu.org/licenses/fdl-1.3.texi>.
85424         * modules/fdl-1.3: Add.
85425         * MODULES.html.sh: Add fdl-1.3.
85427 2008-11-03  Bruno Haible  <bruno@clisp.org>
85429         Make determination of absolute name of header file work with AIX xlc.
85430         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
85431         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
85432         preprocessing.
85433         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85434         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
85436 2008-11-03  Simon Josefsson  <simon@josefsson.org>
85438         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
85439         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
85440         <ludo@gnu.org>.
85442 2008-11-02  Bruno Haible  <bruno@clisp.org>
85444         Mark 'strpbrk' obsolete.
85445         * modules/strpbrk (Status, Notice): New sections.
85446         * modules/strtok_r (Depends-on): Add strpbrk.
85448 2008-11-02  Bruno Haible  <bruno@clisp.org>
85450         Mark 'strdup' obsolete.
85451         * modules/strdup (Status, Notice): New sections.
85452         * modules/findprog (Depends-on): Add strdup.
85453         * modules/getaddrinfo (Depends-on): Likewise.
85454         * modules/localename (Depends-on): Likewise.
85455         * modules/relocatable-lib (Depends-on): Likewise.
85456         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
85457         * modules/relocatable-prog (Depends-on): Likewise.
85458         * modules/trim (Depends-on): Likewise.
85459         * modules/unictype/gen-ctype (Depends-on): Likewise.
85460         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85462 2008-11-02  Bruno Haible  <bruno@clisp.org>
85464         Mark 'strcspn' obsolete.
85465         * modules/strcspn (Status, Notice): New sections.
85467 2008-11-02  Bruno Haible  <bruno@clisp.org>
85469         Mark 'rmdir' obsolete.
85470         * modules/rmdir (Status, Notice): New sections.
85471         * modules/clean-temp (Depends-on): Add rmdir.
85472         * modules/openat (Depends-on): Likewise.
85474 2008-11-02  Bruno Haible  <bruno@clisp.org>
85476         Mark 'raise' obsolete.
85477         * modules/raise (Status, Notice): New sections.
85478         (Include): Specify <signal.h>.
85479         * modules/stdio (Depends-on): Add raise.
85480         * modules/write (Depends-on): Likewise.
85482 2008-11-02  Bruno Haible  <bruno@clisp.org>
85484         Mark 'memset' obsolete.
85485         * modules/memset (Status, Notice): New sections.
85487 2008-11-02  Bruno Haible  <bruno@clisp.org>
85489         Mark 'memmove' obsolete.
85490         * modules/memmove (Status, Notice): New sections.
85491         * modules/argp (Depends-on): Add memmove.
85492         * modules/argz (Depends-on): Likewise.
85493         * modules/canonicalize (Depends-on): Likewise.
85494         * modules/canonicalize-lgpl (Depends-on): Likewise.
85495         * modules/fts (Depends-on): Likewise.
85496         * modules/getcwd (Depends-on): Likewise.
85497         * modules/human (Depends-on): Likewise.
85498         * modules/regex (Depends-on): Likewise.
85499         * modules/striconveh (Depends-on): Likewise.
85500         * modules/trim (Depends-on): Likewise.
85501         * modules/unistr/u8-move (Depends-on): Likewise.
85502         * modules/unistr/u16-move (Depends-on): Likewise.
85503         * modules/unistr/u32-move (Depends-on): Likewise.
85505 2008-11-02  Bruno Haible  <bruno@clisp.org>
85507         Mark 'memcpy' obsolete.
85508         * modules/memcpy (Status, Notice): New sections.
85510 2008-11-02  Bruno Haible  <bruno@clisp.org>
85512         Mark 'memcmp' obsolete.
85513         * modules/memcmp (Status, Notice): New sections.
85514         * modules/argmatch (Depends-on): Add memchr.
85515         * modules/backupfile (Depends-on): Likewise.
85516         * modules/c-strcasestr (Depends-on): Likewise.
85517         * modules/crypto/des (Depends-on): Likewise.
85518         * modules/csharpcomp (Depends-on): Likewise.
85519         * modules/fnmatch (Depends-on): Likewise.
85520         * modules/git-merge-changelog (Depends-on): Likewise.
85521         * modules/isnand (Depends-on): Likewise.
85522         * modules/isnand-nolibm (Depends-on): Likewise.
85523         * modules/isnanf (Depends-on): Likewise.
85524         * modules/isnanf-nolibm (Depends-on): Likewise.
85525         * modules/isnanl (Depends-on): Likewise.
85526         * modules/isnanl-nolibm (Depends-on): Likewise.
85527         * modules/mbchar (Depends-on): Likewise.
85528         * modules/memcoll (Depends-on): Likewise.
85529         * modules/quotearg (Depends-on): Likewise.
85530         * modules/regex (Depends-on): Likewise.
85531         * modules/relocatable-prog (Depends-on): Likewise.
85532         * modules/same (Depends-on): Likewise.
85533         * modules/signbit (Depends-on): Likewise.
85534         * modules/strcasestr-simple (Depends-on): Likewise.
85535         * modules/unictype/gen-ctype (Depends-on): Likewise.
85536         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
85537         * modules/uniname/uniname (Depends-on): Likewise.
85538         * modules/unistr/u8-cmp (Depends-on): Likewise.
85540 2008-11-02  Bruno Haible  <bruno@clisp.org>
85542         Mark 'memchr' obsolete.
85543         * modules/memchr (Status, Notice): New sections.
85544         * modules/argp (Depends-on): Add memchr.
85545         * modules/base64 (Depends-on): Likewise.
85546         * modules/c-strcasestr (Depends-on): Likewise.
85547         * modules/chdir-long (Depends-on): Likewise.
85548         * modules/fnmatch (Depends-on): Likewise.
85549         * modules/getsubopt (Depends-on): Likewise.
85550         * modules/git-merge-changelog (Depends-on): Likewise.
85551         * modules/glob (Depends-on): Likewise.
85552         * modules/strcasestr-simple (Depends-on): Likewise.
85553         * modules/strnlen (Depends-on): Likewise.
85555 2008-11-02  Bruno Haible  <bruno@clisp.org>
85557         Mark 'atexit' obsolete.
85558         * modules/atexit (Status, Notice): New sections.
85559         * modules/chdir-long (Depends-on): Add atexit.
85560         * modules/wait-process (Depends-on): Likewise.
85562 2008-11-02  Bruno Haible  <bruno@clisp.org>
85564         * gnulib-tool: New option --with-obsolete.
85565         (func_usage): Document it.
85566         (func_modules_transitive_closure): Drop obsolete dependencies if
85567         incobsolete is not true.
85568         (func_import): Read and save the incobsolete variable to the cache.
85570 2008-11-02  Bruno Haible  <bruno@clisp.org>
85572         * modules/TEMPLATE-EXTENDED: New field 'Status'.
85573         * gnulib-tool: New option --extract-status.
85574         (func_usage): Document it.
85575         (sed_extract_prog): Recognize it.
85576         (func_get_status): New function.
85578 2008-10-30  Simon Josefsson  <simon@josefsson.org>
85580         * modules/sockets (License): Change from LGPL to LGPLv2+.
85582 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85584         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
85586 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85588         * MODULES.html.sh (Support for systems lacking POSIX:2001):
85589         Mention times and sys_times.
85590         * modules/sys_times, modules/sys_times-tests: New modules.
85591         * modules/times, modules/times-tests: Likewise
85592         * m4/sys_times_h.m4: New file.
85593         * lib/sys_times.in.h: Likewise
85594         * lib/times.c: Likewise.
85595         * tests/test-sys_times.c: Likewise.
85596         * tests/test-times.c: Likewise.
85597         * doc/posix-headers/sys_times.texi: Update.
85598         * doc/posix-functions/times.texi: Update.
85600 2008-10-28  Jim Meyering  <meyering@redhat.com>
85602         * modules/tempname (Depends-on): Add lstat.
85604         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
85606 2008-10-28  Simon Josefsson  <simon@josefsson.org>
85608         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
85609         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
85610         using idiom used elsewhere in gnulib.
85612 2008-10-27  Jim Meyering  <meyering@redhat.com>
85614         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
85616 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85618         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
85619         TESTS_ENVIRONMENT, for shell scripts that needs to call built
85620         programs.
85621         * tests/test-argp-2.sh: Use $EXEEXT when needed.
85623 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85625         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
85627 2008-10-27  Bruno Haible  <bruno@clisp.org>
85629         * tests/test-lstat.c: Include <stdio.h>.
85631 2008-10-27  Simon Josefsson  <simon@josefsson.org>
85633         * modules/lstat-tests: New module.
85634         * tests/test-lstat.c: New file.
85636 2008-10-26  Jim Meyering  <meyering@redhat.com>
85638         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
85640 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85641             Bruno Haible  <bruno@clisp.org>
85643         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
85644         * modules/configmake (Include): Add a note that the include must come
85645         after all system headers.
85646         * lib/javaversion.c: Include configmake.h after all other includes.
85648 2008-10-26  Bruno Haible  <bruno@clisp.org>
85650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
85651         HAVE_STRUCT_RANDOM_DATA to 1.
85652         (gl_STDLIB_H): Simplify.
85654 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85656         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
85657         substitute HAVE_STRUCT_RANDOM_DATA.
85658         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
85659         random_data.
85660         * modules/stdlib (Makefile.am): Substitute
85661         HAVE_STRUCT_RANDOM_DATA.
85663 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85665         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
85666         * doc/gnulib-intro.texi (Copyright): Likewise.
85668 2008-10-26  Simon Josefsson  <simon@josefsson.org>
85670         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
85671         findings.
85673 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
85674             Bruno Haible  <bruno@clisp.org>
85676         * lib/unistd.in.h: Include <winsock2.h>.
85677         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
85678         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
85679         Provide dummy declarations.
85680         (gethostname): Override.
85681         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
85682         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
85683         gl_PREREQ_SYS_H_WINSOCK2.
85684         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
85685         * doc/posix-functions/gethostname.texi: More details.
85687 2008-10-25  Bruno Haible  <bruno@clisp.org>
85689         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
85690         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
85691         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
85693         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
85694         here ...
85695         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
85696         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
85697         gl_UNISTD_H_DEFAULTS.
85699 2008-10-25  Eric Blake  <ebb9@byu.net>
85701         signbit: avoid spurious compiler failure
85702         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
85703         declarations inside function.
85705 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85706             Bruno Haible  <bruno@clisp.org>
85708         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
85709         * modules/random_r (Depends-on): Add stdint.
85711 2008-10-24  Bruno Haible  <bruno@clisp.org>
85713         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
85714         Eggert.
85715         * modules/strerror (License): Likewise.
85717 2008-10-24  Jim Meyering  <meyering@redhat.com>
85719         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
85720         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
85722 2008-10-24  Eric Blake  <ebb9@byu.net>
85724         getgroups: fix compilation when getgroups is available
85725         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
85726         but with <config.h> override of getgroups disabled.
85728 2008-10-24  Simon Josefsson  <simon@josefsson.org>
85730         * doc/gnulib.texi (Header files): Add note about C++ problems.
85731         Explained by Bruno Haible <bruno@clisp.org>.
85733 2008-10-23  Bruno Haible  <bruno@clisp.org>
85735         Define a dummy SA_NODEFER macro on Interix.
85736         * lib/signal.in.h (SA_NODEFER): Define fallback.
85737         Reported by Aleksey Cheusov <cheusov@tut.by> via
85738         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
85740 2008-10-23  Bruno Haible  <bruno@clisp.org>
85742         * modules/freadahead (License): Change to LGPLv2+.
85743         Suggested by Simon Josefsson.
85745 2008-10-23  Jim Meyering  <meyering@redhat.com>
85747         random_r: new module
85748         * modules/random_r: New file.
85749         * m4/random_r.m4: New file.
85750         * lib/random_r.c: New file, from glibc.
85751         * modules/random_r-tests: New file.
85752         * tests/test-random_r.c: New file.
85753         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
85754          Declare.
85755         (RAND_MAX): Define.
85756         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
85757         * modules/stdlib: Substitute them, too.
85758         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
85759         * doc/glibc-functions/initstate_r.texi: Mention the new module.
85760         * doc/glibc-functions/random_r.texi: Likewise.
85761         * doc/glibc-functions/setstate_r.texi: Likewise.
85762         * doc/glibc-functions/srandom_r.texi: Likewise.
85763         * config/srclist.txt: Mention it.
85765 2008-10-23  David Lutterkort  <lutter@redhat.com>
85767         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
85768         link requirement
85770 2008-10-23  Jim Meyering  <meyering@redhat.com>
85772         selinux-h: mark parameters of stub functions as intentionally unused
85773         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
85774         * lib/se-context.in.h: Likewise.
85776 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85778         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
85780 2008-10-22  Simon Josefsson  <simon@josefsson.org>
85782         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
85784 2008-10-22  Eric Blake  <ebb9@byu.net>
85786         glthread/thread: avoid compiler warning
85787         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
85788         Add unreachable abort to silence compiler.
85790 2008-10-22  Eric Blake  <ebb9@byu.net>
85792         netdb: also supply struct addrinfo for cygwin 1.5.x
85793         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
85794         older cygwin.
85795         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
85796         cygwin.
85797         * doc/posix-headers/netdb.texi (netdb.h): Document this.
85799 2008-10-22  Bruno Haible  <bruno@clisp.org>
85801         * users.txt: Update entry about pspp.
85803 2008-10-21  Bruno Haible  <bruno@clisp.org>
85805         Simplification.
85806         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
85807         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
85809         Simplification.
85810         * lib/ioctl.c (ioctl): Don't undefine.
85811         * lib/socket.c (socket): Don't undefine.
85813         Remove unused module indicator macros.
85814         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
85815         GNULIB_$1 as a C macro.
85817         * doc/posix-functions/close.texi: Undo last change.
85818         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
85819         Windows platforms.
85821 2008-10-21  Bruno Haible  <bruno@clisp.org>
85823         Add gethostname() declaration to <unistd.h>.
85824         * lib/unistd.in.h (gethostname): New declaration.
85825         * lib/gethostname.c: Include <unistd.h>.
85826         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
85827         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
85828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
85829         and HAVE_GETHOSTNAME.
85830         * modules/gethostname (Depends-on): Add unistd.
85831         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
85832         (Include): Specify <unistd.h>.
85833         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
85834         HAVE_GETHOSTNAME.
85835         * tests/test-gethostname.c: Include <unistd.h> first.
85837 2008-10-21  Bruno Haible  <bruno@clisp.org>
85839         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
85840         * modules/select-tests (Depends-on): Likewise.
85841         Reported by Simon Josefsson.
85843 2008-10-21  Simon Josefsson  <simon@josefsson.org>
85845         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
85846         * lib/accept.c: New file, based on winsock.c.
85847         * lib/bind.c: New file, based on winsock.c.
85848         * lib/connect.c: New file, based on winsock.c.
85849         * lib/getpeername.c: New file, based on winsock.c.
85850         * lib/getsockname.c: New file, based on winsock.c.
85851         * lib/getsockopt.c: New file, based on winsock.c.
85852         * lib/ioctl.c: New file, based on winsock.c.
85853         * lib/listen.c: New file, based on winsock.c.
85854         * lib/recv.c: New file, based on winsock.c.
85855         * lib/recvfrom.c: New file, based on winsock.c.
85856         * lib/send.c: New file, based on winsock.c.
85857         * lib/sendto.c: New file, based on winsock.c.
85858         * lib/setsockopt.c: New file, based on winsock.c.
85859         * lib/shutdown.c: New file, based on winsock.c.
85860         * lib/socket.c: New file, based on winsock.c.
85861         * lib/w32sock.h: New file, based on winsock.c.
85862         * lib/winsock.c: Remove file.
85863         * modules/accept: Likewise.
85864         * modules/bind: Likewise.
85865         * modules/connect: Likewise.
85866         * modules/getpeername: Likewise.
85867         * modules/getsockname: Likewise.
85868         * modules/getsockopt: Likewise.
85869         * modules/ioctl: Likewise.
85870         * modules/listen: Likewise.
85871         * modules/recv: Likewise.
85872         * modules/recvfrom: Likewise.
85873         * modules/send: Likewise.
85874         * modules/sendto: Likewise.
85875         * modules/setsockopt: Likewise.
85876         * modules/shutdown: Likewise.
85877         * modules/socket: Use socket.c instead of winsock.c.
85878         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
85879         * doc/posix-functions/accept.texi: Doc fix.
85880         * doc/posix-functions/bind.texi: Doc fix.
85881         * doc/posix-functions/close.texi: Doc fix.
85882         * doc/posix-functions/connect.texi: Doc fix.
85883         * doc/posix-functions/getpeername.texi: Doc fix.
85884         * doc/posix-functions/getsockname.texi: Doc fix.
85885         * doc/posix-functions/getsockopt.texi: Doc fix.
85886         * doc/posix-functions/ioctl.texi: Doc fix.
85887         * doc/posix-functions/listen.texi: Doc fix.
85888         * doc/posix-functions/recv.texi: Doc fix.
85889         * doc/posix-functions/recvfrom.texi: Doc fix.
85890         * doc/posix-functions/send.texi: Doc fix.
85891         * doc/posix-functions/sendto.texi: Doc fix.
85892         * doc/posix-functions/setsockopt.texi: Doc fix.
85893         * doc/posix-functions/shutdown.texi: Doc fix.
85894         * doc/posix-functions/socket.texi: Doc fix.
85896 2008-10-20  Bruno Haible  <bruno@clisp.org>
85898         Take into account the role of SIGABRT_COMPAT on Windows 2008.
85899         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
85900         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
85901         as an alias for SIGABRT.
85902         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
85903         (sigaction): Map it to SIGABRT.
85904         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
85906 2008-10-20  Bruno Haible  <bruno@clisp.org>
85908         * lib/fts.c: Don't include lstat.h.
85909         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
85911         Move the lstat() declaration to <sys/stat.h>.
85912         * lib/lstat.h: Remove file.
85913         * lib/sys_stat.in.h: Add special invocation convention.
85914         (lstat): New declaration.
85915         * lib/lstat.c (orig_lstat): New function.
85916         (rpl_lstat): Use orig_lstat instead of lstat.
85917         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
85918         AC_C_INLINE. Set REPLACE_LSTAT.
85919         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
85920         and REPLACE_LSTAT.
85921         * modules/lstat (Files): Remove lib/lstat.h.
85922         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
85923         (Include): Specify <sys/stat.h> instead of lstat.h.
85924         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
85925         REPLACE_LSTAT.
85926         * NEWS: Mention the change.
85928 2008-10-20  Bruno Haible  <bruno@clisp.org>
85930         * modules/posix_spawn-tests: New file.
85931         * tests/test-posix_spawn3.c: New file.
85933 2008-10-20  Bruno Haible  <bruno@clisp.org>
85935         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
85936         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
85937         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
85938         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
85939         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
85941 2008-10-20  Bruno Haible  <bruno@clisp.org>
85943         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
85944         of posix_spawn on AIX 5.3.
85946 2008-10-20  Bruno Haible  <bruno@clisp.org>
85948         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
85950 2008-10-20  Bruno Haible  <bruno@clisp.org>
85952         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
85953         of AC_LANG_PROGRAM.
85955 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85957         * lib/netdb.in.h: Don't define GNU specific constants until they
85958         are supported or needed.  Reported by Bruno Haible
85959         <bruno@clisp.org>.
85961 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85963         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
85965 2008-10-20  Simon Josefsson  <simon@josefsson.org>
85967         * lib/getaddrinfo.h: Remove file.
85968         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
85969         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
85970         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
85971         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
85972         * modules/netdb: Substitute GNULIB_GETADDRINFO.
85973         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
85974         * tests/test-getaddrinfo.c: Likewise.
85975         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
85976         * NEWS: Mention change.
85978 2008-10-19  Bruno Haible  <bruno@clisp.org>
85980         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
85982 2008-10-19  Bruno Haible  <bruno@clisp.org>
85984         * lib/wait-process.c: Include simply <sys/wait.h>.
85985         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
85986         WIFSTOPPED): Remove fallback definitions.
85987         * modules/wait-process (Depends-on): Add sys_wait.
85989         New module 'sys_wait'.
85990         * modules/sys_wait: New file.
85991         * lib/sys_wait.in.h: New file, partially copied from
85992         lib/wait-process.c.
85993         * m4/sys_wait_h.m4: New file.
85994         * doc/posix-headers/sys_wait.texi: Mention the new module.
85996 2008-10-19  Bruno Haible  <bruno@clisp.org>
85998         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
86000 2008-10-19  Bruno Haible  <bruno@clisp.org>
86002         Assume that waitpid() fills an 'int' status, not a 'union wait'.
86003         * lib/wait-process.c (WAIT_T): Remove type.
86004         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
86005         (wait_subprocess): Update.
86007 2008-10-19  Bruno Haible  <bruno@clisp.org>
86009         New module 'atoll'.
86010         * modules/atoll: New file.
86011         * lib/stdlib.in.h (atoll): New declaration.
86012         * lib/atoll.c: New file, from glibc with modifications.
86013         * m4/atoll.m4: New file.
86014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
86015         HAVE_ATOLL.
86016         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
86017         * doc/posix-functions/atoll.texi: Mention the new module.
86019 2008-10-19  Bruno Haible  <bruno@clisp.org>
86021         Add strtoull() declaration to <stdlib.h>.
86022         * lib/stdlib.in.h (strtoull): New declaration.
86023         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86024         Set HAVE_STRTOULL.
86025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
86026         HAVE_STRTOULL.
86027         * modules/strtoull (Depends-on): Add stdlib.
86028         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86029         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
86030         HAVE_STRTOULL.
86032 2008-10-19  Bruno Haible  <bruno@clisp.org>
86034         Add strtoll() declaration to <stdlib.h>.
86035         * lib/stdlib.in.h (strtoll): New declaration.
86036         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
86037         Set HAVE_STRTOLL.
86038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
86039         HAVE_STRTOLL.
86040         * modules/strtoll (Depends-on): Add stdlib.
86041         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86042         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
86044 2008-10-19  Bruno Haible  <bruno@clisp.org>
86046         * modules/bcopy (Depends-on): Add strings.
86047         (Include): Specify <strings.h>.
86049 2008-10-19  Bruno Haible  <bruno@clisp.org>
86051         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
86053 2008-10-19  Bruno Haible  <bruno@clisp.org>
86055         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
86056         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
86057         mingw.
86059 2008-10-19  Bruno Haible  <bruno@clisp.org>
86061         * lib/atanl.c: Don't include isnanl.h.
86062         * lib/cosl.c: Likewise.
86063         * lib/ldexpl.c: Likewise.
86064         * lib/logl.c: Likewise.
86065         * lib/sinl.c: Likewise.
86066         * lib/sqrtl.c: Likewise.
86067         * lib/tanl.c: Likewise.
86069         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
86070         * lib/isnanf.h: Remove file.
86071         * lib/isnand.h: Remove file.
86072         * lib/isnanl.h: Remove file.
86073         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
86074         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
86075         macros.
86076         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
86077         HAVE_ISNANF, don't define it as a C macro.
86078         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
86079         HAVE_ISNAND, don't define it as a C macro.
86080         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
86081         HAVE_ISNANL, don't define it as a C macro.
86082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
86083         HAVE_ISNAN[FDL].
86084         * modules/isnanf (Files): Remove lib/isnanf.h.
86085         (Depends-on): Add math.
86086         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86087         (Include): Specify <math.h> instead of isnanf.h.
86088         * modules/isnand (Files): Remove lib/isnand.h.
86089         (Depends-on): Add math.
86090         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86091         (Include): Specify <math.h> instead of isnand.h.
86092         * modules/isnanl (Files): Remove lib/isnanl.h.
86093         (Depends-on): Add math.
86094         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
86095         (Include): Specify <math.h> instead of isnanl.h.
86096         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
86097         HAVE_ISNAN[FDL].
86098         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
86099         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
86100         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
86101         * NEWS: Mention the change.
86103 2008-10-18  Bruno Haible  <bruno@clisp.org>
86105         Add getusershell(), setusershell(), endusershell() declarations to
86106         <unistd.h>.
86107         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
86108         declarations.
86109         * lib/getusershell.c: Include unistd.h.
86110         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
86111         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86112         HAVE_GETUSERSHELL.
86113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
86114         and HAVE_GETUSERSHELL.
86115         * modules/getusershell (Depends-on): Add unistd, extensions.
86116         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86117         (Include): Specify <unistd.h>.
86118         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
86119         HAVE_GETUSERSHELL.
86121 2008-10-18  Bruno Haible  <bruno@clisp.org>
86123         Add a getloadavg() declaration to <stdlib.h>.
86124         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
86125         getloadavg declaration.
86126         (getloadavg): New declaration.
86127         * lib/getloadavg.c: Include <stdlib.h> first.
86128         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
86129         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
86130         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
86131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
86132         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86133         * modules/getloadavg (Depends-on): Add stdlib, extensions.
86134         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
86135         (Include): Specify <stdlib.h>.
86136         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
86137         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
86139 2008-10-18  Bruno Haible  <bruno@clisp.org>
86141         * lib/dirchownmod.c: Don't include lchmod.h.
86143         Move the lchmod() declaration to <sys/stat.h>.
86144         * lib/lchmod.h: Remove file.
86145         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
86146         (lchmod): New declaration, moved here from lib/lchown.h.
86147         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
86148         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
86149         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
86150         and HAVE_LCHMOD.
86151         * modules/lchmod (Files): Remove lib/lchmod.h.
86152         (Depends-on): Add sys_stat, extensions.
86153         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86154         (Include): Specify <sys/stat.h> instead of lchmod.h.
86155         * modules/sys_stat (Depends-on): Add link-warning.
86156         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
86157         definition of GL_LINK_WARNING.
86158         * NEWS: Mention the change.
86160 2008-10-18  Bruno Haible  <bruno@clisp.org>
86162         * lib/fchdir.c: Don't include dirfd.h.
86163         * lib/fts.c: Likewise.
86164         * lib/getcwd.c: Likewise.
86165         * lib/glob.c: Likewise.
86167         Move the dirfd() declaration to <dirent.h>.
86168         * lib/dirfd.h: Remove file.
86169         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
86170         (dirfd): New declaration.
86171         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
86172         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
86173         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
86174         HAVE_DECL_DIRFD.
86175         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
86176         HAVE_DECL_DIRFD.
86177         * modules/dirfd (Files): Remove lib/dirfd.h.
86178         (Depends-on): Add dirent, extensions.
86179         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
86180         (Include): Specify <dirent.h> instead of dirfd.h.
86181         * modules/dirent (Depends-on): Add link-warning.
86182         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
86183         definition of GL_LINK_WARNING.
86184         * NEWS: Mention the change.
86186 2008-10-18  Bruno Haible  <bruno@clisp.org>
86188         Move the euidaccess() declaration to <unistd.h>.
86189         * lib/euidaccess.h: Remove file.
86190         * lib/unistd.in.h (euidaccess): New declaration.
86191         * lib/euidaccess.c: Don't include euidaccess.h.
86192         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
86193         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
86194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
86195         and HAVE_EUIDACCESS.
86196         * modules/euidaccess (Files): Remove lib/euidaccess.h.
86197         (Depends-on): Add unistd.
86198         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86199         (Include): Specify <unistd.h> instead of euidaccess.h.
86200         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
86201         HAVE_EUIDACCESS.
86202         * NEWS: Mention the change.
86204 2008-10-18  Bruno Haible  <bruno@clisp.org>
86206         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
86208         Move the getdomainname() declaration to <unistd.h>.
86209         * lib/getdomainname.h: Remove file.
86210         * lib/unistd.in.h (getdomainname): New declaration.
86211         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
86212         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
86213         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
86214         HAVE_GETDOMAINNAME.
86215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86216         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
86217         * modules/getdomainname (Files): Remove lib/getdomainname.h.
86218         (Depends-on): Add unistd, extensions.
86219         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86220         (Includes): Specify <unistd.h> instead of getdomainname.h.
86221         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
86222         HAVE_GETDOMAINNAME.
86223         * NEWS: Mention the change.
86225 2008-10-18  Bruno Haible  <bruno@clisp.org>
86227         * modules/dirent: New file.
86228         * m4/dirent_h.m4: New file.
86229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
86230         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
86231         * modules/fchdir (Files): Remove lib/dirent.in.h.
86232         (Depends-on): Add dirent.
86233         (Makefile.am): Move rules to modules/dirent.
86234         * doc/posix-headers/dirent.texi: Mention the new module.
86236 2008-10-18  Bruno Haible  <bruno@clisp.org>
86238         Avoid -Wunused-parameter warnings in public gnulib header files.
86239         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
86240         macro.
86241         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
86243 2008-10-18  Bruno Haible  <bruno@clisp.org>
86245         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
86246         * doc/glibc-functions/error.texi: Mention the module 'error'.
86247         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
86248         * doc/glibc-functions/getdomainname.texi: Mention the module
86249         'getdomainname'.
86250         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
86251         * doc/glibc-functions/getpagesize.texi: Mention the module
86252         'getpagesize'.
86253         * doc/glibc-functions/getusershell.texi: Mention the module
86254         'getusershell'.
86255         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
86256         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
86257         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
86258         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
86259         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
86260         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
86261         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
86262         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
86263         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
86264         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
86265         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
86266         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
86267         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
86268         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
86270 2008-10-17  Bruno Haible  <bruno@clisp.org>
86272         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
86273         HP-UX and IRIX, use -0.0L.
86274         * tests/test-ceill.c (minus_zero): Likewise.
86275         * tests/test-floorl.c (minus_zero): Likewise.
86276         * tests/test-frexpl.c (minus_zero): Likewise.
86277         * tests/test-isnan.c (minus_zerol): Likewise.
86278         * tests/test-isnanl.h (minus_zero): Likewise.
86279         * tests/test-ldexpl.c (minus_zero): Likewise.
86280         * tests/test-roundl.c (minus_zero): Likewise.
86281         * tests/test-signbit.c (minus_zerol): Likewise.
86282         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86283         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86284         * tests/test-truncl.c (minus_zero): Likewise.
86285         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86286         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86287         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
86288         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86290 2008-10-17  Bruno Haible  <bruno@clisp.org>
86292         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
86293         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
86294         that it gets activated only for gcc >= 3.0.
86295         * lib/dirent.in.h: Likewise.
86296         * lib/errno.in.h: Likewise.
86297         * lib/fcntl.in.h: Likewise.
86298         * lib/float.in.h: Likewise.
86299         * lib/iconv.in.h: Likewise.
86300         * lib/inttypes.in.h: Likewise.
86301         * lib/locale.in.h: Likewise.
86302         * lib/math.in.h: Likewise.
86303         * lib/netdb.in.h: Likewise.
86304         * lib/netinet_in.in.h: Likewise.
86305         * lib/search.in.h: Likewise.
86306         * lib/signal.in.h: Likewise.
86307         * lib/spawn.in.h: Likewise.
86308         * lib/stdarg.in.h: Likewise.
86309         * lib/stdint.in.h: Likewise.
86310         * lib/stdio.in.h: Likewise.
86311         * lib/stdlib.in.h: Likewise.
86312         * lib/string.in.h: Likewise.
86313         * lib/strings.in.h: Likewise.
86314         * lib/sys_file.in.h: Likewise.
86315         * lib/sys_ioctl.in.h: Likewise.
86316         * lib/sys_select.in.h: Likewise.
86317         * lib/sys_socket.in.h: Likewise.
86318         * lib/sys_stat.in.h: Likewise.
86319         * lib/sys_time.in.h: Likewise.
86320         * lib/sysexits.in.h: Likewise.
86321         * lib/time.in.h: Likewise.
86322         * lib/unistd.in.h: Likewise.
86323         * lib/wchar.in.h: Likewise.
86324         * lib/wctype.in.h: Likewise.
86325         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86327 2008-10-17  Jim Meyering  <meyering@redhat.com>
86329         ignore-value: don't depend on inline module
86330         * modules/ignore-value (Depends-on): Remove 'inline'.
86331         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
86332         Suggestion from Bruno Haible.
86334 2008-10-17  Bruno Haible  <bruno@clisp.org>
86336         New implementation of condition variables for Win32.
86337         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
86338         (gl_linked_waitqueue_t): New type.
86339         (gl_cond_t): Use it.
86340         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
86341         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
86342         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
86343         (glthread_cond_init_func, glthread_cond_wait_func,
86344         glthread_cond_timedwait_func, glthread_cond_signal_func,
86345         glthread_cond_broadcast_func, glthread_cond_destroy_func):
86346         Reimplemented on the basis of gl_linked_waitqueue_t.
86347         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
86348         gl_waitqueue_t.
86349         (gl_rwlock_t): Update.
86350         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
86352 2008-10-17  Simon Josefsson  <simon@josefsson.org>
86354         * modules/recvfrom (Depends-on): Add dependency on getpeername.
86355         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86357 2008-10-17  Jim Meyering  <meyering@redhat.com>
86359         ignore-value: new module
86360         * modules/ignore-value: New file.
86361         * lib/ignore-value.h: New file.
86362         * MODULES.html.sh (Compiler warning management): New section,
86363         just for this module.  More to come.
86365 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
86367         open-safer.c: avoid 'signed and unsigned in conditional...' warning
86368         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
86369         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
86371 2008-10-16  Jim Meyering  <meyering@redhat.com>
86373         openat-die.c: avoid 'no previous prototype' warning
86374         * lib/openat-die.c: Include "openat.h".
86375         Reported by Reuben Thomas <rrt@sc3d.org>.
86377 2008-10-16  Simon Josefsson  <simon@josefsson.org>
86379         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
86380         * lib/netdb.in.h: Fix typo.
86381         Reported by Bruno Haible  <bruno@clisp.org>
86383         * lib/netdb.in.h: Include sys/socket.h for platforms without
86384         netdb.h, to get structures like hostent on MinGW.
86385         * modules/netdb (Depends-on): Add sys_socket.
86387 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86389         * modules/netdb, modules/netdb-tests: New file.
86390         * m4/netdb_h.m4: New file.
86391         * lib/netdb.in.h: Add, currently just an empty file pending
86392         definitions.
86393         * tests/test-netdb.c: New file.
86394         * doc/posix-headers/netdb.texi: Mention that we replace it if
86395         needed.
86396         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86397         netdb.
86399 2008-10-15  Simon Josefsson  <simon@josefsson.org>
86401         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
86402         with code.
86404 2008-10-13  Bruno Haible  <bruno@clisp.org>
86406         * lib/glthread/cond.c (glthread_cond_wait_func,
86407         glthread_cond_timedwait_func): Add a comment.
86409 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86411         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
86412         * tests/test-select.c: Likewise,
86414 2008-10-13  Bruno Haible  <bruno@clisp.org>
86416         * lib/glthread/cond.c (glthread_cond_wait_func,
86417         glthread_cond_timedwait_func): Fix variable name.
86418         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86420 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
86422         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
86423         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
86424         struct sockaddr.sa_len.
86425         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
86427 2008-10-13  Simon Josefsson  <simon@josefsson.org>
86429         * build-aux/pmccabe2html: Add css and css_url parameters.
86431 2008-10-12  Bruno Haible  <bruno@clisp.org>
86433         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
86434         calling aclx_get.
86435         Reported by Rainer Tammer <tammer@tammer.net>.
86437 2008-10-12  Bruno Haible  <bruno@clisp.org>
86439         Use msvcrt aware primitives for creation/termination of Win32 threads.
86440         * lib/glthread/thread.c: Include <process.h>.
86441         (glthread_create_func): Use _beginthreadex instead of CreateThread.
86442         (wrapper_func): Update signature.
86443         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
86445 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86446             Bruno Haible  <bruno@clisp.org>
86448         Provide a Win32 implementation of the 'cond' module.
86449         * lib/glthread/cond.h [USE_WIN32]: New implementation.
86450         * lib/glthread/cond.c (glthread_cond_init_func,
86451         glthread_cond_wait_func, glthread_cond_timedwait_func,
86452         glthread_cond_signal_func, glthread_cond_broadcast_func,
86453         glthread_cond_destroy_func) [USE_WIN32]: New functions.
86454         * modules/cond (Dependencies): Add gettimeofday.
86456 2008-10-11  Bruno Haible  <bruno@clisp.org>
86458         Make sleep work on older versions of mingw.
86459         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
86460         only whether it exists.
86461         * doc/posix-functions/sleep.texi: Mention the problem with older
86462         versions of mingw.
86464 2008-10-11  Bruno Haible  <bruno@clisp.org>
86466         New module 'shutdown'.
86467         * modules/shutdown: New file.
86468         * lib/sys_socket.in.h (shutdown): New declaration.
86469         * lib/winsock.c (shutdown): New function.
86470         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
86471         GNULIB_SHUTDOWN.
86472         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
86473         * doc/posix-functions/shutdown.texi: Document the new module.
86475 2008-10-11  Jim Meyering  <meyering@redhat.com>
86477         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
86479 2008-10-11  Bruno Haible  <bruno@clisp.org>
86481         New module 'fclose'.
86482         * modules/fclose: New file.
86483         * lib/stdio.in.h (fclose): New declaration.
86484         * lib/fclose.c: New file.
86485         * m4/fclose.m4: New file.
86486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
86487         REPLACE_FCLOSE.
86488         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
86489         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
86490         REPLACE_FCLOSE.
86491         * modules/close (Depends-on): fclose.
86492         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
86494 2008-10-11  Bruno Haible  <bruno@clisp.org>
86496         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
86497         set errno and don't call _close.
86499 2008-10-10  Bruno Haible  <bruno@clisp.org>
86501         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
86502         ACL, not afterwards. Fixes test failure on Cygwin.
86504 2008-10-09  Ben Pfaff  <blp@gnu.org>
86506         * build-aux/announce-gen: Fix gnulib version related part of usage
86507         message.  Die with a useful error message if no tarballs are
86508         found.
86510 2008-10-10  Jim Meyering  <meyering@redhat.com>
86512         bootstrap: use git's --depth=N option only if it's supported
86513         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
86514         recognize the --depth option.  Reported by Pádraig Brady.
86516 2008-10-09  Bruno Haible  <bruno@clisp.org>
86518         New module 'ioctl'.
86519         * modules/ioctl: New file.
86520         * lib/sys_socket.in.h (ioctl): Remove declaration.
86521         * lib/winsock.c: Include <sys/ioctl.h>.
86522         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
86523         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86524         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
86525         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
86526         * doc/posix-functions/ioctl.texi: Mention the new module.
86528 2008-10-09  Bruno Haible  <bruno@clisp.org>
86530         New module 'sys_ioctl'.
86531         * lib/sys_ioctl.in.h: New file.
86532         * m4/sys_ioctl_h.m4: New file.
86533         * modules/sys_ioctl: New file.
86534         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
86536 2008-10-09  Bruno Haible  <bruno@clisp.org>
86538         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
86539         * lib/winsock.c: Include <stdarg.h>.
86540         (rpl_ioctl): Change to second argument 'int' and then varargs.
86542 2008-10-09  Bruno Haible  <bruno@clisp.org>
86544         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
86545         when the sys_socket module is present and the system has <winsock2.h>.
86547 2008-10-09  Bruno Haible  <bruno@clisp.org>
86549         * doc/posix-functions/close.texi: Mention module 'close' instead of
86550         module 'sys_socket'.
86552 2008-10-09  Bruno Haible  <bruno@clisp.org>
86554         * doc/glibc-headers/sys_ioctl.texi: New file.
86555         * doc/gnulib.texi: Include it.
86557 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86558             Bruno Haible  <bruno@clisp.org>
86560         Combine the two replacements of 'close'.
86561         * lib/sys_socket.in.h (close): Define to a reminder to include
86562         <unistd.h>.
86563         (_gl_close_fd_maybe_socket): New declaration.
86564         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
86565         * lib/winsock.c (close): Remove undefinition.
86566         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
86567         needed for the gnulib module 'close'.
86568         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
86569         define to an error symbol or to a warning, if suitable.
86570         * lib/close.c: Include <sys/socket.h>.
86571         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
86572         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
86573         UNISTD_H_HAVE_WINSOCK2_H.
86574         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
86575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86576         UNISTD_H_HAVE_WINSOCK2_H.
86577         * modules/sys_socket (Files): Add m4/unistd_h.m4.
86578         (configure.ac): Set a module indicator.
86579         (Makefile.am): Substitute GNULIB_CLOSE.
86580         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
86581         * modules/poll-tests (Depends-on): Add close.
86582         * modules/select-tests (Depends-on): Likewise.
86584 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86585             Bruno Haible  <bruno@clisp.org>
86587         New module 'close'.
86588         * modules/close: New file.
86589         * lib/unistd.in.h (close): Move declaration out of the
86590         FCHDIR_REPLACEMENT scope.
86591         (_gl_unregister_fd): New declaration.
86592         * lib/close.c: New file.
86593         * lib/fchdir.c (rpl_close): Remove function.
86594         * m4/close.m4: New file.
86595         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86596         close.
86597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
86598         REPLACE_CLOSE.
86599         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
86600         REPLACE_CLOSE.
86601         * modules/fchdir (Depends-on): Add close.
86603 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86604             Bruno Haible  <bruno@clisp.org>
86606         * lib/fcntl.in.h (open): Simplify conditionals.
86607         (_gl_register_fd): New declaration.
86608         * lib/fchdir.c (rpl_open): Remove function.
86609         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
86610         also.
86611         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
86612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
86613         open.
86615 2008-10-09  Jim Meyering  <meyering@redhat.com>
86617         GNUmakefile: use the more name-space-friendly "_version"
86618         * top/GNUmakefile (_dummy): Update.
86619         (_version): Rename from "version".
86621 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86622             Bruno Haible  <bruno@clisp.org>
86624         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
86625         rpl_close.
86626         (_gl_register_fd): New function, extracted from rpl_open.
86627         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
86628         (rpl_open, rpl_opendir): Use _gl_register_fd.
86630 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
86632         Fix organization of 'open' replacement.
86633         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
86634         (gl_FUNC_OPEN): Use it.
86635         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
86637 2008-10-08  Bruno Haible  <bruno@clisp.org>
86639         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
86641 2008-10-08  Simon Josefsson  <simon@josefsson.org>
86643         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
86644         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
86645         listen).
86647 2008-10-08  Eric Blake  <ebb9@byu.net>
86649         GNUmakefile: add 'make version' target
86650         * top/GNUmakefile (_curr-ver): Split version update rules...
86651         (version): ...into a target.
86653 2008-10-07  Bruno Haible  <bruno@clisp.org>
86655         Use a more portable replacement expression for -0.0L.
86656         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
86657         instead of -0.0L. Fix m4 quotation.
86659         * tests/test-signbit.c: Include <float.h>.
86660         (minus_zero): New variable.
86661         (test_signbitl): Use minus_zero instead of -zero.
86662         * modules/signbit-tests (Depends-on): Add float.
86664         * tests/test-ceill.c: Include <float.h>.
86665         (zero): Remove variable.
86666         (minus_zero): New variable.
86667         (main): Use minus_zero instead of -zero.
86668         * modules/ceill-tests (Depends-on): Add float.
86670         * tests/test-floorl.c: Include <float.h>.
86671         (zero): Remove variable.
86672         (minus_zero): New variable.
86673         (main): Use minus_zero instead of -zero.
86674         * modules/floorl-tests (Depends-on): Add float.
86676         * tests/test-roundl.c: Include <float.h>.
86677         (zero): Remove variable.
86678         (minus_zero): New variable.
86679         (main): Use minus_zero instead of -zero.
86680         * modules/roundl-tests (Depends-on): Add float.
86682         * tests/test-truncl.c: Include <float.h>.
86683         (zero): Remove variable.
86684         (minus_zero): New variable.
86685         (main): Use minus_zero instead of -zero.
86686         * modules/truncl-tests (Depends-on): Add float.
86688         * tests/test-frexpl.c (zero): Remove variable.
86689         (minus_zero): New variable.
86690         (main): Use minus_zero instead of -zero.
86691         * modules/frexpl-tests (Depends-on): Add float.
86693         * tests/test-isnan.c (zerol): Remove variable.
86694         (minus_zerol): New variable.
86695         (test_long_double): Use minus_zerol instead of -zerol.
86696         * modules/isnan-tests (Depends-on): Add float.
86698         * tests/test-isnanl.h (zero): Remove variable.
86699         (minus_zero): New variable.
86700         (main): Use minus_zero instead of -zero.
86701         * modules/isnanl-nolibm-tests (Depends-on): Add float.
86702         * modules/isnanl-tests (Depends-on): Add float.
86704         * tests/test-ldexpl.c (zero): Remove variable.
86705         (minus_zero): New variable.
86706         (main): Use minus_zero instead of -zero.
86707         * modules/ldexpl-tests (Depends-on): Add float.
86709         * tests/test-snprintf-posix.h (zerol): Remove variable.
86710         (minus_zerol): New variable.
86711         (test_function): Use minus_zerol instead of -zerol.
86712         * modules/snprintf-posix-tests (Depends-on): Add float.
86713         * modules/vsnprintf-posix-tests (Depends-on): Add float.
86715         * tests/test-sprintf-posix.h (zerol): Remove variable.
86716         (minus_zerol): New variable.
86717         (test_function): Use minus_zerol instead of -zerol.
86718         * modules/sprintf-posix-tests (Depends-on): Add float.
86719         * modules/vsprintf-posix-tests (Depends-on): Add float.
86721         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
86722         (minus_zerol): New variable.
86723         (test_function): Use minus_zerol instead of -zerol.
86724         * modules/vasnprintf-posix-tests (Depends-on): Add float.
86726         * tests/test-vasprintf-posix.c (zerol): Remove variable.
86727         (minus_zerol): New variable.
86728         (test_function): Use minus_zerol instead of -zerol.
86729         * modules/vasprintf-posix-tests (Depends-on): Add float.
86731 2008-10-07  Simon Josefsson  <simon@josefsson.org>
86733         * MODULES.html.sh (Support for building documentation): Mention
86734         pmccabe2html.  Sort entries.
86736         Add pmccabe2html module, from gnupdf.
86737         * build-aux/pmccabe.css: New file.
86738         * build-aux/pmccabe2html: New file.
86739         * m4/pmccabe2html.m4: New file.
86740         * modules/pmccabe2html: New file.
86742 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
86744         flock: new module
86745         * MODULES.html.sh: Add to list of modules.
86746         * lib/flock.c: flock implementation for Windows and Unix systems
86747         which have fcntl.
86748         * doc/glibc-functions/flock.texi: Update documentation.
86749         * lib/sys_file.in.h: <sys/file.h> header file.
86750         * m4/flock.m4: M4 macros.
86751         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
86752         * modules/flock: flock module.
86753         * modules/flock-tests: flock tests module.
86754         * modules/sys_file: sys/file.h module.
86755         * tests/test-flock.c: test suite for flock.
86757 2008-10-06  Jim Meyering  <meyering@redhat.com>
86759         bootstrap: check for LT_INIT more portably still ;-)
86760         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
86761         Spotted by Bruno Haible.
86763 2008-10-06  Eric Blake  <ebb9@byu.net>
86765         test-signbit: avoid tripping Irix cc bug on -0.0L
86766         * tests/test-signbit.c (minus_zerol): Delete, and replace with
86767         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
86768         entire testsuite consistent and avoids an Irix 6.2 bug.
86770 2008-10-05  Bruno Haible  <bruno@clisp.org>
86771             Jim Meyering  <jim@meyering.net>
86773         Add an option for ignoring EPIPE during close_stdout.
86774         * lib/closeout.h: Include <stdbool.h>.
86775         (close_stdout_set_ignore_EPIPE): New declaration.
86776         * lib/closeout.c: Include <stdbool.h>.
86777         (ignore_EPIPE): New variable.
86778         (close_stdout_set_ignore_EPIPE): New function.
86779         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
86780         * lib/close-stream.c (close_stream): Mention the possible EPIPE
86781         failure.
86782         * modules/closeout (Depends-on): Add stdbool.
86784 2008-10-05  Bruno Haible  <bruno@clisp.org>
86786         * modules/accept: New file.
86787         * modules/bind: New file.
86788         * modules/connect: New file.
86789         * modules/getpeername: New file.
86790         * modules/getsockname: New file.
86791         * modules/getsockopt: New file.
86792         * modules/listen: New file.
86793         * modules/recv: New file.
86794         * modules/recvfrom: New file.
86795         * modules/send: New file.
86796         * modules/sendto: New file.
86797         * modules/setsockopt: New file.
86798         * modules/socket: New file.
86799         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
86800         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
86801         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
86802         the particular module is requested. Add a link warning when the
86803         particular module is not requested.
86804         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
86805         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
86806         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
86807         the particular module is requested.
86808         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
86809         gl_SYS_SOCKET_H_DEFAULTS): New macros.
86810         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
86811         * modules/sys_socket (Depends-on): Add link-warning.
86812         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
86813         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
86814         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
86815         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
86816         GL_LINK_WARNING.
86817         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
86818         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
86819         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
86820         * doc/posix-functions/getpeername.texi: Mention the new module
86821         'getpeername'.
86822         * doc/posix-functions/getsockname.texi: Mention the new module
86823         'getsockname'.
86824         * doc/posix-functions/getsockopt.texi: Mention the new module
86825         'getsockopt'.
86826         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
86827         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
86828         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
86829         * doc/posix-functions/send.texi: Mention the new module 'send'.
86830         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
86831         * doc/posix-functions/setsockopt.texi: Mention the new module
86832         'setsockopt'.
86833         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
86834         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
86835         listen, connect, accept.
86836         * modules/select-tests (Depends-on): Likewise.
86838 2008-10-05  Bruno Haible  <bruno@clisp.org>
86840         * lib/winsock.c (strerror): Remove unused #undef.
86841         (rpl_close): Remove unused local variable.
86843         * modules/sys_socket (Depends-on); Add errno.
86845 2008-10-05  Bruno Haible  <bruno@clisp.org>
86847         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
86848         (select): Add a link warning when the 'select' module is not used.
86849         * modules/sys_select (Depends-on): Add link-warning.
86850         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
86851         Suggested by Paolo Bonzini.
86853 2008-10-05  Jim Meyering  <meyering@redhat.com>
86855         bootstrap: check for LT_INIT more portably
86856         * build-aux/bootstrap: Avoid using grep -E, since it's not
86857         portable enough.  Suggestion from Bruno Haible.
86859 2008-10-05  Bruno Haible  <bruno@clisp.org>
86861         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
86862         as being fixed by gnulib.
86864 2008-10-05  Bruno Haible  <bruno@clisp.org>
86866         * modules/select-tests: New file, mostly copied from
86867         modules/sys_select-tests.
86868         * tests/test-select.c: New file, mostly copied from
86869         tests/test-sys_select.c.
86870         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
86871         * modules/sys_select-tests (Depends-on): Remove all dependencies.
86872         (Makefile.am): Remove test_sys_select_LDADD.
86874         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
86875         to an undefined symbol, for an error message.
86876         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
86877         (gl_SYS_SELECT_H_DEFAULTS): New macro.
86878         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
86879         winsock-select.c here.
86880         * modules/sys_select (Files): Remove lib/winsock-select.c.
86881         (Depends-on): Remove alloca.
86882         (Makefile.am): Substitute GNULIB_SELECT.
86883         * modules/select: New file.
86884         * doc/posix-functions/select.texi: Update.
86886 2008-10-05  Bruno Haible  <bruno@clisp.org>
86888         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
86889         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
86890         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
86891         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
86892         getdtablesize.
86893         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
86894         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
86896 2008-10-05  Bruno Haible  <bruno@clisp.org>
86898         * modules/getdtablesize-tests: New file.
86899         * tests/test-getdtablesize.c: New file.
86901         New module 'getdtablesize'.
86902         * lib/unistd.in.h (getdtablesize): New declaration.
86903         * lib/getdtablesize.c: New file.
86904         * m4/getdtablesize.m4: New file.
86905         * modules/getdtablesize: New file.
86906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
86907         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
86908         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
86909         HAVE_GETDTABLESIZE.
86910         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
86912 2008-10-05  Bruno Haible  <bruno@clisp.org>
86914         * modules/sched (Makefile.am): Fix typo.
86915         Reported by Simon Josefsson.
86917 2008-10-05  Jim Meyering  <meyering@redhat.com>
86919         bootstrap: check for LT_INIT, too
86920         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
86921         are deprecated.  Suggestion from Ralf Wildenhues.
86923 2008-10-05  Bruno Haible  <bruno@clisp.org>
86925         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
86926         overriding them by ours.
86927         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
86929 2008-10-05  Jim Meyering  <meyering@redhat.com>
86931         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
86932         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
86933         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
86935 2008-10-04  Bruno Haible  <bruno@clisp.org>
86937         * modules/dup2 (License): Change to LGPLv2+.
86938         * modules/sleep (License): Likewise.
86939         * modules/perror (License): Likewise.
86940         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
86941         Blake.
86942         * modules/signal (License): Likewise.
86943         * modules/sigprocmask (License): Likewise.
86944         * modules/raise (License): Change to LGPLv2+, with approval by Jim
86945         Meyering.
86947 2008-10-04  Bruno Haible  <bruno@clisp.org>
86949         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
86950         Reported by Rainer Tammer <tammer@tammer.net>.
86952 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
86953             Bruno Haible  <bruno@clisp.org>
86955         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
86956         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
86957         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
86959 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
86961         filevercmp: new module
86962         * lib/filevercmp.h: New function filevercmp comparing version strings.
86963         * lib/filevercmp.c: Implementation of filevercmp function.
86964         * modules/filevercmp: Module metadata.
86965         * tests/test-filevercmp.c: Unit test for new module.
86966         * modules/filevercmp-tests: Unit test metadata.
86967         * MODULES.html.sh: Add filevercmp module.
86969 2008-10-03  Bruno Haible  <bruno@clisp.org>
86971         * lib/c-ctype.h: Add comment.
86972         Reported by Jim Meyering.
86974 2008-10-02  Bruno Haible  <bruno@clisp.org>
86976         * modules/posix_spawn-internal (Depends-on): Add 'open'.
86978 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86980         * build-aux/bootstrap: Allow renaming bootstrap, and change the
86981         name of bootstrap.conf accordingly.
86983 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86985         * build-aux/bootstrap: Install git-merge-changelog configuration
86986         items into .gitconfig if needed.
86988 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
86990         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
86991         git repository, and initialize/update it accordingly.
86993 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
86995         * modules/fsync-tests: New file.
86996         * tests/test-fsync.c: New file.
86998         New module 'fsync'.
86999         * lib/fsync.c: New file.
87000         * m4/fsync.m4: New file.
87001         * modules/fsync: New file.
87002         * lib/unistd.in.h (fsync): New declaration.
87003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
87004         GNULIB_FSYNC and HAVE_FSYNC.
87005         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
87006         * MODULES.html.sh (posix_functions): Add fsync.
87007         * doc/posix-functions/fsync.texi: Mention the new module.
87009 2008-10-02  Jim Meyering  <meyering@redhat.com>
87011         fts.c: sync with similar code from coreutils' remove.c
87012         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
87013         Guard also with "#if defined __linux__", since for now at least,
87014         this code is Linux-kernel-specific.
87016 2008-10-02  Jim Meyering  <meyering@redhat.com>
87018         fts: bug fixes
87019         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
87020         Include <sys/vfs.h>, not <sys/statfs.h>.
87022         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
87023         Include <sys/vfs.h>, not <sys/statfs.h>.
87025 2008-10-01  Bruno Haible  <bruno@clisp.org>
87027         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
87028         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
87029         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
87030         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
87031         * doc/posix-functions/posix_spawnp.texi: Likewise.
87032         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
87033         whether posix_spawn actually works.
87034         * m4/pipe.m4 (gl_PIPE): Likewise.
87035         * modules/execute (Files): Add m4/posix_spawn.m4.
87036         * modules/pipe (Files): Add m4/posix_spawn.m4.
87037         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
87039 2008-10-01  Jim Meyering  <meyering@redhat.com>
87041         remove trailing spaces
87042         * NEWS: Likewise.
87043         * lib/poll.c (poll): Likewise.
87044         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
87045         * lib/winsock.c (rpl_close): Likewise.
87046         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
87047         * modules/yield: Likewise.
87048         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
87049         * tests/test-sys_select.c (connect_to_socket): Likewise.
87051         fts.c: adjust a new interface to be more generally useful
87052         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
87053         (fts_build): Adjust caller.
87055 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87057         * modules/cond-tests: New file.
87058         * tests/test-cond.c: New file.
87060 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87061             Bruno Haible  <bruno@clisp.org>
87063         * modules/cond (Dependencies): Add errno, time.
87064         * lib/glthread/cond.h: Include <time.h>.
87065         (gl_cond_define, gl_cond_define_initialized): Use the same definition
87066         across platforms.
87068 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87069             Bruno Haible  <bruno@clisp.org>
87071         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
87073 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87074             Bruno Haible  <bruno@clisp.org>
87076         * modules/tls-tests (Depends-on): Add thread, yield.
87077         (configure.ac): Remove all checks.
87078         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
87079         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87080         gl_thread_self): Remove definitions. Include glthread/thread.h and
87081         glthread/yield.h instead.
87082         (test_tls): Pass an additional NULL argument to gl_thread_join.
87084 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87085             Bruno Haible  <bruno@clisp.org>
87087         * modules/lock-tests (Depends-on): Add thread, yield.
87088         (configure.ac): Remove all checks.
87089         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
87090         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
87091         gl_thread_self): Remove definitions. Include glthread/thread.h and
87092         glthread/yield.h instead.
87093         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
87094         additional NULL argument to gl_thread_join.
87096 2008-09-30  Bruno Haible  <bruno@clisp.org>
87098         Fix the Win32 implementation of the 'thread' module.
87099         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
87100         pointer type.
87101         (gl_thread_self): Invoke gl_thread_self_func.
87102         (gl_thread_self_func): New declaration.
87103         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
87104         (do_init_self_key, init_self_key): New functions.
87105         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
87106         Remove some fields.
87107         (running_threads, running_lock): Remove variables.
87108         (get_current_thread_handle): New function.
87109         (gl_thread_self_func, wrapper_func, glthread_create_func,
87110         glthread_join_func, gl_thread_exit_func): Largely rewritten and
87111         simplified.
87113 2008-09-30  Bruno Haible  <bruno@clisp.org>
87115         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
87116         files.
87118 2008-09-30  Jim Meyering  <meyering@redhat.com>
87120         fts.m4: correct the test for statfs.f_type
87121         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
87122         when checking for statfs.f_type.
87124 2008-09-15  Simon Josefsson  <simon@josefsson.org>
87126         tests: avoid some compiler warnings
87127         * tests/test-memchr.c (main): Pass NULL indirectly.
87128         * tests/test-getdate.c (main): Remove unused variable 'ret'.
87130 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
87132         getdate.y: disallow countable dayshifts like "4 yesterday ago"
87133         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
87134         exactly specified dayshifts.
87135         (dayshift): New rule.
87136         (rel): Add dayshift.
87137         (relative_time_table) [tomorrow, yesterday, today, now]:
87138         Use tDAY_SHIFT in place of tDAY_UNIT.
87139         * tests/test-getdate.c: Add tests for now-disallowed countable
87140         dayshifts, e.g., "4 yesterday ago".
87142 2008-09-29  Bruno Haible  <bruno@clisp.org>
87144         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
87145         * tests/test-posix_spawn1.in.sh: Renamed from
87146         tests/test-posix_spawn.in.sh.
87147         * tests/test-posix_spawn2.c: New file.
87148         * tests/test-posix_spawn2.in.sh: New file.
87149         * modules/posix_spawnp-tests (Files): Update.
87150         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
87152 2008-09-29  Bruno Haible  <bruno@clisp.org>
87154         Propagate effects of putenv/setenv/unsetenv to child processes.
87155         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
87156         * lib/pipe.c (create_pipe): Likewise.
87158 2008-09-29  Bruno Haible  <bruno@clisp.org>
87160         Enable use of shell scripts as executables in mingw.
87161         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
87162         run the program as a shell script.
87163         * lib/pipe.c (create_pipe): Likewise.
87164         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
87165         resulting array.
87167 2008-09-29  Eric Blake  <ebb9@byu.net>
87169         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
87171 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
87173         * doc/posix-functions/accept.texi: Update mingw problems.
87174         * doc/posix-functions/bind.texi: Update mingw problems.
87175         * doc/posix-functions/close.texi: Update mingw problems.
87176         * doc/posix-functions/connect.texi: Update mingw problems.
87177         * doc/posix-functions/getpeername.texi: Update mingw problems.
87178         * doc/posix-functions/getsockname.texi: Update mingw problems.
87179         * doc/posix-functions/getsockopt.texi: Update mingw problems.
87180         * doc/posix-functions/ioctl.texi: Update mingw problems.
87181         * doc/posix-functions/listen.texi: Update mingw problems.
87182         * doc/posix-functions/recv.texi: Update mingw problems.
87183         * doc/posix-functions/recvfrom.texi: Update mingw problems.
87184         * doc/posix-functions/select.texi: Update mingw problems.
87185         * doc/posix-functions/send.texi: Update mingw problems.
87186         * doc/posix-functions/sendto.texi: Update mingw problems.
87187         * doc/posix-functions/setsockopt.texi: Update mingw problems.
87188         * doc/posix-functions/socket.texi: Update mingw problems.
87190 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
87191             Bruno Haible  <bruno@clisp.org>
87193         * lib/sys_select.in.h: Include sys/time.h.
87194         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
87195         * modules/sys_select: Depend on sys_time.
87196         * tests/test-sys_select.c: Test that sys/select.h defines struct
87197         timeval fully.
87199 2008-09-29  Bruno Haible  <bruno@clisp.org>
87201         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
87202         * lib/sys_select.in.h: Likewise.
87204 2008-09-29  Bruno Haible  <bruno@clisp.org>
87206         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
87208 2008-09-29  Bruno Haible  <bruno@clisp.org>
87210         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
87211         Set LIBSOCKET instead of augmenting LIBS.
87212         * modules/sockets (Link): New section.
87213         * modules/sockets-tests (test_sockets_LDADD): New variable.
87214         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
87215         * modules/poll-tests (test_poll_LDADD): New variable.
87216         * NEWS: Document the change.
87218 2008-09-29  Bruno Haible  <bruno@clisp.org>
87220         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
87221         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
87222         ARPA_INET_H directly.
87223         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
87225 2008-09-28  Bruno Haible  <bruno@clisp.org>
87227         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
87228         from gl_HEADER_SYS_SOCKET.
87229         (gl_HEADER_SYS_SOCKET): Invoke it.
87230         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87232 2008-09-28  Bruno Haible  <bruno@clisp.org>
87234         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
87235         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
87236         Needed on OSF/1 4.0.
87238 2008-09-28  Bruno Haible  <bruno@clisp.org>
87240         Override open more carefully.
87241         * lib/open.c (orig_open): New function.
87242         (rpl_open): Use orig_open instead of open.
87243         * lib/fcntl.in.h: Add special invocation convention.
87244         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
87245         (gl_FUNC_OPEN): Invoke it.
87247         Override freopen more carefully.
87248         * lib/freopen.c (orig_freopen): New function.
87249         (rpl_freopen): Use orig_freopen instead of freopen.
87250         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
87251         (gl_FUNC_FREOPEN): Invoke it.
87253         Override fopen more carefully.
87254         * lib/fopen.c (orig_fopen): New function.
87255         (rpl_fopen): Use orig_fopen instead of fopen.
87256         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
87257         (gl_FUNC_FOPEN): Invoke it.
87258         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
87260 2008-09-28  Bruno Haible  <bruno@clisp.org>
87262         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
87263         SIGPIPE.
87265 2008-09-28  Bruno Haible  <bruno@clisp.org>
87267         * tests/test-sigaction.c (handler, main): Disable the check whether
87268         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
87269         glibc systems with LinuxThreads.
87271 2008-09-28  Bruno Haible  <bruno@clisp.org>
87273         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
87275         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
87276         with AIX xlc.
87277         * lib/fcntl.in.h (open): Likewise.
87278         Reported by Rainer Tammer <tammer@tammer.net>.
87280 2008-09-28  Bruno Haible  <bruno@clisp.org>
87282         * modules/posix_spawnp-tests: New file.
87283         * tests/test-posix_spawn.c: New file.
87284         * tests/test-posix_spawn.in.sh: New file.
87286         New module 'posix_spawnp'.
87287         * modules/posix_spawnp: New file.
87288         * lib/spawnp.c: New file, from GNU libc with modifications.
87289         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
87291         New module 'posix_spawn'.
87292         * modules/posix_spawn: New file.
87293         * lib/spawn.c: New file, from GNU libc with modifications.
87294         * doc/posix-functions/posix_spawn.texi: Mention the new module.
87296         New module 'posix_spawnattr_destroy'.
87297         * modules/posix_spawnattr_destroy: New file.
87298         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
87299         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
87300         module.
87302         New module 'posix_spawnattr_setsigmask'.
87303         * modules/posix_spawnattr_setsigmask: New file.
87304         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
87305         modifications.
87306         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
87307         new module.
87309         New module 'posix_spawnattr_getsigmask'.
87310         * modules/posix_spawnattr_getsigmask: New file.
87311         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
87312         modifications.
87313         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
87314         new module.
87316         New module 'posix_spawnattr_setsigdefault'.
87317         * modules/posix_spawnattr_setsigdefault: New file.
87318         * lib/spawnattr_setdefault.c: New file, from GNU libc with
87319         modifications.
87320         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
87321         new module.
87323         New module 'posix_spawnattr_getsigdefault'.
87324         * modules/posix_spawnattr_getsigdefault: New file.
87325         * lib/spawnattr_getdefault.c: New file, from GNU libc with
87326         modifications.
87327         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
87328         new module.
87330         New module 'posix_spawnattr_setschedpolicy'.
87331         * modules/posix_spawnattr_setschedpolicy: New file.
87332         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
87333         modifications.
87334         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
87335         new module.
87337         New module 'posix_spawnattr_getschedpolicy'.
87338         * modules/posix_spawnattr_getschedpolicy: New file.
87339         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
87340         modifications.
87341         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
87342         new module.
87344         New module 'posix_spawnattr_setschedparam'.
87345         * modules/posix_spawnattr_setschedparam: New file.
87346         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
87347         modifications.
87348         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
87349         new module.
87351         New module 'posix_spawnattr_getschedparam'.
87352         * modules/posix_spawnattr_getschedparam: New file.
87353         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
87354         modifications.
87355         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
87356         new module.
87358         New module 'posix_spawnattr_setpgroup'.
87359         * modules/posix_spawnattr_setpgroup: New file.
87360         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
87361         modifications.
87362         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
87363         module.
87365         New module 'posix_spawnattr_getpgroup'.
87366         * modules/posix_spawnattr_getpgroup: New file.
87367         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
87368         modifications.
87369         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
87370         module.
87372         New module 'posix_spawnattr_setflags'.
87373         * modules/posix_spawnattr_setflags: New file.
87374         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
87375         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
87376         module.
87378         New module 'posix_spawnattr_getflags'.
87379         * modules/posix_spawnattr_getflags: New file.
87380         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
87381         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
87382         module.
87384         New module 'posix_spawnattr_init'.
87385         * modules/posix_spawnattr_init: New file.
87386         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
87387         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
87388         module.
87390         New module 'posix_spawn_file_actions_destroy'.
87391         * modules/posix_spawn_file_actions_destroy: New file.
87392         * lib/spawn_faction_destroy.c: New file, from GNU libc with
87393         modifications.
87394         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
87395         the new module.
87397         New module 'posix_spawn_file_actions_addopen'.
87398         * modules/posix_spawn_file_actions_addopen: New file.
87399         * lib/spawn_faction_addopen.c: New file, from GNU libc with
87400         modifications.
87401         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
87402         the new module.
87404         New module 'posix_spawn_file_actions_adddup2'.
87405         * modules/posix_spawn_file_actions_adddup2: New file.
87406         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
87407         modifications.
87408         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
87409         the new module.
87411         New module 'posix_spawn_file_actions_addclose'.
87412         * modules/posix_spawn_file_actions_addclose: New file.
87413         * lib/spawn_faction_addclose.c: New file, from GNU libc with
87414         modifications.
87415         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
87416         the new module.
87418         New module 'posix_spawn_file_actions_init'.
87419         * modules/posix_spawn_file_actions_init: New file.
87420         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
87421         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
87422         new module.
87424         New module 'posix_spawn-internal'.
87425         * modules/posix_spawn-internal: New file.
87426         * lib/spawn_int.h: New file, from GNU libc with modifications.
87427         * lib/spawni.c: New file, from GNU libc with modifications.
87428         * m4/posix_spawn.m4: New file.
87430         New module 'spawn'.
87431         * modules/spawn: New file.
87432         * lib/spawn.in.h: New file, from GNU libc with modifications.
87433         * m4/spawn_h.m4: New file.
87434         * doc/posix-headers/spawn.texi: Mention the new module.
87436 2008-09-28  Bruno Haible  <bruno@clisp.org>
87438         * modules/sched-tests: New file.
87439         * tests/test-sched.c: New file.
87441         New module 'sched'.
87442         * modules/sched: New file.
87443         * lib/sched.in.h: New file.
87444         * m4/sched_h.m4: New file.
87445         * doc/posix-headers/sched.texi: Mention the new module.
87447 2008-09-27  Eric Blake  <ebb9@byu.net>
87449         Fix previous patch, and tweak references to $0.
87450         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
87451         (func_version, func_gnulib_dir): Don't call this program
87452         gnulib-tool.
87453         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
87454         with using $0 in function.
87455         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
87456         (func_fatal_error): Reuse the name the user invoked us with.
87458 2008-09-27  Bruno Haible  <bruno@clisp.org>
87460         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
87461         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
87462         (gl_ICONV_H): Not here.
87463         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
87464         instead of assigning ICONV_H directly.
87466         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
87467         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
87468         WCHAR_H directly.
87470 2008-09-27  Bruno Haible  <bruno@clisp.org>
87472         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
87473         * modules/arpa_inet (Depends-on): Add link-warning.
87474         (Makefile.am): Insert the definition of GL_LINK-WARNING.
87475         * modules/unistd (Makefile.am): Likewise.
87477 2008-09-26  Bruno Haible  <bruno@clisp.org>
87479         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
87480         variables.
87481         (func_version): Essentially copied from gnulib-tool.
87482         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
87483         func_readlink): Copied from gnulib-tool.
87485 2008-09-26  Bruno Haible  <bruno@clisp.org>
87487         * gnulib-tool (func_version): Change directory to $gnulib_dir before
87488         invoking git-version-gen.
87490 2008-09-26  Bruno Haible  <bruno@clisp.org>
87492         * posix-modules: Update to directory names changed on 2008-01-19.
87493         Remove commas in output before splitting into words. No more need to
87494         avoid 'ftruncate' since 2007-02-19.
87496 2008-09-26  Bruno Haible  <bruno@clisp.org>
87498         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
87500 2008-09-26  Bruno Haible  <bruno@clisp.org>
87502         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
87503         * modules/fwriteerror (Depends-on): Add errno.
87505 2008-09-26  Bruno Haible  <bruno@clisp.org>
87507         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
87508         * tests/test-vc-list-files-cvs.sh: Likewise.
87510 2008-09-26  Bruno Haible  <bruno@clisp.org>
87512         * doc/posix-headers/sys_resource.texi: Reorder items.
87514 2008-09-26  Jim Meyering  <meyering@redhat.com>
87516         fts: tweak inode comparison function
87517         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
87518         inode numbers, as documented.
87520         fts: sort dirent entries on inode number before traversing
87521         This avoids a quadratic, seek-related performance penalty when
87522         operating on a directory containing many entries (measurable at 10k;
87523         3.5 hours at 2 million entries with a cold cache) on certain types
87524         of file systems, including ext3 and ext4, but not tmpfs.
87525         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
87526         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
87527         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
87528         (fs_handles_readdir_ordered_dirents_efficiently): New function.
87529         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
87530         (fts_build): Set the stat.st_ino member from D_INO.
87531         If it is likely to be useful, sort dirent entries on inode number.
87533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
87534         and the struct statfs.f_type member.
87535         * modules/fts (Depends-on): Add d-ino.
87537 2008-09-26  Bruno Haible  <bruno@clisp.org>
87539         * modules/sigpipe-die (Depends-on): Add sigpipe.
87541         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
87542         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
87543         and GNULIB_STDIO_H_SIGPIPE are set.
87544         * lib/stdio-write.c: New file.
87545         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
87546         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87547         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87548         REPLACE_STDIO_WRITE_FUNCS.
87549         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
87550         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87551         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87552         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87553         * modules/stdio (Files): Add lib/stdio-write.c.
87554         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
87555         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
87556         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
87557         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
87558         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
87559         REPLACE_FPRINTF_POSIX.
87560         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
87561         REPLACE_PRINTF_POSIX.
87562         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
87563         REPLACE_VFPRINTF_POSIX.
87564         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
87565         REPLACE_VPRINTF_POSIX.
87566         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
87567         SIGPIPE issue.
87568         * doc/posix-functions/fputc.texi: Likewise.
87569         * doc/posix-functions/fputs.texi: Likewise.
87570         * doc/posix-functions/fwrite.texi: Likewise.
87571         * doc/posix-functions/printf.texi: Likewise.
87572         * doc/posix-functions/putc.texi: Likewise.
87573         * doc/posix-functions/putchar.texi: Likewise.
87574         * doc/posix-functions/puts.texi: Likewise.
87575         * doc/posix-functions/vfprintf.texi: Likewise.
87576         * doc/posix-functions/vprintf.texi: Likewise.
87578         * modules/safe-write (Depends-on): Add write.
87580         * modules/sigpipe-tests: New file.
87581         * tests/test-sigpipe.c: New file.
87582         * tests/test-sigpipe.sh: New file.
87584         * modules/write: New file.
87585         * lib/unistd.in.h: Include <sys/types.h>.
87586         (write): New declaration.
87587         * lib/write.c: New file.
87588         * m4/write.m4: New file.
87589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87590         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
87591         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
87592         GNULIB_WRITE, REPLACE_WRITE.
87593         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
87594         and the SIGPIPE issue.
87596         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
87597         (raise): New declaration.
87598         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
87599         (ext_signal): New function.
87600         (rpl_raise): New function.
87601         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
87602         GNULIB_SIGNAL_H_SIGPIPE.
87603         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
87604         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
87606         * modules/sigpipe: New file.
87607         * m4/sigpipe.m4: New file.
87609 2008-09-25  Derek Price  <derek@ximbiot.com>
87610             Bruno Haible  <bruno@clisp.org>
87612         * gnulib-tool (func_import): Report all license incompatibilities, not
87613         just the first one.
87615 2008-09-25  Bruno Haible  <bruno@clisp.org>
87617         * gnulib-tool (func_import): When computing the edits, consider not
87618         only the Makefile.ams that exist but also those that will be generated.
87620 2008-09-25  Simon Josefsson  <simon@josefsson.org>
87622         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
87623         fixes gnulib-tool --test warning about duplicate dependency.
87625 2008-09-25  Bruno Haible  <bruno@clisp.org>
87627         * gnulib-tool: Don't ask the user to perform edits in the generated
87628         Makefile.ams.
87629         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
87630         apply to the Makefile.am being generated.
87631         (func_emit_tests_Makefile_am): Execute edits that apply to the
87632         Makefile.am being generated.
87633         (func_import): Setup list of Makefile.am edits before emitting the
87634         Makefile.ams, not at the end.
87635         (func_create_testdir): Update.
87636         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87638 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87640         * gnulib-tool (func_import): Store the --tests-base option in the
87641         comment in gnulib-cache.m4.
87643 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
87645         * NEWS: Document increased portability that sys_select now provides.
87647         * lib/sys_select.in.h: Install select wrapper.
87648         * lib/sys_socket.in.h: Use more descriptive name when there is no
87649         select wrapper.
87650         * lib/winsock-select.c: New.
87651         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
87652         Require gl_HEADER_SYS_SOCKET.
87653         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
87654         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
87655         * tests/test-sys_select.c: Add functional tests.
87657 2008-09-24  Eric Blake  <ebb9@byu.net>
87659         open, fopen: close fd leak in last patch
87660         * lib/open.c (rpl_open): Close fd before returning error.
87661         * lib/fopen.c (rpl_fopen): Close fd before returning error.
87662         * doc/posix-functions/open.texi (open): Document that Irix also
87663         has the bug.
87664         * doc/posix-functions/fopen.texi (fopen): Likewise.
87665         Reported by Paolo Bonzini.
87667 2008-09-24  Bruno Haible  <bruno@clisp.org>
87669         Ensure that a filename ending in a slash cannot be used to access a
87670         non-directory.
87671         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
87672         to check whether it's really a directory.
87673         * lib/fopen.c: Include fcntl.h, unistd.h.
87674         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
87675         and fdopen().
87676         * modules/fopen (Depends-on): Add unistd.
87677         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
87678         * tests/test-fopen.c (main): Likewise.
87679         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
87680         * doc/posix-functions/fopen.texi: Likewise.
87681         Reported by Eric Blake.
87683 2008-09-23  Eric Blake  <ebb9@byu.net>
87685         c-stack: avoid compiler optimizations when provoking overflow
87686         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
87687         recursion harder to optimize, to ensure a stack overflow occurs.
87688         * tests/test-c-stack.c (recurse): Likewise.
87689         Borrowed from libsigsegv.
87691         c-stack: work around Irix sigaltstack bug
87692         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
87693         whether sigaltstack uses wrong end of stack_t (copied in part from
87694         libsigsegv).
87695         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
87696         Irix bug, without requiring an over-allocation.
87697         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
87698         bug.
87700         fopen: document mingw bug on directories
87701         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
87702         not allowing a stream visiting a directory, even though reading
87703         from such a stream is not portable.
87705 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87707         * lib/poll.c: Rewrite.
87708         * modules/poll: Depend on alloca.
87710 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87712         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
87713         instead define prototypes for a full set of wrappers.  Ensure
87714         that Cygwin does not use the compatibility code, which is only
87715         for MinGW.
87716         * lib/winsock.c: New.
87717         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
87718         * modules/sys_socket: Add lib/winsock.c.
87720         * modules/poll-tests: Add errno and perror.
87721         * tests/test-poll.c: Use ioctl, not ioctlsocket.
87723 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
87725         * tests/test-poll.c: Downgrade minimum needed Winsock version.
87727 2008-09-23  Bruno Haible  <bruno@clisp.org>
87729         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
87730         * doc/glibc-functions/*: Likewise.
87732 2008-09-23  Simon Josefsson  <simon@josefsson.org>
87734         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
87735         success.
87737 2008-09-22  Eric Blake  <ebb9@byu.net>
87738             Bruno Haible  <bruno@clisp.org>
87740         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
87741         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
87742         supply %A but mishandle pseudo-NaN.
87743         Reported by Simon Josefsson.
87745 2008-09-21  Bruno Haible  <bruno@clisp.org>
87747         * tests/test-lock.c (main): Tweak skip message.
87748         * tests/test-tls.c (main): Likewise.
87750 2008-09-21  Bruno Haible  <bruno@clisp.org>
87752         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
87753         whether 'struct sigaction' has sa_sigaction here...
87754         (gl_PREREQ_SIG_HANDLER_H): ... not here.
87755         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
87757 2008-09-21  Bruno Haible  <bruno@clisp.org>
87759         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
87760         section.
87761         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
87762         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
87763         the new section.
87764         (Support for obsolete systems lacking POSIX:2001): New section.
87765         (String handling <string.h>): Move strdup to the new section.
87766         Suggested by Simon Josefsson and Paolo Bonzini.
87768 2008-09-21  Bruno Haible  <bruno@clisp.org>
87770         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
87771         exponents in %e and %g results on 'long double'. Needed for mingw's
87772         improved *printf functions.
87773         * tests/test-vasprintf-posix.c (test_function): Likewise.
87774         * tests/test-snprintf-posix.h (test_function): Likewise.
87775         * tests/test-sprintf-posix.h (test_function): Likewise.
87776         Reported by Eric Blake.
87778 2008-09-21  Bruno Haible  <bruno@clisp.org>
87780         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
87781         * tests/test-sprintf-posix.h (test_function): Likewise.
87783 2008-09-21  Bruno Haible  <bruno@clisp.org>
87785         * modules/getpass (Depends-on): Add strdup-posix.
87787         New module 'strdup-posix'.
87788         * modules/strdup-posix: New file.
87789         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
87790         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
87791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87792         REPLACE_STRDUP.
87793         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
87794         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
87795         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87796         strdup-posix.
87798         * modules/strdup (Depends-on): Remove malloc-posix.
87800 2008-09-20  Bruno Haible  <bruno@clisp.org>
87802         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
87803         Wildenhues.
87805 2008-09-20  Bruno Haible  <bruno@clisp.org>
87807         Ensure that wint_t gets defined on IRIX 5.3.
87808         * lib/wchar.in.h (wint_t): Define if not defined by the system.
87809         * lib/wctype.in.h (wint_t): Likewise.
87810         (__wctype_wint_t): Remove type.
87811         (isw*): Use wint_t instead of __wctype_wint_t.
87812         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
87813         * modules/wchar (Files): Add m4/wint_t.m4.
87814         (Makefile.am): Substitute HAVE_WINT_T.
87815         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
87816         * tests/test-wctype.c: Check that wint_t is defined.
87817         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
87818         * doc/posix-headers/wctype.texi: Likewise.
87819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87821 2008-09-18  Bruno Haible  <bruno@clisp.org>
87823         * gnulib-tool (func_exit): Update comment.
87825 2008-09-18  Simon Josefsson  <simon@josefsson.org>
87827         * modules/getaddrinfo (Depends-on): Remove strdup, this module
87828         assumes strdup exists and does not depend on strdup to return
87829         ENOMEM on out of memory conditions.
87831 2008-09-18  Bruno Haible  <bruno@clisp.org>
87833         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
87834         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
87835         digits for the exponent.
87837 2008-09-18  Jim Meyering  <meyering@redhat.com>
87838             Bruno Haible  <bruno@clisp.org>
87840         * lib/vasnprintf.c (decimal_point_char): Define also if
87841         NEED_PRINTF_INFINITE_LONG_DOUBLE.
87843 2008-09-16  Bruno Haible  <bruno@clisp.org>
87844         and Eric Blake  <ebb9@byu.net>
87846         vasnprintf: support Irix 5.3
87847         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
87848         that mishandle long double infinity.
87849         Reported by Tom G. Christensen.
87851 2008-09-16  Bruno Haible  <bruno@clisp.org>
87853         * doc/glibc-functions/scandir.texi: Mention the function is missing on
87854         Solaris 9.
87855         * doc/glibc-functions/alphasort.texi: Likewise.
87856         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
87858 2008-09-16  Jim Meyering  <meyering@redhat.com>
87860         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
87861         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
87862         a umask modification leak out of a subshell.  Otherwise, the
87863         opensolaris /bin/sh would be accepted and thus cause unwarranted
87864         failures in the coreutils test suite.
87866 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
87868         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
87869         to succeed.
87871 2008-09-16  Jim Meyering  <meyering@redhat.com>
87873         avoid spurious test failure when library is built without ACL support
87874         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
87875         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
87876         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
87877         * tests/test-copy-acl.sh: Likewise.
87879 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87881         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
87882         based on character occurrence counts.
87884 2008-09-15  Eric Blake  <ebb9@byu.net>
87886         tests: avoid some compiler warnings
87887         * tests/test-memchr.c (main): Pass NULL indirectly.
87888         * tests/test-closein.c (main): Avoid unused variable.
87890 2008-09-15  Bruno Haible  <bruno@clisp.org>
87892         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
87893         are missing on OpenBSD 4.0 individually.
87894         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87896 2008-09-15  Bruno Haible  <bruno@clisp.org>
87898         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
87899         * doc/posix-functions/strerror.texi: Mention also Cygwin.
87900         * doc/posix-functions/perror.texi: Likewise.
87901         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
87902         is missing.
87903         Reported by Eric Blake.
87905         * lib/errno.in.h: Use replacement values >= 2000.
87906         Reported by Eric Blake.
87908 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87910         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
87911         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
87912         limit.
87913         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
87914         compareseq was aborted.
87916 2008-09-14  Bruno Haible  <bruno@clisp.org>
87918         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
87919         yvec_edit_count.
87920         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
87921         (fstrcmp_bounded): Simplify result computation accordingly.
87923 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87925         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
87926         (fstrcmp): Define in terms of fstrcmp_bounded.
87927         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
87928         lower_bound argument.
87929         Return quickly if the result is certainly < lower_bound.
87930         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
87932 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87934         * lib/diffseq.h (EARLY_ABORT): New macro.
87935         (compareseq): Change return type to bool. Return true when EARLY_ABORT
87936         evaluates to true.
87938 2008-09-14  Bruno Haible  <bruno@clisp.org>
87940         * modules/perror-tests: New file.
87941         * tests/test-perror.sh: New file.
87942         * tests/test-perror.c: New file.
87944         New module 'perror'.
87945         * lib/stdio.in.h (perror): New declaration.
87946         * lib/perror.c: New file.
87947         * m4/perror.m4: New file.
87948         * modules/perror: New file.
87949         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
87950         * doc/posix-functions/perror.texi: Mention the perror module.
87951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
87952         REPLACE_PERROR.
87953         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
87954         REPLACE_PERROR.
87956 2008-09-14  Bruno Haible  <bruno@clisp.org>
87958         * modules/stdio (Makefile.am): Reorder to match the order in
87959         lib/stdio.in.h.
87960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
87962 2008-09-13  Bruno Haible  <bruno@clisp.org>
87964         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
87966 2008-09-13  Bruno Haible  <bruno@clisp.org>
87968         Extend strerror to cover the added errno values.
87969         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
87970         (rpl_strerror): Provide error messages for the added errno values and
87971         for the WSA* values.
87972         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
87973         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
87974         strerror.
87975         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
87976         * modules/strerror (Depends-on): Add errno.
87977         * doc/posix-functions/strerror.texi: Document the change.
87978         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
87979         and EOVERFLOW.
87981 2008-09-13  Bruno Haible  <bruno@clisp.org>
87983         * modules/EOVERFLOW: Remove file.
87984         * m4/eoverflow.m4: Remove file.
87985         * modules/EOVERFLOW-tests: Remove file.
87986         * tests/test-EOVERFLOW.c: Remove file.
87987         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
87988         * modules/ftell (Depends-on): Likewise.
87989         * modules/getdelim (Depends-on): Likewise.
87990         * modules/getugroups (Depends-on): Likewise.
87991         * modules/poll (Depends-on): Likewise.
87992         * modules/snprintf (Depends-on): Likewise.
87993         * modules/sprintf-posix (Depends-on): Likewise.
87994         * modules/vasnprintf (Depends-on): Likewise.
87995         * modules/vasprintf (Depends-on): Likewise.
87996         * modules/vfprintf-posix (Depends-on): Likewise.
87997         * modules/vsnprintf (Depends-on): Likewise.
87998         * modules/vsprintf-posix (Depends-on): Likewise.
87999         * modules/xvasprintf (Depends-on): Likewise.
88000         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88001         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
88002         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
88003         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
88004         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88005         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
88006         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
88007         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
88008         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88009         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
88010         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
88011         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
88012         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88013         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
88014         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
88015         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
88016         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88017         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
88018         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
88019         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
88020         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88021         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
88022         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
88023         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
88024         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
88025         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88026         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
88027         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
88028         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
88029         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
88030         * MODULES.html.sh: Remove EOVERFLOW.
88031         * NEWS: Mention the change.
88033 2008-09-13  Bruno Haible  <bruno@clisp.org>
88035         * modules/errno-tests: New file.
88036         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
88038         * lib/errno.in.h: New file.
88039         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
88040         * modules/errno: New file.
88041         * doc/posix-headers/errno.texi: Update documentation.
88042         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
88044 2008-09-13  Bruno Haible  <bruno@clisp.org>
88046         * tests/test-poll.c: Use #if for native Windows, rather than testing
88047         __MSVCRT__.
88049 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88050             Bruno Haible  <bruno@clisp.org>
88052         * lib/glob.c: Don't include <pwd.h> on native Windows.
88053         (WINDOWS32): New macro.
88054         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
88056 2008-09-13  Bruno Haible  <bruno@clisp.org>
88058         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
88059         (ETIMEDOUT): Remove macro.
88060         (glthread_cond_timedwait_multithreaded): New declaration.
88061         (glthread_cond_timedwait): Use it.
88062         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
88063         (glthread_cond_timedwait_multithreaded): New function.
88065 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88067         * modules/poll-tests: Do not check for io.h.
88068         * tests/test-poll.c: Check for __MSVCRT__ instead.
88070 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88072         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
88073         * modules/poll-tests: Add inet_pton, stdbool, sockets.
88074         * tests/test-poll.c: Use them.  Use _pipe on Windows.
88076 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
88078         * modules/poll-tests: New.
88079         * tests/test-poll.c: New.
88081 2008-09-12  Eric Blake  <ebb9@byu.net>
88083         frexp: test for NetBSD failure on -0.0
88084         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
88085         not all, bugs from NetBSD 3.0 have been fixed.
88086         * doc/posix-functions/frexp.texi (frexp): Document bug.
88087         Reported by Thomas Klausner.
88089         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
88090         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
88091         literal -0.0.
88092         Reported by Jonathan C. Patschke <jp@centtech.com>.
88094 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88096         * lib/glthread/cond.h: Use dummy implementation also if
88097         USE_WIN32_THREADS.
88099 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88101         * modules/fnmatch-posix (License): Change to LGPLv2+.
88102         * modules/fnmatch-gnu (License): Likewise.
88104 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88106         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
88108 2008-09-11  Jim Meyering  <meyering@redhat.com>
88110         * users.txt: Add gtk-vnc.
88112 2008-09-08  Simon Josefsson  <simon@josefsson.org>
88114         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
88115         rotate amounts.
88117         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
88118         required for 16-bit and 8-bit rotates.
88119         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
88120         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
88121         UINT8_MAX instead of hard-coded constants.
88122         Suggested by Paul Eggert.
88124 2008-09-07  Bruno Haible  <bruno@clisp.org>
88126         * tests/test-striconveh.c (main): Check behaviour when converting from
88127         UTF-7.
88129         Make striconveh work better with stateful encodings.
88130         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
88131         that iconv does not increment the inptr when returning -1/EINVAL.
88133 2008-09-07  Bruno Haible  <bruno@clisp.org>
88135         * build-aux/config.rpath: Update according to libtool-2.2.6.
88136         * build-aux/config.libpath: Likewise.
88138 2008-09-06  Bruno Haible  <bruno@clisp.org>
88140         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
88141         * lib/freadptr.c (freadptr): Likewise.
88142         * lib/freadseek.c (freadptrinc): Likewise.
88143         Reported by Simon Josefsson.
88145 2008-09-06  Bruno Haible  <bruno@clisp.org>
88147         * modules/freadptr (License): Change to LGPLv2+.
88148         * modules/freadseek (License): Likewise.
88149         Suggested by Eric Blake.
88151         * modules/memchr2 (License): Change to LGPLv2+.
88152         Approved by Eric Blake.
88154 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88155             Bruno Haible  <bruno@clisp.org>
88157         Make gnulib-tool work with native 'sed' on AIX.
88158         * gnulib-tool (sed_noop): New variable.
88159         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
88160         func_add_or_update, func_create_testdir): Use it to initialize sed
88161         script variables.
88162         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88164 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
88165             Bruno Haible  <bruno@clisp.org>
88167         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
88168         also works after #include directives.
88170 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
88172         getdate.y: reject an out-of-range timezone value
88173         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
88174         the range [-24...+24].  When specified with only one or two digits,
88175         * tests/test-getdate.c: Tests for the fix.
88176         * doc/getdate.texi: Document this change.
88178 2008-09-03  Bruno Haible  <bruno@clisp.org>
88180         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
88182 2008-09-02  Simon Josefsson  <simon@josefsson.org>
88184         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
88185         <bruce.korb@gmail.com> with ideas from Ben Pfaff
88186         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
88187         Blake <ebb9@byu.net>.
88189         * tests/test-bitrotate.c: Add more test vectors.
88191 2008-09-02  Eric Blake  <ebb9@byu.net>
88193         vasnprintf-posix: handle large precision via %.*d
88194         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
88195         when handling it ourselves.
88196         * tests/test-vasnprintf-posix.c (test_function): Add test.
88197         * tests/test-snprintf-posix.h (test_function): Likewise.
88198         * tests/test-sprintf-posix.h (test_function): Likewise.
88199         * tests/test-vasprintf-posix.c (test_function): Likewise.
88200         Reported by Alain Guibert.
88202 2008-09-01  Eric Blake  <ebb9@byu.net>
88204         c-stack: make configure-time check more robust
88205         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
88206         successful sigaction call.
88207         Reported by Tom G. Christensen.
88209 2008-09-01  Bruno Haible  <bruno@clisp.org>
88211         New module 'findprog-lgpl'.
88212         * modules/findprog-lgpl: New file.
88213         * lib/findprog-lgpl.c: New file.
88214         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
88215         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
88216         to decide whether to use strdup or xstrdup, concatenated_filename or
88217         xconcatenated_filename.
88219 2008-09-01  Bruno Haible  <bruno@clisp.org>
88221         Split module 'concat-filename' into 'concat-filename' (LGPL) and
88222         'xconcat-filename' (GPL).
88223         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
88224         (License): Change to LGPLv2+.
88225         * modules/xconcat-filename: New file.
88226         * lib/concat-filename.h (concatenated_filename): Change specification.
88227         (xconcatenated_filename): New declaration.
88228         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
88229         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
88230         memory situations.
88231         * lib/xconcat-filename.c: New file.
88232         * NEWS: Mention the change.
88233         * lib/findprog.c: Include concat-filename.h, not filename.h.
88234         (find_in_path): Use xconcatenated_filename instead of
88235         concatenated_filename.
88236         * lib/javacomp.c: Include concat-filename.h, not filename.h.
88237         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
88238         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
88239         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
88240         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
88241         instead of concatenated_filename.
88242         * lib/javaexec.c: Include concat-filename.h, not filename.h.
88243         (execute_java_class): Use xconcatenated_filename instead of
88244         concatenated_filename.
88245         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
88246         * modules/javacomp (Depends-on): Likewise.
88247         * modules/javaexec (Depends-on): Likewise.
88249 2008-09-01  Bruno Haible  <bruno@clisp.org>
88251         Split module 'filename' into 'filename' and 'concat-filename'.
88252         * modules/filename: Keep only lib/filename.h.
88253         (License): Change to LGPLv2+.
88254         * modules/concat-filename: New file, extracted from modules/filename.
88255         * lib/filename.h (concatenated_filename): Remove declaration.
88256         * lib/concat-filename.h: New file, extracted from lib/filename.h.
88257         * lib/concat-filename.c: Include concat-filename.h.
88258         * NEWS: Mention the change.
88260 2008-09-01  Simon Josefsson  <simon@josefsson.org>
88262         * lib/bitrotate.h (rotl8, rotr8): Add.
88264         * modules/bitrotate (configure.ac): Need
88265         AC_REQUIRE([AC_C_INLINE]).
88266         (Description): Mention stdint.h.  Reported by Bruno Haible
88267         <bruno@clisp.org>.
88269         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
88270         Paolo Bonzini <bonzini@gnu.org>.
88272 2008-08-31  Bruno Haible  <bruno@clisp.org>
88274         Assume Solaris specific bi-arch conventions on Solaris systems.
88275         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
88276         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
88277         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
88278         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
88279         like acl_libdirstem.
88280         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
88281         acl_libdirstem.
88282         * NEWS: Mention the change.
88283         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
88285 2008-08-31  Jim Meyering  <meyering@redhat.com>
88287         * lib/strftime.h: Add comments describing the two added arguments.
88289         remove duplicate #include directives
88290         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
88291         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
88293 2008-08-31  Bruno Haible  <bruno@clisp.org>
88295         New module 'sigpipe-die'.
88296         * modules/sigpipe-die: New file.
88297         * lib/sigpipe-die.h: New file.
88298         * lib/sigpipe-die.c: New file.
88299         * MODULES.html.sh (Signal handling): Add sigpipe-die.
88301 2008-08-31  Bruno Haible  <bruno@clisp.org>
88303         Don't override previously installed signal handlers.
88304         * lib/fatal-signal.c (saved_sigactions): New variable.
88305         (uninstall_handlers): Reset the signal to the saved handler, not
88306         to SIG_DFL (except when ignored).
88307         (install_handlers): Save the previous handlers.
88309 2008-08-30  Bruno Haible  <bruno@clisp.org>
88311         * gnulib-tool (func_reset_sigpipe): New function.
88312         (func_get_automake_snippet, func_modules_transitive_closure,
88313         func_import): Invoke it before a join command that reads from stdin,
88314         to avoid "echo: write error: Broken pipe" error messages on stderr.
88315         Reported by Sam Steingold <sds@gnu.org>.
88317 2008-08-30  Bruno Haible  <bruno@clisp.org>
88319         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
88320         Code copied from m4/open.m4.
88321         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
88322         access and the filename ends in a slash. Code copied from lib/open.c.
88323         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
88324         * tests/test-fopen.c (main): Check against bug with trailing slash.
88326 2008-08-29  Bruno Haible  <bruno@clisp.org>
88328         Avoid some "gcc -pedantic" warnings.
88329         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
88330         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
88331         * lib/dirent.in.h: Likewise.
88332         * lib/fcntl.in.h: Likewise.
88333         * lib/float.in.h: Likewise.
88334         * lib/iconv.in.h: Likewise.
88335         * lib/inttypes.in.h: Likewise.
88336         * lib/locale.in.h: Likewise.
88337         * lib/math.in.h: Likewise.
88338         * lib/netinet_in.in.h: Likewise.
88339         * lib/search.in.h: Likewise.
88340         * lib/signal.in.h: Likewise.
88341         * lib/stdarg.in.h: Likewise.
88342         * lib/stdint.in.h: Likewise.
88343         * lib/stdio.in.h: Likewise.
88344         * lib/stdlib.in.h: Likewise.
88345         * lib/string.in.h: Likewise.
88346         * lib/strings.in.h: Likewise.
88347         * lib/sys_select.in.h: Likewise.
88348         * lib/sys_socket.in.h: Likewise.
88349         * lib/sys_stat.in.h: Likewise.
88350         * lib/sys_time.in.h: Likewise.
88351         * lib/sysexits.in.h: Likewise.
88352         * lib/time.in.h: Likewise.
88353         * lib/unistd.in.h: Likewise.
88354         * lib/wchar.in.h: Likewise.
88355         * lib/wctype.in.h: Likewise.
88356         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
88357         * modules/fchdir (Makefile.am): Likewise.
88358         * modules/fcntl (Makefile.am): Likewise.
88359         * modules/float (Makefile.am): Likewise.
88360         * modules/iconv_open (Makefile.am): Likewise.
88361         * modules/inttypes (Makefile.am): Likewise.
88362         * modules/locale (Makefile.am): Likewise.
88363         * modules/math (Makefile.am): Likewise.
88364         * modules/netinet_in (Makefile.am): Likewise.
88365         * modules/search (Makefile.am): Likewise.
88366         * modules/signal (Makefile.am): Likewise.
88367         * modules/stdarg (Makefile.am): Likewise.
88368         * modules/stdint (Makefile.am): Likewise.
88369         * modules/stdio (Makefile.am): Likewise.
88370         * modules/stdlib (Makefile.am): Likewise.
88371         * modules/string (Makefile.am): Likewise.
88372         * modules/strings (Makefile.am): Likewise.
88373         * modules/sys_select (Makefile.am): Likewise.
88374         * modules/sys_socket (Makefile.am): Likewise.
88375         * modules/sys_stat (Makefile.am): Likewise.
88376         * modules/sys_time (Makefile.am): Likewise.
88377         * modules/sysexits (Makefile.am): Likewise.
88378         * modules/time (Makefile.am): Likewise.
88379         * modules/unistd (Makefile.am): Likewise.
88380         * modules/wchar (Makefile.am): Likewise.
88381         * modules/wctype (Makefile.am): Likewise.
88382         Reported by Reuben Thomas <rrt@sc3d.org>.
88384 2008-08-29  Bruno Haible  <bruno@clisp.org>
88386         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
88387         any more.
88389 2008-08-29  Simon Josefsson  <simon@josefsson.org>
88391         * MODULES.html.sh (Misc): Add bitrotate.
88393         * modules/bitrotate: New file.
88395         * lib/bitrotate.h: New file.
88397         * modules/bitrotate-tests: New file.
88399         * tests/test-bitrotate.c: New file.
88401         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
88402         on the bitrotate module.
88404         * lib/arctwo.c: Use new bitrotate module.
88406 2008-08-29  Jim Meyering  <meyering@redhat.com>
88408         bootstrap: merge changes from coreutils
88409         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
88410         of copied files.  Remove a kludge, now that this is fixed.
88411         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
88412         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
88413         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
88415 2008-08-29  Bruno Haible  <bruno@clisp.org>
88417         * MODULES.html.sh: Remove --cvs-urls option.
88419 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
88421         maint.mk: adjust to file name change
88422         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
88424 2008-08-28  Jim Meyering  <meyering@redhat.com>
88426         * modules/getndelim2 (License): Relicense to LGPLv2+.
88427         Approved by Richard Stallman for the version of 1995, and by
88428         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
88430 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
88432         * lib/getdelim.c (flockfile, funlockfile): Make all of them
88433         dummy if one is not available.  Do not touch them if
88434         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
88435         (getc_maybe_unlocked): New.
88436         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
88438 2008-08-26  Eric Blake  <ebb9@byu.net>
88440         doc/INSTALL: resync from autoconf
88441         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
88442         (INSTALL_PRELUDE): Delete; this is done more efficiently by
88443         moving...
88444         * install.texi [!autoconf]: ...here.  Resync from autoconf.
88445         * INSTALL: Regenerate.
88446         * INSTALL.ISO: New file.
88447         * INSTALL.UTF-8: Likewise.
88449 2008-08-26  Jim Meyering  <meyering@redhat.com>
88451         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
88452         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
88453         these definitions conditional, so that they may be overridden, too.
88455 2008-08-26  Bruno Haible  <bruno@clisp.org>
88457         Generate INSTALL file variants with prettier quotes.
88458         * doc/Makefile (INSTALL_PRELUDE): New macro.
88459         (INSTALL): Use it.
88460         (INSTALL.ISO, INSTALL.UTF-8): New rules.
88462 2008-08-26  Bruno Haible  <bruno@clisp.org>
88464         Run makeinfo in an English locale.
88465         * doc/Makefile (MAKEINFO): New variable.
88467 2008-08-26  Bruno Haible  <bruno@clisp.org>
88469         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
88470         Suggested by Eric Blake.
88472 2008-08-25  Bruno Haible  <bruno@clisp.org>
88474         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
88476 2008-08-25  Eric Blake  <ebb9@byu.net>
88478         c-stack: test that stack overflow can be caught
88479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
88480         that platform allows handling stack overflow; at least OS/2 EMX
88481         has sigaltstack, but crashes before transferring control to
88482         handler on stack overflow.
88483         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
88484         check for HAVE_STACK_OVERFLOW_HANDLING.
88485         Reported by Elbert Pol.
88487 2008-08-25  Bruno Haible  <bruno@clisp.org>
88489         * doc/posix-functions/strftime.texi: Fix description of strftime
88490         module.
88492 2008-08-24  Bruno Haible  <bruno@clisp.org>
88494         * tests/uniwidth/test-uc_width2.c: New file.
88495         * tests/uniwidth/test-uc_width2.sh: New file.
88496         * modules/uniwidth/width-tests (Files): Add the new files.
88497         (TESTS): Add uniwidth/test-uc_width2.sh.
88498         (TESTS_ENVIRONMENT): New variable.
88499         (check_PROGRAMS): Add test-uc_width2.
88500         (test_uc_width2_SOURCES): New variable.
88502         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
88503         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
88504         not 0x00AB.
88505         Reported by Alexander V. Lukyanov <lav@netis.ru>.
88507 2008-08-22  Eric Blake  <ebb9@byu.net>
88509         test-lock, test-tls: mention why a test is skipped
88510         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
88511         skipped.
88512         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
88514         count-one-bits: relax license
88515         * modules/count-one-bits (License): Relicense to LGPLv2+.
88516         Suggested by Ludovic Courtès, approved by Ben Pfaff.
88518 2008-08-22  Andreas Schwab  <schwab@suse.de>
88520         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
88521         Remove spurious space in assignment.
88523 2008-08-21  Simon Josefsson  <simon@josefsson.org>
88525         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
88526         Paul Eggert <eggert@CS.UCLA.EDU>.
88528 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
88530         * modules/gettext: Add m4/threadlib.m4.
88532 2008-08-19  Eric Blake  <ebb9@byu.net>
88534         test-c-stack: fix compilation failure on FreeBSD 5.0
88535         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
88536         headers before <sys/resource.h>.
88537         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
88538         the bug.
88539         Reported by Nelson H. F. Beebe.
88541         strverscmp: migrate from "strverscmp.h" to <string.h>
88542         * modules/string (Makefile.am): Add new hooks.
88543         * modules/strverscmp (Files): Remove strverscmp.h.
88544         (Depends-on): Add string.
88545         (configure.ac): Add indicator.
88546         (Include): Mention new header.
88547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
88548         defaults.
88549         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
88550         results.
88551         * lib/strverscmp.h: Delete.
88552         * lib/string.in.h (strverscmp): Provide declaration, when needed.
88553         * tests/test-strverscmp.c (includes): Adjust client.
88554         * lib/check-version.c (includes): Likewise.
88555         * NEWS: Document the change.
88557         strverscmp: add unit test
88558         * modules/strverscmp-tests: New file.
88559         * tests/test-strverscmp.c: Likewise.
88561 2008-08-19  Simon Josefsson  <simon@josefsson.org>
88563         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
88564         regarding Windows crypto stuff, from Mono.
88566 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
88568         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
88569         if present, for intel RND.  Return error on failures.
88571 2008-08-18  Ben Pfaff  <blp@gnu.org>
88573         gitlog-to-changelog: give better diagnostic for failed pipe-open
88574         * build-aux/gitlog-to-changelog: Improve error message: suggest
88575         that the version of Git may be too old.
88577 2008-08-18  Simon Josefsson  <simon@josefsson.org>
88579         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
88580         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
88582 2008-08-18  Bruno Haible  <bruno@clisp.org>
88584         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
88585         pthread_in_use().
88587 2008-08-18  Bruno Haible  <bruno@clisp.org>
88589         * lib/glthread/threadlib.c: Include <pthread.h>.
88591 2008-08-18  Bruno Haible  <bruno@clisp.org>
88593         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
88594         glthread_recursive_lock_* macros.
88595         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
88596         Fix syntax error.
88598 2008-08-18  Bruno Haible  <bruno@clisp.org>
88600         * lib/glthread/thread.c: Avoid forcing a context switch right after
88601         thread creation.
88603 2008-08-17  Bruno Haible  <bruno@clisp.org>
88605         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
88606         * lib/glthread/thread.h: Provide Win32 specific implementation.
88607         * modules/thread (Files): Add lib/glthread/thread.c.
88608         (Depends-on): Add lock.
88609         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
88611 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88613         New module 'yield'.
88614         * modules/yield: New file.
88615         * lib/glthread/yield.h: New file.
88616         * m4/yield.m4: New file.
88617         * MODULES.html.sh (Multithreading): Add yield.
88619 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88621         New module 'thread'.
88622         * modules/thread: New file.
88623         * lib/glthread/thread.h: New file.
88624         * m4/thread.m4: New file.
88625         * MODULES.html.sh (Multithreading): Add thread.
88627 2008-08-17  Bruno Haible  <bruno@clisp.org>
88629         * lib/glthread/lock.h: Include <stdlib.h> always.
88630         * lib/glthread/tls.h: Likewise.
88631         * lib/glthread/cond.h: Likewise.
88633 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88635         New module 'cond'.
88636         * modules/cond: New file.
88637         * lib/glthread/cond.h: New file.
88638         * lib/glthread/cond.c: New file.
88639         * m4/cond.m4: New file.
88640         * MODULES.html.sh (Multithreading): Add cond.
88642 2008-08-16  Eric Blake  <ebb9@byu.net>
88644         c-stack: fix regression on Irix 5.3 from 2008-06-21
88645         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
88646         sa_sigaction...
88647         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
88648         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
88649         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
88650         * modules/signal (Makefile.am): Use the value.
88651         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
88652         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
88653         * doc/posix-headers/signal.texi (signal.h): Document this
88654         portability issue.
88655         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
88656         Reported by Tom G. Christensen.
88658 2008-08-17  Bruno Haible  <bruno@clisp.org>
88660         New module 'threadlib'.
88661         * modules/threadlib: New file.
88662         * lib/glthread/threadlib.c: New file, extracted from
88663         lib/glthread/lock.c.
88664         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
88665         functions.
88666         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
88667         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
88668         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
88669         macros.
88670         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
88671         (gl_DISABLE_THREADS): Remove macro.
88672         * modules/lock (Files): Remove build-aux/config.rpath.
88673         (Depends-on): Remove havelib. Add threadlib.
88674         (configure.ac-early): Remove section.
88675         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
88676         * modules/tls (Depends-on): Remove lock. Add threadlib.
88677         (Link): New section, copied from threadlib.
88678         * MODULES.html.sh (Multithreading): Add threadlib.
88680 2008-08-14  Bruno Haible  <bruno@clisp.org>
88682         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
88683         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
88684         glthread_rwlock_unlock, glthread_rwlock_destroy,
88685         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
88686         glthread_recursive_lock_destroy): Define as macros always.
88687         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
88688         glthread_lock_lock.
88689         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
88690         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
88691         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
88692         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
88693         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
88694         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
88695         (glthread_recursive_lock_lock_func): Renamed from
88696         glthread_recursive_lock_lock.
88697         (glthread_recursive_lock_unlock_func): Renamed from
88698         glthread_recursive_lock_unlock.
88699         (glthread_recursive_lock_destroy_func): Renamed from
88700         glthread_recursive_lock_destroy.
88702 2008-08-14  Bruno Haible  <bruno@clisp.org>
88704         * lib/glthread/lock.h: Renamed from lib/lock.h.
88705         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
88706         * lib/glthread/tls.h: Renamed from lib/tls.h.
88707         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
88708         * lib/fstrcmp.c: Update includes.
88709         * lib/strsignal.c: Update includes.
88710         * modules/lock (Files, Makefile.am): Update.
88711         (Include): Change to "glthread/lock.h".
88712         * modules/tls (Files, Makefile.am): Update.
88713         (Include): Change to "glthread/tls.h".
88714         * tests/test-lock.c: Update includes.
88715         * tests/test-tls.c: Update includes.
88716         * NEWS: Mention the renamed header files.
88718 2008-08-11  Jim Meyering  <meyering@redhat.com>
88720         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
88722 2008-08-11  Eric Blake  <ebb9@byu.net>
88724         test-c-stack: avoid C99-ism
88725         * tests/test-c-stack.c (main): Fix whitespace, move declaration
88726         before statement.
88727         Reported by Alain Guibert.
88729 2008-08-10  Jim Meyering  <meyering@redhat.com>
88731         ensure that return value of uinttostr et al are not ignored
88732         * lib/inttostr.h (__GNUC_PREREQ): Define.
88733         (__attribute_warn_unused_result__): Define.
88734         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
88736 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
88738         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
88739         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
88741 2008-08-07  Jim Meyering  <meyering@redhat.com>
88743         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
88745         * modules/mkstemp (License): Relicense under LGPLv2+.
88746         * modules/tempname (License): Likewise.
88748 2008-08-06  Bruno Haible  <bruno@clisp.org>
88750         * lib/poll.c (poll): Further micro-optimization.
88752 2008-08-06  Jim Meyering  <meyering@redhat.com>
88754         inet_pton.c: use locale-independent tolower
88755         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
88756         (inet_pton6): Use c_tolower rather than tolower.
88757         * modules/inet_pton (Depends-on): Add c-ctype.
88759 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
88761         * lib/poll.c (poll): Avoid division when timeout is 0, cache
88762         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
88764 2008-08-06  Jim Meyering  <meyering@redhat.com>
88766         * modules/inet_pton (License): Relicense under LGPLv2+.
88768 2008-08-03  Bruno Haible  <bruno@clisp.org>
88770         Additional non-aborting API for lock and tls.
88771         * lib/lock.h: Include <errno.h>.
88772         (glthread_lock_init): New macro/function.
88773         (gl_lock_init): Define as wrapper around glthread_lock_init.
88774         (glthread_lock_lock): New macro/function.
88775         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
88776         (glthread_lock_unlock): New macro/function.
88777         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
88778         (glthread_lock_destroy): New macro/function.
88779         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
88780         (glthread_rwlock_init): New macro/function.
88781         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
88782         (glthread_rwlock_rdlock): New macro/function.
88783         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
88784         (glthread_rwlock_wrlock): New macro/function.
88785         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
88786         (glthread_rwlock_unlock): New macro/function.
88787         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
88788         (glthread_rwlock_destroy): New macro/function.
88789         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
88790         (glthread_recursive_lock_init): New macro/function.
88791         (gl_recursive_lock_init): Define as wrapper around
88792         glthread_recursive_lock_init.
88793         (glthread_recursive_lock_lock): New macro/function.
88794         (gl_recursive_lock_lock): Define as wrapper around
88795         glthread_recursive_lock_lock.
88796         (glthread_recursive_lock_unlock): New macro/function.
88797         (gl_recursive_lock_unlock): Define as wrapper around
88798         glthread_recursive_lock_unlock.
88799         (glthread_recursive_lock_destroy): New macro/function.
88800         (gl_recursive_lock_destroy): Define as wrapper around
88801         glthread_recursive_lock_destroy.
88802         (glthread_once): New macro/function.
88803         (gl_once): Define as wrapper around glthread_once.
88804         Update function declarations.
88805         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
88806         glthread_rwlock_init. Return error code.
88807         (glthread_rwlock_rdlock_multithreaded): Renamed from
88808         glthread_rwlock_rdlock. Return error code.
88809         (glthread_rwlock_wrlock_multithreaded): Renamed from
88810         glthread_rwlock_wrlock. Return error code.
88811         (glthread_rwlock_unlock_multithreaded): Renamed from
88812         glthread_rwlock_unlock. Return error code.
88813         (glthread_rwlock_destroy_multithreaded): Renamed from
88814         glthread_rwlock_destroy. Return error code.
88815         (glthread_recursive_lock_init_multithreaded): Renamed from
88816         glthread_recursive_lock_init. Return error code.
88817         (glthread_recursive_lock_lock_multithreaded): Renamed from
88818         glthread_recursive_lock_lock. Return error code.
88819         (glthread_recursive_lock_unlock_multithreaded): Renamed from
88820         glthread_recursive_lock_unlock. Return error code.
88821         (glthread_recursive_lock_destroy_multithreaded): Renamed from
88822         glthread_recursive_lock_destroy. Return error code.
88823         (glthread_once_call): Make static.
88824         (glthread_once_multithreaded): Renamed from glthread_once.
88825         * lib/tls.h: Include <errno.h>.
88826         (glthread_tls_key_init): New macro/function.
88827         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
88828         (glthread_tls_set): New macro/function.
88829         (gl_tls_set): Define as wrapper around glthread_tls_set.
88830         (glthread_tls_key_destroy): New macro/function.
88831         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
88832         Update function declarations.
88833         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
88834         glthread_tls_get.
88835         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88837 2008-08-04  Eric Blake  <ebb9@byu.net>
88839         gnumakefile: use space, not TAB, outside of targets
88840         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
88842 2008-08-02  Jim Meyering  <meyering@redhat.com>
88844         getdate.y: avoid locale-dependent date parsing failure
88845         In Turkish locales, getdate would fail to recognize keywords
88846         containing a lowercase "i".  The solution is not to rely on
88847         locale-sensitive case-conversion.
88848         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
88849         (lookup_word): Use c_toupper in place of toupper.
88850         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
88851         Reported by Vefa Bicakci <bicave@superonline.com> in
88852         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
88853         * modules/getdate (Depends-on): Add c-ctype.
88855 2008-08-02  Bruno Haible  <bruno@clisp.org>
88857         * gnulib-tool (func_import): When updating or creating a .gitignore
88858         file, prepend each added line with a slash, and ignore leading slashes
88859         from the existing lines.
88860         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
88862 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88864         Portability fix for GNU make 3.79.1.
88865         * top/GNUmakefile: Avoid 'else COND', which older GNU make
88866         versions do not understand.
88868 2008-08-01  Bruno Haible  <bruno@clisp.org>
88870         Work around bug of HP-UX 10.20 cc with -0.0 literal.
88871         * tests/test-isnanf.h (zero): New variable.
88872         (main): Avoid literal -0.0f.
88873         * tests/test-isnand.h (zero): New variable.
88874         (main): Avoid literal -0.0.
88875         * tests/test-isnanl.h (zero): New variable.
88876         (main): Avoid literal -0.0L.
88877         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
88878         (test_float, test_double, test_long_double): Avoid literals -0.0f,
88879         -0.0, -0.0L.
88880         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
88881         (test_signbitd): Avoid literal -0.0.
88882         (test_signbitl): Avoid literal -0.0L.
88883         * tests/test-ceilf1.c (zero): New variable.
88884         (main): Avoid literal -0.0f.
88885         * tests/test-ceill.c (zero): New variable.
88886         (main): Avoid literal -0.0L.
88887         * tests/test-floorf1.c (zero): New variable.
88888         (main): Avoid literal -0.0f.
88889         * tests/test-floorl.c (zero): New variable.
88890         (main): Avoid literal -0.0L.
88891         * tests/test-roundf1.c (zero): New variable.
88892         (main): Avoid literal -0.0f.
88893         * tests/test-round1.c (zero): New variable.
88894         (main): Avoid literal -0.0.
88895         * tests/test-roundl.c (zero): New variable.
88896         (main): Avoid literal -0.0L.
88897         * tests/test-truncf1.c (zero): New variable.
88898         (main): Avoid literal -0.0f.
88899         * tests/test-trunc1.c (zero): New variable.
88900         (main): Avoid literal -0.0.
88901         * tests/test-truncl.c (zero): New variable.
88902         (main): Avoid literal -0.0L.
88903         * tests/test-frexp.c (zero): New variable.
88904         (main): Avoid literal -0.0.
88905         * tests/test-frexpl.c (zero): New variable.
88906         (main): Avoid literal -0.0L.
88907         * tests/test-ldexpl.c (zero): New variable.
88908         (main): Avoid literal -0.0L.
88909         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
88910         (zerod, zerol): New variables.
88911         (test_function): Avoid literals -0.0, -0.0L.
88912         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
88913         (zerod, zerol): New variables.
88914         (test_function): Avoid literals -0.0, -0.0L.
88915         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
88916         (zerod, zerol): New variables.
88917         (test_function): Avoid literals -0.0, -0.0L.
88918         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
88919         (zerod, zerol): New variables.
88920         (test_function): Avoid literals -0.0, -0.0L.
88921         * tests/test-strtod.c (zero): New variable.
88922         (main): Avoid literal -0.0.
88923         Reported by Jonathan C. Patschke <jp@centtech.com>.
88925 2008-07-31  Jim Meyering  <meyering@redhat.com>
88927         sha256.h: correct definition of SHA224_DIGEST_SIZE
88928         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
88929         Reported by Paulie Pena IV <paulie4@gmail.com>.
88930         Define as 224 / 8, rather than as a literal.
88931         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
88932         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
88933         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
88935 2008-07-31  Bruno Haible  <bruno@clisp.org>
88937         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
88938         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
88939         Reported by Jonathan Patschke <jp@centtech.com>.
88941 2008-07-31  Bruno Haible  <bruno@clisp.org>
88943         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
88944         Reported by Paolo Bonzini <bonzini@gnu.org>.
88946 2008-07-30  Eric Blake  <ebb9@byu.net>
88948         test-strtod: allow compilation without -lm
88949         * tests/test-strtod.c (main): Avoid link dependence on fabs.
88950         Reported by Dennis Clarke <blastwave@gmail.com>.
88952 2008-07-28  Jim Meyering  <meyering@redhat.com>
88954         bootstrap: work also when there are no .po files in po/
88955         * build-aux/bootstrap (update_po_files): Complete the change
88956         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
88958 2008-07-27  Jim Meyering  <meyering@redhat.com>
88960         * users.txt: Add zile.
88962 2008-07-26  Ben Pfaff  <blp@gnu.org>
88964         Add missing dependencies on new m4/exponent[fdl].m4 files.
88965         * modules/isnanf-nolibm: Add m4/exponentf.m4.
88966         * modules/isnand-nolibm: Add m4/exponentd.m4.
88967         * modules/isnanl-nolibm: Add m4/exponentl.m4.
88968         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
88969         m4/isnan[fdl].m4, because the macros actually used moved.
88970         Reported by Jim Meyering.
88972 2008-07-14  Ben Pfaff  <blp@gnu.org>
88974         Add isinf module.
88975         * lib/isinf.c: New file.
88976         * lib/math.in.h: Define isinf macro if we have decided to replace
88977         it.
88978         * m4/isinf.m4: New file.
88979         * m4/math_h.m4: Initialize and substitute variables for isinf
88980         module.
88981         * modules/isinf: New file.
88982         * modules/isinf-tests: New file.
88983         * modules/math: Add substitutions for new module.
88984         * tests/test-isinf.c: New file.
88985         * doc/posix-functions/isinf.texi: Mention new module.
88986         * MODULES.html.sh: Mention new module.
88988 2008-07-14  Ben Pfaff  <blp@gnu.org>
88990         Factor out some macros for use by additional modules.
88991         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
88992         exponentf.m4.
88993         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
88994         exponentd.m4.
88995         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
88996         file exponentl.m4.
88997         * m4/exponentf.m4: New file.
88998         * m4/exponentd.m4: New file.
88999         * m4/exponentl.m4: New file.
89000         * modules/isnanf: Use new file m4/exponentf.m4.
89001         * modules/isnand: Use new file m4/exponentd.m4.
89002         * modules/isnanl: Use new file m4/exponentl.m4.
89004 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
89006         mktime.c: normalize tp->tm_isdst value to -1/0/1.
89007         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
89008         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
89009         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
89011         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
89012         readlink on platforms without PATH_MAX.
89014 2008-07-21  Eric Blake  <ebb9@byu.net>
89016         Warn, not fail, on stale version.
89017         * top/GNUmakefile (_curr-ver): Tone down previous patch.
89019         Don't allow installation with stale devel version number.
89020         * top/GNUmakefile (_is-install-target): New macro.
89021         (_curr-ver): Forbid installation with stale version number.
89023 2008-07-20  Bruno Haible  <bruno@clisp.org>
89025         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
89026         TESTS_ENVIRONMENT.
89027         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
89029 2008-07-20  Bruno Haible  <bruno@clisp.org>
89031         * lib/c-stack.h (c_stack_action): Add documentation.
89032         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
89034 2008-07-20  Bruno Haible  <bruno@clisp.org>
89036         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
89037         * modules/readlink (License): Likewise.
89039 2008-07-17  Eric Blake  <ebb9@byu.net>
89041         * modules/c-stack (Link): Fix typo.
89043         Make c-stack use libsigsegv, when available.
89044         * modules/c-stack (Depends-on): Add libsigsegv.
89045         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
89046         needed.
89047         * lib/c-stack.c (SIGSTKSZ): Define fallback.
89048         (segv_handler, overflow_handler, c_stack_action)
89049         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
89050         implementation when libsigsegv is available, but only when using
89051         the library is necessary.
89052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
89053         comment, explaining why XSI check fails on Linux.
89054         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
89055         * tests/test-c-stack2.sh: Tweak skip message.
89056         * NEWS: Document new link-time requirements.
89058 2008-07-16  Eric Blake  <ebb9@byu.net>
89060         c-stack: Expose false positives when not using libsigsegv.
89061         * modules/c-stack-tests (Files): Expand test.
89062         * tests/test-c-stack.c (main): Add means to conditionally trigger
89063         non-overflow SIGSEGV.
89064         * tests/test-c-stack2.sh: New file.
89066 2008-07-14  Bruno Haible  <bruno@clisp.org>
89068         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
89069         Reported by Eric Blake.
89071 2008-07-14  Sam Steingold  <sds@gnu.org>
89072             Bruno Haible  <bruno@clisp.org>
89074         New module libsigsegv.
89075         * modules/libsigsegv: New file.
89076         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
89077         modifications.
89078         * MODULES.html.sh (Signal handling): New section.
89080 2008-07-14  Bruno Haible  <bruno@clisp.org>
89082         * modules/unictype/ctype-* (Description): Add the word "function".
89083         Improves the resulting doc in MODULES.html.
89085 2008-07-12  Ben Pfaff  <blp@gnu.org>
89087         Add longlong module.
89088         * modules/longlong: New file.
89090 2008-07-12  Bruno Haible  <bruno@clisp.org>
89092         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
89093         to empty.
89095 2008-07-10  Ben Pfaff  <blp@gnu.org>
89097         Add isnan module.
89098         * doc/posix-functions/isnan.texi: Mention new module.
89099         * lib/math.in.h: Define isnan macro if we have decided to replace
89100         it.
89101         * m4/isnan.m4: New file.
89102         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
89103         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
89104         also.
89105         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
89106         redundancy.
89107         * m4/math_h.m4: Initialize and substitute variables for isnan
89108         module.
89109         * modules/isnan: New file.
89110         * modules/isnan-tests: New file.
89111         * modules/math: Add substitutions for new module.
89112         * tests/test-isnan.c: New file.
89113         * MODULES.html.sh: Mention new module.
89115 2008-07-10  Ben Pfaff  <blp@gnu.org>
89117         Add isnanf module.
89118         * lib/isnanf.m4: New file.
89119         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
89120         (gl_HAVE_ISNANF_IN_LIBM): New macro.
89121         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
89122         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
89123         * modules/isnanf: New file.
89124         * modules/isnanf-tests: New file.
89125         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
89126         files.
89127         * tests/test-isnanf-nolibm.c: factored most of its contents into
89128         new file tests/test-isnanf.h.
89129         * tests/test-isnanf.h: New file.
89130         * tests/test-isnanf.c: New file.
89131         * MODULES.html.sh: Mention new module.
89132         * doc/glibc-functions/isnanf.texi: Mention new module.
89134 2008-07-10  Ben Pfaff  <blp@gnu.org>
89136         Add isnand module.
89137         * lib/isnand.h: New file.
89138         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
89139         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
89140         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
89141         functionality also.
89142         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
89143         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
89144         (gl_HAVE_ISNAND_IN_LIBM): New macro.
89145         * modules/isnand: New file.
89146         * modules/isnand-tests: New file.
89147         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
89148         files.
89149         * tests/test-isnand-nolibm.c: factored most of its contents into
89150         new file tests/test-isnand.h.
89151         * tests/test-isnand.h: New file.
89152         * tests/test-isnand.c: New file.
89153         * MODULES.html.sh: Mention new module.
89155 2008-07-10  Ben Pfaff  <blp@gnu.org>
89157         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
89158         * lib/isnand.h: Rename lib/isnand-nolibm.h.
89159         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
89160         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
89161         * modules/isnanf-nolibm: Update references to renamed files.
89162         * modules/isnand-nolibm: Likewise.
89163         * modules/isnanf-nolibm-tests: Likewise.
89164         * modules/isnand-nolibm-tests: Likewise.
89165         * lib/frexp.c: Likewise.
89166         * lib/isfinite.c: Likewise.
89167         * lib/signbitd.c: Likewise.
89168         * lib/signbitf.c: Likewise.
89169         * lib/vasnprintf.c: Likewise.
89170         * tests/test-ceilf1.c: Likewise.
89171         * tests/test-ceilf2.c: Likewise.
89172         * tests/test-floorf1.c: Likewise.
89173         * tests/test-floorf2.c: Likewise.
89174         * tests/test-frexp.c: Likewise.
89175         * tests/test-round1.c: Likewise.
89176         * tests/test-round2.c: Likewise.
89177         * tests/test-roundf1.c: Likewise.
89178         * tests/test-strtod.c: Likewise.
89179         * tests/test-trunc1.c: Likewise.
89180         * tests/test-trunc2.c: Likewise.
89181         * tests/test-truncf1.c: Likewise.
89182         * tests/test-truncf2.c: Likewise.
89183         * NEWS: Mention the renamed header files.
89185 2008-07-11  Jim Meyering  <meyering@redhat.com>
89187         vc-list-files: make the last-resort awk code more portable
89188         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
89189         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
89190         does not support it.
89192 2008-07-10  Eric Blake  <ebb9@byu.net>
89194         Work with tar's bootstrap.
89195         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
89196         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
89197         an m4 comment.
89199 2008-07-09  Jim Meyering  <meyering@redhat.com>
89201         posix-shell.m4: fix typo that made this test malfunction
89202         * m4/posix-shell.m4: Remove capitalization in variable name.
89204 2008-07-08  Bruno Haible  <bruno@clisp.org>
89206         * m4/onceonly.m4: Update comments.
89207         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89209 2008-07-04  Jim Meyering  <meyering@redhat.com>
89211         * users.txt: Add vc-dwim.
89212         (bison, coreutils): Use the gitweb URL.
89214 2008-07-03  Jim Meyering  <meyering@redhat.com>
89216         * users.txt: Add libffcall.  From Sam Steingold.
89218 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
89220         getdate.y: do not ignore TZ with relative day, month or year offset
89221         * lib/getdate.y (get_date): Move the tz-handling block to follow the
89222         relative-date-handling, since otherwise, the latter would clobber the
89223         sole output (an updated Start value) of the tz-handling block.
89224         * tests/test-getdate.c: Tests for the fix
89226 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89228         Recognize 'foo_LIBRARIES += libgnu.a'.
89229         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
89230         makefile snippet has already specified an installation location,
89231         also using '+='.
89233 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
89235         getdate.y: factor out common actions
89236         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
89237         Use them in place of open-coded actions.
89239 2008-07-01  Simon Josefsson  <simon@josefsson.org>
89241         Add self-test for getdate module.
89242         * modules/getdate-tests: New file.
89243         * tests/test-getdate.c: New file.
89245 2008-06-29  Bruno Haible  <bruno@clisp.org>
89247         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
89248         .gitignore.
89249         Reported by Sylvain Beucler <beuc@beuc.net>.
89251 2008-06-29  Bruno Haible  <bruno@clisp.org>
89253         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
89254         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
89256 2008-06-29  Bruno Haible  <bruno@clisp.org>
89258         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
89259         EXTRA_DIST.
89260         Reported by Sylvain Beucler <beuc@beuc.net>.
89262 2008-06-26  Jim Meyering  <meyering@redhat.com>
89264         make several modules depend on the "open" module
89265         This provides slightly increased consistency when opening-for-write
89266         the name of a non-directory spelled with a trailing slash.
89267         * modules/chdir-safer: Likewise.
89268         * modules/chown: Likewise.
89269         * modules/clean-temp: Likewise.
89270         * modules/copy-file: Likewise.
89271         * modules/fchdir: Likewise.
89272         * modules/fcntl-safer: Likewise.
89273         * modules/pipe: Likewise.
89274         * modules/utime: Likewise.
89275         Prompted by Eric Blake and Bruno Haible.
89277 2008-06-24  Andreas Schwab  <schwab@suse.de>
89279         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
89280         literals can be used as initializers for global variables.
89282 2008-06-23  Eric Blake  <ebb9@byu.net>
89284         Make gnulib-cache.m4 easier to diff.
89285         * gnulib-tool (func_import): Allow newlines when reading cached
89286         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
89288 2008-06-23  Bruno Haible  <bruno@clisp.org>
89290         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
89291         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
89292         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
89293         m4/signalblocking.m4.
89294         (gl_PREREQ_SIGACTION): Don't invoke it.
89295         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
89296         gl_PREREQ_SIG_HANDLER_H.
89297         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89298         Don't check for sigaction here.
89300 2008-06-23  Bruno Haible  <bruno@clisp.org>
89302         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
89303         (install_handlers): Don't set the SA_RESETHAND flag.
89305 2008-06-23  Bruno Haible  <bruno@clisp.org>
89307         * m4/sigaction.m4: Comment fixes.
89308         * lib/signal.in.h: Likewise.
89310 2008-06-23  Eric Blake  <ebb9@byu.net>
89312         Fix typo.
89313         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
89315         Avoid SA_ namespace.
89316         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
89317         Reported by Ralf Wildenhues.
89319         Avoid test failure due to SA_RESTORER.
89320         * tests/test-sigaction.c (SA_MASK): New macro.
89321         (main): Avoid failing due to extension flags being set.
89322         Reported by Jim Meyering.
89324         Revert use of sig-handler.h in sigprocmask.c.
89325         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
89326         it requires the existence of struct sigaction.
89327         * lib/sigprocmask.c (handler_t): Restore typedef.
89328         (rpl_signal, old_handlers): Use local type.
89330 2008-06-22  Bruno Haible  <bruno@clisp.org>
89332         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
89333         conditionally.
89334         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89336 2008-06-22  Bruno Haible  <bruno@clisp.org>
89338         * doc/posix-functions/siginterrupt.texi: Move note.
89340         * lib/signal.in.h (SA_RESTART): New macro.
89341         * lib/sigaction.c: Update comment.
89343         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
89345         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
89346         (gl_PREREQ_SIGPROCMASK): Invoke it.
89347         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
89349         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
89351         * lib/sigprocmask.c: Update a comment.
89353 2008-06-21  Eric Blake  <ebb9@byu.net>
89355         Use sigaction module rather than signal().
89356         * modules/c-stack (Depends-on): Add sigaction.
89357         * modules/fatal-signal (Depends-on): Likewise.
89358         * modules/nanosleep (Depends-on): Likewise.
89359         * modules/sigprocmask (Files): Add sig-handler.h.
89360         * modules/sigaction (Files): Likewise.
89361         * lib/sig-handler.h (get_handler): New file, suggested by Paul
89362         Eggert.
89363         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
89364         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
89365         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
89366         (init_fatal_signals): Likewise.
89367         * lib/nanosleep.c (rpl_nanosleep): Likewise.
89368         (siginterrupt): Delete fallback.
89369         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
89370         instead.
89371         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
89372         siginterrupt.
89374         New module sigaction, for mingw.
89375         * modules/sigaction: New module...
89376         * modules/sigaction-tests: ...and its test.
89377         * m4/sigaction.m4: New file.
89378         * lib/sigaction.c: Likewise.
89379         * tests/test-sigaction.c: Likewise.
89380         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
89381         * modules/signal (Makefile.am): Likewise.
89382         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
89383         needed.
89384         * doc/posix-headers/signal.texi (signal.h): Mention provided
89385         types.
89386         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
89387         that sigaction is preferable.
89388         * doc/posix-functions/sigaction.texi (sigaction): Mention new
89389         module.
89390         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89391         sigaction.
89393         Improve robustness of sigprocmask by overriding signal.
89394         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
89395         is in use.
89396         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
89397         (SIGKILL, SIGSTOP): Provide fallbacks.
89398         (rpl_signal): Implement.
89399         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
89400         signal can be called inside handlers.
89402         Fix nanosleep module on mingw.
89403         * modules/nanosleep (Depends-on): Add sys_select.
89404         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
89406         Fix licensing of sigprocmask.
89407         * modules/raise (License): Relicense as LGPL.
89409 2008-06-21  Bruno Haible  <bruno@clisp.org>
89411         * lib/propername.c (proper_name_utf8): Don't use the transliterated
89412         result if it contains question marks.
89413         Reported by Michael Geng <linux@michaelgeng.de>.
89415 2008-06-19  Bruno Haible  <bruno@clisp.org>
89417         Fix CVS-ism.
89418         * doc/gnulib.texi: Include updated-stamp.texi.
89419         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
89420         (updated-stamp.texi): New rule.
89421         (gnulib.info): Depend on it.
89422         * doc/.gitignore: Add updated-stamp.texi.
89423         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
89425 2008-06-19  Bruno Haible  <bruno@clisp.org>
89427         * doc/Makefile (gnulib.info): Update and simplify dependencies.
89428         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
89430 2008-06-19  Eric Blake  <ebb9@byu.net>
89432         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
89433         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
89434         Reported by Stepan Kasal.
89436 2008-06-18  Bruno Haible  <bruno@clisp.org>
89438         * lib/fatal-signal.c (init_fatal_signals): Add comment.
89439         Reported by Eric Blake.
89441 2008-06-18  Eric Blake  <ebb9@byu.net>
89443         Work around cygwin 1.5.25 strsignal bug.
89444         * tests/test-strsignal.c: Allow for const char *.
89445         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
89447 2008-06-18  Simon Josefsson  <simon@josefsson.org>
89449         * users.txt: Update URL to article and add author/date
89450         information.
89452 2008-06-17  Bruno Haible  <bruno@clisp.org>
89454         New macro gl_DISABLE_THREADS.
89455         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
89456         if the user did not pass --enable-threads or --disable-threads option.
89457         (gl_DISABLE_THREADS): New macro.
89458         Reported by Eric Blake <ebb9@byu.net>.
89460 2008-06-17  Bruno Haible  <bruno@clisp.org>
89462         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
89463         when the macro ignores it.
89464         Based on a patch by Eric Blake <ebb9@byu.net>.
89466 2008-06-17  Bruno Haible  <bruno@clisp.org>
89468         * modules/tls (License): Change to LGPLv2+.
89469         Reported by Eric Blake.
89471 2008-06-17  Eric Blake  <ebb9@byu.net>
89473         Simplify c-stack prerequisites.
89474         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
89475         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
89476         no longer requires <ucontext.h> to exist.  Optimize setrlimit
89477         check.
89478         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
89479         <sys/resource.h>.
89481         Move c-stack test into testsuite.
89482         * modules/c-stack-tests: New file.
89483         * lib/c-stack.c [DEBUG]: Move test program...
89484         * tests/test-c-stack.c: ...into this new file.  Skip rather than
89485         fail test if sigaltstack is lacking.
89486         * tests/test-c-stack.sh: New driver file.
89488 2008-06-16  Eric Blake  <ebb9@byu.net>
89490         Use raise module consistently.
89491         * modules/fatal-signal (Depends-on): Add raise.
89492         * modules/sigprocmask (Depends-on): Likewise.
89493         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
89494         * lib/sigprocmask.c (sigprocmask): Likewise.
89495         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
89496         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
89498         Fix compliance bug in sigpending.
89499         * lib/sigprocmask.c (sigpending): Return pending array via
89500         parameter, not return value.
89502 2008-06-14  Eric Blake  <ebb9@byu.net>
89504         Improve obstack-printf test code.
89505         * tests/test-obstack-printf.c (test_function): Fix comment, and
89506         simplify usage of obstack_* in macros.  Add a test for coverage.
89507         Reported by Bruno Haible.
89509 2008-06-14  Bruno Haible  <bruno@clisp.org>
89511         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
89512         array size as a constant, not as a const variable.
89513         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
89514         AC_USE_SYSTEM_EXTENSIONS.
89515         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
89516         Test whether the obstack_printf function actually exists.
89517         * modules/obstack-printf (Depends-on): Add extensions.
89518         (Include): Remove obstack.h.
89519         * modules/obstack-printf-posix (Depends-on): Add extensions.
89520         (Include): Remove obstack.h.
89522 2008-06-13  Eric Blake  <ebb9@byu.net>
89524         Add obstack-printf and obstack-printf-posix modules.
89525         * modules/obstack-printf: New file.
89526         * modules/obstack-printf-posix: Likewise.
89527         * MODULES.html.sh (Misc): Mention them.
89528         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
89529         Likewise.
89530         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
89531         Likewise.
89532         * modules/stdio (Makefile.am): Accomodate new modules.
89533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89534         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
89535         Declare.
89536         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
89537         functions.
89538         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
89539         (gl_REPLACE_OBSTACK_PRINTF): New macros
89540         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
89541         * tests/test-obstack-printf.c: New file.
89542         * modules/obstack-printf-tests: Likewise.
89543         * modules/obstack-printf-posix-tests: Likewise.
89545 2008-06-11  Bruno Haible  <bruno@clisp.org>
89547         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
89548         * lib/open.c: Include errno.h.
89549         (open): Fail when attempting to write to a file that has a trailing
89550         slash.
89551         * tests/test-open.c (main): Test against trailing slash bug.
89552         * doc/posix-functions/open.texi: Mention the trailing slash bug.
89554 2008-06-10  Bruno Haible  <bruno@clisp.org>
89556         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
89557         for $? to work inside the trap command, with various /bin/sh-s.
89558         * tests/test-vc-list-files-cvs.sh: Likewise.
89560 2008-06-10  Bruno Haible  <bruno@clisp.org>
89562         * lib/acl-internal.h: Don't include gettext.h here.
89563         * lib/set-mode-acl.c: Include gettext.h here.
89564         * lib/copy-acl.c: Likewise.
89566 2008-06-10  Bruno Haible  <bruno@clisp.org>
89568         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
89569         * lib/wait-process.c (wait_subprocess): Likewise.
89570         * lib/execute.h (execute): Add termsigp argument.
89571         * lib/execute.c (execute): Likewise.
89572         * lib/csharpcomp.c (compile_csharp_using_pnet,
89573         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
89574         * lib/csharpexec.c (execute_csharp_using_pnet,
89575         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
89576         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
89577         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
89578         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
89579         is_jikes_present): Update.
89580         * lib/javaexec.c (execute_java_class): Update.
89581         * lib/javaversion.c (execute_and_read_line): Update.
89582         * NEWS: Document the changes.
89583         Reported by Eric Blake.
89585 2008-06-10  Eric Blake  <ebb9@byu.net>
89587         Add missing include.
89588         * tests/test-strstr.c (includes): Add <signal.h>.
89589         * tests/test-strcasestr.c (includes): Likewise.
89590         * tests/test-memmem.c (includes): Likewise.
89592 2008-06-10  Bruno Haible  <bruno@clisp.org>
89594         * lib/wait-process.c (wait_subprocess): Add an assertion.
89596 2008-06-10  Bruno Haible  <bruno@clisp.org>
89598         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
89600 2008-06-10  Bruno Haible  <bruno@clisp.org>
89602         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
89603         using alarm().
89604         * tests/test-strcasestr.c (main): Likewise.
89605         * tests/test-strstr.c (main): Likewise.
89607 2008-06-09  Bruno Haible  <bruno@clisp.org>
89609         Work around the Solaris 10 ACE ACLs ABI change.
89610         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
89611         declare if ACL_NO_TRIVIAL is present.
89612         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
89613         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
89614         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
89615         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
89616         define if ACL_NO_TRIVIAL is present.
89617         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
89618         and use the current ABI.
89619         (file_has_acl): Use same #if condition as elsewhere.
89620         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
89621         in use, and use the current ABI.
89622         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
89623         Reported by Jim Meyering.
89625 2008-06-09  Eric Blake  <ebb9@byu.net>
89627         Work around environments that (stupidly) ignore SIGALRM.
89628         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
89629         before using alarm().
89630         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
89631         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
89632         Reported by Ian Beckwith <ianb@erislabs.net>.
89634         Produce autobuild blurb earlier in log.
89635         * modules/autobuild (configure.ac-early): Move AB_INIT here.
89637 2008-06-09  Jim Meyering  <meyering@redhat.com>
89638         and Ondřej Vašík  <ovasik@redhat.com>
89640         utimens.c: correct kernel bug work-around
89641         Ondřej Vašík found that the invalid return value of 280 indicates
89642         failure, not success, and the kernel bug we're trying to work
89643         around affects not just the utimensat call, but also the fallback
89644         futimens call.
89645         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
89646         not success.
89647         [HAVE_FUTIMENS]: Use the same work-around, here.
89649 2008-06-09  Jim Meyering  <meyering@redhat.com>
89651         add more guards around definition of ACE_-related code
89652         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
89653         ALLOW and ACE_OWNER are also defined.
89655 2008-06-08  Bruno Haible  <bruno@clisp.org>
89657         * lib/acl-internal.h: Add me as co-author.
89658         * lib/file-has-acl.c: Likewise.
89659         * lib/set-mode-acl.c: Likewise.
89660         * lib/copy-acl.c: Likewise.
89662 2008-06-08  Bruno Haible  <bruno@clisp.org>
89664         Add support for AIX ACLs.
89665         * lib/acl-internal.h (acl_nontrivial): New declaration.
89666         * lib/file-has-acl.c (acl_nontrivial): New function.
89667         (file_has_acl): Add implementation using AIX 4 ACL API.
89668         * lib/set-mode-acl.c (qset_acl): Likewise.
89669         * lib/copy-acl.c (qcopy_acl): Likewise.
89671 2008-06-08  Bruno Haible  <bruno@clisp.org>
89673         Add support for HP-UX ACLs.
89674         * lib/acl-internal.h (acl_nontrivial): New declaration.
89675         * lib/file-has-acl.c (acl_nontrivial): New function.
89676         (file_has_acl): Add implementation using HP-UX 11 ACL API.
89677         * lib/set-mode-acl.c (qset_acl): Likewise.
89678         * lib/copy-acl.c (qcopy_acl): Likewise.
89680 2008-06-08  Bruno Haible  <bruno@clisp.org>
89682         Add support for Cygwin ACLs.
89683         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
89684         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
89685         the chmod_or_fchmod call.
89686         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
89688 2008-06-08  Bruno Haible  <bruno@clisp.org>
89690         Fix bug with setuid modes in Solaris 10+ code.
89691         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
89692         succeeded, when the mode contains some special bits.
89694 2008-06-08  Bruno Haible  <bruno@clisp.org>
89696         Add support for Solaris 7..10 ACLs.
89697         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
89698         declarations.
89699         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
89700         functions.
89701         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
89702         * lib/set-mode-acl.c (qset_acl): Likewise.
89703         * lib/copy-acl.c (qcopy_acl): Likewise.
89705 2008-06-08  Bruno Haible  <bruno@clisp.org>
89707         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
89708         declaration.
89709         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
89710         (acl_access_nontrivial): Remove MacOS X case.
89711         (file_has_acl): Use acl_extended_nontrivial.
89712         * lib/copy-acl.c (qcopy_acl): Likewise.
89714 2008-06-08  Bruno Haible  <bruno@clisp.org>
89716         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
89718 2008-06-08  Jim Meyering  <meyering@redhat.com>
89720         * modules/acl (Maintainer): Add Bruno Haible.
89722 2008-06-07  Bruno Haible  <bruno@clisp.org>
89724         Improve support for Tru64 ACLs.
89725         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
89726         ACL on OSF/1.
89728 2008-06-07  Bruno Haible  <bruno@clisp.org>
89730         Add support for MacOS X ACLs.
89731         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
89732         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
89733         * lib/set-mode-acl.c (qset_acl): Likewise.
89734         * lib/copy-acl.c (qcopy_acl): Likewise.
89736 2008-06-07  Bruno Haible  <bruno@clisp.org>
89738         Fix memory leak introduced on 2008-05-22.
89739         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
89740         use.
89742 2008-06-07  Bruno Haible  <bruno@clisp.org>
89744         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
89745         to construct an empty ACL.
89747 2008-06-07  Bruno Haible  <bruno@clisp.org>
89749         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
89750         precisely.
89751         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
89753 2008-06-07  Bruno Haible  <bruno@clisp.org>
89755         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
89756         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
89758 2008-06-07  Bruno Haible  <bruno@clisp.org>
89760         * doc/posix-functions/_setjmp.texi: Explain the use of this function
89761         regardless of POSIX.
89762         * doc/posix-functions/_longjmp.texi: Likewise.
89763         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
89764         SystemV platform in this case.
89766 2008-06-06  Eric Blake  <ebb9@byu.net>
89768         Document abort() bugs.
89769         * doc/posix-functions/abort.texi (abort): Mention anomalies.
89771         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
89772         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
89773         sigsetjmp.
89774         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
89775         siglongjmp, but only as a macro.
89776         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
89777         is obsolete.
89778         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
89780         Tweak documentation to cover cygwin argz bugs.
89781         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
89782         argz bug fix; no code change needed since no cygwin releases
89783         occurred between the last fix and the bug being tested.
89784         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
89785         module and recently fixed cygwin bugs.
89786         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
89787         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
89788         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
89789         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
89790         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
89791         Likewise.
89792         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
89793         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
89794         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
89795         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
89796         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
89797         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
89798         Likewise.
89800         Avoid gcc warning on cygwin.
89801         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
89802         !ACL_NO_TRIVIAL]: Avoid unused variable.
89804 2008-06-05  Eric Blake  <ebb9@byu.net>
89806         Be tolerant of UNKNOWN version in gnulib-tool test dir.
89807         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
89808         git-version-gen fails to come up with a version.
89809         Reported by Simon Josefsson.
89811 2008-06-05  Jim Meyering  <meyering@redhat.com>
89812             Paul Eggert  <eggert@cs.ucla.edu>
89814         utimens.c: work around a probable Linux kernel bug
89815         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
89816         appears to be a kernel bug that causes utimensat to return 280
89817         instead of 0, indicating success.
89819 2008-06-04  Bruno Haible  <bruno@clisp.org>
89821         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
89822         2008-06-01 commit.
89824 2008-06-04  Bruno Haible  <bruno@clisp.org>
89826         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
89827         * lib/file-has-acl.c (acl_access_nontrivial): New function.
89828         (file_has_acl): Use it. Save errno afterwards.
89829         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
89831 2008-06-03  Bruno Haible  <bruno@clisp.org>
89833         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
89834         draft code. Simplify #ifs.
89835         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
89836         Put Solaris code after POSIX-draft code. Fix comments regarding
89837         Solaris 10, HP-UX. Mention Cygwin.
89838         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
89840 2008-06-03  Eric Blake  <ebb9@byu.net>
89842         Provide fallback for older kernels.
89843         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
89844         Provide runtime fallback if kernel lacks support.
89845         Reported by Mike Frysinger.
89847 2008-06-02  Bruno Haible  <bruno@clisp.org>
89849         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
89850         it exists.
89852 2008-06-02  Bruno Haible  <bruno@clisp.org>
89854         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
89855         * lib/copy-acl.c (qcopy_acl): Update comment.
89857 2008-06-02  Bruno Haible  <bruno@clisp.org>
89859         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
89860         like ACL APIs.
89862 2008-06-02  Bruno Haible  <bruno@clisp.org>
89864         * tests/test-file-has-acl.sh: Use different code for Cygwin.
89865         * tests/test-set-mode-acl.sh: Likewise.
89866         * tests/test-copy-acl.sh: Likewise.
89867         * tests/test-copy-file.sh: Likewise.
89869 2008-06-02  Bruno Haible  <bruno@clisp.org>
89871         * tests/test-file-has-acl.sh: Remove unused code.
89873 2008-06-01  Bruno Haible  <bruno@clisp.org>
89875         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
89876         (copy_acl): Just a wrapper around qcopy_acl that emits the error
89877         messages.
89878         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
89880 2008-06-01  Bruno Haible  <bruno@clisp.org>
89882         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
89883         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
89884         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
89885         APIs.
89886         * modules/acl-tests (configure.ac): Remove tests now contained in
89887         m4/acl.m4.
89889 2008-06-02  Jim Meyering  <meyering@redhat.com>
89891         announce-gen: use a better key-server host name
89892         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
89893         it may be more consistently reliable.  Suggested by Werner Koch
89894         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
89896 2008-06-01  Bruno Haible  <bruno@clisp.org>
89898         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
89899         Reported by Voroskoi Andras <voroskoi@gmail.com>.
89901 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
89903         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
89905 2008-06-01  Bruno Haible  <bruno@clisp.org>
89907         New ACL tests.
89908         * tests/test-file-has-acl.sh: New file.
89909         * tests/test-file-has-acl.c: New file.
89910         * tests/test-set-mode-acl.sh: New file.
89911         * tests/test-set-mode-acl.c: New file.
89912         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
89913         * tests/test-copy-acl.c: New file.
89914         * modules/acl-tests: New file, based on modules/copy-file-tests.
89915         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
89916         (Depends-on): Add acl-tests.
89917         (configure.ac): Remove checks.
89918         (Makefile.am): Don't create test-sameacls program here any more.
89920 2008-06-01  Bruno Haible  <bruno@clisp.org>
89922         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
89923         * tests/test-sameacls.c: Include progname.h.
89924         (main): Invoke set_program_name. Portability fixes for MacOS X,
89925         Solaris, HP-UX.
89927 2008-06-01  Bruno Haible  <bruno@clisp.org>
89929         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
89930         function.
89931         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
89933 2008-06-01  Bruno Haible  <bruno@clisp.org>
89935         * modules/rpmatch (Depends-on): Add strdup.
89937 2008-06-01  Bruno Haible  <bruno@clisp.org>
89939         * lib/pipe.c: Include unistd-safer.h.
89940         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
89941         * modules/pipe (Depends-on): Add unistd-safer.
89943 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89945         * modules/autobuild (configure.ac): Call AB_INIT.
89947 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89949         * tests/test-getaddrinfo.c: Don't print debug messages by default.
89950         Suggested by Bruno Haible <bruno@clisp.org>.
89952 2008-05-30  Simon Josefsson  <simon@josefsson.org>
89954         * tests/test-base64.c: Cast size_t to unsigned long when invoking
89955         printf.  Use %lu instead of %d.  Reported by Bruno Haible
89956         <bruno@clisp.org>.
89958 2008-05-29  Eric Blake  <ebb9@byu.net>
89960         Prefer new POSIX 200x interfaces over futimesat.
89961         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
89962         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
89963         when available.
89964         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
89966 2008-05-28  Bruno Haible  <bruno@clisp.org>
89968         * modules/stpcpy (License): Change to LGPLv2+.
89969         Requested by David Lutterkort <dlutter@redhat.com>.
89971 2008-05-27  Bruno Haible  <bruno@clisp.org>
89973         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
89974         current mingw.
89975         Reported by Jose E. Marchesi <jemarch@gnu.org>.
89977 2008-05-27  Bruno Haible  <bruno@clisp.org>
89979         * modules/iconv_open (Link): New section, from module 'iconv'.
89980         * modules/striconv (Link): Likewise.
89981         * modules/striconveh (Link): Likewise.
89982         * modules/xstriconv (Link): Likewise.
89983         * modules/unicodeio (Link): Likewise.
89984         * modules/propername (Link): Likewise.
89985         Reported by Jim Meyering.
89987 2008-05-26  Jim Meyering  <meyering@redhat.com>
89989         sha256: do not artificially restrict buffer length to be < 2^32
89990         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
89991         uint32_t to size_t.
89992         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
89993         to match.
89995         avoid unaligned access errors, e.g., on sparc
89996         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
89997         direct access through a possibly-unaligned uint64* pointer.
89998         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
89999         direct access through a possibly-unaligned uint32* pointer.
90000         Prompted by this patch from Tom "spot" Callaway:
90001         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
90003         sha512.c: fix typo in comment
90004         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
90006 2008-05-25  Bruno Haible  <bruno@clisp.org>
90008         * lib/set-mode-acl.c: Renamed from lib/acl.c.
90009         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
90010         (Makefile.am): Update lib_SOURCES.
90012 2008-05-25  Bruno Haible  <bruno@clisp.org>
90014         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
90016 2008-05-25  Jim Meyering  <meyering@redhat.com>
90018         useless-if-before-free: freed expr may have white-space differences
90019         * build-aux/useless-if-before-free: Recognize cases in which the
90020         freed expression differs from the tested one in embedded white
90021         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
90022         $1 was used, so we can't make any regexp shy.  Improved tests now
90023         detect this.
90025         useless-if-before-free: accept white space in the expression.
90026         * build-aux/useless-if-before-free: For now, any white space
90027         in the expression must be identical in the free argument.
90029         useless-if-before-free: efficiency tweak
90030         * build-aux/useless-if-before-free: Make the expression-matching
90031         regexp "shy".
90032         Make the *outer* regexp shy, not the expr-matching one.
90034         update code-in-comment to accept cast of free arg
90035         * build-aux/useless-if-before-free: Update regexp.
90037 2008-05-25  Bruno Haible  <bruno@clisp.org>
90039         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
90040         * modules/copy-file-tests (Files, Makefile.am): Update.
90041         * tests/test-copy-file.c (func_test_copy): Update.
90043 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
90045         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
90047 2008-05-23  Bruno Haible  <bruno@clisp.org>
90049         Improve support for ACLs on OSF/1.
90050         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
90051         Remove fallback for unknown flavors of ACLs.
90053 2008-05-22  Bruno Haible  <bruno@clisp.org>
90055         Add support for ACLs on OSF/1.
90056         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
90057         replacements.
90058         (acl_free_text): New macro fallback.
90059         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
90060         acl_free.
90061         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
90062         acl_free_text function. Require AC_C_INLINE.
90064 2008-05-22  Bruno Haible  <bruno@clisp.org>
90066         Make copy_acl work on MacOS X 10.5.
90067         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
90068         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
90069         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
90070         If MODE_INSIDE_ACL, don't assume that every system has the same text
90071         representation for ACLs as FreeBSD.
90072         * lib/copy-acl.c (copy_acl): Add support for platforms with
90073         !MODE_INSIDE_ACL.
90074         * lib/file-has-acl.c (file_has_acl): Likewise.
90075         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
90076         FreeBSD, MacOS X, or IRIX, respectively.
90078 2008-05-22  Bruno Haible  <bruno@clisp.org>
90080         * lib/acl.h: Don't include <sys/acl.h>.
90081         (GETACLCNT): Move fallback to lib/acl-internal.h.
90082         * lib/acl-internal.h: Include <sys/acl.h> here.
90083         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
90085 2008-05-22  Bruno Haible  <bruno@clisp.org>
90087         Split off copy_acl function to separate file.
90088         * lib/copy-acl.c: New file, extracted from lib/acl.c.
90089         * lib/acl.c (copy_acl): Moved function to separate file.
90090         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
90091         * modules/acl (Files): Add lib/copy-acl.c.
90092         (Makefiles.am): Augment lib_SOURCES.
90094 2008-05-22  Bruno Haible  <bruno@clisp.org>
90096         * modules/copy-file-tests: New file.
90097         * tests/test-copy-file.sh: New file.
90098         * tests/test-copy-file.c: New file.
90099         * tests/test-copy-file-sameacls.c: New file.
90101 2008-05-22  Eric Blake  <ebb9@byu.net>
90103         Avoid gcc warning.
90104         * tests/test-memcmp.c (main): Pass NULL indirectly.
90106 2008-05-21  Bruno Haible  <bruno@clisp.org>
90108         Add reference doc about ACLs.
90109         * doc/acl-resources.txt: New file.
90110         * doc/acl-cygwin.txt: New file.
90112 2008-05-21  Bruno Haible  <bruno@clisp.org>
90114         Avoid one more warning from gcc.
90115         * lib/vasnprintf.c (IF_LINT): Update comments.
90116         (VASNPRINTF): Use it also for the 'prefix' array initializer.
90118 2008-05-21  Jim Meyering  <meyering@redhat.com>
90120         avoid a warning from gcc
90121         * lib/vasnprintf.c (IF_LINT): Define.
90122         (scale10_round_decimal_long_double):
90123         Use it to avoid a "may be used uninitialized" warning.
90124         (scale10_round_decimal_double): Likewise.
90126 2008-05-21  Simon Josefsson  <simon@josefsson.org>
90128         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
90129         declared.
90131 2008-05-20  Bruno Haible  <bruno@clisp.org>
90133         * tests/test-memcmp.c (main): Test also the sign of the result. Test
90134         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
90136 2008-05-20  Simon Josefsson  <simon@josefsson.org>
90138         * modules/memcmp-tests: New file.
90139         * tests/test-memcmp.c: New file.
90141 2008-05-19  Bruno Haible  <bruno@clisp.org>
90143         * modules/propername (Notice, configure.ac): Put quoted "..." into
90144         --keyword option.
90145         * lib/propername.h: Update comments accordingly.
90146         Reported by Eric Blake.
90148 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
90150         * modules/getpass-gnu (Depends-on): Add fseeko.
90152 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90154         * modules/base64-tests: New file.
90156 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
90158         * lib/base64.c (base64_decode_ctx): If a decode context structure
90159         was passed in use it to ignore newlines.  If a context structure
90160         was _not_ passed in, continue to treat newlines as garbage (this
90161         is the historical behavior).  Formerly base64_decode.
90162         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90163         takes a decode context structure.
90164         * lib/base64.h (base64_decode): Macro for four-argument calls.
90165         (base64_decode_alloc): Likewise.
90166         * lib/base64.c (base64_decode_ctx): If a decode context structure
90167         was passed in use it to ignore newlines.  If a context structure
90168         was _not_ passed in, continue to treat newlines as garbage (this
90169         is the historical behavior).  Formerly base64_decode.
90170         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
90171         takes a decode context structure.
90172         * lib/base64.h (base64_decode): Macro for four-argument calls.
90173         (base64_decode_alloc): Likewise.
90175 2008-05-19  Jim Meyering  <meyering@redhat.com>
90177         avoid a warning from gcc
90178         * lib/trim.c (IF_LINT): Define.
90179         (trim2): Use it to avoid a "may be used uninitialized" warning.
90181         Fix doc typo.
90182         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
90184 2008-05-19  Bruno Haible  <bruno@clisp.org>
90186         * doc/glibc-functions/getpass.texi: Document limits of other
90187         implementations.
90189 2008-05-19  Simon Josefsson  <simon@josefsson.org>
90190             Bruno Haible <bruno@clisp.org>
90192         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
90194 2008-05-18  Bruno Haible  <bruno@clisp.org>
90196         * modules/propername: New file, from GNU gettext.
90197         * lib/propername.h: New file, from GNU gettext.
90198         * lib/propername.c: New file, from GNU gettext.
90199         * MODULES.html.sh (Internationalization functions): Add propername.
90201 2008-05-16  Jim Meyering  <meyering@redhat.com>
90202             Bruno Haible  <bruno@clisp.org>
90204         Avoid some warnings from "gcc -Wshadow".
90205         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
90207 2008-05-15  Eric Blake  <ebb9@byu.net>
90209         Extend previous patch to cygwin 1.7.0.
90210         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
90211         fast implementation in cygwin >= 1.7.0.
90212         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90215 2008-05-15  Bruno Haible  <bruno@clisp.org>
90217         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
90218         implementation in glibc >= 2.9.
90219         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90222 2008-05-15  Bruno Haible  <bruno@clisp.org>
90224         * MODULES.html.sh (Internationalization functions): Remove linebreak.
90225         (Unicode string functions): Add unilbrk/*.
90226         Reported by Karl Berry.
90228 2008-05-15  Eric Blake  <ebb9@byu.net>
90230         Fix violation of <stdbool.h> replacement in regex.
90231         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
90232         * lib/regexec.c (re_search_internal): Likewise.
90233         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
90235 2008-05-15  Jim Meyering  <meyering@redhat.com>
90237         avoid distracting test output when git or cvs is not found
90238         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
90239         * tests/test-vc-list-files-git.sh: Likewise.
90241 2008-05-15  Eric Blake  <ebb9@byu.net>
90243         Glibc finally accepted the memmem speedup code, bugzilla #5514.
90244         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
90245         glibc version.
90246         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
90247         * doc/posix-functions/strstr.texi (strstr): Likewise.
90248         * lib/str-two-way.h (MAX): Sychronize with glibc.
90250 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
90252         * lib/regcomp.c (optimize_utf8): Add a note on why we test
90253         opr.ctx_type.
90254         (calc_first): Initialize constraint field.
90255         (duplicate_node_closure): Use it instead of special casing ANCHORS.
90256         Fix grammar.
90257         (duplicate_node): Merge constraint field for all node types.
90258         (calc_eclosure_iter): Look at constraint field for all node types.
90259         * lib/regex_internal.c (create_cd_newstate): Don't look at
90260         opr.ctx_type.
90262 2008-05-14  Bruno Haible  <bruno@clisp.org>
90264         Help GCC to do better code generation.
90265         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
90266         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
90267         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
90268         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
90269         Declare with attribute 'malloc' if supported.
90271 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
90273         use "echo STR|wc -c" rather than unportable "expr length STR"
90274         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
90275         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
90277 2008-05-14  Jim Meyering  <meyering@redhat.com>
90279         use dd ibs=$n count=1 ... rather than less-portable head -c$n
90280         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
90281         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
90282         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
90283         via Collin Lasse.
90285 2008-05-14  Eric Blake  <ebb9@byu.net>
90287         Avoid quadratic growth in gl_LIBSOURCES.
90288         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
90289         Suggested by Bruno Haible.
90291         Test xmemdup0.
90292         * modules/xmemdup0-tests: New file.
90293         * tests/test-xmemdup0.c: Likewise.
90295 2008-05-13  Eric Blake  <ebb9@byu.net>
90297         Split xmemdup0 into its own module.
90298         * modules/xmemdup0: New file.
90299         * lib/xmemdup0.h: Likewise.
90300         * lib/xmemdup0.c: Likewise.
90301         * MODULES.html.sh (Memory management functions): Add xmemdup0.
90302         * lib/xalloc.h (xmemdup0): Remove.
90303         * lib/xmalloc.c (xmemdup0): Likewise.
90305 2008-05-13  Eric Blake  <ebb9@byu.net>
90306             Bruno Haible  <bruno@clisp.org>
90308         Reduce number of forks required during autoconf.
90309         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
90310         and gl_LIBSOURCES_DIR.
90311         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
90312         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
90313         m4_syscmd per file.
90314         <m4_foreach_w>: Move...
90315         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
90317 2008-05-13  Eric Blake  <ebb9@byu.net>
90319         * gnulib-tool: Fix various comment typos.
90321 2008-05-12  Bruno Haible  <bruno@clisp.org>
90323         Tailor the linebreaking algorithm.
90324         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
90326 2008-05-12  Bruno Haible  <bruno@clisp.org>
90328         Update to Unicode 5.0.0.
90329         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90330         LBP_JV, LBP_JT. Redistribute values.
90331         (unilbrk_table): Change size.
90332         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
90333         Unicode TR#14 rev. 22.
90334         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
90335         LBP_JV, LBP_JT. Redistribute values.
90336         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
90337         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
90338         Update.
90339         * lib/unilbrk/lbrkprop1.h: Regenerated.
90340         * lib/unilbrk/lbrkprop2.h: Regenerated.
90341         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
90342         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
90343         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
90344         Likewise.
90345         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
90346         Likewise.
90347         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
90348         result.
90349         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
90350         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
90351         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
90352         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
90353         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
90354         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
90356 2008-05-11  Bruno Haible  <bruno@clisp.org>
90358         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
90360 2008-05-11  Bruno Haible  <bruno@clisp.org>
90362         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
90363         * modules/unilbrk/gen-lbrk: New file.
90365 2008-05-11  Bruno Haible  <bruno@clisp.org>
90367         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
90368         * m4/sha512.m4 (gl_SHA512): Likewise.
90370 2008-05-11  Jim Meyering  <meyering@redhat.com>
90372         New modules: crypto/sha256, crypto/sha512 (from coreutils)
90373         * modules/crypto/sha256: New file.
90374         * modules/crypto/sha512: Likewise.
90375         * lib/sha256.c: Likewise.
90376         * lib/sha256.h: Likewise.
90377         * lib/sha512.c: Likewise.
90378         * lib/sha512.h: Likewise.
90379         * lib/u64.h: Likewise.
90380         * m4/sha256.m4: Likewise.
90381         * m4/sha512.m4: Likewise.
90382         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
90384 2008-05-10  Bruno Haible  <bruno@clisp.org>
90386         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
90387         (Input/Output <stdio.h>): Add xprintf.
90388         (Signal handling <signal.h>): Add strsignal.
90389         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
90390         (Core language properties): Add func.
90391         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
90392         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
90393         strings.
90394         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
90395         (Input/output): New section.
90396         (File system functions): Add openat-die, stat-macros.
90397         (Networking functions): Add sockets.
90398         (Unicode string functions): Add unictype/*.
90399         (Support for building libraries and executables): Add gperf.
90400         (Support for building documentation): Add agpl-3.0.
90401         (Misc): Add nocrash.
90403 2008-05-10  Bruno Haible  <bruno@clisp.org>
90405         * modules/unictype/gen-ctype: New file.
90407 2008-05-10  Jim Meyering  <meyering@redhat.com>
90409         Make chdir-safer.c more efficient on a system with no symlinks.
90410         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
90411         also if ELOOP is zero.  Suggested by Bruno Haible.
90413         Make chdir-safer.c slightly safer.
90414         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
90415         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
90417         Avoid compile failure on systems without ELOOP (like mingw).
90418         * lib/chdir-safer.c (ELOOP): Define if not already defined.
90419         Reported by Bruno Haible.
90421 2008-05-10  Bruno Haible  <bruno@clisp.org>
90423         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
90424         (is_utf8_encoding): Use a case-insensitive comparison.
90425         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
90426         streq.
90428 2008-05-10  Bruno Haible  <bruno@clisp.org>
90430         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
90431         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
90432         * lib/unilbrk/ulc-common.h (iconv_string_length,
90433         iconv_string_keeping_offsets): Remove declarations.
90434         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
90435         Don't include <iconv.h>, streq.h, xsize.h.
90436         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
90437         conversion.
90438         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
90439         <iconv.h>, streq.h, xsize.h.
90440         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
90441         conversion.
90442         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
90443         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
90444         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
90445         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
90447 2008-05-10  Bruno Haible  <bruno@clisp.org>
90449         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
90450         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
90452         * modules/unilbrk/u32-width-linebreaks-tests: New file.
90453         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
90455         * modules/unilbrk/u16-width-linebreaks-tests: New file.
90456         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
90458         * modules/unilbrk/u8-width-linebreaks-tests: New file.
90459         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
90461         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
90462         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
90464         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
90465         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
90467         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
90468         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
90470         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
90471         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
90473 2008-05-10  Bruno Haible  <bruno@clisp.org>
90475         Split up 'linebreak' module.
90476         * lib/unilbrk.h: New file, based on lib/linebreak.h.
90477         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
90478         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
90479         modifications.
90480         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
90481         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
90482         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
90483         lib/linebreak.c.
90484         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
90485         lib/linebreak.c.
90486         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
90487         lib/linebreak.c.
90488         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
90489         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
90490         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
90491         lib/linebreak.c.
90492         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
90493         lib/linebreak.c.
90494         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
90495         lib/linebreak.c.
90496         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
90497         lib/linebreak.c.
90498         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
90499         lib/linebreak.c.
90500         * modules/unilbrk/base: New file.
90501         * modules/unilbrk/tables: New file.
90502         * modules/unilbrk/u8-possible-linebreaks: New file.
90503         * modules/unilbrk/u16-possible-linebreaks: New file.
90504         * modules/unilbrk/u32-possible-linebreaks: New file.
90505         * modules/unilbrk/ulc-common: New file.
90506         * modules/unilbrk/ulc-possible-linebreaks: New file.
90507         * modules/unilbrk/u8-width-linebreaks: New file.
90508         * modules/unilbrk/u16-width-linebreaks: New file.
90509         * modules/unilbrk/u32-width-linebreaks: New file.
90510         * modules/unilbrk/ulc-width-linebreaks: New file.
90511         * lib/linebreak.h: Remove file.
90512         * lib/linebreak.c: Remove file.
90513         * m4/linebreak.m4: Remove file.
90514         * modules/linebreak: Remove file.
90515         * NEWS: Mention the changes.
90517 2008-05-09  Eric Blake  <ebb9@byu.net>
90519         Add xmemdup0.
90520         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
90521         implementation.
90522         * lib/xmalloc.c (xmemdup0): New C implementation.
90524 2008-05-08  Bruno Haible  <bruno@clisp.org>
90526         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
90528 2008-05-07  Eric Blake  <ebb9@byu.net>
90530         Support cross-compilation of <wctype.h>.
90531         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
90532         AC_CACHE_CHECK.
90534 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
90536         * build-aux/vc-list-files: Add support for bzr.
90538 2008-05-03  Jim Meyering  <meyering@redhat.com>
90540         avoid failed assertion with tight malloc
90541         * tests/test-getndelim2.c: Correct an off-by-one assertion.
90543 2008-05-03  Simon Josefsson  <simon@josefsson.org>
90545         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
90546         are needed from arpa/inet.h.
90547         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
90548         Reported by Bruno Haible.
90550 2008-05-02  Jim Meyering  <meyering@redhat.com>
90552         avoid compilation error on FreeBSD 6
90553         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
90555 2008-05-01  Jim Meyering  <meyering@redhat.com>
90557         useless-if-before-free: correct --help's exit status description
90558         * build-aux/useless-if-before-free (usage): Like grep, exit 0
90559         for one or more matches, etc.  Reported by Bruno Haible.
90561         vc-list-files: make the stand-alone gnulib test work
90562         * modules/vc-list-files-tests (configure.ac):
90563         Define and AC_SUBST abs_aux_dir.
90564         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
90565         $(abs_top_srcdir) to each script and having each of them
90566         duplicate the work of setting PATH, set PATH here, using
90567         the new variable, abs_aux_dir instead.
90568         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
90569         * tests/test-vc-list-files-git.sh: Likewise.
90570         Reported by Bruno Haible.
90572 2008-05-01  Bruno Haible  <bruno@clisp.org>
90574         * lib/getndelim2.c (getndelim2): Fix newsize computation during
90575         reallocation. Rename 'done' to 'found_delimiter'.
90577 2008-05-01  Jim Meyering  <meyering@redhat.com>
90579         vc-list-files: accommodate /bin/sh like the one from Solaris 10
90580         * build-aux/vc-list-files: Use `...`, not $(...).
90582 2008-04-30  Jim Meyering  <meyering@redhat.com>
90584         add tests for vc-list-files
90585         * modules/vc-list-files-tests: New module.
90586         * tests/test-vc-list-files-cvs.sh: New file.
90587         * tests/test-vc-list-files-git.sh: New file.
90589         avoid a warning from gcc
90590         * lib/getndelim2.c (IF_LINT): Define.
90591         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
90593         vc-list-files: work properly with build-aux/cvsu, too
90594         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
90595         to all cvs-based clauses.
90597         vc-list-files: work properly in the CVS+awk case, too
90598         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
90600         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
90601         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
90602         take more than one file argument, so .  Add quotes, just in case $dir
90603         ever contains a shell meta-character.  Prompted by Soren Hansen in
90604         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
90606 2008-04-29  Eric Blake  <ebb9@byu.net>
90608         Optimize getndelim2 to use block operations when possible.
90609         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
90610         freadseek, and memchr2.
90611         * lib/getndelim2.c (getndelim2): Use them for block reads.
90613 2008-04-29  Bruno Haible  <bruno@clisp.org>
90615         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
90616         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90617         * modules/inet_ntop (Depends-on): Add extensions.
90618         * modules/inet_pton (Depends-on): Likewise.
90619         Reported by Simon Josefsson.
90621 2008-04-29  Jim Meyering  <meyering@redhat.com>
90623         When the is more than one match in a block, match all of them.
90624         * build-aux/useless-if-before-free: Iterate through each block
90625         until there are no more matches.
90627         Fix broken useless-if-before-free script.
90628         * build-aux/useless-if-before-free: Fix typo: missing "?" after
90629         the expression to match cast of argument to free-like function.
90631 2008-04-29  Eric Blake  <ebb9@byu.net>
90633         Use new header.
90634         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
90636 2008-04-29  Jim Meyering  <meyering@redhat.com>
90638         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
90639         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
90640         by gnulib to exist and to declare e.g., inet_ntop.
90641         Don't include "inet_ntop.h", now removed.
90643         * m4/arpa_inet_h.m4: Remove trailing blanks.
90645 2008-04-29  Eric Blake  <ebb9@byu.net>
90647         Silence valgrind on safe reads beyond potential array bounds.
90648         * lib/rawmemchr.valgrind: New file.
90649         * lib/strchrnul.valgrind: Likewise.
90650         * modules/rawmemchr (Files): Distribute new file.
90651         * modules/strchrnul (Files): Likewise.
90652         Suggested by Bruno Haible.
90654 2008-04-29  Bruno Haible  <bruno@clisp.org>
90656         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
90657         (inet_ntop, inet_pton): Change portability warning's wording.
90658         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
90659         Invoke gl_CHECK_NEXT_HEADERS.
90660         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
90661         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
90662         set ARPA_INET_H.
90663         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90664         * modules/arpa_inet (Description): No longer only for systems that
90665         lack it.
90666         (Depends-on): Add include_next.
90667         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
90668         HAVE_ARPA_INET_H.
90670 2008-04-29  Jim Meyering  <meyering@redhat.com>
90672         * modules/mkdir (License): Re-license as LGPLv2+.
90674 2008-04-29  Bruno Haible  <bruno@clisp.org>
90676         * modules/rawmemchr (Maintainer): Set to Eric.
90677         * modules/strchrnul (Maintainer): Likewise.
90679 2008-04-29  Simon Josefsson  <simon@josefsson.org>
90681         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
90682         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
90684         * modules/arpa_inet (arpa/inet.h): Use them.
90686 2008-04-28  Eric Blake  <ebb9@byu.net>
90688         Test getndelim2.
90689         * modules/getndelim2-tests: New file.
90690         * tests/test-getndelim2.c: Likewise.
90691         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
90692         stream.
90693         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
90695         * MODULES.html.sh: Document new module.
90697 2008-04-20  Bruno Haible  <bruno@clisp.org>
90699         * lib/c-stack.c (die): Use raise.
90700         * modules/c-stack (Depends-on): Add raise.
90702 2008-04-28  Bruno Haible  <bruno@clisp.org>
90704         Expect rpmatch to be declared.
90705         * lib/yesno.c (rpmatch): Remove declaration.
90707         Declare rpmatch.
90708         * lib/stdlib.in.h (rpmatch): New declaration.
90709         * lib/rpmatch.c: Include <stdlib.h> first.
90710         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
90711         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
90712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
90713         HAVE_RPMATCH.
90714         * modules/rpmatch (Depends-on): Add stdlib, extensions.
90715         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90716         (Include): Set to <stdlib.h>.
90717         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
90718         HAVE_RPMATCH.
90719         * NEWS: Document the change.
90721 2008-04-28  Bruno Haible  <bruno@clisp.org>
90723         Change rpmatch to use nl_langinfo when appropriate.
90724         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
90725         (N_): New macro.
90726         (localized_pattern): New function/macro.
90727         (try): Remove match, nomatch arguments. Copy the pattern into safe
90728         memory before caching it.
90729         (rpmatch): Use localized_pattern. Add translator comments.
90730         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
90731         Suggested by Eric Blake.
90732         * modules/rpmatch (Depends-on): Add stdbool.
90734 2008-04-28  Eric Blake  <ebb9@byu.net>
90736         Add rawmemchr module, matching glibc.
90737         * modules/string (Makefile.am): New indicator.
90738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
90739         * lib/string.in.h (rawmemchr): Declare when appropriate.
90740         * modules/rawmemchr: New file.
90741         * m4/rawmemchr.m4: Likewise.
90742         * lib/rawmemchr.c: Likewise.
90743         * modules/rawmemchr-tests: Likewise.
90744         * tests/test-rawmemchr.c: Likewise.
90745         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
90746         module.
90747         * modules/strchrnul (Depends-on): Add rawmemchr.
90748         * lib/strchrnul.c (strchrnul): Optimize a corner case.
90750         Whitespace cleanup.
90751         * tests/test-strchrnul.c: Reindent.
90752         * lib/strchrnul.c: Likewise.
90754         Optimize and test strchrnul.
90755         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
90756         * modules/strchrnul-tests: New file.
90757         * tests/test-strchrnul.c: Likewise.
90759         Remove intprops dependency.
90760         * modules/memchr (Depends-on): Remove intprops.
90761         * modules/memrchr (Depends-on): Likewise.
90762         * modules/memchr2 (Depends-on): Likewise.
90763         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
90764         * lib/memrchr.c (__memrchr): Likewise.
90765         * lib/memrchr2.c (memchr2): Likewise.
90766         Reported by Simon Josefsson.
90768 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90770         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
90771         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90773 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90775         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
90777         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
90779         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
90781         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
90782         declarations.
90783         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
90785         * m4/inet_pton.m4: Don't check for header files.
90787         * m4/inet_ntop.m4: Don't check for header files.
90789 2008-04-28  Simon Josefsson  <simon@josefsson.org>
90791         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
90792         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
90793         trigger for cygwin).
90794         Reported by Bruno Haible  <bruno@clisp.org>.
90796 2008-04-28  Bruno Haible  <bruno@clisp.org>
90798         * doc/posix-functions/strdup.texi: Mention mingw problem.
90800 2008-04-27  Bruno Haible  <bruno@clisp.org>
90802         * modules/stat-time-tests (Depends-on): Add sleep.
90803         * tests/test-stat-time.c (force_unlink): New function.
90804         (cleanup): Use it.
90805         (test_mtime): Remove the ctime related tests.
90806         (test_ctime): New function, containing the ctime related tests.
90807         (main): Call test_ctime, except on native Windows platforms.
90809 2008-04-27  Bruno Haible  <bruno@clisp.org>
90811         * lib/rpmatch.c (rpmatch): Add some comments.
90812         Reported by James Youngman <jay@gnu.org>.
90814 2008-04-27  Bruno Haible  <bruno@clisp.org>
90816         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
90817         quiet NaNs.
90819 2008-04-27  Bruno Haible  <bruno@clisp.org>
90821         Make test-yesno.sh work on mingw.
90822         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
90823         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
90824         (main): Set stdin to binary mode.
90825         * modules/yesno-tests (Depends-on): Add binary-io.
90827 2008-04-27  Bruno Haible  <bruno@clisp.org>
90829         Fix 'isfinite' on x86, x86_64, ia64 platforms.
90830         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
90831         argument that lie outside the IEEE 854 domain.
90832         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
90833         (gl_ISFINITE): Use it.
90834         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
90836 2008-04-27  Bruno Haible  <bruno@clisp.org>
90838         Allow local renaming in config.h.
90839         * lib/memrchr.c (memrchr): Don't undefine outside libc.
90841 2008-04-27  Bruno Haible  <bruno@clisp.org>
90843         * lib/memchr.c (__memchr): Change type of 'i'.
90844         * lib/memchr2.c (memchr2): Likewise.
90846 2008-04-26  Eric Blake  <ebb9@byu.net>
90847         and Bruno Haible  <bruno@clisp.org>
90849         Optimize and test memrchr.
90850         * modules/memrchr (Depends-on): Add intprops.
90851         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
90852         * modules/memrchr-tests: New file.
90853         * tests/test-memrchr.c: New file.
90855 2008-04-26  Bruno Haible  <bruno@clisp.org>
90857         Add tentative support for DragonFly BSD.
90858         * lib/stdio-impl.h: Add macros for DragonFly BSD.
90859         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
90860         fp.
90861         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90862         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
90863         * lib/fpurge.c (fpurge): Likewise.
90864         * lib/freadable.c (freaadable): Likewise.
90865         * lib/freadahead.c (freadahead): Likewise.
90866         * lib/freading.c (freading): Likewise.
90867         * lib/freadptr.c (freadptr): Likewise.
90868         * lib/freadseek.c (freadptrinc): Likewise.
90869         * lib/fseeko.c (fseeko): Likewise.
90870         * lib/fseterr.c (fseterr): Likewise.
90871         * lib/fwritable.c (fwritable): Likewise.
90872         * lib/fwriting.c (fwriting): Likewise.
90874 2008-04-26  Bruno Haible  <bruno@clisp.org>
90876         * lib/stdio-impl.h: New file.
90877         * lib/fbufmode.c: Include stdio-impl.h.
90878         (fbufmode): Use fp_, remove redundant #defines.
90879         * lib/fflush.c: Include stdio-impl.h.
90880         (clear_ungetc_buffer): Remove redundant #defines.
90881         * lib/fpurge.c: Include stdio-impl.h.
90882         (fpurge): Remove redundant #defines.
90883         * lib/freadable.c: Include stdio-impl.h.
90884         (freadable): Remove redundant #defines.
90885         * lib/freadahead.c: Include stdio-impl.h.
90886         (freadahead): Remove redundant #defines.
90887         * lib/freading.c: Include stdio-impl.h.
90888         (freading): Remove redundant #defines.
90889         * lib/freadptr.c: Include stdio-impl.h.
90890         (freadptr): Remove redundant #defines.
90891         * lib/freadseek.c: Include stdio-impl.h.
90892         (freadptrinc): Remove redundant #defines.
90893         * lib/fseeko.c: Include stdio-impl.h.
90894         (rpl_fseeko): Remove redundant #defines.
90895         * lib/fseterr.c: Include stdio-impl.h.
90896         (fseterr): Remove redundant #defines.
90897         * lib/fwritable.c: Include stdio-impl.h.
90898         (fwritable: Remove redundant #defines.
90899         * lib/fwriting.c: Include stdio-impl.h.
90900         (fwriting): Remove redundant #defines.
90901         * modules/fbufmode (Files): Add lib/stdio-impl.h.
90902         * modules/fflush (Files): Likewise.
90903         * modules/fpurge (Files): Likewise.
90904         * modules/freadable (Files): Likewise.
90905         * modules/freadahead (Files): Likewise.
90906         * modules/freading (Files): Likewise.
90907         * modules/freadptr (Files): Likewise.
90908         * modules/freadseek (Files): Likewise.
90909         * modules/fseeko (Files): Likewise.
90910         * modules/fseterr (Files): Likewise.
90911         * modules/fwritable (Files): Likewise.
90912         * modules/fwriting (Files): Likewise.
90914 2008-04-26  Bruno Haible  <bruno@clisp.org>
90916         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
90917         restore_seek_optimization, update_fpos_cache): New functions, extracted
90918         from rpl_fflush.
90919         (rpl_fflush): Use them.
90920         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
90921         (gl_REPLACE_FFLUSH): Use it.
90923 2008-04-26  Bruno Haible  <bruno@clisp.org>
90925         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
90926         on Solaris.
90927         * tests/test-xstrtoimax.sh: Likewise.
90928         * tests/test-xstrtoumax.sh: Likewise.
90929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90931 2008-04-26  Bruno Haible  <bruno@clisp.org>
90933         * modules/memchr-tests: New file.
90934         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
90936 2008-04-26  Eric Blake  <ebb9@byu.net>
90937             Bruno Haible  <bruno@clisp.org>
90939         * lib/memchr.c: Include intprops.h.
90940         (__memchr): Optimize parallel detection of matching bytes. Rename local
90941         variables. Add explanatory comments.
90943 2008-04-26  Bruno Haible  <bruno@clisp.org>
90945         Fix module 'memchr', broken since 2000-10-28.
90946         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
90948 2008-04-26  Bruno Haible  <bruno@clisp.org>
90950         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
90951         comments.
90953 2008-04-25  Eric Blake  <ebb9@byu.net>
90955         Use native fstatat on cygwin 1.7.0.
90956         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
90957         first.
90959 2008-04-23  Eric Blake  <ebb9@byu.net>
90961         Improve memchr2 performance.
90962         * lib/memchr2.c (memchr2): Further optimize parallel detection of
90963         NUL bytes.
90964         * modules/memchr2 (Depends-on): Use intprops.h.
90966 2008-04-23  Simon Josefsson  <simon@josefsson.org>
90968         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
90969         an inline function instead of a CPP macro.  Patch by Ben Pfaff
90970         <blp@cs.stanford.edu>.
90972 2008-04-23  Simon Josefsson  <simon@josefsson.org>
90974         * lib/arpa_inet.in.h: New file.
90976         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
90977         (Makefile.am): Sed in substitute header file.
90979         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
90980         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
90982         * modules/inet_ntop (configure.ac): Use
90983         gl_ARPA_INET_MODULE_INDICATOR.
90985         * modules/inet_pton (configure.ac): Use
90986         gl_ARPA_INET_MODULE_INDICATOR.
90988 2008-04-22  Jim Meyering  <meyering@redhat.com>
90990         * modules/verify (License): Re-license as LGPLv2+.
90992 2008-04-22  Simon Josefsson  <simon@josefsson.org>
90994         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
90995         parameter to void* as per POSIX standard (MinGW uses char*).
90997 2008-04-21  Bruno Haible  <bruno@clisp.org>
90999         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
91000         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
91001         Define to replacements if REPLACE_ISWCNTRL is 1.
91002         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
91003         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
91004         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
91005         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
91006         what it fixes.
91007         * doc/posix-functions/iswalpha.texi: Likewise.
91008         * doc/posix-functions/iswblank.texi: Likewise.
91009         * doc/posix-functions/iswcntrl.texi: Likewise.
91010         * doc/posix-functions/iswdigit.texi: Likewise.
91011         * doc/posix-functions/iswgraph.texi: Likewise.
91012         * doc/posix-functions/iswlower.texi: Likewise.
91013         * doc/posix-functions/iswprint.texi: Likewise.
91014         * doc/posix-functions/iswpunct.texi: Likewise.
91015         * doc/posix-functions/iswspace.texi: Likewise.
91016         * doc/posix-functions/iswupper.texi: Likewise.
91017         * doc/posix-functions/iswxdigit.texi: Likewise.
91018         Reported by Alain Guibert.
91020 2008-04-21  Bruno Haible  <bruno@clisp.org>
91022         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
91023         Patch by Alain Guibert.
91025 2008-04-21  Bruno Haible  <bruno@clisp.org>
91027         Fix test failures on mingw.
91028         * tests/test-xstrtol.c (print_no_progname): New function.
91029         (main): Install it in error_print_progname hook.
91030         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
91031         * tests/test-xstrtoimax.sh: Likewise.
91032         * tests/test-xstrtoumax.sh: Likewise.
91034 2008-04-21  Bruno Haible  <bruno@clisp.org>
91036         Fix test failure on mingw.
91037         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
91039 2008-04-21  Bruno Haible  <bruno@clisp.org>
91041         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
91042         Actually assign a value.
91044 2008-04-20  Bruno Haible  <bruno@clisp.org>
91046         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
91047         take 2.
91048         * lib/canonicalize.c (canonicalize_file_name): Elide if the
91049         'canonicalize-lgpl' module is also used.
91050         * lib/canonicalize-lgpl.c: Undo last change.
91051         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
91053 2008-04-20  Bruno Haible  <bruno@clisp.org>
91055         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
91056         config.h. Provide _mkdir based fallback for mingw.
91057         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
91058         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
91059         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
91060         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
91061         rather than defining mkdir in config.h.
91062         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
91063         (gl_SYS_STAT_H_DEFAULTS): New macro.
91064         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
91065         HAVE_IO_H any more.
91066         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
91067         HAVE_DECL_MKDIR and HAVE_IO_H.
91069 2008-04-20  Bruno Haible  <bruno@clisp.org>
91071         * lib/isapipe.c: Port to native Windows platforms.
91073 2008-04-20  Bruno Haible  <bruno@clisp.org>
91075         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
91077 2008-04-21  Eric Blake  <ebb9@byu.net>
91079         Work around preprocessors that don't handle UINTMAX_MAX.
91080         * lib/memchr2.c (memchr2): Avoid embedded #if.
91081         Reported by Alain Guibert, fix suggested by Bruno Haible.
91083 2008-04-21  Simon Josefsson  <simon@josefsson.org>
91085         * doc/posix-functions/strftime.texi (strftime): Explain better
91086         Windows incompatibility.  Suggested by Micah Cowan
91087         <micah@cowan.name>.
91089 2008-04-20  Bruno Haible  <bruno@clisp.org>
91091         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
91092         unistr/u8-mblen.
91094 2008-04-20  Bruno Haible  <bruno@clisp.org>
91096         Fix test failure on platforms with non-GNU iconv.
91097         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
91098         (U_TO_U8): Use it, rather than u16_to_u8.
91099         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
91100         units at the end of the input string.
91101         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
91103 2008-04-20  Bruno Haible  <bruno@clisp.org>
91105         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
91106         when the resulting length is 0.
91107         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
91109 2008-04-20  Bruno Haible  <bruno@clisp.org>
91111         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
91112         works.
91113         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
91115 2008-04-20  Bruno Haible  <bruno@clisp.org>
91117         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
91118         * modules/tsearch-tests (configure.ac): Test for initstate function.
91120 2008-04-20  Bruno Haible  <bruno@clisp.org>
91122         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
91123         for nlink_t if missing.
91124         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
91126 2008-04-19  Bruno Haible  <bruno@clisp.org>
91128         Work around snprintf bug on Linux libc5.
91129         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
91130         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
91131         gl_SNPRINTF_SIZE1.
91132         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91133         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
91134         that test failed.
91135         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
91136         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
91137         * modules/snprintf (Files): Add m4/printf.m4.
91138         * modules/vsnprintf (Files): Likewise.
91139         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
91140         * doc/posix-functions/vsnprintf.texi: Likewise.
91142 2008-04-19  Bruno Haible  <bruno@clisp.org>
91144         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
91145         from 0.0058 to less than 10^-7.
91147 2008-04-19  Bruno Haible  <bruno@clisp.org>
91149         Fix rounding when a precision is given.
91150         * lib/vasnprintf.c (is_borderline): New function.
91151         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
91152         9...9x.
91153         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
91154         %e, %g.
91155         * tests/test-vasprintf-posix.c (test_function): Likewise.
91156         * tests/test-snprintf-posix.h (test_function): Likewise.
91157         * tests/test-sprintf-posix.h (test_function): Likewise.
91158         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
91159         * tests/test-printf-posix.h (test_function): Likewise.
91160         * tests/test-printf-posix.output: Update.
91161         Reported by John Darrington <john@darrington.wattle.id.au> via
91162         Ben Pfaff <blp@cs.stanford.edu>.
91164 2008-04-18  Simon Josefsson  <simon@josefsson.org>
91166         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
91167         Suggested by Bruno Haible <bruno@clisp.org>.
91169 2008-04-17  Bruno Haible  <bruno@clisp.org>
91171         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
91172         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
91173         implementation.
91174         Patch by Bruce Merry <bmerry@gmail.com>.
91176 2008-04-17  Simon Josefsson  <simon@josefsson.org>
91178         * doc/posix-functions/strftime.texi (strftime): Mention that %e
91179         doesn't work under Windows.
91181 2008-04-16  Bruno Haible  <bruno@clisp.org>
91183         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
91184         New macros.
91185         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
91186         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
91187         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
91188         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
91189         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
91190         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
91191         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
91192         macros.
91193         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
91194         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
91195         Northern Sotho, Uighur.
91197 2008-04-16  Bruno Haible  <bruno@clisp.org>
91199         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
91200         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
91201         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
91202         Reported by Daniel Bergström <daniel@octocode.com>.
91204 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
91205             Bruno Haible  <bruno@clisp.org>
91207         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
91208         function.
91209         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
91210         New functions, mostly extracted from gl_locale_name_default.
91211         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
91213 2008-04-16  Eric Blake  <ebb9@byu.net>
91215         Adjust strtod detection to catch glibc 2.7 bug.
91216         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
91217         Reported by John Gatewood Ham.
91219 2008-04-16  Bruno Haible  <bruno@clisp.org>
91221         Add tentative support for Linux libc5.
91222         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
91223         * lib/fpurge.c (fpurge): Likewise.
91224         * lib/freadable.c (freadable): Likewise.
91225         * lib/freadahead.c (freadahead): Likewise.
91226         * lib/freading.c (freading): Likewise.
91227         * lib/freadptr.c (freadptr): Likewise.
91228         * lib/freadseek.c (freadptrinc): Likewise.
91229         * lib/fseeko.c (rpl_fseeko): Likewise.
91230         * lib/fseterr.c (fseterr): Likewise.
91231         * lib/fwritable.c (fwritable): Likewise.
91232         * lib/fwriting.c (fwriting): Likewise.
91233         Reported by Alain Guibert <alguibert+bts@free.fr>.
91235 2008-04-15  Bruno Haible  <bruno@clisp.org>
91237         * modules/mathl (configure.ac): Define module indicator.
91239 2008-04-15  Bruno Haible  <bruno@clisp.org>
91241         * lib/logl.c (logl): Remove unused variables.
91243 2008-04-15  Bruno Haible  <bruno@clisp.org>
91245         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
91246         fails.
91248 2008-04-15  Bruno Haible  <bruno@clisp.org>
91250         * lib/trim.c (trim2): Fix argument of isspace() macro.
91252 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
91254         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
91255         to 0.
91256         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
91258 2008-04-14  Bruno Haible  <bruno@clisp.org>
91260         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
91261         AC_LANG_PROGRAM argument.
91262         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
91263         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
91264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
91265         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
91266         * m4/math_h.m4 (gl_MATH_H): Likewise.
91267         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
91268         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91269         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
91270         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
91271         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
91272         * m4/regex.m4 (gl_REGEX): Likewise.
91273         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
91274         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
91275         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91276         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
91277         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91278         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91279         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91280         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
91282 2008-04-14  Jim Meyering  <meyering@redhat.com>
91284         test-strtod: fix typos: s/abs/fabs/
91285         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
91287 2008-04-13  Bruno Haible  <bruno@clisp.org>
91289         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
91290         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
91291         module is also used and while not building the reloc-wrapper.
91293 2008-04-13  Bruno Haible  <bruno@clisp.org>
91295         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
91297 2008-04-13  Bruno Haible  <bruno@clisp.org>
91299         Fix AIX compilation failure introduced on 2008-04-02.
91300         * tests/test-frexp.c (exp): Undefine before redefining.
91301         * tests/test-frexpl.c (exp): Likewise.
91303 2008-04-13  Bruno Haible  <bruno@clisp.org>
91305         Work around a HP-UX stdio bug.
91306         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
91307         * tests/test-ftello.c (main): Likewise.
91308         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
91309         * doc/posix-functions/ftello.texi: Likewise.
91311 2008-04-13  Bruno Haible  <bruno@clisp.org>
91313         Make test-signbit pass on HP-UX/hppa.
91314         * tests/test-signbit.c (minus_zerol): New variable.
91315         (test_signbitl): Use it.
91317 2008-04-13  Bruno Haible  <bruno@clisp.org>
91319         Make truncl work on OSF/1 4.0.
91320         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
91321         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91322         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
91323         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
91324         HAVE_DECL_TRUNCL.
91325         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
91326         HAVE_DECL_TRUNCL.
91327         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
91329 2008-04-13  Bruno Haible  <bruno@clisp.org>
91331         * lib/unictype.h: Remove trailing comma from enumeration definitions.
91333 2008-04-13  Bruno Haible  <bruno@clisp.org>
91335         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
91336         expression, so as to avoid HP-UX 11 cc compiler bug.
91338 2008-04-13  Bruno Haible  <bruno@clisp.org>
91340         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
91342 2008-04-13  Bruno Haible  <bruno@clisp.org>
91344         * lib/git-merge-changelog.c: Remove empty declaration outside of
91345         functions.
91347 2008-04-13  Bruno Haible  <bruno@clisp.org>
91349         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
91351 2008-04-13  Bruno Haible  <bruno@clisp.org>
91353         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
91354         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
91355         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
91356         also if it exists but lacks definitions of the SHUT_* macros.
91357         * modules/sys_socket (Description): Update.
91358         Reported by Elbert Pol <e.pol@chello.nl>.
91360 2008-04-13  Bruno Haible  <bruno@clisp.org>
91362         * lib/localcharset.c (OS2): Don't redefine if already defined.
91363         Reported by Elbert Pol <e.pol@chello.nl>.
91365 2008-04-13  Bruno Haible  <bruno@clisp.org>
91367         * lib/binary-io.h [__EMX__]: Include <io.h>.
91368         Reported by Elbert Pol <e.pol@chello.nl>.
91370 2008-04-12  Bruno Haible  <bruno@clisp.org>
91372         * lib/fpucw.h: Enable the definitions also for x86_64.
91373         Needed for NetBSD/x86_64.
91374         Reported by Thomas Klausner <tk@giga.or.at>.
91376 2008-04-12  Bruno Haible  <bruno@clisp.org>
91378         * tests/test-strtod.c: Include isnand.h.
91379         (main): Use isnand instead of isnan.
91380         Reported by Jim Meyering.
91382 2008-04-12  Bruno Haible  <bruno@clisp.org>
91384         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
91385         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
91387 2008-04-12  Jim Meyering  <meyering@redhat.com>
91389         * m4/math_h.m4 (gl_MATH_H): Fix typos.
91391 2008-04-12  Bruno Haible  <bruno@clisp.org>
91393         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
91394         Reported by Elbert Pol <e.pol@chello.nl>.
91396 2008-04-12  Eric Blake  <ebb9@byu.net>
91398         Work around Solaris 10 math.h bug.
91399         * m4/math_h.m4 (gl_MATH_H): Check for bug.
91400         (gl_MATH_H_DEFAULTS): Set up default.
91401         * modules/math (Makefile.am): Replace new indicators.
91402         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
91403         * tests/test-math.c (main): Test this.
91404         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
91405         * doc/posix-headers/math.texi (math.h): Mention bug.
91406         Reported by Nelson H. F. Beebe and Jim Meyering.
91408 2008-04-11  Bruno Haible  <bruno@clisp.org>
91410         Adapt to future versions of Apple GCC.
91411         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
91412         Reported by Peter O'Gorman <peter@pogma.com>.
91414 2008-04-11  Bruno Haible  <bruno@clisp.org>
91416         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
91418 2008-04-11  Bruno Haible  <bruno@clisp.org>
91420         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
91422         * modules/getaddrinfo-tests (Makefile.am): Define
91423         test_getaddrinfo_LDADD.
91425 2008-04-11  Bruno Haible  <bruno@clisp.org>
91427         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
91428         (init): Fix syntax error.
91429         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
91430         is declared.
91432 2008-04-11  Bruno Haible  <bruno@clisp.org>
91434         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
91435         * modules/glob (Depends-on): Add stdbool.
91437 2008-04-11  Bruno Haible  <bruno@clisp.org>
91439         * lib/trim.c: Include <string.h>.
91441 2008-04-11  Eric Blake  <ebb9@byu.net>
91443         Avoid compile failure on OS/2.
91444         * lib/regex_internal.h (internal_function): Disable optimization
91445         on OS/2 (__EMX__), where it caused compiler error.
91446         Reported by Elbert Pol.
91448 2008-04-11  Bruno Haible  <bruno@clisp.org>
91450         Flush the standard error stream before aborting. Needed on mingw.
91451         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
91452         * tests/test-array_list.c (ASSERT): Likewise.
91453         * tests/test-array_oset.c (ASSERT): Likewise.
91454         * tests/test-avltree_list.c (ASSERT): Likewise.
91455         * tests/test-avltree_oset.c (ASSERT): Likewise.
91456         * tests/test-avltreehash_list.c (ASSERT): Likewise.
91457         * tests/test-binary-io.c (ASSERT): Likewise.
91458         * tests/test-byteswap.c (ASSERT): Likewise.
91459         * tests/test-c-ctype.c (ASSERT): Likewise.
91460         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
91461         * tests/test-c-strcasestr.c (ASSERT): Likewise.
91462         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
91463         * tests/test-c-strstr.c (ASSERT): Likewise.
91464         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
91465         * tests/test-canonicalize.c (ASSERT): Likewise.
91466         * tests/test-carray_list.c (ASSERT): Likewise.
91467         * tests/test-ceilf1.c (ASSERT): Likewise.
91468         * tests/test-ceilf2.c (ASSERT): Likewise.
91469         * tests/test-ceill.c (ASSERT): Likewise.
91470         * tests/test-count-one-bits.c (ASSERT): Likewise.
91471         * tests/test-fbufmode.c (ASSERT): Likewise.
91472         * tests/test-fflush2.c (ASSERT): Likewise.
91473         * tests/test-floorf1.c (ASSERT): Likewise.
91474         * tests/test-floorf2.c (ASSERT): Likewise.
91475         * tests/test-floorl.c (ASSERT): Likewise.
91476         * tests/test-fopen.c (ASSERT): Likewise.
91477         * tests/test-fpending.c (ASSERT): Likewise.
91478         * tests/test-fprintf-posix.c (ASSERT): Likewise.
91479         * tests/test-fpurge.c (ASSERT): Likewise.
91480         * tests/test-freadable.c (ASSERT): Likewise.
91481         * tests/test-freadahead.c (ASSERT): Likewise.
91482         * tests/test-freading.c (ASSERT): Likewise.
91483         * tests/test-freadptr.c (ASSERT): Likewise.
91484         * tests/test-freadptr2.c (ASSERT): Likewise.
91485         * tests/test-freadseek.c (ASSERT): Likewise.
91486         * tests/test-freopen.c (ASSERT): Likewise.
91487         * tests/test-frexp.c (ASSERT): Likewise.
91488         * tests/test-frexpl.c (ASSERT): Likewise.
91489         * tests/test-fseek.c (ASSERT): Likewise.
91490         * tests/test-fseeko.c (ASSERT): Likewise.
91491         * tests/test-fstrcmp.c (ASSERT): Likewise.
91492         * tests/test-ftell.c (ASSERT): Likewise.
91493         * tests/test-ftello.c (ASSERT): Likewise.
91494         * tests/test-func.c (ASSERT): Likewise.
91495         * tests/test-fwritable.c (ASSERT): Likewise.
91496         * tests/test-fwriting.c (ASSERT): Likewise.
91497         * tests/test-getdelim.c (ASSERT): Likewise.
91498         * tests/test-getline.c (ASSERT): Likewise.
91499         * tests/test-i-ring.c (ASSERT): Likewise.
91500         * tests/test-iconv-utf.c (ASSERT): Likewise.
91501         * tests/test-iconv.c (ASSERT): Likewise.
91502         * tests/test-isfinite.c (ASSERT): Likewise.
91503         * tests/test-isnand.c (ASSERT): Likewise.
91504         * tests/test-isnanf.c (ASSERT): Likewise.
91505         * tests/test-isnanl.h (ASSERT): Likewise.
91506         * tests/test-ldexpl.c (ASSERT): Likewise.
91507         * tests/test-linked_list.c (ASSERT): Likewise.
91508         * tests/test-linkedhash_list.c (ASSERT): Likewise.
91509         * tests/test-localename.c (ASSERT): Likewise.
91510         * tests/test-lseek.c (ASSERT): Likewise.
91511         * tests/test-mbscasecmp.c (ASSERT): Likewise.
91512         * tests/test-mbscasestr1.c (ASSERT): Likewise.
91513         * tests/test-mbscasestr2.c (ASSERT): Likewise.
91514         * tests/test-mbscasestr3.c (ASSERT): Likewise.
91515         * tests/test-mbscasestr4.c (ASSERT): Likewise.
91516         * tests/test-mbschr.c (ASSERT): Likewise.
91517         * tests/test-mbscspn.c (ASSERT): Likewise.
91518         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
91519         * tests/test-mbspbrk.c (ASSERT): Likewise.
91520         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
91521         * tests/test-mbsrchr.c (ASSERT): Likewise.
91522         * tests/test-mbsspn.c (ASSERT): Likewise.
91523         * tests/test-mbsstr1.c (ASSERT): Likewise.
91524         * tests/test-mbsstr2.c (ASSERT): Likewise.
91525         * tests/test-mbsstr3.c (ASSERT): Likewise.
91526         * tests/test-memchr2.c (ASSERT): Likewise.
91527         * tests/test-memmem.c (ASSERT): Likewise.
91528         * tests/test-open.c (ASSERT): Likewise.
91529         * tests/test-printf-frexp.c (ASSERT): Likewise.
91530         * tests/test-printf-frexpl.c (ASSERT): Likewise.
91531         * tests/test-printf-posix.c (ASSERT): Likewise.
91532         * tests/test-quotearg.c (ASSERT): Likewise.
91533         * tests/test-rbtree_list.c (ASSERT): Likewise.
91534         * tests/test-rbtree_oset.c (ASSERT): Likewise.
91535         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
91536         * tests/test-round1.c (ASSERT): Likewise.
91537         * tests/test-roundf1.c (ASSERT): Likewise.
91538         * tests/test-roundl.c (ASSERT): Likewise.
91539         * tests/test-signbit.c (ASSERT): Likewise.
91540         * tests/test-sleep.c (ASSERT): Likewise.
91541         * tests/test-snprintf-posix.c (ASSERT): Likewise.
91542         * tests/test-snprintf.c (ASSERT): Likewise.
91543         * tests/test-sprintf-posix.c (ASSERT): Likewise.
91544         * tests/test-stat-time.c (ASSERT): Likewise.
91545         * tests/test-strcasestr.c (ASSERT): Likewise.
91546         * tests/test-strerror.c (ASSERT): Likewise.
91547         * tests/test-striconv.c (ASSERT): Likewise.
91548         * tests/test-striconveh.c (ASSERT): Likewise.
91549         * tests/test-striconveha.c (ASSERT): Likewise.
91550         * tests/test-strsignal.c (ASSERT): Likewise.
91551         * tests/test-strstr.c (ASSERT): Likewise.
91552         * tests/test-strtod.c (ASSERT): Likewise.
91553         * tests/test-trunc1.c (ASSERT): Likewise.
91554         * tests/test-trunc2.c (ASSERT): Likewise.
91555         * tests/test-truncf1.c (ASSERT): Likewise.
91556         * tests/test-truncf2.c (ASSERT): Likewise.
91557         * tests/test-truncl.c (ASSERT): Likewise.
91558         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
91559         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
91560         * tests/test-vasnprintf.c (ASSERT): Likewise.
91561         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
91562         * tests/test-vasprintf.c (ASSERT): Likewise.
91563         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
91564         * tests/test-vprintf-posix.c (ASSERT): Likewise.
91565         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
91566         * tests/test-vsnprintf.c (ASSERT): Likewise.
91567         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
91568         * tests/test-wcwidth.c (ASSERT): Likewise.
91569         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
91570         * tests/test-xprintf-posix.c (ASSERT): Likewise.
91571         * tests/test-xvasprintf.c (ASSERT): Likewise.
91572         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
91573         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
91574         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
91575         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
91576         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
91577         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
91578         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
91579         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
91580         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
91581         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
91582         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
91583         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
91584         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
91585         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
91586         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
91587         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
91588         * tests/unictype/test-block_list.c (ASSERT): Likewise.
91589         * tests/unictype/test-block_of.c (ASSERT): Likewise.
91590         * tests/unictype/test-block_test.c (ASSERT): Likewise.
91591         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
91592         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
91593         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
91594         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
91595         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
91596         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
91597         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
91598         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
91599         * tests/unictype/test-combining.c (ASSERT): Likewise.
91600         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
91601         * tests/unictype/test-digit.c (ASSERT): Likewise.
91602         * tests/unictype/test-mirror.c (ASSERT): Likewise.
91603         * tests/unictype/test-numeric.c (ASSERT): Likewise.
91604         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
91605         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
91606         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
91607         * tests/unictype/test-scripts.c (ASSERT): Likewise.
91608         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
91609         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
91610         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
91611         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
91612         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
91613         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
91614         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
91615         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
91616         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
91617         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
91618         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
91619         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
91620         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
91621         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
91622         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
91623         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
91624         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
91625         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
91626         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
91627         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
91628         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
91629         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
91630         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
91631         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
91632         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
91633         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
91634         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
91635         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
91636         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
91637         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
91638         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
91639         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
91640         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
91641         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
91642         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
91643         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
91644         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
91645         Reported by Eric Blake.
91647 2008-04-11  Bruno Haible  <bruno@clisp.org>
91649         * lib/wchar.in.h: Tweak comment.
91651 2008-04-11  Bruno Haible  <bruno@clisp.org>
91653         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
91654         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
91655         gl_COMMON.
91656         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
91658 2008-04-11  Bruno Haible  <bruno@clisp.org>
91660         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
91662 2008-04-11  Simon Josefsson  <simon@josefsson.org>
91664         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
91665         of attempting to use non-existing /dev/*random.  Based on patch
91666         from Adam Strzelecki <ono@java.pl> in
91667         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
91669 2008-04-08  Bruno Haible  <bruno@clisp.org>
91671         Add tentative support for emx+gcc.
91672         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
91673         * lib/fpurge.c (fpurge): Likewise.
91674         * lib/freadable.c (freadable): Likewise.
91675         * lib/freadahead.c (freadahead): Likewise.
91676         * lib/freading.c (freading): Likewise.
91677         * lib/freadptr.c (freadptr): Likewise.
91678         * lib/freadseek.c (freadptrinc): Likewise.
91679         * lib/fseeko.c (rpl_fseeko): Likewise.
91680         * lib/fseterr.c (fseterr): Likewise.
91681         * lib/fwritable.c (fwritable): Likewise.
91682         * lib/fwriting.c (fwriting): Likewise.
91683         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
91685 2008-04-09  Eric Blake  <ebb9@byu.net>
91687         Avoid some autoconf warnings.
91688         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
91689         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
91690         * m4/afs.m4 (gl_AFS): Likewise.
91691         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
91692         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
91693         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
91694         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
91695         (gl_INTEGER_TYPE_SUFFIX): Likewise.
91696         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
91697         (AC_CHECK_DECLS_ONCE): Likewise.
91698         Rename file...
91699         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
91700         gnulib-tool requires autoconf 2.59 or better.
91701         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
91703 2008-04-08  Eric Blake  <ebb9@byu.net>
91705         Use 'git describe --match' if present (added in git 1.5.5).
91706         * build-aux/git-version-gen: Limit result to tags that match 'v*'
91707         if possible.
91709 2008-04-08  Bruno Haible  <bruno@clisp.org>
91711         Add tentative support for OpenServer.
91712         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
91713         _ptr, _cnt.
91714         * lib/fpurge.c (fpurge): Likewise.
91715         * lib/freadable.c (freadable): Likewise.
91716         * lib/freadahead.c (freadahead): Likewise.
91717         * lib/freading.c (freading): Likewise.
91718         * lib/freadptr.c (freadptr): Likewise.
91719         * lib/freadseek.c (freadptrinc): Likewise.
91720         * lib/fseeko.c (rpl_fseeko): Likewise.
91721         * lib/fseterr.c (fseterr): Likewise.
91722         * lib/fwritable.c (fwritable): Likewise.
91723         * lib/fwriting.c (fwriting): Likewise.
91724         Reported by Roger Cornelius <rac@tenzing.org> and
91725         Brian K. White <brian@aljex.com>.
91727 2008-04-06  Jim Meyering  <meyering@redhat.com>
91729         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
91731 2008-04-06  Bruno Haible  <bruno@clisp.org>
91733         Avoid possible error with non-ASCII bytes in UTF-8 locales.
91734         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
91735         * tests/test-printf-posix.sh: Likewise.
91736         * tests/test-vfprintf-posix.sh: Likewise.
91737         * tests/test-vprintf-posix.sh: Likewise.
91738         * tests/test-xprintf-posix.sh: Likewise.
91740 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91742         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
91743         hide error from 'ls', needed on OS/2.
91744         Report by Elbert Pol <elbert.pol@gmail.com>.
91746 2008-04-04  Eric Blake  <ebb9@byu.net>
91748         Make test-fseeko.c failures meaningful.
91749         * tests/test-fseeko.c: Print line number on failure.
91750         * tests/test-fseek.c: Likewise.
91751         Reported by Nelson H. F. Beebe.
91753         Improve strtod bug detection check.
91754         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
91755         required for Solaris 10.
91756         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
91758 2008-04-04  Bruno Haible  <bruno@clisp.org>
91760         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
91761         by m4/setenv.m4.
91763 2008-04-03  Eric Blake  <ebb9@byu.net>
91765         Ensure sane .version contents.
91766         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
91767         version string.
91768         * build-aux/git-version-gen: Improve documentation.
91770         Make GNU make output nicer.
91771         * top/GNUmakefile [!_have-Makefile]: Add dependency on
91772         MAKECMDGOALS to enforce message for all command line targets.  Set
91773         srcdir for use in maint.mk.
91775         Another maintainer tweak.
91776         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
91777         a target that regenerates version.
91779 2008-04-03  Jim Meyering  <meyering@redhat.com>
91781         vc-list-files: don't cause coreutils "make po-check" failure
91782         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
91784 2008-04-03  Eric Blake  <ebb9@byu.net>
91786         Allow VPATH usage of vc-list-files.
91787         * build-aux/vc-list-files (scriptversion): Add timestamp.
91788         (options): Add --help, --version, -C.
91789         (CVS): Support installed cvsu.
91791 2008-04-02  Bruno Haible  <bruno@clisp.org>
91793         Avoid some "statement with no effect" warnings from gcc.
91794         * tests/test-wctype.c (main): Explicitly ignore unused values.
91795         Reported by Jim Meyering.
91797 2008-04-02  Jim Meyering  <meyering@redhat.com>
91799         Avoid some warnings from "gcc -Wshadow".
91800         * tests/test-frexp.c (exp): Define to a different identifier.
91801         * tests/test-frexpl.c (exp): Likewise.
91803 2008-04-03  Jim Meyering  <meyering@redhat.com>
91805         bootstrap: remove dangling *.[ch] symlinks from lib
91806         * build-aux/bootstrap [dangling symlink removal]: Move find's
91807         -depth option to precede all others, to avoid a warning.
91808         Remove *.[ch] files too, and from "$source_base" (usually lib/).
91810 2008-04-02  Bruno Haible  <bruno@clisp.org>
91812         Avoid some warnings from "gcc -Wshadow".
91813         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
91814         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
91815         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
91816         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
91817         Reported by Jim Meyering.
91819 2008-04-01  Bruno Haible  <bruno@clisp.org>
91821         Fix test to work on IRIX 6.5 with cc.
91822         * tests/test-math.c (numeric_equal): New function.
91823         (main): Use it.
91825 2008-04-01  Bruno Haible  <bruno@clisp.org>
91827         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
91829 2008-04-01  Bruno Haible  <bruno@clisp.org>
91831         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
91832         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91833         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
91834         (Depends-on): Remove math.
91836         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
91837         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91838         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
91839         (Depends-on): Remove math.
91841         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
91842         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91843         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
91844         (Depends-on): Remove math.
91845         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
91846         (Depends-on): Remove math.
91848         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
91849         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
91850         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
91851         (Depends-on): Remove math.
91852         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
91853         (Depends-on): Remove math.
91855         * tests/test-round1.c: Include nan.h.
91856         (main): Use NaNd instead of NAN.
91857         * modules/round-tests (Files): Add tests/nan.h.
91859         * tests/test-trunc1.c: Include nan.h.
91860         (main): Use NaNd instead of NAN.
91861         * modules/trunc-tests (Files): Add tests/nan.h.
91863         * tests/test-roundf1.c: Include nan.h.
91864         (main): Use NaNf instead of NAN.
91865         * modules/roundf-tests (Files): Add tests/nan.h.
91867         * tests/test-truncf1.c: Include nan.h.
91868         (main): Use NaNf instead of NAN.
91869         * modules/truncf-tests (Files): Add tests/nan.h.
91871         * tests/test-ceilf1.c: Include nan.h.
91872         (main): Use NaNf instead of NAN.
91873         * modules/ceilf-tests (Files): Add tests/nan.h.
91875         * tests/test-floorf1.c: Include nan.h.
91876         (main): Use NaNf instead of NAN.
91877         * modules/floorf-tests (Files): Add tests/nan.h.
91879         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
91880         (main): Use NaNf instead of NAN.
91881         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
91883         * tests/test-isnand.c: Include nan.h instead of <math.h>.
91884         (main): Use NaNd instead of NAN.
91885         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
91887         * tests/test-frexp.c: Include nan.h.
91888         (main): Use NaNd instead of NAN.
91889         * modules/frexp-tests (Files): Add tests/nan.h.
91891         * lib/isnan.c: Don't include <math.h>.
91892         (FUNC): Don't use NAN macro.
91893         * modules/isnand-nolibm (Depends-on): Remove math.
91894         * modules/isnanf-nolibm (Depends-on): Remove math.
91895         * modules/isnanl (Depends-on): Remove math.
91896         * modules/isnanl-nolibm (Depends-on): Remove math.
91898         * tests/nan.h: New file.
91900 2008-04-01  Eric Blake  <ebb9@byu.net>
91902         Fix typos.
91903         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
91904         values to be the right type.
91906         For now, cater to gnulib strtod inaccuracies.
91907         * tests/test-strtod.c (main): Allow 1-ulp error on expected
91908         fractional results.  While not as nice from a QoI perspective, it
91909         is a quicker patch than correctly implementing decimal to binary
91910         rounding.
91912 2008-03-31  Eric Blake  <ebb9@byu.net>
91914         Guarantee a definition of NAN.
91915         * lib/math.in.h (NAN): Define if missing.
91916         * tests/test-math.c (main): Test it.
91917         * doc/posix-headers/math.texi (math.h): Document this.
91918         * lib/isnan.c (rpl_isnand): Use it.
91919         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
91920         * tests/test-floorf1.c (NaN): Likewise.
91921         * tests/test-frexp.c (NaN): Likewise.
91922         * tests/test-isnand.c (NaN): Likewise.
91923         * tests/test-isnanf.c (NaN): Likewise.
91924         * tests/test-round1.c (NaN): Likewise.
91925         * tests/test-roundf1.c (NaN): Likewise.
91926         * tests/test-snprintf-posix.h (NaN): Likewise.
91927         * tests/test-sprintf-posix.h (NaN): Likewise.
91928         * tests/test-trunc1.c (NaN): Likewise.
91929         * tests/test-truncf1.c (NaN): Likewise.
91930         * tests/test-vasnprintf-posix.c (NaN): Likewise.
91931         * tests/test-vasprintf-posix.c (NaN): Likewise.
91932         * modules/isnand-nolibm (Depends-on): Add math.
91933         * modules/isnanf-nolibm (Depends-on): Likewise.
91934         * modules/isnanl (Depends-on): Likewise.
91935         * modules/isnanl-nolibm (Depends-on): Likewise.
91936         * modules/snprintf-posix-tests (Depends-on): Likewise.
91937         * modules/sprintf-posix-tests (Depends-on): Likewise.
91938         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
91939         * modules/vsprintf-posix-tests (Depends-on): Likewise.
91940         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
91941         * modules/vasprintf-posix-tests (Depends-on): Likewise.
91943 2008-03-31  Bruno Haible  <bruno@clisp.org>
91945         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
91946         * doc/posix-functions/strtod.texi: Likewise.
91948 2008-03-31  Bruno Haible  <bruno@clisp.org>
91950         * tests/test-strtod.c (main): Don't use C99 syntax.
91952 2008-03-31  Bruno Haible  <bruno@clisp.org>
91954         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
91955         Reported by Eric Blake.
91957 2008-03-31  Jim Meyering  <meyering@redhat.com>
91959         Don't compare actual signbit return values.
91960         * tests/test-strtod.c (main): Rather, compare only their
91961         zero/non-zero nature.
91963 2008-03-31  Eric Blake  <ebb9@byu.net>
91965         More strtod documentation.
91966         * doc/posix-functions/strtod.texi (strtod): Interpret more test
91967         failures as distinct bugs.
91969 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
91971         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
91972         Problem reported by Erik Benada in
91973         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
91975 2008-03-30  Bruno Haible  <bruno@clisp.org>
91977         * tests/test-strtod.c: Add comments about which assertion fails on which
91978         platform.
91979         * doc/posix-functions/strtod.texi: Add info about many more platforms.
91981 2008-03-30  Eric Blake  <ebb9@byu.net>
91983         Test signbit behavior on zeros.
91984         * tests/test-signbit.c (test_signbitf): Add tests for zero.
91985         (test_signbitd, test_signbitl): Likewise.
91987         More strtod touchups.
91988         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
91989         sign of negative underflow, for now.  Use .5, not .1.
91990         * doc/posix-functions/strtod.texi (strtod): Mention these
91991         limitations.
91992         Reported by Jim Meyering.
91994 2008-03-30  Bruno Haible  <bruno@clisp.org>
91996         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
91997         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
91999 2008-03-30  Bruno Haible  <bruno@clisp.org>
92001         Avoid failure when attempting to return empty iconv results on some
92002         platforms.
92003         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
92004         allocation, don't report ENOMEM when the resulting string is empty.
92006 2008-03-30  Bruno Haible  <bruno@clisp.org>
92008         Fix buffer overrun.
92009         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
92010         Don't consider the width for tmp_length. Check count against tmp_length
92011         before doing the padding. Ensure enough allocation during padding.
92013 2008-03-30  Eric Blake  <ebb9@byu.net>
92015         strtod touchups.
92016         * lib/strtod.c (strtod): Avoid compiler warnings.
92017         Reported by Jim Meyering.
92019 2008-03-30  Bruno Haible  <bruno@clisp.org>
92021         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
92022         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
92023         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
92024         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
92025         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
92026         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
92027         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
92028         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
92030         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
92031         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
92032         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
92033         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
92034         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
92035         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
92036         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
92037         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
92039         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
92040         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
92041         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
92042         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
92043         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
92044         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
92045         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
92046         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
92048         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
92049         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
92051         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
92052         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
92054         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
92055         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
92057         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
92058         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
92059         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
92061         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
92062         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
92063         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
92065         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
92066         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
92067         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
92069         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
92070         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
92071         * modules/vasprintf (Depends-on): Add EOVERFLOW.
92073         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
92074         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
92075         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
92076         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
92077         (Depends-on): Add EOVERFLOW.
92078         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
92079         (Depends-on): Add EOVERFLOW.
92080         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92081         (Depends-on): Add EOVERFLOW.
92082         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
92083         (Depends-on): Add EOVERFLOW.
92084         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92085         (Depends-on): Add EOVERFLOW.
92086         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
92087         (Depends-on): Add EOVERFLOW.
92088         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92089         (Depends-on): Add EOVERFLOW.
92090         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
92091         (Depends-on): Add EOVERFLOW.
92093         * lib/sprintf.c (EOVERFLOW): Remove fallback.
92094         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
92095         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
92097         * lib/snprintf.c (EOVERFLOW): Remove fallback.
92098         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
92099         * modules/snprintf (Depends-on): Add EOVERFLOW.
92101         * lib/poll.c (EOVERFLOW): Remove fallback.
92102         * modules/poll (Depends-on): Add EOVERFLOW.
92104         * lib/getugroups.c (EOVERFLOW): Remove fallback.
92105         * modules/getugroups (Depends-on): Add EOVERFLOW.
92107         * lib/getdelim.c (EOVERFLOW): Remove fallback.
92108         * modules/getdelim (Depends-on): Add EOVERFLOW.
92110         * lib/ftell.c (EOVERFLOW): Remove fallback.
92111         * modules/ftell (Depends-on): Add EOVERFLOW.
92113         * lib/fprintf.c (EOVERFLOW): Remove fallback.
92114         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
92115         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
92117         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
92119         * modules/EOVERFLOW-tests: New file.
92120         * tests/test-EOVERFLOW.c: New file.
92122         * modules/EOVERFLOW: New file.
92123         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
92125 2008-03-30  Bruno Haible  <bruno@clisp.org>
92127         Fix bug introduced on 2007-06-10.
92128         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
92129         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
92131 2008-03-30  Bruno Haible  <bruno@clisp.org>
92133         Improve freadseek's efficiency after ungetc.
92134         * lib/freadseek.c: Include freadahead.h.
92135         (freadptrinc): New function, extracted from freadseek.
92136         (freadseek): Use it in a loop. Use freadahead to determine the number
92137         of loop iterations.
92138         * modules/freadseek (Depends-on): Add freadahead.
92139         (configure.ac): Require AC_C_INLINE.
92141 2008-03-30  Bruno Haible  <bruno@clisp.org>
92143         * lib/freadseek.c (freadseek): Don't ignore the return value of
92144         freadptr.
92146 2008-03-29  Eric Blake  <ebb9@byu.net>
92148         Add hex float support.
92149         * modules/strtod (Depends-on): Add c-ctype.
92150         (Link): Mention POW_LIB.
92151         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
92152         whitespace between 'e' and exponent.
92153         * tests/test-strtod.c (main): Enable hex float tests.
92154         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
92155         now provides.
92157         Document various strtod bugs, with some fixes.
92158         * doc/posix-functions/strtod.texi (strtod): Document bugs with
92159         "-0x", "inf", "nan", and hex constants.
92160         * doc/posix-functions/atof.texi (atof): Likewise.
92161         * modules/stdlib (Makefile.am): Support strtod.
92162         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
92163         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
92164         detect additional strtod bugs.
92165         * lib/stdlib.in.h (rpl_strtod): Add declarations.
92166         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
92167         bool where appropriate.  Parse 'inf' and 'nan'.
92168         * tests/test-strtod.c: New file.
92169         * modules/strtod (Depends-on): Add stdbool, stdlib.
92170         (configure.ac): Turn on module indicator.
92171         * modules/strtod-tests: New module.
92173 2008-03-29  Eric Blake  <ebb9@byu.net>
92175         Fix ftell on mingw.
92176         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
92177         * modules/ftell-tests (Depends-on): Add binary-io.
92178         * modules/ftello-tests (Depends-on): Likewise.
92179         * tests/test-ftell.c (main): Enhance test to cover behavior after
92180         ungetc.  Enforce binary mode.
92181         * tests/test-ftello.c (main): Likewise.
92183         Pass test-freadseek on cygwin.
92184         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
92185         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
92186         ungetc buffer.
92188         * tests/test-fflush2.c (main): Fix typo.
92190 2008-03-29  Bruno Haible  <bruno@clisp.org>
92192         * tests/test-fflush2.c (main): Temporarily disable the contents of
92193         this test.
92194         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
92195         Reported by Eric Blake.
92197 2008-03-28  Simon Josefsson  <simon@josefsson.org>
92199         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
92200         (GC_SHA224_DIGEST_SIZE): Add.
92202         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
92203         (gc_hash_digest_length): Likewise.
92204         (gc_hash_buffer): Likewise.
92206 2008-03-25  Bruno Haible  <bruno@clisp.org>
92208         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
92209         detail which gettext release to use.
92210         Reported by Simon Josefsson.
92212 2008-03-26  Jim Meyering  <meyering@redhat.com>
92214         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
92215         * modules/gnumakefile (clean-GNUmakefile): Also, use
92216         test ... && ... || : syntax rather than if-then ... fi.
92218         gnumakefile: Don't double-quote-expand $(VPATH) value.
92219         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
92221 2008-03-24  Eric Blake  <ebb9@byu.net>
92223         Alter GNUmakefile to install into top directory.
92224         * modules/maintainer-makefile: Split, and add dependency...
92225         * modules/gnumakefile: to this new module.
92226         * build-aux/GNUmakefile: Move...
92227         * top/GNUmakefile: ...here.
92228         * build-aux/maint.mk: Move...
92229         * top/maint.mk: ...here.
92230         * MODULES.html.sh (Support for maintaining...): Document new
92231         module.
92233 2008-03-23  Bruno Haible  <bruno@clisp.org>
92235         * gnulib-tool: New options --vc-files, --no-vc-files.
92236         (func_usage): Document them.
92237         (vc_files): New variable.
92238         (func_import): Consider vc_files.
92239         (func_create_testdir): Set vc_files to empty.
92240         Suggested by Jim Meyering and Karl Berry.
92242 2008-03-23  Bruno Haible  <bruno@clisp.org>
92244         Fix regex compilation error on HP-UX 11.
92245         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
92246         * modules/regex (Files): Add m4/mbstate_t.m4.
92247         Reported by Ton Voon <ton.voon@altinity.com>.
92249 2008-03-23  Bruno Haible  <bruno@clisp.org>
92251         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
92253 2008-03-23  Eric Blake  <ebb9@byu.net>
92254             Bruno Haible  <bruno@clisp.org>
92256         Install files from top/ in the destination directory.
92257         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
92258         augmentation also for the files from top/.
92259         (func_import, func_create_testdir): Rewrite file names:
92260         top/filename -> filename.
92262 2008-03-23  Bruno Haible  <bruno@clisp.org>
92264         Tweak "gnulib --version" output.
92265         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
92267 2008-03-23  Bruno Haible  <bruno@clisp.org>
92269         Tweak "gnulib --version" output.
92270         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
92271         rather than contents of ChangeLog, when possible.
92273 2008-03-21  Eric Blake  <ebb9@byu.net>
92275         More --version tweaks.
92276         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
92277         date of last ChangeLog entry.
92279 2008-03-21  Jim Meyering  <meyering@redhat.com>
92281         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
92283 2008-03-20  Eric Blake  <ebb9@byu.net>
92285         VPATH fix.
92286         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
92288 2008-03-20  Simon Josefsson  <simon@josefsson.org>
92290         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
92291         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
92293 2008-03-20  Eric Blake  <ebb9@byu.net>
92295         Sync GNUmakefile with coreutils.
92296         * build-aux/GNUmakefile (have-Makefile): Rename...
92297         (_have-Makefile): ...to this, for namespace consideration.
92298         (GNUmakefile.cfg): Include, if present.
92299         (_autoreconf): Define a default.
92300         (_is-dist-target): New rule for rebuilds to pick up intra-release
92301         version.
92302         (maint-cfg.mk): Rename...
92303         (cfg.mk): ...to this.
92305 2008-03-18  Jim Meyering  <meyering@redhat.com>
92307         New script and module: mktempd
92308         * MODULES.html.sh (maint+release support): Add mktempd.
92309         * build-aux/mktempd: New file.
92310         * modules/mktempd: New file.
92312 2008-03-15  Jim Meyering  <meyering@redhat.com>
92314         Undo last change.
92315         * lib/sha1.c, lib/md5.c: 63 != ~63.
92316         Reported by Andreas Schwab.
92318         sha1.c, md5.c: Hoist a redundant expression.
92319         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
92320         "ctx->buflen" only once, before calling *_process_block.
92321         * lib/md5.c (md5_process_bytes): Likewise.
92323 2008-03-14  Eric Blake  <ebb9@byu.net>
92325         Bump copyright year in files generated by gnulib-tool.
92326         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
92327         gnulib-tool, rather than hard-coding it.
92329         Fix 'gnulib-tool --version' output to work with git.
92330         * gnulib-tool (func_gnulib_dir): New function, extracted from...
92331         (startup): ...here.
92332         (func_version): Use it to invoke git-version-gen, rather than
92333         relying on CVS keyword expansion.  Modernize wording.
92334         (cvsdatestamp, last_checkin_date, version): Kill unused
92335         variables.
92337 2008-03-12  Jim Meyering  <meyering@redhat.com>
92339         Recognize optional cast of the argument to free.
92340         * build-aux/useless-if-before-free: Update regexps.
92342         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
92344 2008-03-11  Bruno Haible  <bruno@clisp.org>
92346         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
92347         by a single package.
92348         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
92349         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
92350         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
92351         Reported by Sam Steingold <sds@gnu.org>.
92353 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
92355         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
92356         repositories.
92358 2008-03-11  Bruno Haible  <bruno@clisp.org>
92360         Avoid conflicts between local macro definitions.
92361         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92362         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
92364 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
92365             Bruno Haible  <bruno@clisp.org>
92367         Make va_copy work with some version of xlc on AIX 5.1.
92368         * lib/stdarg.in.h: New file.
92369         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
92370         On AIX, use a <stdarg.h> file substitute.
92371         * modules/stdarg (Files): Add lib/stdarg.in.h.
92372         (Depends-on): Add include_next.
92373         (Makefile.am): Build a stdarg.h substitute if requested.
92374         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
92376 2008-03-10  Bruno Haible  <bruno@clisp.org>
92378         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
92379         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92380         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92382 2008-03-10  Bruno Haible  <bruno@clisp.org>
92384         * modules/stdlib (Depends-on): Add include_next, remove
92385         absolute-header.
92387 2008-03-09  Bruno Haible  <bruno@clisp.org>
92389         * lib/freadahead.h (freadahead): Document more precisely.
92390         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
92391         the sum of both buffer sizes.
92392         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
92393         * NEWS: Document the change.
92395 2008-03-09  Bruno Haible  <bruno@clisp.org>
92397         Extend freadptr to return also the buffer size.
92398         * lib/freadptr.h (freadptr): Add sizep argument.
92399         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
92400         (freadptr): Add sizep argument. Determine buffer size like freadahead
92401         does.
92402         * tests/test-freadptr.c: Don't include freadahead.h.
92403         (main): Adapt for new calling convention of freadptr.
92404         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
92405         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
92406         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
92407         tests/test-freadptr2.sh.
92408         (Depends): Remove freadahead.
92409         (TESTS): Add test-freadptr2.sh.
92410         (check_PROGRAMS): Add test-freadptr2.
92412 2008-03-09  Bruno Haible  <bruno@clisp.org>
92414         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
92415         Report and solution by Simon Josefsson.
92417 2008-03-06  Bruno Haible  <bruno@clisp.org>
92419         Make fflush after ungetc work on BSD platforms.
92420         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
92421         * tests/test-fflush2.c: New file.
92422         * tests/test-fflush2.sh: New file.
92423         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
92424         tests/test-fflush2.c.
92425         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
92426         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
92428 2008-03-06  Eric Blake  <ebb9@byu.net>
92430         Likewise for ftello.
92431         * modules/ftello (Dependencies): Add extensions.
92432         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
92434 2008-03-06  Bruno Haible  <bruno@clisp.org>
92436         * modules/fseeko (Dependencies): Add extensions.
92437         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
92438         Needed on glibc systems.
92440 2008-03-06  Bruno Haible  <bruno@clisp.org>
92442         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
92443         email address.
92444         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92446 2008-03-06  Bruno Haible  <bruno@clisp.org>
92448         * users.txt: Add libgnupdf.
92450 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
92452         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
92453         (Header File Substitutes, Function Substitutes,
92454         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
92455         (Build robot for gnulib): Fix typo.
92457 2008-03-06  Bruno Haible  <bruno@clisp.org>
92459         * doc/gnulib-tool.texi (VCS Issues): Small updates.
92460         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92462 2008-03-06  Bruno Haible  <bruno@clisp.org>
92464         * doc/func.texi: New file, extracted from doc/gnulib.texi.
92465         * doc/gnulib.texi: Include it.
92467 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92469         * modules/func (License): Change license to unlimited; there was
92470         no LGPL parts in the module anyway.
92472 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92474         * modules/__func__: Renamed to modules/func.
92475         * modules/__func__-tests: Renamed to modules/func-tests.
92476         * tests/test-__func__.c: Renamed to tests/test-func.c.
92477         * m4/__func__.m4: Renamed to m4/func.m4.
92478         * doc/gnulib.texi (__func__): Section renamed to func.
92479         Suggested by Eric Blake <ebb9@byu.net>.
92481 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92483         * doc/gnulib.texi (__func__): Use C99 terminology when talking
92484         about __func__.  Make example self-contained.  Suggested by Eric
92485         Blake <ebb9@byu.net>.
92487         * tests/test-__func__.c (main): Avoid extraneous () around __func.
92488         Suggested by Eric Blake <ebb9@byu.net>.
92490 2008-03-06  Simon Josefsson  <simon@josefsson.org>
92492         * modules/__func__: New file.
92493         * modules/__func__-tests: New file.
92494         * tests/test-__func__.c: New file.
92495         * m4/__func__.m4: New file.
92496         * doc/gnulib.texi (__func__): Document __func__ module.
92498 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92500         * modules/byteswap (License): Re-license as LGPLv2+.
92502 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92504         * doc/Makefile: Add pdf target.
92506 2008-03-05  Simon Josefsson  <simon@josefsson.org>
92508         * modules/inline (License): Use 'unlimited', since there are only
92509         *.m4 files in this module.
92511 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92512             Bruno Haible  <bruno@clisp.org>
92514         Add support for HP C 7.1 on OpenVMS 8.3.
92515         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
92517 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
92519         Update VMS specifics.
92520         * lib/getopt.c [VMS]: Remove include of unixlib.h.
92522 2008-03-02  Jim Meyering  <meyering@redhat.com>
92524         Remove the last dependency on the "free" module.
92525         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
92526         Reported by Bob Proulx.
92528         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
92530         Remove useless "if" tests before free.  Deprecate "free" module.
92531         * doc/posix-functions/free.texi: Mention that this
92532         module is no longer useful.
92533         * modules/free (Notice): Say this module is obsolete.
92534         * modules/readutmp (Depends-on): Remove free.
92535         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
92536         * lib/putenv.c (putenv): Likewise.
92537         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
92538         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
92539         * tests/test-c-strcasestr.c (main): Likewise.
92540         * tests/test-c-strstr.c (main): Likewise.
92541         * tests/test-mbscasestr1.c (main): Likewise.
92542         * tests/test-mbscasestr2.c (main): Likewise.
92543         * tests/test-mbsstr1.c (main): Likewise.
92544         * tests/test-mbsstr2.c (main): Likewise.
92545         * tests/test-memmem.c (main): Likewise.
92546         * tests/test-strcasestr.c (main): Likewise.
92547         * tests/test-striconv.c (main): Likewise.
92548         * tests/test-striconveh.c (main): Likewise.
92549         * tests/test-striconveha.c (main): Likewise.
92550         * tests/test-strstr.c (main): Likewise.
92552         * build-aux/git-version-gen: Adjust a comment and the Usage string.
92554         bootstrap: sync from coreutils again
92555         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
92557 2008-03-01  Jim Meyering  <meyering@redhat.com>
92559         bootstrap: sync from coreutils
92560         * build-aux/bootstrap (update_po_files): Copy a .po file into place
92561         also when the target doesn't exist.
92563 2008-03-01  Eric Blake  <ebb9@byu.net>
92565         Fix bugs in last patch.
92566         * lib/memchr2.c (memchr2): Fix typo.
92567         * tests/test-memchr2.c: Test previous bug, and don't use GNU
92568         extension.
92569         Reported by Bruce Korb.
92571         New module 'memchr2'.
92572         * modules/memchr2: New file.
92573         * modules/memchr2-tests: Likewise.
92574         * lib/memchr2.h: Likewise.
92575         * lib/memchr2.c: Likewise, based on memchr.c.
92576         * tests/test-memchr2.c: New test.
92577         * MODULES.html.sh (String handling): Add memchr2.
92579 2008-02-29  Bruno Haible  <bruno@clisp.org>
92581         * modules/freadseek-tests: New file.
92582         * tests/test-freadseek.sh: New file.
92583         * tests/test-freadseek.c: New file.
92585         New module 'freadseek'.
92586         * modules/freadseek: New file.
92587         * lib/freadseek.h: New file.
92588         * lib/freadseek.c: New file.
92589         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
92591 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
92593         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
92594         wydawca.
92596         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
92597         program_invocation_name and program_invocation_short_name are
92598         present.
92600 2008-02-28  Bruno Haible  <bruno@clisp.org>
92602         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
92603         * tests/test-freadptr.sh: Also test non-seekable stdin.
92605 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
92607         * build-aux/bootstrap (source_base, m4_base)
92608         (doc_base, tests_base): New variables.
92609         (gnulib_tool_options): Do not hardcode base directories, use
92610         the above variables instead.
92612 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
92614         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
92616 2008-02-28  Bruno Haible  <bruno@clisp.org>
92618         * modules/freadptr-tests: New file.
92619         * tests/test-freadptr.sh: New file.
92620         * tests/test-freadptr.c: New file.
92622         New module 'freadptr'.
92623         * modules/freadptr: New file.
92624         * lib/freadptr.h: New file.
92625         * lib/freadptr.c: New file.
92626         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
92628 2008-02-26  Karl Berry  <karl@freefriends.org>
92630         Sync from Libtool:
92631         * libltdl/argz.c (argz_add, argz_count): New functions.
92632         * libltdl/argz.in.h: Declare them.
92633         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
92635 2008-02-22  Bruno Haible  <bruno@clisp.org>
92637         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
92638         is a pointer type.  Needed for HP-UX 10.
92639         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
92640         * doc/posix-functions/gmtime_r.texi: Likewise.
92641         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
92643 2008-02-24  Bruno Haible  <bruno@clisp.org>
92645         * modules/environ-tests: New file.
92646         * tests/test-environ.c: New file.
92648         New module 'environ'.
92649         * modules/environ: New file.
92650         * lib/unistd.in.h (environ): New declaration.
92651         * m4/environ.m4: New file.
92652         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
92653         after use.
92654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
92655         HAVE_DECL_ENVIRON.
92656         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
92657         HAVE_DECL_ENVIRON.
92658         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
92659         wrong claim that 'environ' is missing on some systems.
92660         * modules/execute (Depends-on): Add environ.
92661         * lib/execute.c (environ): Remove fallback declaration.
92662         * modules/pipe (Depends-on): Add environ.
92663         * lib/pipe.c (environ): Remove fallback declaration.
92664         * modules/setenv (Depends-on): Add environ.
92665         * lib/setenv.c (environ): Remove fallback declaration.
92666         * modules/unsetenv (Depends-on): Add environ.
92667         * lib/unsetenv.c (environ): Remove fallback declaration.
92668         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
92669         m4/environ.m4.
92670         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
92671         (gl_PREREQ_UNSETENV): Likewise.
92673 2008-02-24  Bruno Haible  <bruno@clisp.org>
92675         * doc/posix-functions/environ.texi: Document the MacOS X problem.
92677 2008-02-20  Bob Proulx  <bob@proulx.com>
92679         Enable use of older two part flavor 'git describe'.
92680         * build-aux/git-version-gen: If using the older two part flavor of
92681         git version then recreate the third part now present in the
92682         newer three part flavor of git describe.
92684 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
92686         * lib/fts.c (fts_build): Typo correction to comment.
92688 2008-02-17  Bruno Haible  <bruno@clisp.org>
92690         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
92691         generating no-op conflicts.
92693 2008-02-17  Bruno Haible  <bruno@clisp.org>
92695         Speed up by 10%.
92696         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
92697         result_entries, rather than an index-based loop.
92699 2008-02-17  Bruno Haible  <bruno@clisp.org>
92701         Speed up by 25%.
92702         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
92703         'hashcode_cached'.
92704         (entry_create): New function.
92705         (entry_hashcode): Use the cached hashcode if possible.
92706         (read_changelog_file, try_split_merged_entry): Use entry_create.
92708 2008-02-17  Bruno Haible  <bruno@clisp.org>
92710         Speed up from O(n^2) to O(n) for long ChangeLog files.
92711         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
92712         (read_changelog_file): Change implementation of entries_reversed list
92713         to rbtreehash.
92714         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
92716 2008-02-17  Bruno Haible  <bruno@clisp.org>
92718         New option --split-merged-entry.
92719         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
92720         (find_paragraph_end, try_split_merged_entry): New functions.
92721         (long_options): Add option --split-merged-entry.
92722         (usage): Document option --split-merged-entry.
92723         (main): Implement option --split-merged-entry.
92724         Reported by Eric Blake.
92726 2008-02-17  Bruno Haible  <bruno@clisp.org>
92728         * lib/git-merge-changelog.c: Include c-strstr.h.
92729         (main): Support the "git pull --rebase" situation.
92730         * modules/git-merge-changelog (Depends-on): Add c-strstr.
92731         Reported by Eric Blake.
92733 2008-02-16  Eric Blake  <ebb9@byu.net>
92735         Avoid doubling \ in common case of "c-maybe" quoting style.
92736         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
92737         eliding outer quotes.
92738         * lib/quotearg.h: Document this.
92739         * tests/test-quotearg.c (result_strings, inputs, results_g)
92740         (flag_results, locale_results): Test it by adding a new string to
92741         each test group.
92742         (compare_strings): Test new string.
92744 2008-02-13  Eric Blake  <ebb9@byu.net>
92746         Avoid trigraph quoting in default output.
92747         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
92748         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
92749         unless explicitly requested.
92750         * tests/test-quotearg.c (flag_results, main): Add additional tests.
92752 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
92754         Don't rely on signed integer overflowing to negative value.
92755         * lib/getugroups.c (getugroups): Include <limits.h>.
92756         Instead, compare against INT_MAX, and increment only if the test passes.
92758 2008-02-13  Jim Meyering  <meyering@redhat.com>
92759         and Eric Blake  <ebb9@byu.net>
92761         Avoid shadowing warning and compile errors on Linux.
92762         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
92763         forwarding macros on Linux.
92764         (dcgettext): Define a stub, for Linux.
92765         (results_g, main): Avoid warnings.
92767 2008-02-12  Eric Blake  <ebb9@byu.net>
92769         Silence warning in last patch.
92770         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
92772         Quotearg part 4: add tests, fix c-maybe colon quoting.
92773         * lib/quotearg.h: Improve documentation.
92774         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
92775         escapes when adding outer quotes.  When quoting trigraphs, use
92776         valid C notation.  When quoting NUL, omit extra characters if next
92777         character is not digit.  Alter prototype.
92778         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
92779         callers.
92780         * modules/quotearg-tests: New module.
92781         * tests/test-quotearg.c: New test.
92783 2008-02-07  Eric Blake  <ebb9@byu.net>
92785         Quotearg part 3: add flag to control outer quote elision.
92786         * lib/quotearg.h (c_maybe_quoting_style): New style.
92787         (enum quoting_flags): Better documentation of flags.
92788         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
92789         c-maybe style.
92790         (quotearg_buffer_restyled): Handle new flag to elide outer
92791         quotes.
92793         Quotearg part 2: add flag that can control NUL elision.
92794         * lib/quotearg.h (set_quoting_flags): New prototype.
92795         * lib/quotearg.c (struct quoting_options): Add flag field.
92796         (set_quoting_flags): New function.
92797         (quotearg_buffer_restyled): Add flags parameter.
92798         (quotearg_alloc_mem): Set the flag if length cannot be returned.
92799         (quotearg_n_options): Set the flag, since length cannot be
92800         returned.
92801         (quoting_options_from_style): Default flags correctly.
92803         Quotearg part 1: more wrappers, restore quotearg_char state.
92804         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
92805         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
92806         (quotearg_colon_mem): New wrappers.
92807         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
92808         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
92809         functions.
92810         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
92811         (quotearg_colon_mem): New functions.
92813 2008-02-11  Bruno Haible  <bruno@clisp.org>
92815         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
92816         library in the current directory: it does not work with parallel make.
92817         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92819 2008-02-11  Bruno Haible  <bruno@clisp.org>
92821         * .gitattributes: New file.
92823 2008-02-11  Jim Meyering  <meyering@redhat.com>
92825         useless-if-before-free: Fix reversed exit values.
92826         * build-aux/useless-if-before-free: Use correct values
92827         for EXIT_MATCH and EXIT_NO_MATCH.
92829         * build-aux/useless-if-before-free: Close stdout carefully.
92831 2008-02-10  Bruno Haible  <bruno@clisp.org>
92833         New module 'git-merge-changelog'.
92834         * modules/git-merge-changelog: New file.
92835         * lib/git-merge-changelog.c: New file.
92837 2008-02-10  Jim Meyering  <meyering@redhat.com>
92839         useless-if-before-free: New option: --list (-l).
92841         useless-if-before-free: Don't exit immediately upon open failure.
92842         * build-aux/useless-if-before-free: Exit 2 for errors.
92843         Upon failure to open a file, don't exit immediately.
92844         Rather, just warn and continue with any remaining files.
92846 2008-02-10  Bruno Haible  <bruno@clisp.org>
92848         New abstract list operation 'node_set_value'.
92849         * lib/gl_list.h (gl_list_node_set_value): New function.
92850         (struct gl_list_implementation): New field node_set_value.
92851         * lib/gl_list.c (gl_list_node_set_value): New function.
92852         * lib/gl_array_list.c (gl_array_node_set_value): New function.
92853         (gl_array_list_implementation): Update.
92854         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
92855         (gl_carray_list_implementation): Update.
92856         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
92857         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
92858         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
92859         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
92860         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
92861         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
92862         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
92863         Update.
92864         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
92865         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
92866         (gl_sublist_list_implementation): Update.
92868 2008-02-10  Bruno Haible  <bruno@clisp.org>
92870         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
92871         Needed when ELEMENT is #defined to 'some_type *'.
92873 2008-02-10  Jim Meyering  <meyering@redhat.com>
92875         New script and module: useless-if-before-free
92876         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
92877         * build-aux/useless-if-before-free: New file.
92878         * modules/useless-if-before-free: New file.
92880         * build-aux/gitlog-to-changelog: Use committer date, not author date.
92882         xstrtol_error: Fix typo.
92883         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
92884         s/exit_failure/exit_status/.
92886 2008-02-09  Jim Meyering  <meyering@redhat.com>
92888         New script and module: gitlog-to-changelog
92889         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
92890         * modules/gitlog-to-changelog: New file.
92891         * build-aux/gitlog-to-changelog: New file.
92893 2008-02-08  Jim Meyering  <meyering@redhat.com>
92895         Avoid two "parameter unused" warnings.
92896         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
92897         Mark "st" as used.
92899         Use "git COMMAND", not "git-COMMAND".
92900         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
92901         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
92902         * build-aux/git-version-gen: Use "git status", not "git-status".
92904 2008-02-07  Bruno Haible  <bruno@clisp.org>
92906         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
92907         Avoids a crash on Windows Vista.
92908         Reported by Adam Strzelecki <ono@java.pl> via
92909         Simon Josefsson <simon@josefsson.org>.
92911 2008-02-06  Bruno Haible  <bruno@clisp.org>
92913         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
92914         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
92915         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
92916         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
92917         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
92918         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
92919         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
92920         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
92921         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
92922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
92923         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
92924         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
92925         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
92926         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
92927         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
92928         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
92929         left-adjust flag.
92930         * tests/test-snprintf-posix.h (test_function): Likewise.
92931         * tests/test-sprintf-posix.h (test_function): Likewise.
92932         * tests/test-vasprintf-posix.c (test_function): Likewise.
92933         * doc/posix-functions/fprintf.texi: Update.
92934         * doc/posix-functions/printf.texi: Update.
92935         * doc/posix-functions/snprintf.texi: Update.
92936         * doc/posix-functions/sprintf.texi: Update.
92937         * doc/posix-functions/vfprintf.texi: Update.
92938         * doc/posix-functions/vprintf.texi: Update.
92939         * doc/posix-functions/vsnprintf.texi: Update.
92940         * doc/posix-functions/vsprintf.texi: Update.
92941         Reported by Peter Fales <psfales@alcatel-lucent.com>.
92943 2008-02-06  Bruno Haible  <bruno@clisp.org>
92945         Fix bug introduced on 2008-01-26.
92946         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
92948 2008-02-06  Bruno Haible  <bruno@clisp.org>
92950         Fix bug introduced on 2007-06-10.
92951         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
92952         !NEED_PRINTF_FLAG_ZERO.
92954 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
92956         getloadavg: use libperfstat on AIX5
92957         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
92959 2008-02-03  Bruno Haible  <bruno@clisp.org>
92961         * lib/diffseq.h: Add comments about required #includes.
92962         Reported by Michael Biggs <gnulib@doubleplum.net>.
92964 2008-02-01  Bruno Haible  <bruno@clisp.org>
92966         * users.txt: Add gnuit.
92968 2008-01-31  Bruno Haible  <bruno@clisp.org>
92970         * lib/md4.c (set_uint32): Mark as inline.
92971         * lib/md5.c (set_uint32): Likewise.
92972         * lib/sha1.c (set_uint32): Likewise.
92973         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
92974         * m4/md5.m4 (gl_MD5): Likewise.
92975         * m4/sha1.m4 (gl_SHA1): Likewise.
92977 2008-01-31  Jim Meyering  <meyering@redhat.com>
92979         Use "sizeof VAR", rather than a literal "4".
92980         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
92981         * lib/md4.c (md4_read_ctx): Likewise.
92982         * lib/sha1.c (sha1_read_ctx): Likewise.
92984 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92986         * tests/test-sha1.c: New file, based on test-md5.c.
92988         * modules/crypto/sha1-tests: New file.
92990 2008-01-31  Simon Josefsson  <simon@josefsson.org>
92992         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
92994 2008-01-31  Jim Meyering  <meyering@redhat.com>
92996         Prefer "sizeof v" over the equivalent "4".
92997         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
92998         * lib/md5.c (set_uint32): Likewise.
92999         * lib/sha1.c (set_uint32): Likewise.
93001 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93003         * lib/sha1.c (set_uint32): Mark function as static.
93005 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93007         md2: clarify comments to say that alignment is not required.
93008         * lib/md2.h: Remove warning about alignment in comment.
93009         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
93010         never been required.
93012 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93014         md4: adapt alignment constraint fix from sha1.
93015         * lib/md4.c (set_uint32): New function, from sha1.c
93016         (md4_read_ctx): Use it.
93017         (md4_finish_ctx): Doc fix.
93018         * lib/md4.h: Doc fix.
93020 2008-01-31  Simon Josefsson  <simon@josefsson.org>
93022         md5: adapt alignment constraint fix from sha1.
93023         * lib/md5.c (set_uint32): New function, from sha1.c
93024         (md5_read_ctx): Use it.
93025         (md5_finish_ctx): Doc fix.
93026         * lib/md5.h: Doc fix.
93028 2008-01-30  Peter Palfrader  <weasel@debian.org>
93030         sha1: remove the result buffer alignment constraint
93031         * lib/sha1.c (set_uint32): New function.
93032         (sha1_read_ctx): Rewrite to remove the result buffer alignment
93033         constraint.
93034         (sha1_finish_ctx): Remove comment warning about alignment constraint.
93035         * lib/sha1.h: Likewise.
93037 2008-01-30  Andreas Schwab  <schwab@suse.de>
93038             Bruno Haible  <bruno@clisp.org>
93040         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
93041         correct definition of LDBL_MIN_EXP.
93043 2008-01-30  Karl Berry  <karl@gnu.org>
93045         * config/srclist-update: try to preserve x bit on updates.
93046         * config/srclistvars.sh: update for karl.
93048 2008-01-29  Jim Meyering  <meyering@redhat.com>
93050         vasnprintf.c: Avoid warning about unused label
93051         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
93052         "overflow" label definition and associated code with the
93053         same cpp condition that guards the sole use of that label.
93055 2008-01-26  Bruno Haible  <bruno@clisp.org>
93057         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
93058         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
93059         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
93060         * lib/isnanl-nolibm.h (isnanl): Likewise.
93061         Reported by Paul Eggert <eggert@cs.ucla.edu>.
93063 2008-01-26  Bruno Haible  <bruno@clisp.org>
93065         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
93066         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
93068 2008-01-26  Bruno Haible  <bruno@clisp.org>
93070         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
93071         GCC >= 4.0 built-in.
93072         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
93074 2008-01-26  Bruno Haible  <bruno@clisp.org>
93076         Rename isnan, applicable to 'double' only, to isnand.
93077         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
93078         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
93079         (configure.ac): Update.
93080         (Include): Replace "isnan.h" with "isnand.h".
93081         * m4/isnand.m4: Renamed from m4/isnan.m4.
93082         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
93083         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
93084         instead of isnan.c.
93085         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
93086         instead of HAVE_ISNAN_IN_LIBC.
93087         (isnand): Renamed from isnan.
93088         * lib/isnand.c: New file.
93089         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
93090         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
93091         (Makefile.am): Update.
93092         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
93093         Include isnand.h instead of isnan.h.
93094         (main): Test isnand instead of isnan.
93095         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
93096         isnan-nolibm.
93097         * modules/frexp (Depends-on): Likewise.
93098         * modules/frexp-tests (Depends-on): Likewise.
93099         * modules/frexp-nolibm (Depends-on): Likewise.
93100         * modules/frexp-nolibm-tests (Depends-on): Likewise.
93101         * modules/isfinite (Depends-on): Likewise.
93102         * modules/round-tests (Depends-on): Likewise.
93103         * modules/signbit (Depends-on): Likewise.
93104         * modules/signbit-tests (Depends-on): Likewise.
93105         * modules/snprintf-posix (Depends-on): Likewise.
93106         * modules/sprintf-posix (Depends-on): Likewise.
93107         * modules/trunc-tests (Depends-on): Likewise.
93108         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
93109         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
93110         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
93111         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
93112         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
93113         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
93114         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
93115         * modules/vasnprintf-posix (Depends-on): Likewise.
93116         * modules/vasprintf-posix (Depends-on): Likewise.
93117         * modules/vfprintf-posix (Depends-on): Likewise.
93118         * modules/vsnprintf-posix (Depends-on): Likewise.
93119         * modules/vsprintf-posix (Depends-on): Likewise.
93120         * lib/frexp.c: Include isnand.h instead of isnan.h.
93121         (ISNAN): Set to isnand instead of isnan.
93122         * lib/isfinite.c: Include isnand.h instead of isnan.h.
93123         (gl_isfinited): Use isnand instead of isnan.
93124         * lib/signbitd.c: Include isnand.h instead of isnan.h.
93125         (gl_signbitd): Use isnand instead of isnan.
93126         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
93127         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
93128         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
93129         (main): Use isnand instead of isnan.
93130         * tests/test-round1.c: Include isnand.h.
93131         (main): Use isnand instead of isnan.
93132         * tests/test-round2.c: Include isnand.h instead of isnan.h.
93133         (ISNAN): Set to isnand instead of isnan.
93134         * tests/test-trunc1.c: Include isnand.h.
93135         (main): Use isnand instead of isnan.
93136         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
93137         (equal): Use isnand instead of isnan.
93138         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
93139         isnand-nolibm.
93140         * NEWS: Mention the change.
93142 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
93143             Bruno Haible  <bruno@clisp.org>
93145         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
93146         the GCC builtins for signbits are present and set
93147         REPLACE_SIGNBIT_USING_GCC if so.
93148         * lib/math.in.h (signbit): Define using GCC builtins if
93149         REPLACE_SIGNBIT_USING_GCC is set.
93150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
93151         REPLACE_SIGNBIT_USING_GCC.
93152         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
93154 2008-01-25  Jim Meyering  <meyering@redhat.com>
93156         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
93157         * lib/poll.c: Include <config.h>, not "config.h".
93158         * tests/test-getaddrinfo.c: Likewise.
93160 2008-01-25  Simon Josefsson  <simon@josefsson.org>
93162         * modules/sockets-tests: New file.
93164 2008-01-24  Simon Josefsson  <simon@josefsson.org>
93166         * modules/sockets: New module, can be used to call WSA_Startup and
93167         WSA_Cleanup when needed.
93169         * lib/sockets.h, lib/sockets.c: New files.
93171         * m4/sockets.m4: New file.
93173         * tests/test-sockets.c: New file.
93175 2008-01-19  Bruno Haible  <bruno@clisp.org>
93177         * doc/posix-headers: Renamed from doc/headers.
93178         * doc/posix-functions: Renamed from doc/functions.
93179         * doc/gnulib.texi: Update.
93181 2008-01-19  Bruno Haible  <bruno@clisp.org>
93183         * doc/glibc-functions/strcasestr.texi: Include contents of
93184         doc/functions/strcasestr.texi, fixing the list of platforms.
93185         * doc/functions/strcasestr.texi: Remove file.
93187 2008-01-19  Bruno Haible  <bruno@clisp.org>
93189         * doc/glibc-functions/memmem.texi: Include contents of
93190         doc/functions/memmem.texi.
93191         * doc/functions/memmem.texi: Remove file.
93193 2008-01-18  Bruno Haible  <bruno@clisp.org>
93195         * doc/glibc-functions/*.texi: New files.
93196         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
93197         to use the new files.
93199 2008-01-17  Bruno Haible  <bruno@clisp.org>
93201         * tests/test-gethostname.c (main): Fix printf statement.
93203 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93205         * modules/gethostname-tests: New file.
93207         * tests/test-gethostname.c: New file.
93209 2008-01-17  Simon Josefsson  <simon@josefsson.org>
93211         * lib/gethostname.c: Include string.h unconditionally, strncpy is
93212         used by the UNAME case.  Reported by Bruno Haible
93213         <bruno@clisp.org>.
93215 2008-01-17  Eric Blake  <ebb9@byu.net>
93217         Convert c-strcasestr to be more efficient.
93218         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
93219         (Depends-on): Add c-strcase, remove malloca, strnlen.
93220         * tests/test-c-strcasestr.c (main): Enhance test.
93221         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
93223 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
93225         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
93226         Use it in creating po/Makevars.
93228 2008-01-15  Simon Josefsson  <simon@josefsson.org>
93230         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
93231         Applications that requires it should initialize libgcrypt
93232         manually.
93234 2008-01-16  Simon Josefsson  <simon@josefsson.org>
93236         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
93238 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
93240         Fix problem with getdate on mingw32 reported by Simon Josefsson
93241         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
93242         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
93243         tzname", when deciding whether to declare tzname.
93244         * lib/strftime.c (tzname): Likewise.
93246 2008-01-15  Bruno Haible  <bruno@clisp.org>
93248         Work around a MacOS X 10.5 bug in frexpl().
93249         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
93250         * doc/functions/frexpl.texi: Document the bug.
93251         Reported by Elias Pipping <pipping@gentoo.org>.
93253 2008-01-14  Eric Blake  <ebb9@byu.net>
93255         Touch up previous patch.
93256         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
93257         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
93259         Convert strcasestr module to use Two-Way algorithm.
93260         * modules/strcasestr-simple: New module, based on the old
93261         strcasestr, but with Two-Way rather than KMP.
93262         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
93263         * lib/string.in.h (rpl_strcasestr): Declare.
93264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
93265         performance.
93266         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
93267         * modules/string (Makefile.am): Support strcasestr.
93268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
93269         * modules/strcasestr-tests (Depends-on): Check for alarm.
93270         * tests/test-strcasestr.c: Augment test.
93271         * lib/str-two-way.h: Clean up stray macro.
93272         * NEWS: Document new module.
93273         * MODULES.html.sh (string handling): Likewise.
93274         * doc/functions/strcasestr.texi: New file.
93275         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
93276         here, since it is not a POSIX function.
93278 2008-01-14  Colin Watson  <cjwatson@debian.org>
93279             Bruno Haible  <bruno@clisp.org>
93281         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
93282         works fine; if not, set REPLACE_STRSIGNAL.
93283         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
93284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93285         REPLACE_STRSIGNAL.
93286         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
93287         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
93288         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
93290 2008-01-14  Bruno Haible  <bruno@clisp.org>
93292         * modules/strsignal (Include): Change to <string.h>.
93294 2008-01-14  Colin Watson  <cjwatson@debian.org>
93296         * modules/argp (Notice): Add a notice recommending to change
93297         XGETTEXT_OPTIONS.
93298         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
93300 2008-01-13  Colin Watson  <cjwatson@debian.org>
93302         * modules/strsignal-tests: New file.
93303         * tests/test-strsignal.c: New file.
93305         * lib/strsignal.c: New file, from glibc with modifications.
93306         * lib/siglist.h: New file, from glibc with modifications.
93307         * lib/string.in.h (strsignal): New declaration.
93308         * m4/strsignal.m4: New file.
93309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
93310         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
93311         * modules/strsignal: New file.
93312         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
93313         HAVE_DECL_STRSIGNAL.
93315 2008-01-13  Bruno Haible  <bruno@clisp.org>
93317         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
93318         locale encoding is not ASCII. Needed for OpenBSD 4.0.
93319         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
93320         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
93322 2008-01-13  Bruno Haible  <bruno@clisp.org>
93324         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
93325         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
93326         * lib/argp.h (__attribute__): Likewise.
93327         * lib/c-stack.c (__attribute__): Likewise.
93328         * lib/error.h (__attribute__): Likewise.
93329         * lib/fts.c (__attribute__): Likewise.
93330         * lib/openat.h (__attribute__): Likewise.
93331         * lib/stdio.in.h (__attribute__): Likewise.
93332         * lib/string.in.h (__attribute__): Likewise.
93333         * lib/utimens.c (__attribute__): Likewise.
93334         * lib/vasnprintf.h (__attribute__): Likewise.
93335         * lib/xalloc.h (__attribute__): Likewise.
93336         * lib/xprintf.h (__attribute__): Likewise.
93337         * lib/xstrtol.h (__attribute__): Likewise.
93338         * lib/xvasprintf.h (__attribute__): Likewise.
93340 2008-01-12  Bruno Haible  <bruno@clisp.org>
93342         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
93343         * doc/glibc-headers/a.out.texi: New file.
93344         * doc/glibc-headers/aliases.texi: New file.
93345         * doc/glibc-headers/alloca.texi: New file.
93346         * doc/glibc-headers/ar.texi: New file.
93347         * doc/glibc-headers/argp.texi: New file.
93348         * doc/glibc-headers/argz.texi: New file.
93349         * doc/glibc-headers/byteswap.texi: New file.
93350         * doc/glibc-headers/crypt.texi: New file.
93351         * doc/glibc-headers/endian.texi: New file.
93352         * doc/glibc-headers/envz.texi: New file.
93353         * doc/glibc-headers/err.texi: New file.
93354         * doc/glibc-headers/error.texi: New file.
93355         * doc/glibc-headers/execinfo.texi: New file.
93356         * doc/glibc-headers/fpu_control.texi: New file.
93357         * doc/glibc-headers/fstab.texi: New file.
93358         * doc/glibc-headers/fts.texi: New file.
93359         * doc/glibc-headers/getopt.texi: New file.
93360         * doc/glibc-headers/ieee754.texi: New file.
93361         * doc/glibc-headers/ifaddrs.texi: New file.
93362         * doc/glibc-headers/libintl.texi: New file.
93363         * doc/glibc-headers/mcheck.texi: New file.
93364         * doc/glibc-headers/mntent.texi: New file.
93365         * doc/glibc-headers/obstack.texi: New file.
93366         * doc/glibc-headers/paths.texi: New file.
93367         * doc/glibc-headers/printf.texi: New file.
93368         * doc/glibc-headers/pty.texi: New file.
93369         * doc/glibc-headers/resolv.texi: New file.
93370         * doc/glibc-headers/shadow.texi: New file.
93371         * doc/glibc-headers/sysexits.texi: New file.
93372         * doc/glibc-headers/ttyent.texi: New file.
93374 2008-01-12  Jim Meyering  <meyering@redhat.com>
93376         announce-gen: emit Gnulib's git-based version string.
93377         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
93378         New option --gnulib-version=V, where V is expected to be
93379         the output of running git describe in the gnulib directory.
93380         (get_tool_versions): Request feedback on xdelta.  I suspect it's
93381         not useful, and plan to stop publishing an xdelta file with each
93382         coreutils release.
93384         * build-aux/announce-gen: Also check for lzma-compressed files.
93386 2008-01-11  Bruno Haible  <bruno@clisp.org>
93388         * tests/test-memmem.c (main): Increase maximum allowed time.
93389         * tests/test-strstr.c (main): Likewise.
93391 2008-01-11  Bruno Haible  <bruno@clisp.org>
93393         * doc/functions/memmem.texi: Add more precisions about platforms.
93394         * doc/functions/strstr.texi: Likewise.
93396 2008-01-10  Eric Blake  <ebb9@byu.net>
93398         * m4/strstr.m4: Delete cruft from copy-n-paste.
93399         Reported by Bruno Haible.
93401 2008-01-10  Bruno Haible  <bruno@clisp.org>
93403         Make c-strstr rely on strstr.
93404         * lib/c-strstr.c: Don't include str-kmp.h.
93405         (c_strstr): Define in terms of strstr.
93406         * modules/c-strstr (Files): Remove lib/str-kmp.h.
93407         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
93409 2008-01-10  Bruno Haible  <bruno@clisp.org>
93411         * doc/gnulib.texi (String Functions in C Locale): New section.
93412         * doc/c-ctype.texi: New file.
93413         * doc/c-strcase.texi: New file.
93414         * doc/c-strcaseeq.texi: New file.
93415         * doc/c-strcasestr.texi: New file.
93416         * doc/c-strstr.texi: New file.
93417         * doc/c-strtod.texi: New file.
93418         * doc/c-strtold.texi: New file.
93420 2008-01-10  Eric Blake  <ebb9@byu.net>
93422         * lib/relocatable.h: Fix a comment.
93424 2008-01-10  Eric Blake  <ebb9@byu.net>
93426         Share two-way algorithm.
93427         * lib/str-two-way.h: New file, merged from...
93428         * lib/memmem.c: ...here...
93429         * lib/strstr.c: ...and here.
93430         * modules/memmem (Files): Use it.
93431         * modules/strstr (Files): Likewise.
93433         Avoid quadratic strstr implementations.
93434         * lib/strstr.c: New file.
93435         * m4/strstr.m4: Likewise.
93436         * modules/strstr: Likewise.
93437         * modules/strstr-tests: Likewise.
93438         * tests/test-strstr.c: Likewise.
93439         * lib/string.in.h (rpl_strstr): Declare.
93440         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
93441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
93442         * modules/string (Makefile.am): Likewise.
93443         * MODULES.html.sh (string handling): Mention new module.
93444         * doc/functions/strstr.texi (strstr): Document the bug.
93446 2008-01-10  Bruno Haible  <bruno@clisp.org>
93448         * lib/relocatable.h (relocate): State whether result is freshly
93449         allocated or not.
93450         * lib/relocatable.c (relocate): Return a freshly allocated string
93451         instead of a pointer to a privately held string.
93452         Reported by Sylvain Beucler <beuc@gnu.org>.
93454 2008-01-10  Colin Watson  <cjwatson@debian.org>
93456         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
93457         s/S_ISNLK/S_ISLNK/.
93459 2008-01-09  Bruno Haible  <bruno@clisp.org>
93461         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
93462         and other files.
93463         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
93464         if it's only a guess.
93465         * modules/memmem: Simplify by depending on memmem-simple.
93467 2008-01-09  Bruno Haible  <bruno@clisp.org>
93469         Work around OpenBSD 4.0 tdelete() bug.
93470         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
93471         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
93472         macros and don't redefine the enum values.
93473         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
93474         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
93475         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
93477 2008-01-09  Bruno Haible  <bruno@clisp.org>
93479         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
93480         (main): Don't perform the tests if setlocale did not install a UTF-8
93481         locale. Needed on OpenBSD 4.0.
93482         * modules/wcwidth-tests (Depends-on): Add localcharset.
93484 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
93486         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
93487         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
93488         * NEWS: announce this.
93489         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
93491 2008-01-09  Simon Josefsson  <simon@josefsson.org>
93492         and Eric Blake  <ebb9@byu.net>
93494         Add memmem-simple module.
93495         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
93496         (gl_FUNC_MEMMEM): Separate performance from presence checks.
93497         * modules/memmem-simple: New file.
93498         * modules/memmem (Description): Tweak.
93499         * MODULES.html.sh (string handling): Mention new module.
93500         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
93501         addressed by memmem-simple.
93502         * NEWS: Document the difference.
93504 2008-01-09  Eric Blake  <ebb9@byu.net>
93506         Give gcc some memmem optimization hints.
93507         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
93508         (strcasestr): Declare as pure.
93509         * modules/memmem (Maintainer): Claim my implementation.
93511 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93513         Support AIX 6.1 and higher.
93514         * build-aux/config.libpath: Likewise.
93515         * build-aux/config.rpath: Likewise.
93517 2008-01-08  Jim Meyering  <meyering@redhat.com>
93518             Bruno Haible  <bruno@clisp.org>
93520         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
93521         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
93522         Reported by Peter Fales in
93523         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
93525 2008-01-08  Bruno Haible  <bruno@clisp.org>
93527         * modules/unictype/category-of (Depends-on): Add
93528         unictype/category-none.
93529         * modules/unictype/category-and-tests (Depends-on): Add
93530         unictype/category-{L,N,Lu,Nd}.
93531         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
93532         * modules/unictype/category-or-tests (Depends-on): Add
93533         unictype/category-{L,N}.
93534         * modules/unictype/category-name-tests (Depends-on): Add
93535         unictype/category-{Z,Nl}.
93536         Reported by Simon Josefsson.
93538 2008-01-08  Bruno Haible  <bruno@clisp.org>
93540         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
93541         convention better.
93542         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
93543         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
93544         Reported by Peter Miller <millerp@canb.auug.org.au>.
93546 2008-01-08  Eric Blake  <ebb9@byu.net>
93548         Rewrite memmem to guarantee linear complexity without malloc.
93549         * lib/memmem.c (memmem): Use Two-Way rather than
93550         Knuth-Morris-Pratt, to allow O(1) space usage.
93551         (critical_factorization, two_way_short_needle)
93552         (two_way_long_needle): New functions.
93553         (knuth_morris_pratt): Delete.
93554         * modules/memmem (Depends-on): No longer need malloca or stdbool.
93555         Add stdint.
93556         * tests/test-memmem.c (main): Add tests for periodic needle and
93557         sublinear performance.
93558         * doc/functions/memmem.texi (memmem): Document other deficiencies
93559         in cygwin and older glibc.
93561 2008-01-08  Bruno Haible  <bruno@clisp.org>
93563         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
93564         augmentation.
93566 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
93568         Add a configure time option: --disable-acl.
93569         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
93570         AC_ARG_ENABLE(acl).
93572 2008-01-06  Simon Josefsson  <simon@josefsson.org>
93574         * tests/test-localename.c: Don't include obsolete "setenv.h".
93576         * modules/localename-tests (Depends-on): Need unsetenv.
93578 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93580         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
93582 2008-01-06  Colin Watson  <cjwatson@debian.org>
93584         * users.txt: Add man-db.
93586 2008-01-07  Bruno Haible  <bruno@clisp.org>
93588         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
93589         previous section name.
93591 2008-01-07  Bruno Haible  <bruno@clisp.org>
93593         * lib/progname.c (set_program_name): Don't strip off a leading
93594         "lt-" prefix outside a .libs directory.
93595         Suggested by Paul Eggert.
93597 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
93598             Bruno Haible  <bruno@clisp.org>
93600         Improve memory cleanup in 'relocatable' module.
93601         * lib/relocatable.h (compute_curr_prefix): Change return type to
93602         'char *'.
93603         * lib/relocatable.c (compute_curr_prefix): Change return type to
93604         'char *'. Free curr_installdir after use.
93605         (relocate): Free curr_prefix_better after use.
93606         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
93608 2008-01-01  Bruno Haible  <bruno@clisp.org>
93610         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
93611         failure on older glibc systems.
93612         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93614 2008-01-05  Eric Blake  <ebb9@byu.net>
93616         Avoid quadratic system memmem.
93617         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
93618         Reported by Ralf Wildenhues.
93620         Fix memmem test for mingw.
93621         * modules/memmem-tests (configure.ac): Check for alarm.
93622         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
93623         it.
93624         * doc/functions/memmem.texi: New file.
93625         * doc/gnulib.texi (Function Substitutes): Add memmem.
93626         Reported by Bruno Haible.
93628 2008-01-04  Bruno Haible  <bruno@clisp.org>
93630         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
93631         Require gl_HEADER_STRINGS_H_DEFAULTS, not
93632         gl_HEADER_STRING_H_DEFAULTS.
93634 2008-01-04  Eric Blake  <ebb9@byu.net>
93636         Shorten duration of memmem test.
93637         * tests/test-memmem.c (main): Use alarm to declare failure if test
93638         is taking too long.
93639         Reported by Ralf Wildenhues.
93641 2007-12-21  Simon Josefsson  <simon@josefsson.org>
93643         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
93644         string, needed by strerror.
93646 2008-01-03  Colin Watson  <cjwatson@debian.org>
93647             Bruno Haible  <bruno@clisp.org>
93649         * doc/gnulib-tool.texi (Localization): New section.
93651 2008-01-02  Bruno Haible  <bruno@clisp.org>
93653         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
93654         variables to 'unsigned char *' type.
93655         Reported by Paul Eggert.
93657 2008-01-02  Jim Meyering  <jim@meyering.net>
93659         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
93661 2007-12-31  Jim Meyering  <jim@meyering.net>
93663         Avoid use of private FTS type name.
93664         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
93666 2007-12-30  Karl Berry  <karl@gnu.org>
93668         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
93669         work around defect in Texinfo and/or the standalone Info browser.
93671 2007-12-30  Bruno Haible  <bruno@clisp.org>
93673         Unify 5 copies of the KMP code.
93674         * lib/str-kmp.h: New file.
93675         * lib/c-strcasestr.c: Include str-kmp.h.
93676         (knuth_morris_pratt): Remove function.
93677         (c_strcasestr): Update.
93678         * lib/c-strstr.c: Include str-kmp.h.
93679         (knuth_morris_pratt): Remove function.
93680         (c_strcasestr): Update.
93681         * lib/mbscasestr.c: Include str-kmp.h.
93682         (knuth_morris_pratt_unibyte): Remove function.
93683         * lib/mbsstr.c: Include str-kmp.h.
93684         (knuth_morris_pratt_unibyte): Remove function.
93685         * lib/strcasestr.c: Include str-kmp.h.
93686         (knuth_morris_pratt): Remove function.
93687         (strcasestr): Update.
93688         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
93689         * modules/c-strstr (Files): Likewise.
93690         * modules/mbscasestr (Files): Likewise.
93691         * modules/mbsstr (Files): Likewise.
93692         * modules/strcasestr (Files): Likewise.
93693         Suggested by Paul Eggert.
93695 2007-12-30  Bruno Haible  <bruno@clisp.org>
93697         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
93698         defined.
93700 2007-12-30  Bruno Haible  <bruno@clisp.org>
93702         * lib/xmalloca.h: Include xalloc.h.
93703         (xnmalloca): New macro.
93705 2007-12-30  Bruno Haible  <bruno@clisp.org>
93707         * lib/malloca.h (nmalloca): New macro.
93708         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
93709         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
93710         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
93711         knuth_morris_pratt_multibyte): Likewise.
93712         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
93713         knuth_morris_pratt_multibyte): Likewise.
93714         * lib/memmem.c (knuth_morris_pratt): Likewise.
93715         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
93717 2007-12-25  Bruno Haible  <bruno@clisp.org>
93719         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
93720         * lib/glob.c: Don't include openat.h.
93721         (link_exists2_p): Add back the code that deals with the
93722         !GLOB_ALTDIRFUNC case.
93723         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
93724         let it do the filename concatenation.
93725         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
93726         * modules/glob (Depends-on): Remove openat.
93728 2007-12-31  Bruno Haible  <bruno@clisp.org>
93730         * modules/dirfd (License): Change to LGPLv2+.
93731         Approved by Jim Meyering.
93733 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
93735         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
93736         when multiplying M by sizeof (size_t).
93738 2007-12-10  Martin Lambers  <marlam@marlam.de>
93740         Override getpagesize on mingw.
93741         * lib/getpagesize.c: New file.
93742         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
93743         * modules/getpagesize (Files): Add lib/getpagesize.c.
93744         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
93745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
93746         REPLACE_GETPAGESIZE.
93747         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
93749 2007-12-25  Bruno Haible  <bruno@clisp.org>
93751         * modules/localcharset (Notice): New field.
93752         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
93753         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
93755 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
93756             Bruno Haible  <bruno@clisp.org>
93758         Avoid using the syntax symbol() in formatted documentation.
93759         * MODULES.html.sh (func_module): When replacing symbol() with a
93760         hyperlink, remove the parentheses. Show an error if some remain.
93761         Recognize and render the '...' syntax.
93762         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
93763         Rework. Add paragraph about GCC's inlining.
93764         * doc/alloca.texi: Likewise.
93765         * doc/error.texi: Remove parentheses from symbol reference.
93766         * doc/gnulib-intro.texi: Likewise.
93767         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
93768         * modules/fnmatch (Description): Reword to say "the ... function".
93769         * modules/full-read (Description): Likewise.
93770         * modules/full-write (Description): Likewise.
93771         * modules/safe-read (Description): Likewise.
93772         * modules/safe-write (Description): Likewise.
93773         * modules/strchrnul (Description): Likewise.
93774         * modules/trim (Description): Likewise.
93775         * modules/error (Description): Remove parentheses from symbol
93776         references.
93777         * modules/verror (Description): Likewise.
93778         Reported by Karl Berry.
93780 2007-12-25  Bruno Haible  <bruno@clisp.org>
93782         Fixup after 2007-10-16 commit.
93783         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
93785 2007-12-24  Bruno Haible  <bruno@clisp.org>
93787         Make --enable-relocatable work with DESTDIR.
93788         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
93789         to compute installdir from destprog.
93790         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
93791         also set the RELOC_DESTDIR variable.
93792         Reported by Левашев Иван <octagram@bluebottle.com>.
93794 2007-12-24  Bruno Haible  <bruno@clisp.org>
93796         Fix link error due to xalloc_die().
93797         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
93798         of xreadlink.
93799         * lib/relocwrapper.c: Update comments.
93800         * build-aux/install-reloc: Remove xreadlink.c from file list.
93801         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
93802         xreadlink.c.
93803         Reported by Левашев Иван <octagram@bluebottle.com>.
93805 2007-12-24  Bruno Haible  <bruno@clisp.org>
93807         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
93808         * lib/setenv.h: Remove file.
93809         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
93810         lib/setenv.h.
93811         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
93812         (Depends-on): Add stdlib.
93813         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
93814         gl_FUNC_UNSETENV.
93815         (Include): Replace setenv.h with <stdlib.h>.
93816         * modules/unsetenv: New file.
93817         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
93818         * lib/unsetenv.c: Include <stdlib.h> first.
93819         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
93820         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
93821         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
93822         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
93823         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
93824         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
93826         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
93827         * doc/functions/unsetenv.texi: Update.
93828         * modules/xsetenv (Depends-on): Add unsetenv.
93829         * modules/getdate (Depends-on): Likewise.
93830         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
93831         * lib/xsetenv.c: Don't include setenv.h.
93832         * lib/getdate.y: Likewise.
93833         * lib/relocwrapper.c: Likewise.
93834         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
93835         (Depends-on): Add stdlib.
93836         * NEWS: Mention the changes.
93837         Reported by Левашев Иван <octagram@bluebottle.com>.
93839 2007-12-23  Bruno Haible  <bruno@clisp.org>
93841         * lib/memmem.c (memmem): Use lowercase variable names. Tab
93842         indentation.
93844 2007-12-23  Bruno Haible  <bruno@clisp.org>
93846         * lib/c-strcasestr.c: Add more comments.
93847         * lib/c-strstr.c: Likewise.
93848         * lib/mbscasestr.c: Likewise.
93849         * lib/mbsstr.c: Likewise.
93850         * lib/strcasestr.c: Likewise.
93851         * lib/memmem.c: Likewise.
93853 2007-12-23  Bruno Haible  <bruno@clisp.org>
93855         * tests/test-memmem.c: Include <string.h> first.
93857 2007-12-22  Bruno Haible  <bruno@clisp.org>
93859         * gnulib-tool (func_create_testdir): Change $auxdir while generating
93860         the contents of $testsbase.
93861         Reported by Ralf Wildenhues.
93863 2007-12-22  Bruno Haible  <bruno@clisp.org>
93865         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
93866         two variables local_ldadd_before, local_ldadd_last.
93868 2007-12-20  Eric Blake  <ebb9@byu.net>
93870         Work around circular library issue when cross-compiling.
93871         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
93872         that progname.o does not need to pull in rpl_memcmp.
93874 2007-12-19  Eric Blake  <ebb9@byu.net>
93876         Fix memmem to avoid O(n^2) worst-case complexity.
93877         * lib/memmem.c (knuth_morris_pratt): New function.
93878         (memmem): Use it if first few naive iterations fail.
93879         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
93880         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
93881         * modules/memchr (License): Likewise.
93882         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
93883         malloca.
93884         * tests/test-memmem.c: Rewrite, borrowing ideas from
93885         test-mbsstr1.c; the old version wouldn't even compile!
93886         * modules/memmem-tests: New file.
93887         * lib/string.in.h (rpl_memmem): Add declaration.
93888         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
93889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
93890         REPLACE_MEMMEM.
93892 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
93894         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
93895         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
93896         before any system include files, and undef after them all.  This
93897         should fix a problem on VMS reported by John E. Malmberg in
93898         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
93900 2007-12-17  Eric Blake  <ebb9@byu.net>
93902         Revert addition of verify, for BSD/OS.
93903         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
93904         can't handle large files, for the sake of obsolete platforms.
93905         * modules/fseeko (Depends-on): Remove verify.
93906         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
93907         * doc/functions/ftello.texi (ftello): Likewise.
93908         * doc/functions/fgetpos.texi (fgetpos): Likewise.
93909         Reported by Larry Jones.
93911 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
93913         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
93914         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
93916 2007-12-17  Jim Meyering  <meyering@redhat.com>
93918         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
93919         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
93920         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
93921         * modules/getcwd (Depends-on): Add openat.
93922         Reported by Petr Salinger.
93924 2007-12-17  Bruno Haible  <bruno@clisp.org>
93926         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
93927         avoid a segmentation fault of the configure test on x86_64 systems.
93929 2007-12-15  Jim Meyering  <meyering@redhat.com>
93931         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
93933 2007-12-13  Eric Blake  <ebb9@byu.net>
93935         Another fseek test.
93936         * tests/test-fseek.c (main): Also test ungetc handling.
93937         * tests/test-fseeko.c (main): Likewise.
93938         * modules/fseeko (Depends-on): Add verify.
93939         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
93940         large.
93941         Reported by Larry Jones.
93943         Fix fseeko on mingw.
93944         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
93945         seek.
93947         Beef up fseek tests.
93948         * tests/test-fseek.c (main): Also test eof handling.
93949         * tests/test-fseeko.c (main): Likewise.
93950         Reported by Larry Jones.
93952 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
93954         Fix fseeko on BSD-based platforms.
93955         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
93956         successful seek.
93958 2007-12-12  Eric Blake  <ebb9@byu.net>
93960         Allow circular dependency of separate libtests.a
93961         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
93962         when use_libtests.
93964 2007-12-11  Eric Blake  <ebb9@byu.net>
93966         Fix bug with -0.0L in previous patch.
93967         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
93968         * tests/test-isnan.c (main): Also test on zeroes.
93969         * tests/test-isnanf.c (main): Likewise.
93970         * tests/test-isnanl.h (main): Likewise.
93972         Detect pseudo-denormals on x86 even when cross-compiling.
93973         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
93974         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
93975         invalid bit patterns that happen to satisfy ==.
93977         Avoid link failures with separate libtests.a.
93978         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
93979         last, to satisfy circular dependencies.
93981 2007-12-11  Eric Blake  <ebb9@byu.net>
93982         and Bruno Haible  <bruno@clisp.org>
93984         Fix OpenBSD 4.0 <float.h> handling of long double.
93985         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
93986         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
93987         * doc/headers/float.texi (float.h): Document OpenBSD bug.
93989 2007-12-11  Jim Meyering  <meyering@redhat.com>
93991         * users.txt: Add libvirt.
93993         Support versions of autoconf prior to 2.59c.
93994         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
93995         if it is not already defined.
93997 2007-12-09  Bruno Haible  <bruno@clisp.org>
93999         Let 'gnulib-tool --import' collect sources needed for the tests in
94000         tests/ rather than in lib/.
94001         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
94002         argument. If true, add rules to generate libtests.a, and put libtests.a
94003         into $(LDADD). Consider source files in subdirectories and set
94004         uses_subdirs.
94005         (func_emit_initmacro_start, func_emit_initmacro_end,
94006         func_emit_initmacro_done): Pass all arguments explicitly.
94007         (func_import): Determine two module lists main_modules,
94008         testsrelated_modules. Determine use_libtests. Determine two variables
94009         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
94010         instead of just sed_transform_lib_file. Determine two variables
94011         main_files and testsrelated_files. Compute 'files' as the union of
94012         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
94013         func_add_or_update. In the generated gnulib-comp.m4, collect the
94014         object files for tests/ in different variables than those for lib/.
94015         Substitute LIBTESTS_LIBDEPS.
94016         (func_create_testdir): Combine the uses_subdirs results from
94017         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
94019 2007-12-09  Bruno Haible  <bruno@clisp.org>
94021         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
94022         the build-aux directory.
94024 2007-12-09  Bruno Haible  <bruno@clisp.org>
94026         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
94027         introduced on 2006-09-09.
94029 2007-12-07  Jim Meyering  <meyering@redhat.com>
94031         Let these macros work also with autoconf-2.59.
94032         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
94033         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
94034         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
94036 2007-12-06  Jim Meyering  <meyering@redhat.com>
94038         Avoid a configure-time syntax error in gl_FUNC_ACL.
94039         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
94040         function in each branch, before testing the cache variable.
94042 2007-12-04  Eric Blake  <ebb9@byu.net>
94044         Make scripts executable.
94045         * build-aux/config.guess: Add execute permissions.
94046         * build-aux/config.sub: Likewise.
94047         * build-aux/gendocs.sh: Likewise.
94049         Fix frexp on mingw.
94050         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
94051         cross-compiling.
94052         * doc/functions/frexp.texi (frexp): Document the bug.
94054         Make cygwin fseeko check more reliable.
94055         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
94056         version numbers, rather than unrelated feature check.
94057         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
94058         * doc/functions/ftello.texi (ftello): Likewise.
94059         Reported by Bruno Haible.
94061         * m4/strerror.m4: Bump version number.
94063 2007-12-03  Bruno Haible  <bruno@clisp.org>
94065         * doc/functions/mprotect.texi: Mention the mingw problem.
94067 2007-12-03  Eric Blake  <ebb9@byu.net>
94069         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
94070         REPLACE_STRERROR is initialized before this macro.
94072 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
94074         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
94075         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
94076         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
94077         put -lsec in even for programs other than 'ls'.  This fixes a problem
94078         for gettext reported by Bruno Haible in
94079         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
94080         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
94081         Add support for Solaris 10.  This isn't efficient, but should get the
94082         job done for now.
94084 2007-12-03  James Youngman  <jay@gnu.org>
94086         * doc/regexprops-generic.texi: change "an close-group" to "a
94087         close-group" and "illegal" to "not allowed".
94089 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94091         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
94092         pr_byname.h. Needed for the rare case when the maintainer has done
94093         "make maintainer-clean" in the source directory and then attempts a
94094         build outside the source directory.
94095         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
94096         scripts_byname.h.
94098 2007-12-02  Martin Lambers  <marlam@marlam.de>
94099             Bruno Haible  <bruno@clisp.org>
94101         * lib/getpagesize.h: Remove file.
94102         * lib/unistd.in.h: Include declaration of getpagesize here.
94103         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
94104         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
94105         HAVE_SYS_PARAM_H.
94106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
94107         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94108         * modules/getpagesize (Files): Remove lib/getpagesize.h.
94109         (Depends-on): Add unistd.
94110         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
94111         (Include): Use <unistd.h> instead of getpagesize.h.
94112         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
94113         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
94114         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
94115         gl_GETPAGESIZE invocation, already handled by module dependency.
94116         * lib/pagealign_alloc.c: Don't include getpagesize.h.
94118 2007-12-02  Bruno Haible  <bruno@clisp.org>
94120         * modules/strings-tests: New file.
94121         * tests/test-strings.c: New file.
94123         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
94124         * lib/strings.in.h: New file.
94125         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
94126         * m4/strings_h.m4: New file.
94127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
94128         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
94129         * modules/strings: New file.
94130         * modules/string (Makefile.am): Update.
94131         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
94132         Reported by Karl Berry.
94134 2007-12-01  Eric Blake  <ebb9@byu.net>
94136         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
94137         accommodate fix in cygwin 1.5.25.
94139 2007-12-01  Jim Meyering  <meyering@redhat.com>
94141         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
94142         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
94143         that would inhibit utf8-optimization of a regexp containing line-
94144         or buffer-anchors, e.g., `^', `$'.
94146 2007-11-30  Bruno Haible  <bruno@clisp.org>
94148         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
94149         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
94150         glthread_recursive_lock_init.
94151         * lib/lock.c (glthread_recursive_lock_init)
94152         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
94153         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94155 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
94157         New function qset_acl, like set_acl but with syscall semantics.
94158         * lib/acl.h (qset_acl): New decl.
94159         * lib/acl.c (qset_acl): New function.
94160         (set_acl): Use new function.  Use more-consistent diagnostics.
94162 2007-11-28  Jim Meyering  <meyering@redhat.com>
94164         * modules/physmem (License): Change from GPL to LGPLv2+.
94166 2007-11-26  Bruno Haible  <bruno@clisp.org>
94168         * lib/vasnprintf.c (decode_long_double): Don't abort if the
94169         'long double' type has excess precision.
94170         Reported by Jim Meyering in
94171         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
94173 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94175         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
94176         Sync from <http://gnu.org/licenses>.
94177         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
94178         with license text from same location.
94179         * doc/maintain.texi, doc/standards.texi:  Sync from
94180         <http://savannah.gnu.org/projects/gnustandards>.
94182 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
94183         and Jim Meyering  <meyering@redhat.com>
94185         Adjust getdate' grammar to accept a slightly more regular language.
94186         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
94187         Before, the former was rejected.
94188         * lib/getdate.y (digits_to_date_time): New function, factored
94189         out of ...
94190         (number): ...here.  Just call digits_to_date_time.
94191         (hybrid): New non-terminal to handle an <unsigned number,
94192         signed relative offset> sequence consistently.
94194 2007-11-18  Jim Meyering  <meyering@redhat.com>
94196         Pull my changes from coreutils:
94197         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
94198         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
94199         use of $gnulib_tool_option_extras, so that it's separated from the
94200         preceding argument.
94202         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
94203         * build-aux/bootstrap (cp_mark_as_generated): Create any required
94204         parent destination directories before copying a file into place.
94206 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
94208         bootstrap: work also with 4-argument variant of AC_INIT
94209         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
94211 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
94213         Port test-getaddrinfo to Solaris.
94214         Problem reported by Bruno Haible in
94215         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
94216         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
94217         explanation of setting 'hints'.
94218         Don't reject an implementation merely because it returns EAI_SERVICE.
94219         (EAI_SERVICE): Define to 0 if not defined.
94221 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
94223         The license of gnu-make and posix-shell is now "GPLed build tool".
94224         * modules/gnu-make (License): Likewise.
94225         * modules/posix-shell (License): Likewise.
94227         New module posix-shell, for determining a POSIX shell
94228         or perhaps something that is close enough to a POSIX shell.
94229         * m4/posix-shell.m4: New file.
94230         * modules/posix-shell: New file.
94232         * MODULES.html.sh: Mention new module.
94234         New module gnu-make, for determining whether we're using GNU Make.
94235         * m4/gnu-make.m4: New file.
94236         * modules/gnu-make: New file.
94237         * MODULES.html.sh: Mention new module.
94239 2007-11-14  Jim Meyering  <meyering@redhat.com>
94241         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
94242         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
94243         use this macro to create a function _definition_.
94244         Remove useless "#undef ARGMATCH_DIE".
94246 2007-11-14  Bruno Haible  <bruno@clisp.org>
94248         * lib/config.charset: Update for OpenBSD 4.1.
94249         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
94251 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
94253         Document 64-bit #if problems in stdint.texi.
94254         * doc/headers/stdint.texi (stdint.h): Mention problems with
94255         64-bit-#if, and how to work around them.
94257         Don't insist on 'long long int' support in the preprocessor.  It
94258         breaks too many things.  For example, PRIdMAX still uses a 'long
94259         long int' format with the latest Sun compiler, even though
94260         HAVE_LONG_LONG_INT isn't defined due to that compiler's
94261         preprocessor problem.  This causes the latest coreutils to dump
94262         core on Solaris 10 sparc with the Sun C compiler.
94263         Instead, fix the 2007-10-16 problem in a different way, by evaluating
94264         the troublesome expressions at configure-time, not at #if-time.
94265         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
94266         preprocessor.
94267         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
94268         compile-time C checks, done at 'configure'-time.
94269         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
94270         * modules/inttypes (Makefile): Substitute the new symbols that
94271         gl_INTTYPES_H now generates.
94272         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
94274 2007-11-12  Bruno Haible  <bruno@clisp.org>
94276         Tests for Unicode character classification functions.
94278         * modules/unictype/bidicategory-byname-tests: New file.
94279         * modules/unictype/bidicategory-name-tests: New file.
94280         * modules/unictype/bidicategory-of-tests: New file.
94281         * modules/unictype/bidicategory-test-tests: New file.
94282         * modules/unictype/block-list-tests: New file.
94283         * modules/unictype/block-of-tests: New file.
94284         * modules/unictype/block-test-tests: New file.
94285         * modules/unictype/category-C-tests: New file.
94286         * modules/unictype/category-Cc-tests: New file.
94287         * modules/unictype/category-Cf-tests: New file.
94288         * modules/unictype/category-Cn-tests: New file.
94289         * modules/unictype/category-Co-tests: New file.
94290         * modules/unictype/category-Cs-tests: New file.
94291         * modules/unictype/category-L-tests: New file.
94292         * modules/unictype/category-Ll-tests: New file.
94293         * modules/unictype/category-Lm-tests: New file.
94294         * modules/unictype/category-Lo-tests: New file.
94295         * modules/unictype/category-Lt-tests: New file.
94296         * modules/unictype/category-Lu-tests: New file.
94297         * modules/unictype/category-M-tests: New file.
94298         * modules/unictype/category-Mc-tests: New file.
94299         * modules/unictype/category-Me-tests: New file.
94300         * modules/unictype/category-Mn-tests: New file.
94301         * modules/unictype/category-N-tests: New file.
94302         * modules/unictype/category-Nd-tests: New file.
94303         * modules/unictype/category-Nl-tests: New file.
94304         * modules/unictype/category-No-tests: New file.
94305         * modules/unictype/category-P-tests: New file.
94306         * modules/unictype/category-Pc-tests: New file.
94307         * modules/unictype/category-Pd-tests: New file.
94308         * modules/unictype/category-Pe-tests: New file.
94309         * modules/unictype/category-Pf-tests: New file.
94310         * modules/unictype/category-Pi-tests: New file.
94311         * modules/unictype/category-Po-tests: New file.
94312         * modules/unictype/category-Ps-tests: New file.
94313         * modules/unictype/category-S-tests: New file.
94314         * modules/unictype/category-Sc-tests: New file.
94315         * modules/unictype/category-Sk-tests: New file.
94316         * modules/unictype/category-Sm-tests: New file.
94317         * modules/unictype/category-So-tests: New file.
94318         * modules/unictype/category-Z-tests: New file.
94319         * modules/unictype/category-Zl-tests: New file.
94320         * modules/unictype/category-Zp-tests: New file.
94321         * modules/unictype/category-Zs-tests: New file.
94322         * modules/unictype/category-and-not-tests: New file.
94323         * modules/unictype/category-and-tests: New file.
94324         * modules/unictype/category-byname-tests: New file.
94325         * modules/unictype/category-name-tests: New file.
94326         * modules/unictype/category-none-tests: New file.
94327         * modules/unictype/category-of-tests: New file.
94328         * modules/unictype/category-or-tests: New file.
94329         * modules/unictype/category-test-withtable-tests: New file.
94330         * modules/unictype/combining-class-tests: New file.
94331         * modules/unictype/ctype-alnum-tests: New file.
94332         * modules/unictype/ctype-alpha-tests: New file.
94333         * modules/unictype/ctype-blank-tests: New file.
94334         * modules/unictype/ctype-cntrl-tests: New file.
94335         * modules/unictype/ctype-digit-tests: New file.
94336         * modules/unictype/ctype-graph-tests: New file.
94337         * modules/unictype/ctype-lower-tests: New file.
94338         * modules/unictype/ctype-print-tests: New file.
94339         * modules/unictype/ctype-punct-tests: New file.
94340         * modules/unictype/ctype-space-tests: New file.
94341         * modules/unictype/ctype-upper-tests: New file.
94342         * modules/unictype/ctype-xdigit-tests: New file.
94343         * modules/unictype/decimal-digit-tests: New file.
94344         * modules/unictype/digit-tests: New file.
94345         * modules/unictype/mirror-tests: New file.
94346         * modules/unictype/numeric-tests: New file.
94347         * modules/unictype/property-alphabetic-tests: New file.
94348         * modules/unictype/property-ascii-hex-digit-tests: New file.
94349         * modules/unictype/property-bidi-arabic-digit-tests: New file.
94350         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
94351         * modules/unictype/property-bidi-block-separator-tests: New file.
94352         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
94353         * modules/unictype/property-bidi-common-separator-tests: New file.
94354         * modules/unictype/property-bidi-control-tests: New file.
94355         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
94356         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
94357         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
94358         * modules/unictype/property-bidi-european-digit-tests: New file.
94359         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
94360         * modules/unictype/property-bidi-left-to-right-tests: New file.
94361         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
94362         * modules/unictype/property-bidi-other-neutral-tests: New file.
94363         * modules/unictype/property-bidi-pdf-tests: New file.
94364         * modules/unictype/property-bidi-segment-separator-tests: New file.
94365         * modules/unictype/property-bidi-whitespace-tests: New file.
94366         * modules/unictype/property-byname-tests: New file.
94367         * modules/unictype/property-combining-tests: New file.
94368         * modules/unictype/property-composite-tests: New file.
94369         * modules/unictype/property-currency-symbol-tests: New file.
94370         * modules/unictype/property-dash-tests: New file.
94371         * modules/unictype/property-decimal-digit-tests: New file.
94372         * modules/unictype/property-default-ignorable-code-point-tests: New file.
94373         * modules/unictype/property-deprecated-tests: New file.
94374         * modules/unictype/property-diacritic-tests: New file.
94375         * modules/unictype/property-extender-tests: New file.
94376         * modules/unictype/property-format-control-tests: New file.
94377         * modules/unictype/property-grapheme-base-tests: New file.
94378         * modules/unictype/property-grapheme-extend-tests: New file.
94379         * modules/unictype/property-grapheme-link-tests: New file.
94380         * modules/unictype/property-hex-digit-tests: New file.
94381         * modules/unictype/property-hyphen-tests: New file.
94382         * modules/unictype/property-id-continue-tests: New file.
94383         * modules/unictype/property-id-start-tests: New file.
94384         * modules/unictype/property-ideographic-tests: New file.
94385         * modules/unictype/property-ids-binary-operator-tests: New file.
94386         * modules/unictype/property-ids-trinary-operator-tests: New file.
94387         * modules/unictype/property-ignorable-control-tests: New file.
94388         * modules/unictype/property-iso-control-tests: New file.
94389         * modules/unictype/property-join-control-tests: New file.
94390         * modules/unictype/property-left-of-pair-tests: New file.
94391         * modules/unictype/property-line-separator-tests: New file.
94392         * modules/unictype/property-logical-order-exception-tests: New file.
94393         * modules/unictype/property-lowercase-tests: New file.
94394         * modules/unictype/property-math-tests: New file.
94395         * modules/unictype/property-non-break-tests: New file.
94396         * modules/unictype/property-not-a-character-tests: New file.
94397         * modules/unictype/property-numeric-tests: New file.
94398         * modules/unictype/property-other-alphabetic-tests: New file.
94399         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
94400         * modules/unictype/property-other-grapheme-extend-tests: New file.
94401         * modules/unictype/property-other-id-continue-tests: New file.
94402         * modules/unictype/property-other-id-start-tests: New file.
94403         * modules/unictype/property-other-lowercase-tests: New file.
94404         * modules/unictype/property-other-math-tests: New file.
94405         * modules/unictype/property-other-uppercase-tests: New file.
94406         * modules/unictype/property-paired-punctuation-tests: New file.
94407         * modules/unictype/property-paragraph-separator-tests: New file.
94408         * modules/unictype/property-pattern-syntax-tests: New file.
94409         * modules/unictype/property-pattern-white-space-tests: New file.
94410         * modules/unictype/property-private-use-tests: New file.
94411         * modules/unictype/property-punctuation-tests: New file.
94412         * modules/unictype/property-quotation-mark-tests: New file.
94413         * modules/unictype/property-radical-tests: New file.
94414         * modules/unictype/property-sentence-terminal-tests: New file.
94415         * modules/unictype/property-soft-dotted-tests: New file.
94416         * modules/unictype/property-space-tests: New file.
94417         * modules/unictype/property-terminal-punctuation-tests: New file.
94418         * modules/unictype/property-test-tests: New file.
94419         * modules/unictype/property-titlecase-tests: New file.
94420         * modules/unictype/property-unassigned-code-value-tests: New file.
94421         * modules/unictype/property-unified-ideograph-tests: New file.
94422         * modules/unictype/property-uppercase-tests: New file.
94423         * modules/unictype/property-variation-selector-tests: New file.
94424         * modules/unictype/property-white-space-tests: New file.
94425         * modules/unictype/property-xid-continue-tests: New file.
94426         * modules/unictype/property-xid-start-tests: New file.
94427         * modules/unictype/property-zero-width-tests: New file.
94428         * modules/unictype/scripts-tests: New file.
94429         * modules/unictype/syntax-c-ident-tests: New file.
94430         * modules/unictype/syntax-c-whitespace-tests: New file.
94431         * modules/unictype/syntax-java-ident-tests: New file.
94432         * modules/unictype/syntax-java-whitespace-tests: New file.
94433         * tests/unictype/test-bidi_byname.c: New file.
94434         * tests/unictype/test-bidi_name.c: New file.
94435         * tests/unictype/test-bidi_of.c: New file.
94436         * tests/unictype/test-bidi_test.c: New file.
94437         * tests/unictype/test-block_list.c: New file.
94438         * tests/unictype/test-block_of.c: New file.
94439         * tests/unictype/test-block_test.c: New file.
94440         * tests/unictype/test-categ_and.c: New file.
94441         * tests/unictype/test-categ_and_not.c: New file.
94442         * tests/unictype/test-categ_byname.c: New file.
94443         * tests/unictype/test-categ_name.c: New file.
94444         * tests/unictype/test-categ_none.c: New file.
94445         * tests/unictype/test-categ_of.c: New file.
94446         * tests/unictype/test-categ_or.c: New file.
94447         * tests/unictype/test-categ_test_withtable.c: New file.
94448         * tests/unictype/test-combining.c: New file.
94449         * tests/unictype/test-decdigit.c: New file.
94450         * tests/unictype/test-digit.c: New file.
94451         * tests/unictype/test-mirror.c: New file.
94452         * tests/unictype/test-numeric.c: New file.
94453         * tests/unictype/test-pr_byname.c: New file.
94454         * tests/unictype/test-pr_test.c: New file.
94455         * tests/unictype/test-predicate-part1.h: New file.
94456         * tests/unictype/test-predicate-part2.h: New file.
94457         * tests/unictype/test-scripts.c: New file.
94458         * tests/unictype/test-sy_c_ident.c: New file.
94459         * tests/unictype/test-sy_java_ident.c: New file.
94461         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
94462         for Unicode 5.0.0.
94463         * tests/unictype/test-categ_Cc.c: Likewise.
94464         * tests/unictype/test-categ_Cf.c: Likewise.
94465         * tests/unictype/test-categ_Cn.c: Likewise.
94466         * tests/unictype/test-categ_Co.c: Likewise.
94467         * tests/unictype/test-categ_Cs.c: Likewise.
94468         * tests/unictype/test-categ_L.c: Likewise.
94469         * tests/unictype/test-categ_Ll.c: Likewise.
94470         * tests/unictype/test-categ_Lm.c: Likewise.
94471         * tests/unictype/test-categ_Lo.c: Likewise.
94472         * tests/unictype/test-categ_Lt.c: Likewise.
94473         * tests/unictype/test-categ_Lu.c: Likewise.
94474         * tests/unictype/test-categ_M.c: Likewise.
94475         * tests/unictype/test-categ_Mc.c: Likewise.
94476         * tests/unictype/test-categ_Me.c: Likewise.
94477         * tests/unictype/test-categ_Mn.c: Likewise.
94478         * tests/unictype/test-categ_N.c: Likewise.
94479         * tests/unictype/test-categ_Nd.c: Likewise.
94480         * tests/unictype/test-categ_Nl.c: Likewise.
94481         * tests/unictype/test-categ_No.c: Likewise.
94482         * tests/unictype/test-categ_P.c: Likewise.
94483         * tests/unictype/test-categ_Pc.c: Likewise.
94484         * tests/unictype/test-categ_Pd.c: Likewise.
94485         * tests/unictype/test-categ_Pe.c: Likewise.
94486         * tests/unictype/test-categ_Pf.c: Likewise.
94487         * tests/unictype/test-categ_Pi.c: Likewise.
94488         * tests/unictype/test-categ_Po.c: Likewise.
94489         * tests/unictype/test-categ_Ps.c: Likewise.
94490         * tests/unictype/test-categ_S.c: Likewise.
94491         * tests/unictype/test-categ_Sc.c: Likewise.
94492         * tests/unictype/test-categ_Sk.c: Likewise.
94493         * tests/unictype/test-categ_Sm.c: Likewise.
94494         * tests/unictype/test-categ_So.c: Likewise.
94495         * tests/unictype/test-categ_Z.c: Likewise.
94496         * tests/unictype/test-categ_Zl.c: Likewise.
94497         * tests/unictype/test-categ_Zp.c: Likewise.
94498         * tests/unictype/test-categ_Zs.c: Likewise.
94499         * tests/unictype/test-ctype_alnum.c: Likewise.
94500         * tests/unictype/test-ctype_alpha.c: Likewise.
94501         * tests/unictype/test-ctype_blank.c: Likewise.
94502         * tests/unictype/test-ctype_cntrl.c: Likewise.
94503         * tests/unictype/test-ctype_digit.c: Likewise.
94504         * tests/unictype/test-ctype_graph.c: Likewise.
94505         * tests/unictype/test-ctype_lower.c: Likewise.
94506         * tests/unictype/test-ctype_print.c: Likewise.
94507         * tests/unictype/test-ctype_punct.c: Likewise.
94508         * tests/unictype/test-ctype_space.c: Likewise.
94509         * tests/unictype/test-ctype_upper.c: Likewise.
94510         * tests/unictype/test-ctype_xdigit.c: Likewise.
94511         * tests/unictype/test-decdigit.h: Likewise.
94512         * tests/unictype/test-digit.h: Likewise.
94513         * tests/unictype/test-numeric.h: Likewise.
94514         * tests/unictype/test-pr_alphabetic.c: Likewise.
94515         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
94516         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
94517         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
94518         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
94519         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
94520         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
94521         * tests/unictype/test-pr_bidi_control.c: Likewise.
94522         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
94523         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
94524         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
94525         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
94526         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
94527         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
94528         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
94529         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
94530         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
94531         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
94532         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
94533         * tests/unictype/test-pr_combining.c: Likewise.
94534         * tests/unictype/test-pr_composite.c: Likewise.
94535         * tests/unictype/test-pr_currency_symbol.c: Likewise.
94536         * tests/unictype/test-pr_dash.c: Likewise.
94537         * tests/unictype/test-pr_decimal_digit.c: Likewise.
94538         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
94539         * tests/unictype/test-pr_deprecated.c: Likewise.
94540         * tests/unictype/test-pr_diacritic.c: Likewise.
94541         * tests/unictype/test-pr_extender.c: Likewise.
94542         * tests/unictype/test-pr_format_control.c: Likewise.
94543         * tests/unictype/test-pr_grapheme_base.c: Likewise.
94544         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
94545         * tests/unictype/test-pr_grapheme_link.c: Likewise.
94546         * tests/unictype/test-pr_hex_digit.c: Likewise.
94547         * tests/unictype/test-pr_hyphen.c: Likewise.
94548         * tests/unictype/test-pr_id_continue.c: Likewise.
94549         * tests/unictype/test-pr_id_start.c: Likewise.
94550         * tests/unictype/test-pr_ideographic.c: Likewise.
94551         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
94552         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
94553         * tests/unictype/test-pr_ignorable_control.c: Likewise.
94554         * tests/unictype/test-pr_iso_control.c: Likewise.
94555         * tests/unictype/test-pr_join_control.c: Likewise.
94556         * tests/unictype/test-pr_left_of_pair.c: Likewise.
94557         * tests/unictype/test-pr_line_separator.c: Likewise.
94558         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
94559         * tests/unictype/test-pr_lowercase.c: Likewise.
94560         * tests/unictype/test-pr_math.c: Likewise.
94561         * tests/unictype/test-pr_non_break.c: Likewise.
94562         * tests/unictype/test-pr_not_a_character.c: Likewise.
94563         * tests/unictype/test-pr_numeric.c: Likewise.
94564         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
94565         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
94566         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
94567         * tests/unictype/test-pr_other_id_continue.c: Likewise.
94568         * tests/unictype/test-pr_other_id_start.c: Likewise.
94569         * tests/unictype/test-pr_other_lowercase.c: Likewise.
94570         * tests/unictype/test-pr_other_math.c: Likewise.
94571         * tests/unictype/test-pr_other_uppercase.c: Likewise.
94572         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
94573         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
94574         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
94575         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
94576         * tests/unictype/test-pr_private_use.c: Likewise.
94577         * tests/unictype/test-pr_punctuation.c: Likewise.
94578         * tests/unictype/test-pr_quotation_mark.c: Likewise.
94579         * tests/unictype/test-pr_radical.c: Likewise.
94580         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
94581         * tests/unictype/test-pr_soft_dotted.c: Likewise.
94582         * tests/unictype/test-pr_space.c: Likewise.
94583         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
94584         * tests/unictype/test-pr_titlecase.c: Likewise.
94585         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
94586         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
94587         * tests/unictype/test-pr_uppercase.c: Likewise.
94588         * tests/unictype/test-pr_variation_selector.c: Likewise.
94589         * tests/unictype/test-pr_white_space.c: Likewise.
94590         * tests/unictype/test-pr_xid_continue.c: Likewise.
94591         * tests/unictype/test-pr_xid_start.c: Likewise.
94592         * tests/unictype/test-pr_zero_width.c: Likewise.
94593         * tests/unictype/test-sy_c_whitespace.c: Likewise.
94594         * tests/unictype/test-sy_java_whitespace.c: Likewise.
94596 2007-11-12  Bruno Haible  <bruno@clisp.org>
94598         Unicode character classification functions.
94599         * lib/unictype.h: New file.
94600         * modules/unictype/base: New file.
94601         * modules/unictype/category-L: New file.
94602         * modules/unictype/category-Lu: New file.
94603         * modules/unictype/category-Ll: New file.
94604         * modules/unictype/category-Lt: New file.
94605         * modules/unictype/category-Lm: New file.
94606         * modules/unictype/category-Lo: New file.
94607         * modules/unictype/category-M: New file.
94608         * modules/unictype/category-Mn: New file.
94609         * modules/unictype/category-Mc: New file.
94610         * modules/unictype/category-Me: New file.
94611         * modules/unictype/category-N: New file.
94612         * modules/unictype/category-Nd: New file.
94613         * modules/unictype/category-Nl: New file.
94614         * modules/unictype/category-No: New file.
94615         * modules/unictype/category-P: New file.
94616         * modules/unictype/category-Pc: New file.
94617         * modules/unictype/category-Pd: New file.
94618         * modules/unictype/category-Ps: New file.
94619         * modules/unictype/category-Pe: New file.
94620         * modules/unictype/category-Pi: New file.
94621         * modules/unictype/category-Pf: New file.
94622         * modules/unictype/category-Po: New file.
94623         * modules/unictype/category-S: New file.
94624         * modules/unictype/category-Sm: New file.
94625         * modules/unictype/category-Sc: New file.
94626         * modules/unictype/category-Sk: New file.
94627         * modules/unictype/category-So: New file.
94628         * modules/unictype/category-Z: New file.
94629         * modules/unictype/category-Zs: New file.
94630         * modules/unictype/category-Zl: New file.
94631         * modules/unictype/category-Zp: New file.
94632         * modules/unictype/category-C: New file.
94633         * modules/unictype/category-Cc: New file.
94634         * modules/unictype/category-Cf: New file.
94635         * modules/unictype/category-Cs: New file.
94636         * modules/unictype/category-Co: New file.
94637         * modules/unictype/category-Cn: New file.
94638         * modules/unictype/category-or: New file.
94639         * modules/unictype/category-of: New file.
94640         * modules/unictype/category-test: New file.
94641         * modules/unictype/category-test-withtable: New file.
94642         * modules/unictype/category-byname: New file.
94643         * modules/unictype/category-none: New file.
94644         * modules/unictype/category-and: New file.
94645         * modules/unictype/category-and-not: New file.
94646         * modules/unictype/category-name: New file.
94647         * modules/unictype/combining-class: New file.
94648         * modules/unictype/category-all: New file.
94649         * modules/unictype/bidicategory-all: New file.
94650         * modules/unictype/bidicategory-byname: New file.
94651         * modules/unictype/bidicategory-name: New file.
94652         * modules/unictype/bidicategory-of: New file.
94653         * modules/unictype/bidicategory-test: New file.
94654         * modules/unictype/decimal-digit: New file.
94655         * modules/unictype/digit: New file.
94656         * modules/unictype/numeric: New file.
94657         * modules/unictype/mirror: New file.
94658         * modules/unictype/property-white-space: New file.
94659         * modules/unictype/property-alphabetic: New file.
94660         * modules/unictype/property-other-alphabetic: New file.
94661         * modules/unictype/property-not-a-character: New file.
94662         * modules/unictype/property-default-ignorable-code-point: New file.
94663         * modules/unictype/property-other-default-ignorable-code-point: New
94664         file.
94665         * modules/unictype/property-deprecated: New file.
94666         * modules/unictype/property-logical-order-exception: New file.
94667         * modules/unictype/property-variation-selector: New file.
94668         * modules/unictype/property-private-use: New file.
94669         * modules/unictype/property-unassigned-code-value: New file.
94670         * modules/unictype/property-uppercase: New file.
94671         * modules/unictype/property-other-uppercase: New file.
94672         * modules/unictype/property-lowercase: New file.
94673         * modules/unictype/property-other-lowercase: New file.
94674         * modules/unictype/property-titlecase: New file.
94675         * modules/unictype/property-soft-dotted: New file.
94676         * modules/unictype/property-id-start: New file.
94677         * modules/unictype/property-other-id-start: New file.
94678         * modules/unictype/property-id-continue: New file.
94679         * modules/unictype/property-other-id-continue: New file.
94680         * modules/unictype/property-xid-start: New file.
94681         * modules/unictype/property-xid-continue: New file.
94682         * modules/unictype/property-pattern-white-space: New file.
94683         * modules/unictype/property-pattern-syntax: New file.
94684         * modules/unictype/property-join-control: New file.
94685         * modules/unictype/property-grapheme-base: New file.
94686         * modules/unictype/property-grapheme-extend: New file.
94687         * modules/unictype/property-other-grapheme-extend: New file.
94688         * modules/unictype/property-grapheme-link: New file.
94689         * modules/unictype/property-bidi-control: New file.
94690         * modules/unictype/property-bidi-left-to-right: New file.
94691         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
94692         * modules/unictype/property-bidi-arabic-right-to-left: New file.
94693         * modules/unictype/property-bidi-european-digit: New file.
94694         * modules/unictype/property-bidi-eur-num-separator: New file.
94695         * modules/unictype/property-bidi-eur-num-terminator: New file.
94696         * modules/unictype/property-bidi-arabic-digit: New file.
94697         * modules/unictype/property-bidi-common-separator: New file.
94698         * modules/unictype/property-bidi-block-separator: New file.
94699         * modules/unictype/property-bidi-segment-separator: New file.
94700         * modules/unictype/property-bidi-whitespace: New file.
94701         * modules/unictype/property-bidi-non-spacing-mark: New file.
94702         * modules/unictype/property-bidi-boundary-neutral: New file.
94703         * modules/unictype/property-bidi-pdf: New file.
94704         * modules/unictype/property-bidi-embedding-or-override: New file.
94705         * modules/unictype/property-bidi-other-neutral: New file.
94706         * modules/unictype/property-hex-digit: New file.
94707         * modules/unictype/property-ascii-hex-digit: New file.
94708         * modules/unictype/property-ideographic: New file.
94709         * modules/unictype/property-unified-ideograph: New file.
94710         * modules/unictype/property-radical: New file.
94711         * modules/unictype/property-ids-binary-operator: New file.
94712         * modules/unictype/property-ids-trinary-operator: New file.
94713         * modules/unictype/property-zero-width: New file.
94714         * modules/unictype/property-space: New file.
94715         * modules/unictype/property-non-break: New file.
94716         * modules/unictype/property-iso-control: New file.
94717         * modules/unictype/property-format-control: New file.
94718         * modules/unictype/property-dash: New file.
94719         * modules/unictype/property-hyphen: New file.
94720         * modules/unictype/property-punctuation: New file.
94721         * modules/unictype/property-line-separator: New file.
94722         * modules/unictype/property-paragraph-separator: New file.
94723         * modules/unictype/property-quotation-mark: New file.
94724         * modules/unictype/property-sentence-terminal: New file.
94725         * modules/unictype/property-terminal-punctuation: New file.
94726         * modules/unictype/property-currency-symbol: New file.
94727         * modules/unictype/property-math: New file.
94728         * modules/unictype/property-other-math: New file.
94729         * modules/unictype/property-paired-punctuation: New file.
94730         * modules/unictype/property-left-of-pair: New file.
94731         * modules/unictype/property-combining: New file.
94732         * modules/unictype/property-composite: New file.
94733         * modules/unictype/property-decimal-digit: New file.
94734         * modules/unictype/property-numeric: New file.
94735         * modules/unictype/property-diacritic: New file.
94736         * modules/unictype/property-extender: New file.
94737         * modules/unictype/property-ignorable-control: New file.
94738         * modules/unictype/property-test: New file.
94739         * modules/unictype/property-byname: New file.
94740         * modules/unictype/property-all: New file.
94741         * modules/unictype/scripts: New file.
94742         * modules/unictype/scripts-all: New file.
94743         * modules/unictype/block-of: New file.
94744         * modules/unictype/block-test: New file.
94745         * modules/unictype/block-list: New file.
94746         * modules/unictype/block-all: New file.
94747         * modules/unictype/syntax-c-whitespace: New file.
94748         * modules/unictype/syntax-java-whitespace: New file.
94749         * modules/unictype/syntax-c-ident: New file.
94750         * modules/unictype/syntax-java-ident: New file.
94751         * modules/unictype/ctype-alnum: New file.
94752         * modules/unictype/ctype-alpha: New file.
94753         * modules/unictype/ctype-cntrl: New file.
94754         * modules/unictype/ctype-digit: New file.
94755         * modules/unictype/ctype-graph: New file.
94756         * modules/unictype/ctype-lower: New file.
94757         * modules/unictype/ctype-print: New file.
94758         * modules/unictype/ctype-punct: New file.
94759         * modules/unictype/ctype-space: New file.
94760         * modules/unictype/ctype-upper: New file.
94761         * modules/unictype/ctype-xdigit: New file.
94762         * modules/unictype/ctype-blank: New file.
94763         * lib/unictype/bidi_byname.c: New file.
94764         * lib/unictype/bidi_name.c: New file.
94765         * lib/unictype/bidi_of.c: New file.
94766         * lib/unictype/bidi_test.c: New file.
94767         * lib/unictype/bitmap.h: New file.
94768         * lib/unictype/block_test.c: New file.
94769         * lib/unictype/blocks.c: New file.
94770         * lib/unictype/categ_C.c: New file.
94771         * lib/unictype/categ_Cc.c: New file.
94772         * lib/unictype/categ_Cf.c: New file.
94773         * lib/unictype/categ_Cn.c: New file.
94774         * lib/unictype/categ_Co.c: New file.
94775         * lib/unictype/categ_Cs.c: New file.
94776         * lib/unictype/categ_L.c: New file.
94777         * lib/unictype/categ_Ll.c: New file.
94778         * lib/unictype/categ_Lm.c: New file.
94779         * lib/unictype/categ_Lo.c: New file.
94780         * lib/unictype/categ_Lt.c: New file.
94781         * lib/unictype/categ_Lu.c: New file.
94782         * lib/unictype/categ_M.c: New file.
94783         * lib/unictype/categ_Mc.c: New file.
94784         * lib/unictype/categ_Me.c: New file.
94785         * lib/unictype/categ_Mn.c: New file.
94786         * lib/unictype/categ_N.c: New file.
94787         * lib/unictype/categ_Nd.c: New file.
94788         * lib/unictype/categ_Nl.c: New file.
94789         * lib/unictype/categ_No.c: New file.
94790         * lib/unictype/categ_P.c: New file.
94791         * lib/unictype/categ_Pc.c: New file.
94792         * lib/unictype/categ_Pd.c: New file.
94793         * lib/unictype/categ_Pe.c: New file.
94794         * lib/unictype/categ_Pf.c: New file.
94795         * lib/unictype/categ_Pi.c: New file.
94796         * lib/unictype/categ_Po.c: New file.
94797         * lib/unictype/categ_Ps.c: New file.
94798         * lib/unictype/categ_S.c: New file.
94799         * lib/unictype/categ_Sc.c: New file.
94800         * lib/unictype/categ_Sk.c: New file.
94801         * lib/unictype/categ_Sm.c: New file.
94802         * lib/unictype/categ_So.c: New file.
94803         * lib/unictype/categ_Z.c: New file.
94804         * lib/unictype/categ_Zl.c: New file.
94805         * lib/unictype/categ_Zp.c: New file.
94806         * lib/unictype/categ_Zs.c: New file.
94807         * lib/unictype/categ_and.c: New file.
94808         * lib/unictype/categ_and_not.c: New file.
94809         * lib/unictype/categ_byname.c: New file.
94810         * lib/unictype/categ_name.c: New file.
94811         * lib/unictype/categ_none.c: New file.
94812         * lib/unictype/categ_of.c: New file.
94813         * lib/unictype/categ_or.c: New file.
94814         * lib/unictype/categ_test.c: New file.
94815         * lib/unictype/combining.c: New file.
94816         * lib/unictype/ctype_alnum.c: New file.
94817         * lib/unictype/ctype_alpha.c: New file.
94818         * lib/unictype/ctype_blank.c: New file.
94819         * lib/unictype/ctype_cntrl.c: New file.
94820         * lib/unictype/ctype_digit.c: New file.
94821         * lib/unictype/ctype_graph.c: New file.
94822         * lib/unictype/ctype_lower.c: New file.
94823         * lib/unictype/ctype_print.c: New file.
94824         * lib/unictype/ctype_punct.c: New file.
94825         * lib/unictype/ctype_space.c: New file.
94826         * lib/unictype/ctype_upper.c: New file.
94827         * lib/unictype/ctype_xdigit.c: New file.
94828         * lib/unictype/decdigit.c: New file.
94829         * lib/unictype/digit.c: New file.
94830         * lib/unictype/identsyntaxmap.h: New file.
94831         * lib/unictype/mirror.c: New file.
94832         * lib/unictype/numeric.c: New file.
94833         * lib/unictype/pr_alphabetic.c: New file.
94834         * lib/unictype/pr_ascii_hex_digit.c: New file.
94835         * lib/unictype/pr_bidi_arabic_digit.c: New file.
94836         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
94837         * lib/unictype/pr_bidi_block_separator.c: New file.
94838         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
94839         * lib/unictype/pr_bidi_common_separator.c: New file.
94840         * lib/unictype/pr_bidi_control.c: New file.
94841         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
94842         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
94843         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
94844         * lib/unictype/pr_bidi_european_digit.c: New file.
94845         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
94846         * lib/unictype/pr_bidi_left_to_right.c: New file.
94847         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
94848         * lib/unictype/pr_bidi_other_neutral.c: New file.
94849         * lib/unictype/pr_bidi_pdf.c: New file.
94850         * lib/unictype/pr_bidi_segment_separator.c: New file.
94851         * lib/unictype/pr_bidi_whitespace.c: New file.
94852         * lib/unictype/pr_byname.c: New file.
94853         * lib/unictype/pr_byname.gperf: New file.
94854         * lib/unictype/pr_combining.c: New file.
94855         * lib/unictype/pr_composite.c: New file.
94856         * lib/unictype/pr_currency_symbol.c: New file.
94857         * lib/unictype/pr_dash.c: New file.
94858         * lib/unictype/pr_decimal_digit.c: New file.
94859         * lib/unictype/pr_default_ignorable_code_point.c: New file.
94860         * lib/unictype/pr_deprecated.c: New file.
94861         * lib/unictype/pr_diacritic.c: New file.
94862         * lib/unictype/pr_extender.c: New file.
94863         * lib/unictype/pr_format_control.c: New file.
94864         * lib/unictype/pr_grapheme_base.c: New file.
94865         * lib/unictype/pr_grapheme_extend.c: New file.
94866         * lib/unictype/pr_grapheme_link.c: New file.
94867         * lib/unictype/pr_hex_digit.c: New file.
94868         * lib/unictype/pr_hyphen.c: New file.
94869         * lib/unictype/pr_id_continue.c: New file.
94870         * lib/unictype/pr_id_start.c: New file.
94871         * lib/unictype/pr_ideographic.c: New file.
94872         * lib/unictype/pr_ids_binary_operator.c: New file.
94873         * lib/unictype/pr_ids_trinary_operator.c: New file.
94874         * lib/unictype/pr_ignorable_control.c: New file.
94875         * lib/unictype/pr_iso_control.c: New file.
94876         * lib/unictype/pr_join_control.c: New file.
94877         * lib/unictype/pr_left_of_pair.c: New file.
94878         * lib/unictype/pr_line_separator.c: New file.
94879         * lib/unictype/pr_logical_order_exception.c: New file.
94880         * lib/unictype/pr_lowercase.c: New file.
94881         * lib/unictype/pr_math.c: New file.
94882         * lib/unictype/pr_non_break.c: New file.
94883         * lib/unictype/pr_not_a_character.c: New file.
94884         * lib/unictype/pr_numeric.c: New file.
94885         * lib/unictype/pr_other_alphabetic.c: New file.
94886         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
94887         * lib/unictype/pr_other_grapheme_extend.c: New file.
94888         * lib/unictype/pr_other_id_continue.c: New file.
94889         * lib/unictype/pr_other_id_start.c: New file.
94890         * lib/unictype/pr_other_lowercase.c: New file.
94891         * lib/unictype/pr_other_math.c: New file.
94892         * lib/unictype/pr_other_uppercase.c: New file.
94893         * lib/unictype/pr_paired_punctuation.c: New file.
94894         * lib/unictype/pr_paragraph_separator.c: New file.
94895         * lib/unictype/pr_pattern_syntax.c: New file.
94896         * lib/unictype/pr_pattern_white_space.c: New file.
94897         * lib/unictype/pr_private_use.c: New file.
94898         * lib/unictype/pr_punctuation.c: New file.
94899         * lib/unictype/pr_quotation_mark.c: New file.
94900         * lib/unictype/pr_radical.c: New file.
94901         * lib/unictype/pr_sentence_terminal.c: New file.
94902         * lib/unictype/pr_soft_dotted.c: New file.
94903         * lib/unictype/pr_space.c: New file.
94904         * lib/unictype/pr_terminal_punctuation.c: New file.
94905         * lib/unictype/pr_test.c: New file.
94906         * lib/unictype/pr_titlecase.c: New file.
94907         * lib/unictype/pr_unassigned_code_value.c: New file.
94908         * lib/unictype/pr_unified_ideograph.c: New file.
94909         * lib/unictype/pr_uppercase.c: New file.
94910         * lib/unictype/pr_variation_selector.c: New file.
94911         * lib/unictype/pr_white_space.c: New file.
94912         * lib/unictype/pr_xid_continue.c: New file.
94913         * lib/unictype/pr_xid_start.c: New file.
94914         * lib/unictype/pr_zero_width.c: New file.
94915         * lib/unictype/scripts.c: New file.
94916         * lib/unictype/sy_c_ident.c: New file.
94917         * lib/unictype/sy_c_whitespace.c: New file.
94918         * lib/unictype/sy_java_ident.c: New file.
94919         * lib/unictype/sy_java_whitespace.c: New file.
94921         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
94922         Unicode 5.0.0.
94923         * lib/unictype/blocks.h: Likewise.
94924         * lib/unictype/categ_C.h: Likewise.
94925         * lib/unictype/categ_Cc.h: Likewise.
94926         * lib/unictype/categ_Cf.h: Likewise.
94927         * lib/unictype/categ_Cn.h: Likewise.
94928         * lib/unictype/categ_Co.h: Likewise.
94929         * lib/unictype/categ_Cs.h: Likewise.
94930         * lib/unictype/categ_L.h: Likewise.
94931         * lib/unictype/categ_Ll.h: Likewise.
94932         * lib/unictype/categ_Lm.h: Likewise.
94933         * lib/unictype/categ_Lo.h: Likewise.
94934         * lib/unictype/categ_Lt.h: Likewise.
94935         * lib/unictype/categ_Lu.h: Likewise.
94936         * lib/unictype/categ_M.h: Likewise.
94937         * lib/unictype/categ_Mc.h: Likewise.
94938         * lib/unictype/categ_Me.h: Likewise.
94939         * lib/unictype/categ_Mn.h: Likewise.
94940         * lib/unictype/categ_N.h: Likewise.
94941         * lib/unictype/categ_Nd.h: Likewise.
94942         * lib/unictype/categ_Nl.h: Likewise.
94943         * lib/unictype/categ_No.h: Likewise.
94944         * lib/unictype/categ_P.h: Likewise.
94945         * lib/unictype/categ_Pc.h: Likewise.
94946         * lib/unictype/categ_Pd.h: Likewise.
94947         * lib/unictype/categ_Pe.h: Likewise.
94948         * lib/unictype/categ_Pf.h: Likewise.
94949         * lib/unictype/categ_Pi.h: Likewise.
94950         * lib/unictype/categ_Po.h: Likewise.
94951         * lib/unictype/categ_Ps.h: Likewise.
94952         * lib/unictype/categ_S.h: Likewise.
94953         * lib/unictype/categ_Sc.h: Likewise.
94954         * lib/unictype/categ_Sk.h: Likewise.
94955         * lib/unictype/categ_Sm.h: Likewise.
94956         * lib/unictype/categ_So.h: Likewise.
94957         * lib/unictype/categ_Z.h: Likewise.
94958         * lib/unictype/categ_Zl.h: Likewise.
94959         * lib/unictype/categ_Zp.h: Likewise.
94960         * lib/unictype/categ_Zs.h: Likewise.
94961         * lib/unictype/categ_of.h: Likewise.
94962         * lib/unictype/combining.h: Likewise.
94963         * lib/unictype/ctype_alnum.h: Likewise.
94964         * lib/unictype/ctype_alpha.h: Likewise.
94965         * lib/unictype/ctype_blank.h: Likewise.
94966         * lib/unictype/ctype_cntrl.h: Likewise.
94967         * lib/unictype/ctype_digit.h: Likewise.
94968         * lib/unictype/ctype_graph.h: Likewise.
94969         * lib/unictype/ctype_lower.h: Likewise.
94970         * lib/unictype/ctype_print.h: Likewise.
94971         * lib/unictype/ctype_punct.h: Likewise.
94972         * lib/unictype/ctype_space.h: Likewise.
94973         * lib/unictype/ctype_upper.h: Likewise.
94974         * lib/unictype/ctype_xdigit.h: Likewise.
94975         * lib/unictype/decdigit.h: Likewise.
94976         * lib/unictype/digit.h: Likewise.
94977         * lib/unictype/mirror.h: Likewise.
94978         * lib/unictype/numeric.h: Likewise.
94979         * lib/unictype/pr_alphabetic.h: Likewise.
94980         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
94981         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
94982         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
94983         * lib/unictype/pr_bidi_block_separator.h: Likewise.
94984         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
94985         * lib/unictype/pr_bidi_common_separator.h: Likewise.
94986         * lib/unictype/pr_bidi_control.h: Likewise.
94987         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
94988         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
94989         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
94990         * lib/unictype/pr_bidi_european_digit.h: Likewise.
94991         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
94992         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
94993         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
94994         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
94995         * lib/unictype/pr_bidi_pdf.h: Likewise.
94996         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
94997         * lib/unictype/pr_bidi_whitespace.h: Likewise.
94998         * lib/unictype/pr_combining.h: Likewise.
94999         * lib/unictype/pr_composite.h: Likewise.
95000         * lib/unictype/pr_currency_symbol.h: Likewise.
95001         * lib/unictype/pr_dash.h: Likewise.
95002         * lib/unictype/pr_decimal_digit.h: Likewise.
95003         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
95004         * lib/unictype/pr_deprecated.h: Likewise.
95005         * lib/unictype/pr_diacritic.h: Likewise.
95006         * lib/unictype/pr_extender.h: Likewise.
95007         * lib/unictype/pr_format_control.h: Likewise.
95008         * lib/unictype/pr_grapheme_base.h: Likewise.
95009         * lib/unictype/pr_grapheme_extend.h: Likewise.
95010         * lib/unictype/pr_grapheme_link.h: Likewise.
95011         * lib/unictype/pr_hex_digit.h: Likewise.
95012         * lib/unictype/pr_hyphen.h: Likewise.
95013         * lib/unictype/pr_id_continue.h: Likewise.
95014         * lib/unictype/pr_id_start.h: Likewise.
95015         * lib/unictype/pr_ideographic.h: Likewise.
95016         * lib/unictype/pr_ids_binary_operator.h: Likewise.
95017         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
95018         * lib/unictype/pr_ignorable_control.h: Likewise.
95019         * lib/unictype/pr_iso_control.h: Likewise.
95020         * lib/unictype/pr_join_control.h: Likewise.
95021         * lib/unictype/pr_left_of_pair.h: Likewise.
95022         * lib/unictype/pr_line_separator.h: Likewise.
95023         * lib/unictype/pr_logical_order_exception.h: Likewise.
95024         * lib/unictype/pr_lowercase.h: Likewise.
95025         * lib/unictype/pr_math.h: Likewise.
95026         * lib/unictype/pr_non_break.h: Likewise.
95027         * lib/unictype/pr_not_a_character.h: Likewise.
95028         * lib/unictype/pr_numeric.h: Likewise.
95029         * lib/unictype/pr_other_alphabetic.h: Likewise.
95030         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
95031         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
95032         * lib/unictype/pr_other_id_continue.h: Likewise.
95033         * lib/unictype/pr_other_id_start.h: Likewise.
95034         * lib/unictype/pr_other_lowercase.h: Likewise.
95035         * lib/unictype/pr_other_math.h: Likewise.
95036         * lib/unictype/pr_other_uppercase.h: Likewise.
95037         * lib/unictype/pr_paired_punctuation.h: Likewise.
95038         * lib/unictype/pr_paragraph_separator.h: Likewise.
95039         * lib/unictype/pr_pattern_syntax.h: Likewise.
95040         * lib/unictype/pr_pattern_white_space.h: Likewise.
95041         * lib/unictype/pr_private_use.h: Likewise.
95042         * lib/unictype/pr_punctuation.h: Likewise.
95043         * lib/unictype/pr_quotation_mark.h: Likewise.
95044         * lib/unictype/pr_radical.h: Likewise.
95045         * lib/unictype/pr_sentence_terminal.h: Likewise.
95046         * lib/unictype/pr_soft_dotted.h: Likewise.
95047         * lib/unictype/pr_space.h: Likewise.
95048         * lib/unictype/pr_terminal_punctuation.h: Likewise.
95049         * lib/unictype/pr_titlecase.h: Likewise.
95050         * lib/unictype/pr_unassigned_code_value.h: Likewise.
95051         * lib/unictype/pr_unified_ideograph.h: Likewise.
95052         * lib/unictype/pr_uppercase.h: Likewise.
95053         * lib/unictype/pr_variation_selector.h: Likewise.
95054         * lib/unictype/pr_white_space.h: Likewise.
95055         * lib/unictype/pr_xid_continue.h: Likewise.
95056         * lib/unictype/pr_xid_start.h: Likewise.
95057         * lib/unictype/pr_zero_width.h: Likewise.
95058         * lib/unictype/scripts.h: Likewise.
95059         * lib/unictype/scripts_byname.gperf: Likewise.
95060         * lib/unictype/sy_c_ident.h: Likewise.
95061         * lib/unictype/sy_c_whitespace.h: Likewise.
95062         * lib/unictype/sy_java_ident.h: Likewise.
95063         * lib/unictype/sy_java_whitespace.h: Likewise.
95065         * lib/unictype/Makefile: New file.
95066         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
95067         glibc.
95068         * lib/unictype/3level.h: New file, copied from glibc.
95069         * lib/unictype/3levelbit.h: New file.
95071 2007-11-11  Bruno Haible  <bruno@clisp.org>
95073         * modules/gperf: New file.
95074         * modules/iconv_open (Depends-on): Add it.
95075         (Makefile.am): Remove the GPERF definition.
95077 2007-11-11  Bruno Haible  <bruno@clisp.org>
95079         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
95080         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
95082 2007-11-11  Bruno Haible  <bruno@clisp.org>
95084         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
95085         (usage): Remove function.
95087 2007-11-11  Bruno Haible  <bruno@clisp.org>
95089         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
95090         gl_FUNC_CEILF_LIBS.
95091         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
95092         gl_FUNC_CEIL_LIBS.
95093         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
95094         gl_FUNC_CEILL_LIBS.
95095         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
95096         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
95097         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
95099 2007-11-11  Bruno Haible  <bruno@clisp.org>
95101         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
95102         roundf were declared but do not exist on functions.
95103         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
95104         roundl were declared but do not exist on functions.
95105         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
95106         HAVE_FLOORL_AND_CEILL, respectively.
95107         Needed for Sun C on Solaris 10.
95109 2007-11-11  Bruno Haible  <bruno@clisp.org>
95111         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
95112         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
95113         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
95114         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
95115         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
95116         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
95117         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
95118         HAVE_DECL_ROUNDF.
95119         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
95120         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
95121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
95122         of HAVE_DECL_ROUND*.
95123         * modules/math (Makefile.am): Update.
95125 2007-11-10  Bruno Haible  <bruno@clisp.org>
95127         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
95128         ptrdiff_t as m4/intl.m4.
95130 2007-11-10  Jim Meyering  <meyering@redhat.com>
95132         Avoid link failure for the argmatch test.
95133         * tests/test-argmatch.c (usage): Define function to avoid a link
95134         failure: argmatch_die requires a usage function.
95136 2007-11-09  Bruno Haible  <bruno@clisp.org>
95138         * doc/functions/snprintf.texi: Mention BeOS deficiency.
95139         * doc/functions/vsnprintf.texi: Likewise.
95140         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
95141         with a size argument < 2.
95143 2007-11-09  Bruno Haible  <bruno@clisp.org>
95145         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
95146         buffer. Fixes an inefficiency introduced on 2007-11-03.
95148 2007-11-09  Bruno Haible  <bruno@clisp.org>
95150         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
95151         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
95153 2007-11-08  Jim Meyering  <meyering@redhat.com>
95155         Change cache variable name prefix "jm_" to "gl_" everywhere.
95156         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
95157         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
95158         * m4/uptime.m4: s/gl_/jm_/
95160 2007-11-07  Bruno Haible  <bruno@clisp.org>
95162         Update to GNU gettext 0.17.
95163         * m4/intl.m4: Update to GNU gettext 0.17.
95164         * m4/po.m4: Likewise.
95165         * modules/gettext (Files): Remove m4/ulonglong.m4.
95166         (configure.ac): Require gettext infrastructure from version 0.17.
95168 2007-11-06  Bruno Haible  <bruno@clisp.org>
95170         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
95171         symbolic values are not defined in a public header.
95172         * lib/freadable.c (freadable) [QNX]: Likewise.
95173         * lib/freadahead.c (freadahead) [QNX]: Likewise.
95174         * lib/freading.c (freading) [QNX]: Likewise.
95175         * lib/fseterr.c (fseterr) [QNX]: Likewise.
95176         * lib/fwritable.c (fwritable) [QNX]: Likewise.
95177         * lib/fwriting.c (fwriting) [QNX]: Likewise.
95178         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
95179         Reported by Alain Magloire.
95181         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
95183 2007-11-05  Bruno Haible  <bruno@clisp.org>
95185         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
95186         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
95187         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
95188         Reported by Eric Blake.
95190 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95191             Bruno Haible  <bruno@clisp.org>
95193         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
95194         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
95195         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
95196         (malloc): Undefine also before including <stdlib.h>.
95197         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
95198         Needed on OSF/1 4.0.
95200 2007-11-05  Jim Meyering  <meyering@redhat.com>
95202         git-version-gen: sync from coreutils.
95203         * build-aux/git-version-gen: Add comments.
95204         Change the first '-' to '.' in the snapshot version string,
95205         e.g., 6.9-377-08144 -> 6.9.377-08144
95206         Remove first parameter.
95207         Don't declare a version "-dirty" merely because a time
95208         stamp has changed.
95210 2007-11-04  Bruno Haible  <bruno@clisp.org>
95212         * lib/lock.h: Protect all macro definitions containing an 'if'
95213         statement through a "do { ... } while (0)".
95214         * lib/tls.h: Likewise.
95216 2007-11-04  Bruno Haible  <bruno@clisp.org>
95218         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
95220 2007-11-04  Bruno Haible  <bruno@clisp.org>
95222         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
95223         * modules/fprintf-posix (Depends-on): Add nocrash.
95224         * modules/snprintf-posix (Depends-on): Likewise.
95225         * modules/sprintf-posix (Depends-on): Likewise.
95226         * modules/vasnprintf-posix (Depends-on): Likewise.
95227         * modules/vasprintf-posix (Depends-on): Likewise.
95228         * modules/vfprintf-posix (Depends-on): Likewise.
95229         * modules/vsnprintf-posix (Depends-on): Likewise.
95230         * modules/vsprintf-posix (Depends-on): Likewise.
95231         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
95232         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
95233         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
95234         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
95235         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
95236         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
95237         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
95239 2007-11-04  Bruno Haible  <bruno@clisp.org>
95241         * modules/nocrash: New file.
95242         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
95243         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
95245 2007-11-04  Bruno Haible  <bruno@clisp.org>
95247         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
95248         precision handling.
95249         * tests/test-vasprintf-posix.c (test_function): Likewise.
95250         * tests/test-snprintf-posix.h (test_function): Likewise.
95251         * tests/test-sprintf-posix.h (test_function): Likewise.
95253         Fix *printf behaviour for large precisions on mingw and BeOS.
95254         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
95255         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
95256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
95257         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95259         gl_PRINTF_PRECISION and test its result. Invoke
95260         gl_PREREQ_VASNPRINTF_PRECISION.
95261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95262         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95263         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95264         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95265         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95266         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95267         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95268         * doc/functions/fprintf.texi: Update.
95269         * doc/functions/printf.texi: Update.
95270         * doc/functions/snprintf.texi: Update.
95271         * doc/functions/sprintf.texi: Update.
95272         * doc/functions/vfprintf.texi: Update.
95273         * doc/functions/vprintf.texi: Update.
95274         * doc/functions/vsnprintf.texi: Update.
95275         * doc/functions/vsprintf.texi: Update.
95277 2007-11-04  Bruno Haible  <bruno@clisp.org>
95279         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
95281 2007-11-04  Bruno Haible  <bruno@clisp.org>
95283         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
95284         Reported by Sylvain Beucler <beuc@gnu.org>.
95286 2007-11-03  Bruno Haible  <bruno@clisp.org>
95288         * tests/test-fprintf-posix2.sh: New file.
95289         * tests/test-fprintf-posix2.c: New file.
95290         * modules/fprintf-posix-tests (Files): Add them.
95291         (TESTS): Add test-fprintf-posix2.sh.
95292         (configure.ac): Check for getrlimit and setrlimit.
95293         (check_PROGRAMS): Add test-fprintf-posix2.
95295         * tests/test-printf-posix2.sh: New file.
95296         * tests/test-printf-posix2.c: New file.
95297         * modules/printf-posix-tests (Files): Add them.
95298         (TESTS): Add test-printf-posix2.sh.
95299         (configure.ac): Check for getrlimit and setrlimit.
95300         (check_PROGRAMS): Add test-printf-posix2.
95302         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
95303         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
95304         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
95305         (decode_double): New function, copied from decode_long_double.
95306         (scale10_round_decimal_decoded): New function, extracted from
95307         scale10_round_decimal_long_double.
95308         (scale10_round_decimal_long_double): Use it.
95309         (scale10_round_decimal_double): New function.
95310         (floorlog10): New function.
95311         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
95312         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
95313         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
95314         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95315         gl_PRINTF_ENOMEM and test its result. Invoke
95316         gl_PREREQ_VASNPRINTF_ENOMEM.
95317         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
95318         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
95319         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
95320         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95321         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
95322         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95323         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
95324         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
95325         * modules/snprintf-posix (Depends-on): Likewise.
95326         * modules/sprintf-posix (Depends-on): Likewise.
95327         * modules/vasnprintf-posix (Depends-on): Likewise.
95328         * modules/vasprintf-posix (Depends-on): Likewise.
95329         * modules/vfprintf-posix (Depends-on): Likewise.
95330         * modules/vsnprintf-posix (Depends-on): Likewise.
95331         * modules/vsprintf-posix (Depends-on): Likewise.
95332         * doc/functions/fprintf.texi: Update.
95333         * doc/functions/printf.texi: Update.
95334         * doc/functions/snprintf.texi: Update.
95335         * doc/functions/sprintf.texi: Update.
95336         * doc/functions/vfprintf.texi: Update.
95337         * doc/functions/vprintf.texi: Update.
95338         * doc/functions/vsnprintf.texi: Update.
95339         * doc/functions/vsprintf.texi: Update.
95341 2007-11-03  Bruno Haible  <bruno@clisp.org>
95343         * modules/frexp-nolibm-tests: New file.
95345         * modules/frexp-nolibm: New file.
95346         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
95348 2007-11-03  Bruno Haible  <bruno@clisp.org>
95350         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
95351         value is C99 compliant.
95352         Needed for OSF/1 5.1.
95354 2007-11-03  Bruno Haible  <bruno@clisp.org>
95356         Fix out-of-memory handling of vasnprintf.
95357         * lib/printf-parse.c: Include <errno.h>.
95358         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
95359         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
95360         is already set.
95362 2007-11-02  Eric Blake  <ebb9@byu.net>
95364         Fix tests on cygwin.
95365         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
95367 2007-11-01  Bruno Haible  <bruno@clisp.org>
95369         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
95370         warning.
95371         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
95372         needed for POSIX compatibility.
95374 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
95376         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
95377         for compatibility with GNU.
95379 2007-11-01  Bruno Haible  <bruno@clisp.org>
95381         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
95382         (putenv): Renamed from rpl_putenv. Change argument type from
95383         'const char *' to 'char *'.
95384         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
95385         of defining putenv in config.h, just set REPLACE_PUTENV.
95386         * modules/putenv (Depends-on): Add stdlib.
95387         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95388         (Include): Use <stdlib.h>.
95389         * lib/stdlib.in.h (putenv): New declaration.
95390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
95391         REPLACE_PUTENV.
95392         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
95393         REPLACE_PUTENV.
95394         Needed for MacOS X 10.5.0.
95395         Reported by Peter O'Gorman <peter@pogma.com>.
95397 2007-11-01  Jim Meyering  <meyering@redhat.com>
95399         Treat an empty date string exactly like "0".
95400         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
95401         if the remaining date string (to be parsed) is empty, use "0".
95402         Reported by Mischa Molhoek and discussed in this thread:
95403         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
95405 2007-10-31  Bruno Haible  <bruno@clisp.org>
95407         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
95408         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
95409         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
95410         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
95411         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
95412         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
95414 2007-10-31  Bruno Haible  <bruno@clisp.org>
95416         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
95417         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
95418         (AC_TYPE_LONG_LONG_INT): Use it.
95419         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
95420         it as well.
95421         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
95422         to m4/longlong.m4.
95423         * modules/stdint (Files): Remove m4/ulonglong.m4.
95424         * modules/strtoull (Files): Use m4/longlong.m4 instead of
95425         m4/ulonglong.m4.
95426         * modules/strtoumax (Files): Likewise.
95428 2007-10-30  Bruno Haible  <bruno@clisp.org>
95430         * modules/xvasprintf-posix: New file.
95431         Suggested by Eric Blake.
95433 2007-10-30  Bruno Haible  <bruno@clisp.org>
95435         * modules/xprintf-posix-tests: New file.
95436         * tests/test-xprintf-posix.sh: New file.
95437         * tests/test-xprintf-posix.c: New file.
95438         * tests/test-xfprintf-posix.c: New file.
95440         * modules/xprintf-posix: New file.
95442 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95444         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
95445         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
95446         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
95448 2007-10-29  Bruno Haible  <bruno@clisp.org>
95450         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
95451         contain the special marker '_cv_'.
95452         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
95453         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
95454         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
95455         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
95456         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
95457         Reported by Ralf Wildenhues.
95459 2007-10-29  Bruno Haible  <bruno@clisp.org>
95461         * gnulib-tool (func_import): When --lgpl is not specified, set
95462         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
95463         GPLv3.
95464         Reported by Simon Josefsson.
95466 2007-10-28  Bruno Haible  <bruno@clisp.org>
95468         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
95469         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
95470         HAVE_DECL_ISFINITE.
95471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95472         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
95473         HAVE_DECL_ISFINITE.
95475 2007-10-28  Bruno Haible  <bruno@clisp.org>
95477         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
95478         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
95480 2007-10-28  Bruno Haible  <bruno@clisp.org>
95482         Fix link errors with Sun C 5.0 on Solaris 10.
95483         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
95484         function is declared but not present in the compiler's libm.
95485         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
95486         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
95487         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
95488         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
95489         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
95490         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
95491         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
95492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
95493         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
95494         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
95495         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
95496         HAVE_DECL_FLOORL.
95498 2007-10-28  Bruno Haible  <bruno@clisp.org>
95500         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
95501         gl_FUNC_FLOORL. Cache the result.
95502         (gl_FUNC_FLOORL): Use it.
95503         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
95504         gl_FUNC_CEILL. Cache the result.
95505         (gl_FUNC_CEILL): Use it.
95507         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
95508         gl_FUNC_FLOOR. Cache the result.
95509         (gl_FUNC_FLOOR): Use it.
95510         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
95511         gl_FUNC_CEIL. Cache the result.
95512         (gl_FUNC_CEIL): Use it.
95514         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
95515         gl_FUNC_FLOORF. Cache the result.
95516         (gl_FUNC_FLOORF): Use it.
95517         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
95518         gl_FUNC_CEILF. Cache the result.
95519         (gl_FUNC_CEILF): Use it.
95521 2007-10-28  Bruno Haible  <bruno@clisp.org>
95523         * gnulib-tool: Allow specifying the LGPL version number through
95524         --lgpl=2 or --lgpl=3.
95525         (func_usage): Document --lgpl with argument.
95526         Handle --lgpl=... arguments.
95527         (func_import): Recognize also gl_LGPL calls with an argument. When
95528         --lgpl=2 is used and the module's license is just LGPL, report an
95529         error. Set sed_transform_lib_file according to the lgpl variable. In
95530         the generated files, use --lgpl or gl_LGPL invocations with argument,
95531         if necessary.
95532         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
95533         an LGPv2+ license.
95534         * doc/gnulib-tool.texi (Modified imports): Update explanation of
95535         gl_LGPL macro.
95537 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95538             Bruno Haible  <bruno@clisp.org>
95540         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
95541         (u16_uctomb_aux): Likewise.
95542         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
95543         !HAVE_INLINE.
95544         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
95546 2007-10-28  Bruno Haible  <bruno@clisp.org>
95548         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
95549         Invoke AM_GETTEXT_OPTION if it exists.
95550         * modules/vasprintf: Likewise.
95551         * modules/verror: Likewise.
95552         * modules/xprintf: Likewise.
95553         * modules/xvasprintf: Likewise.
95555 2007-10-27  Ben Pfaff  <blp@gnu.org>
95557         * lib/math.in.h: Define isfinite macro and prototypes for
95558         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
95559         implementations.
95560         * m4/math_h.m4: New substitutions for isfinite module.
95561         * lib/isfinite.c: New file.
95562         * m4/isfinite.m4: New file.
95563         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
95564         * modules/isfinite: New file.
95565         * modules/isfinite-tests: New file.
95566         * tests/tests-isfinite.c: New file.
95567         * doc/functions/isfinite.texi: Mention isfinite module.
95568         * MODULES.html.sh: Mention new module.
95570 2007-10-27  Ben Pfaff  <blp@gnu.org>
95572         Ralf Wildenhues reported that Tru64 4.0D declares the round
95573         functions but does not have definitions.
95574         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
95575         cannot be found in any library, set the output variable to
95576         "missing" instead of "".
95577         * m4/round.m4: Also use our substitute if we cannot find round in
95578         any library, even if it is declared.
95579         * m4/roundf.m4: Likewise for roundf.
95580         * m4/roundl.m4: Likewise for roundl.
95581         * lib/math.in.h: Undefine roundf, round, roundl before defining
95582         their replacements, to allow for hypothetical systems where these
95583         may be defined as macros but not available in libraries.
95585 2007-10-27  Bruno Haible  <bruno@clisp.org>
95587         * doc/gnulib.texi: Invoke @firstparagraphindent.
95588         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
95589         changes in gnulib.
95590         (Source changes): New section.
95592 2007-10-26  Bruno Haible  <bruno@clisp.org>
95594         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
95595         borrowed from autoconf.
95597 2007-10-26  Bruno Haible  <bruno@clisp.org>
95599         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
95600         strerror returned the empty string. Needed on HP-UX 11.00.
95602 2007-10-24  Micah Cowan  <micah@cowan.name>
95604         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
95605         * build-aux/bootstrap: Remove support for now-unnecessary option,
95606         --cvs-user, and envvars CVS_USER, CVS_RSH.
95608 2007-10-24  Jim Meyering  <meyering@redhat.com>
95610         Avoid diagnostics from sha1sum when there is no cached checksum.
95611         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
95612         if the po.s1 file hasn't been created yet.
95614         * build-aux/bootstrap: Sync from coreutils:
95615         2007-10-24  Jim Meyering  <meyering@redhat.com>
95616         Get gnulib from the git repository, not from an obsolete cvs one.
95617         * build-aux/bootstrap: Suggestion from Micah Cowan.
95618         2007-10-04  Jim Meyering  <jim@meyering.net>
95619         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
95620         (update_po_files): Work also when there are no .po files in po/.
95622 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95624         * README: Append ".git" to git and cg examples.
95625         Problem reported by Benoit Sigoure.
95627 2007-10-23  Micah Cowan  <micah@cowan.name>
95629         * users.txt: Add wget.
95631 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95633         Fix linking of some unistdio tests on FreeBSD.
95634         * modules/unistdio/u16-vsnprintf-tests
95635         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
95636         * modules/unistdio/u16-vsprintf-tests
95637         (test_u16_vsnprintf1_LDADD): Likewise.
95638         * modules/unistdio/u32-vsnprintf-tests
95639         (test_u32_vsnprintf1_LDADD): Likewise.
95640         * modules/unistdio/u32-vsprintf-tests
95641         (test_u32_vsprintf1_LDADD): Likewise.
95642         * modules/unistdio/u8-vsnprintf-tests
95643         (test_u8_vsnprintf1_LDADD): Likewise.
95644         * modules/unistdio/u8-vsprintf-tests
95645         (test_u8_vsprintf1_LDADD): Likewise.
95646         * modules/unistdio/ulc-vsnprintf-tests
95647         (test_ulc_vsnprintf1_LDADD): Likewise.
95648         * modules/unistdio/ulc-vsprintf-tests
95649         (test_ulc_vsprintf1_LDADD): Likewise.
95651         Fix linking of some uniconv tests on FreeBSD.
95652         * modules/uniconv/u16-conv-from-enc-tests
95653         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
95654         * modules/uniconv/u16-conv-to-enc-tests
95655         (test_u16_conv_to_enc_LDADD): Likewise.
95656         * modules/uniconv/u16-strconv-from-enc-tests
95657         (test_u16_strconv_from_enc_LDADD): Likewise.
95658         * modules/uniconv/u16-strconv-to-enc-tests
95659         (test_u16_strconv_to_enc_LDADD): Likewise.
95660         * modules/uniconv/u32-conv-from-enc-tests
95661         (test_u32_conv_from_enc_LDADD): Likewise.
95662         * modules/uniconv/u32-conv-to-enc-tests
95663         (test_u32_conv_to_enc_LDADD): Likewise.
95664         * modules/uniconv/u32-strconv-from-enc-tests
95665         (test_u32_strconv_from_enc_LDADD): Likewise.
95666         * modules/uniconv/u32-strconv-to-enc-tests
95667         (test_u32_strconv_to_enc_LDADD): Likewise.
95668         * modules/uniconv/u8-conv-from-enc-tests
95669         (test_u8_conv_from_enc_LDADD): Likewise.
95670         * modules/uniconv/u8-conv-to-enc-tests
95671         (test_u8_conv_to_enc_LDADD): Likewise.
95672         * modules/uniconv/u8-strconv-from-enc-tests
95673         (test_u8_strconv_from_enc_LDADD): Likewise.
95674         * modules/uniconv/u8-strconv-to-enc-tests
95675         (test_u8_strconv_to_enc_LDADD): Likewise.
95677 2007-10-22  Bruno Haible  <bruno@clisp.org>
95679         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
95680         size.
95682 2007-10-22  Eric Blake  <ebb9@byu.net>
95684         Tweak x*printf documentation.
95685         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
95686         variable name and comments.
95687         Suggested by Bruno Haible.
95689 2007-10-22  Bruno Haible  <bruno@clisp.org>
95691         * lib/acl.c (copy_acl): Fix file name in comment.
95693 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95695         Fix Tru64 problem with stdbool.h.
95696         * lib/stdbool.in.h (false, true):
95697         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
95698         Don't declare as an enum in this situation; it runs afoul of Tru64.
95699         Problem reported by Steven M. Schweda in
95700         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
95702 2007-10-22  Eric Blake  <ebb9@byu.net>
95704         Also wrap vf?printf.
95705         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
95706         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
95707         (xvprintf, xvfprintf): New functions.
95709 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95711         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
95712         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
95714         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
95715         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
95717 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
95719         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
95720         by Bruno Haible.
95722 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95724         * lib/getloadavg.c
95725         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
95726         Undef `sys' after including sys/table.h, for Tru64 4.0D.
95728         * tests/test-i-ring.c: Work for C89.
95730 2007-10-22  Bruno Haible  <bruno@clisp.org>
95732         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
95733         -1u, in preprocessor expression, so that we don't test for the bug
95734         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
95735         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
95737 2007-10-22  Eric Blake  <ebb9@byu.net>
95739         * tests/test-yesno.sh: Silence stderr during test.
95741 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95743         * modules/crypto/gc-camellia: New file.
95745         * m4/gc-camellia.m4: New file.
95747         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
95749         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
95751 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95753         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
95754         --help to stdout.  Reported by sms@antinode.org (Steven
95755         M. Schweda).
95757 2007-10-22  Simon Josefsson  <simon@josefsson.org>
95759         * users.txt: Fix link to libksba.
95761 2007-10-21  Ben Pfaff  <blp@gnu.org>
95763         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
95764         round.c roundf implementation that depends on floorf and ceilf to
95765         be tested unconditionally.
95767 2007-10-21  Ben Pfaff  <blp@gnu.org>
95769         * m4/check-libm-func.m4: Removed.
95770         * m4/check-math-lib.m4: New file.
95771         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
95772         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
95773         definition and lack of AC_LIBOBJ([roundf]).
95774         * m4/roundl.m4: Ditto, and similarly for roundl.
95775         * modules/round: Reference new m4 file.
95776         * modules/roundf: Ditto.
95777         * modules/roundl: Ditto.
95778         * tests/test-round2.c (main): Use ROUND instead of round.
95779         Bug report from Bruno Haible.
95781 2007-10-21  Bruno Haible  <bruno@clisp.org>
95783         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
95784         context.
95786 2007-10-21  Bruno Haible  <bruno@clisp.org>
95788         * tests/test-wcwidth.c (main): Allow negative result for some control
95789         characters.
95791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
95792         Needed on OSF/1 5.1.
95794 2007-10-21  Bruno Haible  <bruno@clisp.org>
95796         * tests/test-floorf1.c: Include isnanf.h.
95797         (main): Use isnanf() instead of isnan().
95798         * tests/test-ceilf1.c: Include isnanf.h.
95799         (main): Use isnanf() instead of isnan().
95800         * tests/test-truncf1.c: Include isnanf.h.
95801         (main): Use isnanf() instead of isnan().
95802         * tests/test-roundf1.c: Include isnanf.h.
95803         (main): Use isnanf() instead of isnan().
95805 2007-10-21  Eric Blake  <ebb9@byu.net>
95807         * users.txt: Update URL for m4.
95809 2007-10-21  Bruno Haible  <bruno@clisp.org>
95811         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
95813 2007-10-21  Bruno Haible  <bruno@clisp.org>
95815         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
95816         Git's management files if the CVS files are not present.
95818 2007-10-20  Bruno Haible  <bruno@clisp.org>
95820         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
95821         gcc-3.4.x.
95823 2007-10-20  Ben Pfaff  <blp@gnu.org>
95825         * lib/math.in.h: Declare round, roundf, roundl if we are providing
95826         implementations.
95827         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
95828         * lib/round.c: New file.
95829         * lib/roundf.c: New file.
95830         * lib/roundl.c: New file.
95831         * m4/round.m4: New file.
95832         * m4/roundf.m4: New file.
95833         * m4/roundl.m4: New file.
95834         * m4/check-libm-func-m4: New file.
95835         * modules/math: Replace round, roundf, roundl related @VARS@ in
95836         math.in.h.
95837         * modules/round: New file.
95838         * modules/round-tests: New file.
95839         * modules/roundf: New file.
95840         * modules/roundf-tests: New file.
95841         * modules/roundl: New file.
95842         * modules/roundl-tests: New file.
95843         * tests/test-round1.c: New file.
95844         * tests/test-round2.c: New file.
95845         * tests/test-roundf1.c: New file.
95846         * tests/test-roundf2.c: New file.
95847         * tests/test-roundl.c: New file.
95848         * doc/functions/round.texi: Mention round module.
95849         * doc/functions/roundf.texi: Mention roundf module.
95850         * doc/functions/roundl.texi: Mention roundl module.
95851         * MODULES.html.sh: Mention new modules.
95852         Thanks to Bruno Haible for suggestions.
95854 2007-10-20  Jim Meyering  <meyering@redhat.com>
95856         * lib/xprintf.c: Include <config.h> unconditionally.
95858         Change xprintf's license to GPL.
95859         * modules/xprintf (License): s/LGPL/GPL/, since this module
95860         depends on modules (exit and exitfail) which are GPL.
95861         Suggestion from Bruno Haible.
95863         xprintf fixes.
95864         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
95865         Use a clearer diagnostic.
95866         Patch from Bruno Haible.
95868 2007-10-20  Bruno Haible  <bruno@clisp.org>
95870         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
95871         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
95872         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95874 2007-10-20  Bruno Haible  <bruno@clisp.org>
95876         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
95877         precision in the comparison result > x - 1 or similar.
95878         * tests/test-ceilf2.c (correct_result_p): Likewise.
95879         * tests/test-truncf2.c (correct_result_p): Likewise.
95880         * tests/test-trunc2.c (correct_result_p): Likewise.
95881         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95883 2007-10-20  Bruno Haible  <bruno@clisp.org>
95885         * modules/ceil: New file.
95886         * m4/ceil.m4: New file.
95887         * doc/functions/ceil.texi: Mention the 'ceil' module.
95889 2007-10-20  Bruno Haible  <bruno@clisp.org>
95891         * modules/floor: New file.
95892         * m4/floor.m4: New file.
95893         * doc/functions/floor.texi: Mention the 'floor' module.
95895 2007-10-20  Bruno Haible  <bruno@clisp.org>
95897         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
95898         of %a.
95899         * modules/floorf-tests (Depends-on): Likewise.
95900         * modules/truncf-tests (Depends-on): Likewise.
95901         * modules/trunc-tests (Depends-on): Likewise.
95902         Reported by Ben Pfaff.
95904 2007-10-19  Jim Meyering  <meyering@redhat.com>
95906         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
95907         Don't bother testing specific errno values.  Just test ferror.
95909         New module: xprintf
95910         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
95912 2007-10-19  Bruno Haible  <bruno@clisp.org>
95914         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
95915         syntax.
95916         * modules/javaexec (Makefile.am): Likewise.
95917         * modules/relocatable-prog (Makefile.am): Likewise.
95918         Suggested by Jim Meyering.
95920 2007-10-18  Bruno Haible  <bruno@clisp.org>
95922         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
95923         Reported by Jim Meyering.
95925 2007-10-18  Eric Blake  <ebb9@byu.net>
95927         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
95929 2007-10-18  Bruno Haible  <bruno@clisp.org>
95931         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
95932         the format string into writable memory. Needed in Fortify conditions.
95934 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
95935             Bruno Haible  <bruno@clisp.org>
95937         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
95938         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
95939         * modules/trim (Depends-on): Add mbchar.
95940         (configure.ac): Add gl_FUNC_MBRTOWC.
95941         (Makefile.am): Augment lib_SOURCES.
95943 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
95945         Modify glob.c to use fstatat and dirfd, to simplify it.
95946         Suggested by Eric Blake.
95947         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
95948         Don't include <stdbool.h>; not used.
95949         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
95950         (link_exists_p): Simplify implementation, since we can now assume
95951         dirfd and fstatat.
95952         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
95954 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95956         * gnulib-tool (func_get_dependencies): Fix sed script to
95957         match only tests.
95959 2007-10-17  Bruno Haible  <bruno@clisp.org>
95961         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
95962         allow locale names without encoding suffix.
95963         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
95964         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
95966 2007-10-16  Bruno Haible  <bruno@clisp.org>
95968         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
95969         * lib/getgroups.c (getgroups): Likewise.
95970         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
95972 2007-10-16  Bruno Haible  <bruno@clisp.org>
95974         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
95975         * modules/malloc-posix (License): Likewise.
95976         * modules/realloc-posix (License): Likewise.
95977         * modules/calloc-posix (License): Likewise.
95978         * modules/intprops (License): Change from GPL to LGPL, with
95979         Paul Eggert's approval.
95981 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
95983         Merge glibc changes into lib/glob.c.
95985         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
95986         2007-10-15 04:59:03 UTC.  Here are the changes:
95988         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
95990         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
95992         * lib/glob.c: Add some branch prediction throughout.
95994         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
95996         [BZ #5103]
95997         * lib/glob.c (glob): Recognize patterns starting \/.
95999         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
96001         [BZ #3996]
96002         * lib/glob.c (attribute_hidden): Define if not defined.
96003         (glob): Unescape dirname, filename or username when needed and not
96004         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
96005         is NULL.  Handle unescaped [ in pattern without closing ].
96006         Don't pass GLOB_CHECK down to recursive glob for directories.
96007         (__glob_pattern_type): New function.
96008         (__glob_pattern_p): Implement using __glob_pattern_type.
96009         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
96010         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
96011         Remove unreachable code.
96013         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
96015         * lib/glob.c (glob_in_dir): Add some comments and asserts to
96016         explain why there are no leaks.
96018         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
96020         [BZ #3253]
96021         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
96022         time, rather allocate increasingly bigger arrays of pointers, if
96023         possible with alloca, if too large with malloc.
96025 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96027         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
96028         Problem reported by H.Merijn Brand in
96029         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
96030         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
96031         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
96033 2007-10-15  Bruno Haible  <bruno@clisp.org>
96035         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
96036         with explicit rpl_ prefix.
96037         * lib/fopen.c (fopen): Likewise.
96038         * lib/freopen.c (freopen): Likewise.
96039         * lib/iconv.c (iconv): Likewise.
96040         * lib/iconv_close.c (iconv_close): Likewise.
96042 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96044         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
96046 2007-10-15  Bruno Haible  <bruno@clisp.org>
96048         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
96049         <stddef.h> instead of <stdlib.h> since we only need NULL.
96050         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96052 2007-10-15  Bruno Haible  <bruno@clisp.org>
96054         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
96055         Replace paragraph talking about LIBOBJS.
96056         Reported by Colin Watson <cjwatson@debian.org>.
96058 2007-10-15  Bruno Haible  <bruno@clisp.org>
96060         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
96061         <stdlib.h> before using NULL.
96063 2007-10-15  Simon Josefsson  <simon@josefsson.org>
96065         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
96066         Reported by Albert Chin <china@thewrittenword.com>.
96068 2007-10-14  Bruno Haible  <bruno@clisp.org>
96070         * modules/iconv_open-utf-tests: New file.
96071         * tests/test-iconv-utf.c: New file.
96073         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
96074         * modules/iconv_open-utf: New file.
96075         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
96076         (iconv, iconv_close): New declarations.
96077         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
96078         be defined.
96079         (iconv_open): Add special handling of conversion between UTF-8 and
96080         UTF-{16,32}{BE,LE}.
96081         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
96082         * lib/iconv_close.c: New file.
96083         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
96084         gl_FUNC_ICONV_OPEN.
96085         (gl_FUNC_ICONV_OPEN): Use it.
96086         (gl_FUNC_ICONV_OPEN_UTF): New macro.
96087         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
96088         and REPLACE_ICONV_UTF.
96089         * modules/iconv_open (Depends-on): Add c-strcase.
96090         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
96091         ICONV_CONST.
96092         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
96094 2007-10-13  Albert Chin  <china@thewrittenword.com>
96095             Bruno Haible  <bruno@clisp.org>
96097         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
96098         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
96100 2007-10-13  Bruno Haible  <bruno@clisp.org>
96102         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
96103         defined, use the ISO C99 inline semantics.
96104         * lib/argp.h (ARGP_EI): Likewise.
96106 2007-10-13  Bruno Haible  <bruno@clisp.org>
96108         Handle 'inline' change in gcc 4.3.0.
96109         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
96110         argp_fmtstream_write, argp_fmtstream_set_lmargin,
96111         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
96112         argp_fmtstream_point): Disable 'extern' declaration if the function
96113         definition is going to be provided inline.
96114         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
96115         semantics, not the ISO C99 inline semantics.
96116         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
96117         'extern' declaration if the function definition is going to be provided
96118         inline.
96119         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
96120         the GNU C inline semantics, not the ISO C99 inline semantics. With
96121         GCC 4.2, avoid a warning.
96123 2007-10-13  Bruno Haible  <bruno@clisp.org>
96125         * lib/freading.h (freading): Enable the use of __freading for
96126         glibc >= 2.7.
96127         * lib/freading.c (freading): Likewise.
96129 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96131         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
96132         "warning: C99 inline functions are not supported; using GNU89".
96134 2007-10-12  Bruno Haible  <bruno@clisp.org>
96136         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
96137         of 2.
96138         * tests/test-ceilf2.c: New file.
96139         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
96141         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
96142         * modules/ceilf-tests: Update.
96144 2007-10-12  Bruno Haible  <bruno@clisp.org>
96146         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
96147         of 2.
96148         * tests/test-floorf2.c: New file.
96149         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
96151         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
96152         * modules/floorf-tests: Update.
96154 2007-10-12  Bruno Haible  <bruno@clisp.org>
96156         * tests/test-trunc2.c: New file.
96157         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
96159         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
96160         * modules/trunc-tests: Update.
96162 2007-10-12  Bruno Haible  <bruno@clisp.org>
96164         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
96165         of 2.
96166         * tests/test-truncf2.c: New file.
96167         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
96169         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
96170         * modules/truncf-tests: Update.
96172 2007-10-11  Eric Blake  <ebb9@byu.net>
96174         Don't claim strerror is broken on Interix.
96175         * doc/functions/strerror.texi (strerror): Known broken systems are
96176         now Solaris 8, and not Interix.
96177         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
96178         Interix on cross-compile.
96179         Reported by Martin Koeppe in
96180         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
96182 2007-10-11  Bruno Haible  <bruno@clisp.org>
96184         * modules/i-ring-tests: New file.
96185         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
96186         instead of assert.
96188 2007-10-11  Bruno Haible  <bruno@clisp.org>
96190         * modules/filenamecat-tests: New file.
96191         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
96192         * lib/filenamecat.c: Remove test code.
96194 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96196         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
96198         * lib/strerror.c: Include <string.h> always, to test interface,
96199         and to remove the need for the dummy.
96200         Include intprops.h to compute width instead of doing it ourselves
96201         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
96202         (strerror): Define it to return NULL if there's no system strerror.
96203         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
96204         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
96205         ancient pre-strerror Unix systems well any more.  Saying "unknown
96206         system error" is enough.
96207         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
96208         simpler strerror.c implementation.
96209         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
96210         Simplify the tests to reflect the simpler strerror implementation.
96211         * modules/strerror (Depends-on): Add intprops.
96213 2007-10-09  Eric Blake  <ebb9@byu.net>
96215         Silence test-fpending.
96216         * modules/fpending-tests (Files): Add wrapper script.
96217         * tests/test-fpending.sh: New file.
96219 2007-10-09  Bruno Haible  <bruno@clisp.org>
96221         * MODULES.html.sh (func_module): Don't create a hyperlink for
96222         function names like 'printf_frexp'.
96223         (Misc): Add crc, memxor.
96224         (Characteristics of floating types): New section.
96225         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
96226         isnanf-nolibm, signbit, trunc, truncf, truncl.
96227         (Enhancements for ISO C 99 functions): New subsection Input/output.
96228         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
96229         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
96230         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
96231         (Compatibility checks for POSIX:2001 functions): Add clock-time.
96232         (Enhancements for POSIX:2001 functions): Add chdir-long.
96233         (File system functions): Add areadlink, chdir-safer, read-file.
96234         Remove cycle-check.
96235         (File system as inode set): New section.
96236         (Date and time): Add gethrxtime.
96237         (Multithreading): Add openmp.
96238         (Internationalization functions): Add localename.
96239         (Unicode string functions): Add unistr/u*-mbsnlen.
96240         (Support for maintaining and releasing projects): Add git-version-gen.
96241         (Lone files): Remove directories.
96243 2007-10-08  Ben Pfaff  <blp@gnu.org>
96245         * lib/xmalloca.h: Fix typo in comment.
96247 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96249         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
96250         when avoiding problems with integer overflow.  Use a portable test
96251         instead.
96253 2007-10-08  Simon Josefsson  <simon@josefsson.org>
96255         * modules/dummy (License): Change to LGPLv2+.
96256         * modules/float (License): Likewise
96257         * modules/realloc (License): Likewise
96258         * modules/stdlib (License): Likewise
96260 2007-10-07  Bruno Haible  <bruno@clisp.org>
96262         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
96263         * floor.c (TWO_MANT_DIG): Likewise.
96264         * ceil.c (TWO_MANT_DIG): Likewise.
96265         Reported by Ben Pfaff.
96267 2007-10-07  Bruno Haible  <bruno@clisp.org>
96269         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
96270         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
96271         * lib/frexp.c (FUNC): Likewise.
96272         * lib/printf-frexp.h (printf_frexp): Likewise.
96273         * lib/printf-frexpl.h (printf_frexpl): Likewise.
96274         * lib/printf-frexp.c (FUNC): Likewise.
96275         Suggested by Jim Meyering.
96277 2007-10-07  Jim Meyering  <meyering@redhat.com>
96279         Make xnanosleep's integer overflow test more robust.
96280         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
96281         so that gcc-4.3.0 doesn't optimize away this test for overflow.
96283 2007-10-07  Bruno Haible  <bruno@clisp.org>
96285         * NEWS: Mention the license change.
96287         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
96288         abbreviations in the modules files.
96290         Change copyright notice from GPLv2+ to GPLv3+.
96291         * README: Change copyright notice.
96292         * MODULES.html.sh: Likewise.
96293         * build-aux/bootstrap.conf: Likewise.
96294         * build-aux/config.libpath: Likewise.
96295         * build-aux/csharpcomp.sh.in: Likewise.
96296         * build-aux/csharpexec.sh.in: Likewise.
96297         * build-aux/install-reloc: Likewise.
96298         * build-aux/javacomp.sh.in: Likewise.
96299         * build-aux/javaexec.sh.in: Likewise.
96300         * build-aux/ldd.sh.in: Likewise.
96301         * build-aux/reloc-ldflags: Likewise.
96302         * build-aux/relocatable.sh.in: Likewise.
96303         * build-aux/x-to-1.in: Likewise.
96304         * check-module: Likewise.
96305         * config/srclistvars.sh: Likewise.
96306         * gnulib-tool: Likewise.
96307         * lib/acl-internal.h: Likewise.
96308         * lib/acl.c: Likewise.
96309         * lib/acl.h: Likewise.
96310         * lib/acl_entries.c: Likewise.
96311         * lib/areadlink-with-size.c: Likewise.
96312         * lib/areadlink.c: Likewise.
96313         * lib/areadlink.h: Likewise.
96314         * lib/argmatch.c: Likewise.
96315         * lib/argmatch.h: Likewise.
96316         * lib/argp-ba.c: Likewise.
96317         * lib/argp-eexst.c: Likewise.
96318         * lib/argp-fmtstream.c: Likewise.
96319         * lib/argp-fmtstream.h: Likewise.
96320         * lib/argp-fs-xinl.c: Likewise.
96321         * lib/argp-help.c: Likewise.
96322         * lib/argp-namefrob.h: Likewise.
96323         * lib/argp-parse.c: Likewise.
96324         * lib/argp-pin.c: Likewise.
96325         * lib/argp-pv.c: Likewise.
96326         * lib/argp-pvh.c: Likewise.
96327         * lib/argp-xinl.c: Likewise.
96328         * lib/argp.h: Likewise.
96329         * lib/at-func.c: Likewise.
96330         * lib/atanl.c: Likewise.
96331         * lib/backupfile.c: Likewise.
96332         * lib/backupfile.h: Likewise.
96333         * lib/basename.c: Likewise.
96334         * lib/binary-io.h: Likewise.
96335         * lib/byteswap.in.h: Likewise.
96336         * lib/c-stack.c: Likewise.
96337         * lib/c-stack.h: Likewise.
96338         * lib/c-strcasestr.c: Likewise.
96339         * lib/c-strcasestr.h: Likewise.
96340         * lib/c-strstr.c: Likewise.
96341         * lib/c-strstr.h: Likewise.
96342         * lib/c-strtod.c: Likewise.
96343         * lib/calloc.c: Likewise.
96344         * lib/canon-host.c: Likewise.
96345         * lib/canon-host.h: Likewise.
96346         * lib/canonicalize-lgpl.c: Likewise.
96347         * lib/canonicalize.c: Likewise.
96348         * lib/canonicalize.h: Likewise.
96349         * lib/ceil.c: Likewise.
96350         * lib/ceilf.c: Likewise.
96351         * lib/ceill.c: Likewise.
96352         * lib/chdir-long.c: Likewise.
96353         * lib/chdir-long.h: Likewise.
96354         * lib/chdir-safer.c: Likewise.
96355         * lib/chdir-safer.h: Likewise.
96356         * lib/chown.c: Likewise.
96357         * lib/classpath.c: Likewise.
96358         * lib/classpath.h: Likewise.
96359         * lib/clean-temp.c: Likewise.
96360         * lib/clean-temp.h: Likewise.
96361         * lib/cloexec.c: Likewise.
96362         * lib/close-stream.c: Likewise.
96363         * lib/closein.c: Likewise.
96364         * lib/closein.h: Likewise.
96365         * lib/closeout.c: Likewise.
96366         * lib/closeout.h: Likewise.
96367         * lib/concat-filename.c: Likewise.
96368         * lib/copy-file.c: Likewise.
96369         * lib/copy-file.h: Likewise.
96370         * lib/count-one-bits.h: Likewise.
96371         * lib/crc.c: Likewise.
96372         * lib/crc.h: Likewise.
96373         * lib/creat-safer.c: Likewise.
96374         * lib/csharpcomp.c: Likewise.
96375         * lib/csharpcomp.h: Likewise.
96376         * lib/csharpexec.c: Likewise.
96377         * lib/csharpexec.h: Likewise.
96378         * lib/cycle-check.c: Likewise.
96379         * lib/cycle-check.h: Likewise.
96380         * lib/diacrit.c: Likewise.
96381         * lib/diacrit.h: Likewise.
96382         * lib/diffseq.h: Likewise.
96383         * lib/dirchownmod.c: Likewise.
96384         * lib/dirent.in.h: Likewise.
96385         * lib/dirfd.c: Likewise.
96386         * lib/dirfd.h: Likewise.
96387         * lib/dirname.c: Likewise.
96388         * lib/dirname.h: Likewise.
96389         * lib/dummy.c: Likewise.
96390         * lib/dup-safer.c: Likewise.
96391         * lib/dup2.c: Likewise.
96392         * lib/eealloc.h: Likewise.
96393         * lib/error.c: Likewise.
96394         * lib/error.h: Likewise.
96395         * lib/euidaccess.c: Likewise.
96396         * lib/exclude.c: Likewise.
96397         * lib/exclude.h: Likewise.
96398         * lib/execute.c: Likewise.
96399         * lib/execute.h: Likewise.
96400         * lib/exitfail.c: Likewise.
96401         * lib/exitfail.h: Likewise.
96402         * lib/expl.c: Likewise.
96403         * lib/fatal-signal.c: Likewise.
96404         * lib/fatal-signal.h: Likewise.
96405         * lib/fbufmode.c: Likewise.
96406         * lib/fbufmode.h: Likewise.
96407         * lib/fchdir.c: Likewise.
96408         * lib/fchmodat.c: Likewise.
96409         * lib/fchownat.c: Likewise.
96410         * lib/fcntl--.h: Likewise.
96411         * lib/fcntl-safer.h: Likewise.
96412         * lib/fcntl.in.h: Likewise.
96413         * lib/fd-safer.c: Likewise.
96414         * lib/fflush.c: Likewise.
96415         * lib/file-has-acl.c: Likewise.
96416         * lib/file-set.c: Likewise.
96417         * lib/file-type.c: Likewise.
96418         * lib/file-type.h: Likewise.
96419         * lib/fileblocks.c: Likewise.
96420         * lib/filemode.c: Likewise.
96421         * lib/filemode.h: Likewise.
96422         * lib/filename.h: Likewise.
96423         * lib/filenamecat.c: Likewise.
96424         * lib/filenamecat.h: Likewise.
96425         * lib/findprog.c: Likewise.
96426         * lib/findprog.h: Likewise.
96427         * lib/float.in.h: Likewise.
96428         * lib/floor.c: Likewise.
96429         * lib/floorf.c: Likewise.
96430         * lib/floorl.c: Likewise.
96431         * lib/fopen-safer.c: Likewise.
96432         * lib/fopen.c: Likewise.
96433         * lib/fpending.c: Likewise.
96434         * lib/fpending.h: Likewise.
96435         * lib/fprintf.c: Likewise.
96436         * lib/fprintftime.h: Likewise.
96437         * lib/fpucw.h: Likewise.
96438         * lib/fpurge.c: Likewise.
96439         * lib/fpurge.h: Likewise.
96440         * lib/freadable.c: Likewise.
96441         * lib/freadable.h: Likewise.
96442         * lib/freadahead.c: Likewise.
96443         * lib/freadahead.h: Likewise.
96444         * lib/freading.c: Likewise.
96445         * lib/freading.h: Likewise.
96446         * lib/free.c: Likewise.
96447         * lib/freopen.c: Likewise.
96448         * lib/frexp.c: Likewise.
96449         * lib/frexpl.c: Likewise.
96450         * lib/fseek.c: Likewise.
96451         * lib/fseterr.c: Likewise.
96452         * lib/fseterr.h: Likewise.
96453         * lib/fstatat.c: Likewise.
96454         * lib/fstrcmp.c: Likewise.
96455         * lib/fstrcmp.h: Likewise.
96456         * lib/fsusage.c: Likewise.
96457         * lib/fsusage.h: Likewise.
96458         * lib/ftell.c: Likewise.
96459         * lib/ftello.c: Likewise.
96460         * lib/fts-cycle.c: Likewise.
96461         * lib/fts.c: Likewise.
96462         * lib/fts_.h: Likewise.
96463         * lib/full-read.c: Likewise.
96464         * lib/full-read.h: Likewise.
96465         * lib/full-write.c: Likewise.
96466         * lib/full-write.h: Likewise.
96467         * lib/fwritable.c: Likewise.
96468         * lib/fwritable.h: Likewise.
96469         * lib/fwriteerror.c: Likewise.
96470         * lib/fwriteerror.h: Likewise.
96471         * lib/fwriting.c: Likewise.
96472         * lib/fwriting.h: Likewise.
96473         * lib/gcd.c: Likewise.
96474         * lib/gcd.h: Likewise.
96475         * lib/getcwd.c: Likewise.
96476         * lib/getdate.h: Likewise.
96477         * lib/getdate.y: Likewise.
96478         * lib/getdomainname.c: Likewise.
96479         * lib/getdomainname.h: Likewise.
96480         * lib/getgroups.c: Likewise.
96481         * lib/gethostname.c: Likewise.
96482         * lib/gethrxtime.c: Likewise.
96483         * lib/gethrxtime.h: Likewise.
96484         * lib/getloadavg.c: Likewise.
96485         * lib/getndelim2.c: Likewise.
96486         * lib/getndelim2.h: Likewise.
96487         * lib/getnline.c: Likewise.
96488         * lib/getnline.h: Likewise.
96489         * lib/getopt.c: Likewise.
96490         * lib/getopt.in.h: Likewise.
96491         * lib/getopt1.c: Likewise.
96492         * lib/getopt_int.h: Likewise.
96493         * lib/getpagesize.h: Likewise.
96494         * lib/getsubopt.c: Likewise.
96495         * lib/gettime.c: Likewise.
96496         * lib/getugroups.c: Likewise.
96497         * lib/getugroups.h: Likewise.
96498         * lib/getusershell.c: Likewise.
96499         * lib/gl_anyavltree_list1.h: Likewise.
96500         * lib/gl_anyavltree_list2.h: Likewise.
96501         * lib/gl_anyhash_list1.h: Likewise.
96502         * lib/gl_anyhash_list2.h: Likewise.
96503         * lib/gl_anylinked_list1.h: Likewise.
96504         * lib/gl_anylinked_list2.h: Likewise.
96505         * lib/gl_anyrbtree_list1.h: Likewise.
96506         * lib/gl_anyrbtree_list2.h: Likewise.
96507         * lib/gl_anytree_list1.h: Likewise.
96508         * lib/gl_anytree_list2.h: Likewise.
96509         * lib/gl_anytree_oset.h: Likewise.
96510         * lib/gl_anytreehash_list1.h: Likewise.
96511         * lib/gl_anytreehash_list2.h: Likewise.
96512         * lib/gl_array_list.c: Likewise.
96513         * lib/gl_array_list.h: Likewise.
96514         * lib/gl_array_oset.c: Likewise.
96515         * lib/gl_array_oset.h: Likewise.
96516         * lib/gl_avltree_list.c: Likewise.
96517         * lib/gl_avltree_list.h: Likewise.
96518         * lib/gl_avltree_oset.c: Likewise.
96519         * lib/gl_avltree_oset.h: Likewise.
96520         * lib/gl_avltreehash_list.c: Likewise.
96521         * lib/gl_avltreehash_list.h: Likewise.
96522         * lib/gl_carray_list.c: Likewise.
96523         * lib/gl_carray_list.h: Likewise.
96524         * lib/gl_linked_list.c: Likewise.
96525         * lib/gl_linked_list.h: Likewise.
96526         * lib/gl_linkedhash_list.c: Likewise.
96527         * lib/gl_linkedhash_list.h: Likewise.
96528         * lib/gl_list.c: Likewise.
96529         * lib/gl_list.h: Likewise.
96530         * lib/gl_oset.c: Likewise.
96531         * lib/gl_oset.h: Likewise.
96532         * lib/gl_rbtree_list.c: Likewise.
96533         * lib/gl_rbtree_list.h: Likewise.
96534         * lib/gl_rbtree_oset.c: Likewise.
96535         * lib/gl_rbtree_oset.h: Likewise.
96536         * lib/gl_rbtreehash_list.c: Likewise.
96537         * lib/gl_rbtreehash_list.h: Likewise.
96538         * lib/gl_sublist.c: Likewise.
96539         * lib/gl_sublist.h: Likewise.
96540         * lib/group-member.c: Likewise.
96541         * lib/group-member.h: Likewise.
96542         * lib/hard-locale.c: Likewise.
96543         * lib/hard-locale.h: Likewise.
96544         * lib/hash-pjw.c: Likewise.
96545         * lib/hash-pjw.h: Likewise.
96546         * lib/hash-triple.c: Likewise.
96547         * lib/hash.c: Likewise.
96548         * lib/hash.h: Likewise.
96549         * lib/human.c: Likewise.
96550         * lib/human.h: Likewise.
96551         * lib/i-ring.c: Likewise.
96552         * lib/i-ring.h: Likewise.
96553         * lib/idcache.c: Likewise.
96554         * lib/imaxabs.c: Likewise.
96555         * lib/imaxdiv.c: Likewise.
96556         * lib/inet_pton.c: Likewise.
96557         * lib/inet_pton.h: Likewise.
96558         * lib/intprops.h: Likewise.
96559         * lib/inttostr.c: Likewise.
96560         * lib/inttostr.h: Likewise.
96561         * lib/inttypes.in.h: Likewise.
96562         * lib/isapipe.c: Likewise.
96563         * lib/isdir.c: Likewise.
96564         * lib/isnan.c: Likewise.
96565         * lib/isnan.h: Likewise.
96566         * lib/isnanf.c: Likewise.
96567         * lib/isnanf.h: Likewise.
96568         * lib/isnanl-nolibm.h: Likewise.
96569         * lib/isnanl.c: Likewise.
96570         * lib/isnanl.h: Likewise.
96571         * lib/javacomp.c: Likewise.
96572         * lib/javacomp.h: Likewise.
96573         * lib/javaexec.c: Likewise.
96574         * lib/javaexec.h: Likewise.
96575         * lib/javaversion.c: Likewise.
96576         * lib/javaversion.h: Likewise.
96577         * lib/javaversion.java: Likewise.
96578         * lib/lbrkprop.h: Likewise.
96579         * lib/lchmod.h: Likewise.
96580         * lib/lchown.c: Likewise.
96581         * lib/ldexpl.c: Likewise.
96582         * lib/linebreak.c: Likewise.
96583         * lib/linebreak.h: Likewise.
96584         * lib/linebuffer.c: Likewise.
96585         * lib/linebuffer.h: Likewise.
96586         * lib/locale.in.h: Likewise.
96587         * lib/logl.c: Likewise.
96588         * lib/long-options.c: Likewise.
96589         * lib/long-options.h: Likewise.
96590         * lib/lstat.c: Likewise.
96591         * lib/lstat.h: Likewise.
96592         * lib/math.in.h: Likewise.
96593         * lib/mbchar.c: Likewise.
96594         * lib/mbchar.h: Likewise.
96595         * lib/mbfile.h: Likewise.
96596         * lib/mbiter.h: Likewise.
96597         * lib/mbscasecmp.c: Likewise.
96598         * lib/mbscasestr.c: Likewise.
96599         * lib/mbschr.c: Likewise.
96600         * lib/mbscspn.c: Likewise.
96601         * lib/mbslen.c: Likewise.
96602         * lib/mbsncasecmp.c: Likewise.
96603         * lib/mbsnlen.c: Likewise.
96604         * lib/mbspbrk.c: Likewise.
96605         * lib/mbspcasecmp.c: Likewise.
96606         * lib/mbsrchr.c: Likewise.
96607         * lib/mbssep.c: Likewise.
96608         * lib/mbsspn.c: Likewise.
96609         * lib/mbsstr.c: Likewise.
96610         * lib/mbstok_r.c: Likewise.
96611         * lib/mbswidth.c: Likewise.
96612         * lib/mbswidth.h: Likewise.
96613         * lib/mbuiter.h: Likewise.
96614         * lib/memcasecmp.c: Likewise.
96615         * lib/memcasecmp.h: Likewise.
96616         * lib/memchr.c: Likewise.
96617         * lib/memcmp.c: Likewise.
96618         * lib/memcoll.c: Likewise.
96619         * lib/memcoll.h: Likewise.
96620         * lib/memcpy.c: Likewise.
96621         * lib/memrchr.c: Likewise.
96622         * lib/mkancesdirs.c: Likewise.
96623         * lib/mkdir-p.c: Likewise.
96624         * lib/mkdir-p.h: Likewise.
96625         * lib/mkdir.c: Likewise.
96626         * lib/mkdirat.c: Likewise.
96627         * lib/mkdtemp.c: Likewise.
96628         * lib/mkstemp-safer.c: Likewise.
96629         * lib/mkstemp.c: Likewise.
96630         * lib/modechange.c: Likewise.
96631         * lib/modechange.h: Likewise.
96632         * lib/mountlist.c: Likewise.
96633         * lib/mountlist.h: Likewise.
96634         * lib/mpsort.c: Likewise.
96635         * lib/nanosleep.c: Likewise.
96636         * lib/obstack.c: Likewise.
96637         * lib/obstack.h: Likewise.
96638         * lib/open-safer.c: Likewise.
96639         * lib/open.c: Likewise.
96640         * lib/openat-die.c: Likewise.
96641         * lib/openat-priv.h: Likewise.
96642         * lib/openat-proc.c: Likewise.
96643         * lib/openat.c: Likewise.
96644         * lib/openat.h: Likewise.
96645         * lib/pagealign_alloc.c: Likewise.
96646         * lib/pagealign_alloc.h: Likewise.
96647         * lib/physmem.c: Likewise.
96648         * lib/physmem.h: Likewise.
96649         * lib/pipe-safer.c: Likewise.
96650         * lib/pipe.c: Likewise.
96651         * lib/pipe.h: Likewise.
96652         * lib/posixtm.c: Likewise.
96653         * lib/posixtm.h: Likewise.
96654         * lib/posixver.c: Likewise.
96655         * lib/printf-frexp.c: Likewise.
96656         * lib/printf-frexp.h: Likewise.
96657         * lib/printf-frexpl.c: Likewise.
96658         * lib/printf-frexpl.h: Likewise.
96659         * lib/printf.c: Likewise.
96660         * lib/progname.c: Likewise.
96661         * lib/progname.h: Likewise.
96662         * lib/progreloc.c: Likewise.
96663         * lib/putenv.c: Likewise.
96664         * lib/quote.c: Likewise.
96665         * lib/quote.h: Likewise.
96666         * lib/quotearg.c: Likewise.
96667         * lib/quotearg.h: Likewise.
96668         * lib/raise.c: Likewise.
96669         * lib/readline.c: Likewise.
96670         * lib/readline.h: Likewise.
96671         * lib/readlink.c: Likewise.
96672         * lib/readtokens.c: Likewise.
96673         * lib/readtokens.h: Likewise.
96674         * lib/readtokens0.c: Likewise.
96675         * lib/readtokens0.h: Likewise.
96676         * lib/readutmp.c: Likewise.
96677         * lib/readutmp.h: Likewise.
96678         * lib/realloc.c: Likewise.
96679         * lib/relocwrapper.c: Likewise.
96680         * lib/rename-dest-slash.c: Likewise.
96681         * lib/rename.c: Likewise.
96682         * lib/rmdir.c: Likewise.
96683         * lib/rpmatch.c: Likewise.
96684         * lib/safe-read.c: Likewise.
96685         * lib/safe-read.h: Likewise.
96686         * lib/safe-write.c: Likewise.
96687         * lib/safe-write.h: Likewise.
96688         * lib/same-inode.h: Likewise.
96689         * lib/same.c: Likewise.
96690         * lib/same.h: Likewise.
96691         * lib/save-cwd.c: Likewise.
96692         * lib/save-cwd.h: Likewise.
96693         * lib/savedir.c: Likewise.
96694         * lib/savedir.h: Likewise.
96695         * lib/savewd.c: Likewise.
96696         * lib/savewd.h: Likewise.
96697         * lib/search.in.h: Likewise.
96698         * lib/setenv.c: Likewise.
96699         * lib/setenv.h: Likewise.
96700         * lib/settime.c: Likewise.
96701         * lib/sh-quote.c: Likewise.
96702         * lib/sh-quote.h: Likewise.
96703         * lib/sig2str.c: Likewise.
96704         * lib/sig2str.h: Likewise.
96705         * lib/signal.in.h: Likewise.
96706         * lib/signbitd.c: Likewise.
96707         * lib/signbitf.c: Likewise.
96708         * lib/signbitl.c: Likewise.
96709         * lib/sigprocmask.c: Likewise.
96710         * lib/sincosl.c: Likewise.
96711         * lib/sleep.c: Likewise.
96712         * lib/sprintf.c: Likewise.
96713         * lib/sqrtl.c: Likewise.
96714         * lib/stat-time.h: Likewise.
96715         * lib/stdio--.h: Likewise.
96716         * lib/stdio-safer.h: Likewise.
96717         * lib/stdlib--.h: Likewise.
96718         * lib/stdlib-safer.h: Likewise.
96719         * lib/stdlib.in.h: Likewise.
96720         * lib/stpcpy.c: Likewise.
96721         * lib/stpncpy.c: Likewise.
96722         * lib/strchrnul.c: Likewise.
96723         * lib/strcspn.c: Likewise.
96724         * lib/strerror.c: Likewise.
96725         * lib/strftime.c: Likewise.
96726         * lib/strftime.h: Likewise.
96727         * lib/striconveh.c: Likewise.
96728         * lib/striconveh.h: Likewise.
96729         * lib/striconveha.c: Likewise.
96730         * lib/striconveha.h: Likewise.
96731         * lib/stripslash.c: Likewise.
96732         * lib/strnlen1.c: Likewise.
96733         * lib/strnlen1.h: Likewise.
96734         * lib/strtod.c: Likewise.
96735         * lib/strtoimax.c: Likewise.
96736         * lib/strtok_r.c: Likewise.
96737         * lib/strtol.c: Likewise.
96738         * lib/strtoll.c: Likewise.
96739         * lib/strtoul.c: Likewise.
96740         * lib/strtoull.c: Likewise.
96741         * lib/sysexits.in.h: Likewise.
96742         * lib/tempname.c: Likewise.
96743         * lib/tempname.h: Likewise.
96744         * lib/timespec.h: Likewise.
96745         * lib/tls.c: Likewise.
96746         * lib/tls.h: Likewise.
96747         * lib/tmpdir.c: Likewise.
96748         * lib/tmpdir.h: Likewise.
96749         * lib/tmpfile-safer.c: Likewise.
96750         * lib/tmpfile.c: Likewise.
96751         * lib/trigl.c: Likewise.
96752         * lib/trigl.h: Likewise.
96753         * lib/trim.c: Likewise.
96754         * lib/trim.h: Likewise.
96755         * lib/trunc.c: Likewise.
96756         * lib/truncf.c: Likewise.
96757         * lib/truncl.c: Likewise.
96758         * lib/tsearch.c: Likewise.
96759         * lib/unicodeio.c: Likewise.
96760         * lib/unicodeio.h: Likewise.
96761         * lib/unistd--.h: Likewise.
96762         * lib/unistd-safer.h: Likewise.
96763         * lib/unistdio/ulc-fprintf.c: Likewise.
96764         * lib/unistdio/ulc-vfprintf.c: Likewise.
96765         * lib/unlinkdir.c: Likewise.
96766         * lib/unlinkdir.h: Likewise.
96767         * lib/unlocked-io.h: Likewise.
96768         * lib/unsetenv.c: Likewise.
96769         * lib/userspec.c: Likewise.
96770         * lib/utime.c: Likewise.
96771         * lib/utimecmp.c: Likewise.
96772         * lib/utimecmp.h: Likewise.
96773         * lib/utimens.c: Likewise.
96774         * lib/verify.h: Likewise.
96775         * lib/verror.c: Likewise.
96776         * lib/verror.h: Likewise.
96777         * lib/version-etc-fsf.c: Likewise.
96778         * lib/version-etc.c: Likewise.
96779         * lib/version-etc.h: Likewise.
96780         * lib/vfprintf.c: Likewise.
96781         * lib/vprintf.c: Likewise.
96782         * lib/vsprintf.c: Likewise.
96783         * lib/w32spawn.h: Likewise.
96784         * lib/wait-process.c: Likewise.
96785         * lib/wait-process.h: Likewise.
96786         * lib/wcwidth.c: Likewise.
96787         * lib/write-any-file.c: Likewise.
96788         * lib/xalloc-die.c: Likewise.
96789         * lib/xalloc.h: Likewise.
96790         * lib/xasprintf.c: Likewise.
96791         * lib/xgetcwd.c: Likewise.
96792         * lib/xgetcwd.h: Likewise.
96793         * lib/xgetdomainname.c: Likewise.
96794         * lib/xgetdomainname.h: Likewise.
96795         * lib/xgethostname.c: Likewise.
96796         * lib/xmalloc.c: Likewise.
96797         * lib/xmalloca.c: Likewise.
96798         * lib/xmalloca.h: Likewise.
96799         * lib/xmemcoll.c: Likewise.
96800         * lib/xnanosleep.c: Likewise.
96801         * lib/xreadlink.c: Likewise.
96802         * lib/xreadlink.h: Likewise.
96803         * lib/xsetenv.c: Likewise.
96804         * lib/xsetenv.h: Likewise.
96805         * lib/xstriconv.c: Likewise.
96806         * lib/xstriconv.h: Likewise.
96807         * lib/xstrndup.c: Likewise.
96808         * lib/xstrndup.h: Likewise.
96809         * lib/xstrtod.c: Likewise.
96810         * lib/xstrtod.h: Likewise.
96811         * lib/xstrtol-error.c: Likewise.
96812         * lib/xstrtol.c: Likewise.
96813         * lib/xstrtol.h: Likewise.
96814         * lib/xtime.h: Likewise.
96815         * lib/xvasprintf.c: Likewise.
96816         * lib/xvasprintf.h: Likewise.
96817         * lib/yesno.c: Likewise.
96818         * lib/yesno.h: Likewise.
96819         * posix-modules: Likewise.
96820         * tests/test-alloca-opt.c: Likewise.
96821         * tests/test-arcfour.c: Likewise.
96822         * tests/test-arctwo.c: Likewise.
96823         * tests/test-argmatch.c: Likewise.
96824         * tests/test-argp-2.sh: Likewise.
96825         * tests/test-argp.c: Likewise.
96826         * tests/test-arpa_inet.c: Likewise.
96827         * tests/test-array_list.c: Likewise.
96828         * tests/test-array_oset.c: Likewise.
96829         * tests/test-atexit.c: Likewise.
96830         * tests/test-avltree_list.c: Likewise.
96831         * tests/test-avltree_oset.c: Likewise.
96832         * tests/test-avltreehash_list.c: Likewise.
96833         * tests/test-base64.c: Likewise.
96834         * tests/test-binary-io.c: Likewise.
96835         * tests/test-byteswap.c: Likewise.
96836         * tests/test-c-ctype.c: Likewise.
96837         * tests/test-c-strcasecmp.c: Likewise.
96838         * tests/test-c-strcasestr.c: Likewise.
96839         * tests/test-c-strncasecmp.c: Likewise.
96840         * tests/test-c-strstr.c: Likewise.
96841         * tests/test-canonicalize-lgpl.c: Likewise.
96842         * tests/test-canonicalize.c: Likewise.
96843         * tests/test-carray_list.c: Likewise.
96844         * tests/test-ceilf.c: Likewise.
96845         * tests/test-ceill.c: Likewise.
96846         * tests/test-count-one-bits.c: Likewise.
96847         * tests/test-crc.c: Likewise.
96848         * tests/test-dirname.c: Likewise.
96849         * tests/test-fbufmode.c: Likewise.
96850         * tests/test-fcntl.c: Likewise.
96851         * tests/test-fflush.c: Likewise.
96852         * tests/test-floorf.c: Likewise.
96853         * tests/test-floorl.c: Likewise.
96854         * tests/test-fopen.c: Likewise.
96855         * tests/test-fprintf-posix.c: Likewise.
96856         * tests/test-fprintf-posix.h: Likewise.
96857         * tests/test-fpurge.c: Likewise.
96858         * tests/test-freadable.c: Likewise.
96859         * tests/test-freadahead.c: Likewise.
96860         * tests/test-freading.c: Likewise.
96861         * tests/test-freopen.c: Likewise.
96862         * tests/test-frexp.c: Likewise.
96863         * tests/test-frexpl.c: Likewise.
96864         * tests/test-fseek.c: Likewise.
96865         * tests/test-fseeko.c: Likewise.
96866         * tests/test-fseterr.c: Likewise.
96867         * tests/test-fstrcmp.c: Likewise.
96868         * tests/test-ftell.c: Likewise.
96869         * tests/test-ftello.c: Likewise.
96870         * tests/test-fwritable.c: Likewise.
96871         * tests/test-fwriting.c: Likewise.
96872         * tests/test-getaddrinfo.c: Likewise.
96873         * tests/test-getpass.c: Likewise.
96874         * tests/test-gettimeofday.c: Likewise.
96875         * tests/test-hmac-md5.c: Likewise.
96876         * tests/test-hmac-sha1.c: Likewise.
96877         * tests/test-iconv.c: Likewise.
96878         * tests/test-iconvme.c: Likewise.
96879         * tests/test-inttypes.c: Likewise.
96880         * tests/test-isnan.c: Likewise.
96881         * tests/test-isnanf.c: Likewise.
96882         * tests/test-isnanl-nolibm.c: Likewise.
96883         * tests/test-isnanl.c: Likewise.
96884         * tests/test-isnanl.h: Likewise.
96885         * tests/test-ldexpl.c: Likewise.
96886         * tests/test-linked_list.c: Likewise.
96887         * tests/test-linkedhash_list.c: Likewise.
96888         * tests/test-locale.c: Likewise.
96889         * tests/test-localename.c: Likewise.
96890         * tests/test-lock.c: Likewise.
96891         * tests/test-lseek.c: Likewise.
96892         * tests/test-malloca.c: Likewise.
96893         * tests/test-math.c: Likewise.
96894         * tests/test-mbscasecmp.c: Likewise.
96895         * tests/test-mbscasestr1.c: Likewise.
96896         * tests/test-mbscasestr2.c: Likewise.
96897         * tests/test-mbscasestr3.c: Likewise.
96898         * tests/test-mbscasestr4.c: Likewise.
96899         * tests/test-mbschr.c: Likewise.
96900         * tests/test-mbscspn.c: Likewise.
96901         * tests/test-mbsncasecmp.c: Likewise.
96902         * tests/test-mbspbrk.c: Likewise.
96903         * tests/test-mbspcasecmp.c: Likewise.
96904         * tests/test-mbsrchr.c: Likewise.
96905         * tests/test-mbsspn.c: Likewise.
96906         * tests/test-mbsstr1.c: Likewise.
96907         * tests/test-mbsstr2.c: Likewise.
96908         * tests/test-mbsstr3.c: Likewise.
96909         * tests/test-md5.c: Likewise.
96910         * tests/test-memmem.c: Likewise.
96911         * tests/test-netinet_in.c: Likewise.
96912         * tests/test-open.c: Likewise.
96913         * tests/test-printf-frexp.c: Likewise.
96914         * tests/test-printf-frexpl.c: Likewise.
96915         * tests/test-printf-posix.c: Likewise.
96916         * tests/test-printf-posix.h: Likewise.
96917         * tests/test-rbtree_list.c: Likewise.
96918         * tests/test-rbtree_oset.c: Likewise.
96919         * tests/test-rbtreehash_list.c: Likewise.
96920         * tests/test-read-file.c: Likewise.
96921         * tests/test-rijndael.c: Likewise.
96922         * tests/test-search.c: Likewise.
96923         * tests/test-signbit.c: Likewise.
96924         * tests/test-sleep.c: Likewise.
96925         * tests/test-snprintf-posix.c: Likewise.
96926         * tests/test-snprintf-posix.h: Likewise.
96927         * tests/test-snprintf.c: Likewise.
96928         * tests/test-sprintf-posix.c: Likewise.
96929         * tests/test-sprintf-posix.h: Likewise.
96930         * tests/test-stat-time.c: Likewise.
96931         * tests/test-stdbool.c: Likewise.
96932         * tests/test-stdint.c: Likewise.
96933         * tests/test-stdio.c: Likewise.
96934         * tests/test-stdlib.c: Likewise.
96935         * tests/test-stpncpy.c: Likewise.
96936         * tests/test-strcasestr.c: Likewise.
96937         * tests/test-striconv.c: Likewise.
96938         * tests/test-striconveh.c: Likewise.
96939         * tests/test-striconveha.c: Likewise.
96940         * tests/test-string.c: Likewise.
96941         * tests/test-sys_select.c: Likewise.
96942         * tests/test-sys_socket.c: Likewise.
96943         * tests/test-sys_stat.c: Likewise.
96944         * tests/test-sys_time.c: Likewise.
96945         * tests/test-sysexits.c: Likewise.
96946         * tests/test-time.c: Likewise.
96947         * tests/test-tls.c: Likewise.
96948         * tests/test-trunc.c: Likewise.
96949         * tests/test-truncf.c: Likewise.
96950         * tests/test-truncl.c: Likewise.
96951         * tests/test-unistd.c: Likewise.
96952         * tests/test-vasnprintf-posix.c: Likewise.
96953         * tests/test-vasnprintf-posix2.c: Likewise.
96954         * tests/test-vasnprintf.c: Likewise.
96955         * tests/test-vasprintf-posix.c: Likewise.
96956         * tests/test-vasprintf.c: Likewise.
96957         * tests/test-verify.c: Likewise.
96958         * tests/test-vfprintf-posix.c: Likewise.
96959         * tests/test-vprintf-posix.c: Likewise.
96960         * tests/test-vsnprintf-posix.c: Likewise.
96961         * tests/test-vsnprintf.c: Likewise.
96962         * tests/test-vsprintf-posix.c: Likewise.
96963         * tests/test-wchar.c: Likewise.
96964         * tests/test-wctype.c: Likewise.
96965         * tests/test-wcwidth.c: Likewise.
96966         * tests/test-xstrtol.c: Likewise.
96967         * tests/test-xvasprintf.c: Likewise.
96968         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
96969         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
96970         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
96971         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
96972         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
96973         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
96974         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
96975         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
96976         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
96977         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
96978         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
96979         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
96980         * tests/uniname/test-uninames.c: Likewise.
96981         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
96982         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
96983         * tests/unistdio/test-u16-printf1.h: Likewise.
96984         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
96985         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
96986         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
96987         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
96988         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
96989         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
96990         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
96991         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
96992         * tests/unistdio/test-u32-printf1.h: Likewise.
96993         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
96994         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
96995         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
96996         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
96997         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
96998         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
96999         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
97000         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
97001         * tests/unistdio/test-u8-printf1.h: Likewise.
97002         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
97003         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
97004         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
97005         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
97006         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
97007         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
97008         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
97009         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
97010         * tests/unistdio/test-ulc-printf1.h: Likewise.
97011         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
97012         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
97013         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
97014         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
97015         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
97016         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
97017         * tests/uniwidth/test-u16-strwidth.c: Likewise.
97018         * tests/uniwidth/test-u16-width.c: Likewise.
97019         * tests/uniwidth/test-u32-strwidth.c: Likewise.
97020         * tests/uniwidth/test-u32-width.c: Likewise.
97021         * tests/uniwidth/test-u8-strwidth.c: Likewise.
97022         * tests/uniwidth/test-u8-width.c: Likewise.
97023         * tests/uniwidth/test-uc_width.c: Likewise.
97024         * config/srclist-update: Likewise.
97025         (fixlicense): Update to GPLv3+.
97027         Change copyright notice from LGPLv2.1+ to LGPLv3+.
97028         * tests/test-tsearch.c: Change copyright notice.
97030         Change copyright notice from LGPLv2.0+ to LGPLv3+.
97031         * lib/c-strcaseeq.h: Change copyright notice.
97032         * lib/streq.h: Likewise.
97033         * lib/uniconv.h: Likewise.
97034         * lib/uniconv/u-conv-from-enc.h: Likewise.
97035         * lib/uniconv/u-conv-to-enc.h: Likewise.
97036         * lib/uniconv/u-strconv-from-enc.h: Likewise.
97037         * lib/uniconv/u-strconv-to-enc.h: Likewise.
97038         * lib/uniconv/u16-conv-from-enc.c: Likewise.
97039         * lib/uniconv/u16-conv-to-enc.c: Likewise.
97040         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
97041         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
97042         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
97043         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
97044         * lib/uniconv/u32-conv-from-enc.c: Likewise.
97045         * lib/uniconv/u32-conv-to-enc.c: Likewise.
97046         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
97047         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
97048         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
97049         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
97050         * lib/uniconv/u8-conv-from-enc.c: Likewise.
97051         * lib/uniconv/u8-conv-to-enc.c: Likewise.
97052         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
97053         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
97054         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
97055         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
97056         * lib/uniname.h: Likewise.
97057         * lib/uniname/uniname.c: Likewise.
97058         * lib/unistdio.h: Likewise.
97059         * lib/unistdio/u-asnprintf.h: Likewise.
97060         * lib/unistdio/u-asprintf.h: Likewise.
97061         * lib/unistdio/u-printf-args.c: Likewise.
97062         * lib/unistdio/u-printf-args.h: Likewise.
97063         * lib/unistdio/u-printf-parse.h: Likewise.
97064         * lib/unistdio/u-snprintf.h: Likewise.
97065         * lib/unistdio/u-sprintf.h: Likewise.
97066         * lib/unistdio/u-vasprintf.h: Likewise.
97067         * lib/unistdio/u-vsnprintf.h: Likewise.
97068         * lib/unistdio/u-vsprintf.h: Likewise.
97069         * lib/unistdio/u16-asnprintf.c: Likewise.
97070         * lib/unistdio/u16-asprintf.c: Likewise.
97071         * lib/unistdio/u16-printf-parse.c: Likewise.
97072         * lib/unistdio/u16-snprintf.c: Likewise.
97073         * lib/unistdio/u16-sprintf.c: Likewise.
97074         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
97075         * lib/unistdio/u16-u16-asprintf.c: Likewise.
97076         * lib/unistdio/u16-u16-snprintf.c: Likewise.
97077         * lib/unistdio/u16-u16-sprintf.c: Likewise.
97078         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
97079         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
97080         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
97081         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
97082         * lib/unistdio/u16-vasnprintf.c: Likewise.
97083         * lib/unistdio/u16-vasprintf.c: Likewise.
97084         * lib/unistdio/u16-vsnprintf.c: Likewise.
97085         * lib/unistdio/u16-vsprintf.c: Likewise.
97086         * lib/unistdio/u32-asnprintf.c: Likewise.
97087         * lib/unistdio/u32-asprintf.c: Likewise.
97088         * lib/unistdio/u32-printf-parse.c: Likewise.
97089         * lib/unistdio/u32-snprintf.c: Likewise.
97090         * lib/unistdio/u32-sprintf.c: Likewise.
97091         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
97092         * lib/unistdio/u32-u32-asprintf.c: Likewise.
97093         * lib/unistdio/u32-u32-snprintf.c: Likewise.
97094         * lib/unistdio/u32-u32-sprintf.c: Likewise.
97095         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
97096         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
97097         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
97098         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
97099         * lib/unistdio/u32-vasnprintf.c: Likewise.
97100         * lib/unistdio/u32-vasprintf.c: Likewise.
97101         * lib/unistdio/u32-vsnprintf.c: Likewise.
97102         * lib/unistdio/u32-vsprintf.c: Likewise.
97103         * lib/unistdio/u8-asnprintf.c: Likewise.
97104         * lib/unistdio/u8-asprintf.c: Likewise.
97105         * lib/unistdio/u8-printf-parse.c: Likewise.
97106         * lib/unistdio/u8-snprintf.c: Likewise.
97107         * lib/unistdio/u8-sprintf.c: Likewise.
97108         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
97109         * lib/unistdio/u8-u8-asprintf.c: Likewise.
97110         * lib/unistdio/u8-u8-snprintf.c: Likewise.
97111         * lib/unistdio/u8-u8-sprintf.c: Likewise.
97112         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
97113         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
97114         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
97115         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
97116         * lib/unistdio/u8-vasnprintf.c: Likewise.
97117         * lib/unistdio/u8-vasprintf.c: Likewise.
97118         * lib/unistdio/u8-vsnprintf.c: Likewise.
97119         * lib/unistdio/u8-vsprintf.c: Likewise.
97120         * lib/unistdio/ulc-asnprintf.c: Likewise.
97121         * lib/unistdio/ulc-asprintf.c: Likewise.
97122         * lib/unistdio/ulc-printf-parse.c: Likewise.
97123         * lib/unistdio/ulc-snprintf.c: Likewise.
97124         * lib/unistdio/ulc-sprintf.c: Likewise.
97125         * lib/unistdio/ulc-vasnprintf.c: Likewise.
97126         * lib/unistdio/ulc-vasprintf.c: Likewise.
97127         * lib/unistdio/ulc-vsnprintf.c: Likewise.
97128         * lib/unistdio/ulc-vsprintf.c: Likewise.
97129         * lib/unistr.h: Likewise.
97130         * lib/unistr/u-cpy-alloc.h: Likewise.
97131         * lib/unistr/u-cpy.h: Likewise.
97132         * lib/unistr/u-endswith.h: Likewise.
97133         * lib/unistr/u-move.h: Likewise.
97134         * lib/unistr/u-set.h: Likewise.
97135         * lib/unistr/u-startswith.h: Likewise.
97136         * lib/unistr/u-stpcpy.h: Likewise.
97137         * lib/unistr/u-stpncpy.h: Likewise.
97138         * lib/unistr/u-strcat.h: Likewise.
97139         * lib/unistr/u-strcpy.h: Likewise.
97140         * lib/unistr/u-strcspn.h: Likewise.
97141         * lib/unistr/u-strdup.h: Likewise.
97142         * lib/unistr/u-strlen.h: Likewise.
97143         * lib/unistr/u-strncat.h: Likewise.
97144         * lib/unistr/u-strncpy.h: Likewise.
97145         * lib/unistr/u-strnlen.h: Likewise.
97146         * lib/unistr/u-strpbrk.h: Likewise.
97147         * lib/unistr/u-strspn.h: Likewise.
97148         * lib/unistr/u-strstr.h: Likewise.
97149         * lib/unistr/u-strtok.h: Likewise.
97150         * lib/unistr/u16-check.c: Likewise.
97151         * lib/unistr/u16-chr.c: Likewise.
97152         * lib/unistr/u16-cmp.c: Likewise.
97153         * lib/unistr/u16-cpy-alloc.c: Likewise.
97154         * lib/unistr/u16-cpy.c: Likewise.
97155         * lib/unistr/u16-endswith.c: Likewise.
97156         * lib/unistr/u16-mblen.c: Likewise.
97157         * lib/unistr/u16-mbsnlen.c: Likewise.
97158         * lib/unistr/u16-mbtouc-aux.c: Likewise.
97159         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
97160         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
97161         * lib/unistr/u16-mbtouc.c: Likewise.
97162         * lib/unistr/u16-mbtoucr.c: Likewise.
97163         * lib/unistr/u16-move.c: Likewise.
97164         * lib/unistr/u16-next.c: Likewise.
97165         * lib/unistr/u16-prev.c: Likewise.
97166         * lib/unistr/u16-set.c: Likewise.
97167         * lib/unistr/u16-startswith.c: Likewise.
97168         * lib/unistr/u16-stpcpy.c: Likewise.
97169         * lib/unistr/u16-stpncpy.c: Likewise.
97170         * lib/unistr/u16-strcat.c: Likewise.
97171         * lib/unistr/u16-strchr.c: Likewise.
97172         * lib/unistr/u16-strcmp.c: Likewise.
97173         * lib/unistr/u16-strcpy.c: Likewise.
97174         * lib/unistr/u16-strcspn.c: Likewise.
97175         * lib/unistr/u16-strdup.c: Likewise.
97176         * lib/unistr/u16-strlen.c: Likewise.
97177         * lib/unistr/u16-strmblen.c: Likewise.
97178         * lib/unistr/u16-strmbtouc.c: Likewise.
97179         * lib/unistr/u16-strncat.c: Likewise.
97180         * lib/unistr/u16-strncmp.c: Likewise.
97181         * lib/unistr/u16-strncpy.c: Likewise.
97182         * lib/unistr/u16-strnlen.c: Likewise.
97183         * lib/unistr/u16-strpbrk.c: Likewise.
97184         * lib/unistr/u16-strrchr.c: Likewise.
97185         * lib/unistr/u16-strspn.c: Likewise.
97186         * lib/unistr/u16-strstr.c: Likewise.
97187         * lib/unistr/u16-strtok.c: Likewise.
97188         * lib/unistr/u16-to-u32.c: Likewise.
97189         * lib/unistr/u16-to-u8.c: Likewise.
97190         * lib/unistr/u16-uctomb-aux.c: Likewise.
97191         * lib/unistr/u16-uctomb.c: Likewise.
97192         * lib/unistr/u32-check.c: Likewise.
97193         * lib/unistr/u32-chr.c: Likewise.
97194         * lib/unistr/u32-cmp.c: Likewise.
97195         * lib/unistr/u32-cpy-alloc.c: Likewise.
97196         * lib/unistr/u32-cpy.c: Likewise.
97197         * lib/unistr/u32-endswith.c: Likewise.
97198         * lib/unistr/u32-mblen.c: Likewise.
97199         * lib/unistr/u32-mbsnlen.c: Likewise.
97200         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
97201         * lib/unistr/u32-mbtouc.c: Likewise.
97202         * lib/unistr/u32-mbtoucr.c: Likewise.
97203         * lib/unistr/u32-move.c: Likewise.
97204         * lib/unistr/u32-next.c: Likewise.
97205         * lib/unistr/u32-prev.c: Likewise.
97206         * lib/unistr/u32-set.c: Likewise.
97207         * lib/unistr/u32-startswith.c: Likewise.
97208         * lib/unistr/u32-stpcpy.c: Likewise.
97209         * lib/unistr/u32-stpncpy.c: Likewise.
97210         * lib/unistr/u32-strcat.c: Likewise.
97211         * lib/unistr/u32-strchr.c: Likewise.
97212         * lib/unistr/u32-strcmp.c: Likewise.
97213         * lib/unistr/u32-strcpy.c: Likewise.
97214         * lib/unistr/u32-strcspn.c: Likewise.
97215         * lib/unistr/u32-strdup.c: Likewise.
97216         * lib/unistr/u32-strlen.c: Likewise.
97217         * lib/unistr/u32-strmblen.c: Likewise.
97218         * lib/unistr/u32-strmbtouc.c: Likewise.
97219         * lib/unistr/u32-strncat.c: Likewise.
97220         * lib/unistr/u32-strncmp.c: Likewise.
97221         * lib/unistr/u32-strncpy.c: Likewise.
97222         * lib/unistr/u32-strnlen.c: Likewise.
97223         * lib/unistr/u32-strpbrk.c: Likewise.
97224         * lib/unistr/u32-strrchr.c: Likewise.
97225         * lib/unistr/u32-strspn.c: Likewise.
97226         * lib/unistr/u32-strstr.c: Likewise.
97227         * lib/unistr/u32-strtok.c: Likewise.
97228         * lib/unistr/u32-to-u16.c: Likewise.
97229         * lib/unistr/u32-to-u8.c: Likewise.
97230         * lib/unistr/u32-uctomb.c: Likewise.
97231         * lib/unistr/u8-check.c: Likewise.
97232         * lib/unistr/u8-chr.c: Likewise.
97233         * lib/unistr/u8-cmp.c: Likewise.
97234         * lib/unistr/u8-cpy-alloc.c: Likewise.
97235         * lib/unistr/u8-cpy.c: Likewise.
97236         * lib/unistr/u8-endswith.c: Likewise.
97237         * lib/unistr/u8-mblen.c: Likewise.
97238         * lib/unistr/u8-mbsnlen.c: Likewise.
97239         * lib/unistr/u8-mbtouc-aux.c: Likewise.
97240         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
97241         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
97242         * lib/unistr/u8-mbtouc.c: Likewise.
97243         * lib/unistr/u8-mbtoucr.c: Likewise.
97244         * lib/unistr/u8-move.c: Likewise.
97245         * lib/unistr/u8-next.c: Likewise.
97246         * lib/unistr/u8-prev.c: Likewise.
97247         * lib/unistr/u8-set.c: Likewise.
97248         * lib/unistr/u8-startswith.c: Likewise.
97249         * lib/unistr/u8-stpcpy.c: Likewise.
97250         * lib/unistr/u8-stpncpy.c: Likewise.
97251         * lib/unistr/u8-strcat.c: Likewise.
97252         * lib/unistr/u8-strchr.c: Likewise.
97253         * lib/unistr/u8-strcmp.c: Likewise.
97254         * lib/unistr/u8-strcpy.c: Likewise.
97255         * lib/unistr/u8-strcspn.c: Likewise.
97256         * lib/unistr/u8-strdup.c: Likewise.
97257         * lib/unistr/u8-strlen.c: Likewise.
97258         * lib/unistr/u8-strmblen.c: Likewise.
97259         * lib/unistr/u8-strmbtouc.c: Likewise.
97260         * lib/unistr/u8-strncat.c: Likewise.
97261         * lib/unistr/u8-strncmp.c: Likewise.
97262         * lib/unistr/u8-strncpy.c: Likewise.
97263         * lib/unistr/u8-strnlen.c: Likewise.
97264         * lib/unistr/u8-strpbrk.c: Likewise.
97265         * lib/unistr/u8-strrchr.c: Likewise.
97266         * lib/unistr/u8-strspn.c: Likewise.
97267         * lib/unistr/u8-strstr.c: Likewise.
97268         * lib/unistr/u8-strtok.c: Likewise.
97269         * lib/unistr/u8-to-u16.c: Likewise.
97270         * lib/unistr/u8-to-u32.c: Likewise.
97271         * lib/unistr/u8-uctomb-aux.c: Likewise.
97272         * lib/unistr/u8-uctomb.c: Likewise.
97273         * lib/unitypes.h: Likewise.
97274         * lib/uniwidth.h: Likewise.
97275         * lib/uniwidth/cjk.h: Likewise.
97276         * lib/uniwidth/u16-strwidth.c: Likewise.
97277         * lib/uniwidth/u16-width.c: Likewise.
97278         * lib/uniwidth/u32-strwidth.c: Likewise.
97279         * lib/uniwidth/u32-width.c: Likewise.
97280         * lib/uniwidth/u8-strwidth.c: Likewise.
97281         * lib/uniwidth/u8-width.c: Likewise.
97282         * lib/uniwidth/width.c: Likewise.
97284 2007-10-07  Bruno Haible  <bruno@clisp.org>
97286         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
97287         The file is still under LGPL (see modules/inttypes).
97289 2007-10-06  Bruno Haible  <bruno@clisp.org>
97291         * modules/trunc (Dependencies): Add 'extensions'.
97292         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
97293         Reported by Ben Pfaff <blp@gnu.org>.
97295 2007-10-06  Bruno Haible  <bruno@clisp.org>
97297         * modules/freopen-tests: New file.
97298         * tests/test-freopen.c: New file.
97300         * modules/fopen-tests: New file.
97301         * tests/test-fopen.c: New file.
97303         * modules/fopen: New file.
97304         * lib/fopen.c: New file.
97305         * m4/fopen.m4: New file.
97306         * modules/freopen: New file.
97307         * lib/freopen.c: New file.
97308         * m4/freopen.m4: New file.
97309         * lib/stdio.in.h (fopen, freopen): New declarations.
97310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
97311         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97312         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
97313         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
97314         * doc/functions/fopen.texi: Mention the 'fopen' module.
97315         * doc/functions/freopen.texi: Mention the 'freopen' module.
97317 2007-10-06  Bruno Haible  <bruno@clisp.org>
97319         * modules/open-tests: New file.
97320         * tests/test-open.c: New file.
97322         * modules/open: New file.
97323         * lib/open.c: New file.
97324         * m4/open.m4: New file.
97325         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
97326         lib/open.c does.
97327         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
97328         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
97329         macros.
97330         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
97331         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
97332         REPLACE_OPEN.
97333         * doc/functions/open.texi: Mention the 'open' module.
97335 2007-10-04  Bruno Haible  <bruno@clisp.org>
97337         * modules/ceill-tests: New file.
97338         * tests/test-ceill.c: New file.
97340         * modules/ceill: New file.
97341         * lib/ceill.c: Replace entire file.
97342         * m4/ceill.m4: New file.
97343         * lib/math.in.h (ceill): Replace declaration.
97344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
97345         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
97346         * doc/functions/ceill.texi: Mention the 'ceill' module.
97347         * modules/mathl (Files): Remove lib/ceill.c.
97348         (Depends-on): Add ceill.
97350 2007-10-04  Bruno Haible  <bruno@clisp.org>
97352         * modules/ceilf-tests: New file.
97353         * tests/test-ceilf.c: New file.
97355         * modules/ceilf: New file.
97356         * lib/ceil.c: New file.
97357         * lib/ceilf.c: New file.
97358         * m4/ceilf.m4: New file.
97359         * lib/math.in.h (ceilf): New declaration.
97360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
97361         HAVE_DECL_CEILF.
97362         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
97363         HAVE_DECL_CEILF.
97364         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
97366 2007-10-04  Bruno Haible  <bruno@clisp.org>
97368         * modules/floorl-tests: New file.
97369         * tests/test-floorl.c: New file.
97371         * modules/floorl: New file.
97372         * lib/floorl.c: Replace entire file.
97373         * m4/floorl.m4: New file.
97374         * lib/math.in.h (floorl): Replace declaration.
97375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
97376         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
97377         * doc/functions/floorl.texi: Mention the 'floorl' module.
97378         * modules/mathl (Files): Remove lib/floorl.c.
97379         (Depends-on): Add floorl.
97381 2007-10-04  Bruno Haible  <bruno@clisp.org>
97383         * modules/floorf-tests: New file.
97384         * tests/test-floorf.c: New file.
97386         * modules/floorf: New file.
97387         * lib/floor.c: New file.
97388         * lib/floorf.c: New file.
97389         * m4/floorf.m4: New file.
97390         * lib/math.in.h (floorf): New declaration.
97391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
97392         HAVE_DECL_FLOORF.
97393         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
97394         HAVE_DECL_FLOORF.
97395         * doc/functions/floorf.texi: Mention the 'floorf' module.
97397 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
97398             Bruno Haible  <bruno@clisp.org>
97400         Advertise for the Git server instead of the CVS server.
97401         * doc/gnulib-intro.texi (Steady Development): Mention the Git
97402         repository instead of the CVS one.
97403         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
97404         about all VCS systems generically.
97405         * doc/gnulib.texi (Introduction): Capitalize `Git'.
97407 2007-10-04  Bruno Haible  <bruno@clisp.org>
97409         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
97410         means.
97411         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
97413 2007-10-04  Bruno Haible  <bruno@clisp.org>
97415         * modules/truncl-tests: New file.
97416         * tests/test-truncl.c: New file.
97418         * modules/truncl: New file.
97419         * lib/truncl.c: New file.
97420         * m4/truncl.m4: New file.
97421         * lib/math.in.h (truncl): New declaration.
97422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
97423         HAVE_DECL_TRUNCL.
97424         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
97425         HAVE_DECL_TRUNCL.
97426         * doc/functions/truncl.texi: Mention the 'truncl' module.
97428 2007-10-04  Bruno Haible  <bruno@clisp.org>
97430         * modules/truncf-tests: New file.
97431         * tests/test-truncf.c: New file.
97433         * modules/truncf: New file.
97434         * lib/trunc.c: Make paramerizable through USE_* macros.
97435         * lib/truncf.c: New file.
97436         * m4/truncf.m4: New file.
97437         * lib/math.in.h (truncf): New declaration.
97438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
97439         HAVE_DECL_TRUNCF.
97440         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
97441         HAVE_DECL_TRUNCF.
97442         * doc/functions/truncf.texi: Mention the 'truncf' module.
97444 2007-10-03  Bruno Haible  <bruno@clisp.org>
97446         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
97447         augmentation also for tests modules.
97448         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
97449         * modules/atexit-tests (Makefile.am): Likewise.
97450         * modules/binary-io-tests (Makefile.am): Likewise.
97451         * modules/c-strcase-tests (Makefile.am): Likewise.
97452         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
97453         * modules/canonicalize-tests (Makefile.am): Likewise.
97454         * modules/closein-tests (Makefile.am): Likewise.
97455         * modules/fprintf-posix-tests (Makefile.am): Likewise.
97456         * modules/freadahead-tests (Makefile.am): Likewise.
97457         * modules/fseek-tests (Makefile.am): Likewise.
97458         * modules/fseeko-tests (Makefile.am): Likewise.
97459         * modules/ftell-tests (Makefile.am): Likewise.
97460         * modules/ftello-tests (Makefile.am): Likewise.
97461         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
97462         * modules/isnanl-tests (Makefile.am): Likewise.
97463         * modules/lseek-tests (Makefile.am): Likewise.
97464         * modules/mbscasecmp-tests (Makefile.am): Likewise.
97465         * modules/mbscasestr-tests (Makefile.am): Likewise.
97466         * modules/mbschr-tests (Makefile.am): Likewise.
97467         * modules/mbscspn-tests (Makefile.am): Likewise.
97468         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
97469         * modules/mbspbrk-tests (Makefile.am): Likewise.
97470         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
97471         * modules/mbsrchr-tests (Makefile.am): Likewise.
97472         * modules/mbsspn-tests (Makefile.am): Likewise.
97473         * modules/mbsstr-tests (Makefile.am): Likewise.
97474         * modules/printf-posix-tests (Makefile.am): Likewise.
97475         * modules/snprintf-posix-tests (Makefile.am): Likewise.
97476         * modules/sprintf-posix-tests (Makefile.am): Likewise.
97477         * modules/tsearch-tests (Makefile.am): Likewise.
97478         * modules/uniname/uniname-tests (Makefile.am): Likewise.
97479         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
97480         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
97481         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
97482         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
97483         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
97484         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
97485         * modules/vprintf-posix-tests (Makefile.am): Likewise.
97486         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
97487         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
97488         * modules/xstrtoimax-tests (Makefile.am): Likewise.
97489         * modules/xstrtol-tests (Makefile.am): Likewise.
97490         * modules/xstrtoumax-tests (Makefile.am): Likewise.
97491         * modules/yesno-tests (Makefile.am): Likewise.
97493 2007-10-03  Bruno Haible  <bruno@clisp.org>
97495         * modules/trunc-tests: New file.
97496         * tests/test-trunc.c: New file.
97498         * modules/trunc: New file.
97499         * lib/trunc.c: New file.
97500         * m4/trunc.m4: New file.
97501         * lib/math.in.h (trunc): New declaration.
97502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
97503         HAVE_DECL_TRUNC.
97504         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
97505         HAVE_DECL_TRUNC.
97506         * doc/functions/trunc.texi: Mention the 'trunc' module.
97508 2007-10-03  Bruno Haible  <bruno@clisp.org>
97510         * tests/test-fpending.c: New file, mostly copied
97511         from coreutils/lib/t-fpending.c.
97512         * modules/fpending-tests: New file.
97514 2007-10-03  Bruno Haible  <bruno@clisp.org>
97516         Port the stdio extensions to QNX (untested).
97517         * lib/fseterr.c (fseterr): Add support for QNX.
97518         * lib/fbufmode.c (fbufmode): Likewise.
97519         * lib/freadable.c (freadable): Likewise.
97520         * lib/fwritable.c (fwritable): Likewise.
97521         * lib/freading.c (freading): Likewise.
97522         * lib/fwriting.c (fwriting): Likewise.
97523         * lib/freadahead.c (freadahed): Likewise.
97524         * lib/fpurge.c (fpurge): Likewise.
97525         * lib/fseeko.c (rpl_fseeko): Likewise.
97527 2007-10-03  Bruno Haible  <bruno@clisp.org>
97528             Jim Meyering  <jim@meyering.net>
97529             Eric Blake  <ebb9@byu.net>
97531         * doc/relocatable.texi: Use @command instead of @program.
97533 2007-10-02  Jim Meyering  <jim@meyering.net>
97535         Perform one more "_.h" -> ".in.h" substitution.
97536         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
97537         instead of unistd_.h here, too.
97539 2007-10-01  Bruno Haible  <bruno@clisp.org>
97541         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
97542         Needed for the alloca-opt module.
97544 2007-09-30  Bruno Haible  <bruno@clisp.org>
97546         * lib/alloca.in.h: Renamed from lib/alloca_.h.
97547         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
97548         alloca_.h.
97549         * lib/argz.in.h: Renamed from lib/argz_.h.
97550         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
97551         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
97552         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
97553         byteswap_.h.
97554         * lib/dirent.in.h: Renamed from lib/dirent_.h.
97555         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
97556         dirent_.h.
97557         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
97558         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
97559         fcntl_.h.
97560         * lib/float.in.h: Renamed from lib/float_.h.
97561         * modules/float (Files, Makefile.am): Use float.in.h instead of
97562         float_.h.
97563         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
97564         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
97565         fnmatch_.h.
97566         * lib/getopt.in.h: Renamed from lib/getopt_.h.
97567         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
97568         getopt_.h.
97569         * lib/glob.in.h: Renamed from lib/glob_.h.
97570         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
97571         * lib/iconv.in.h: Renamed from lib/iconv_.h.
97572         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
97573         iconv_.h.
97574         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
97575         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
97576         inttypes_.h.
97577         * lib/locale.in.h: Renamed from lib/locale_.h.
97578         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
97579         locale_.h.
97580         * lib/math.in.h: Renamed from lib/math_.h.
97581         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
97582         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
97583         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
97584         of netinet_in_.h. Add dependency.
97585         * lib/poll.in.h: Renamed from lib/poll_.h.
97586         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
97587         * lib/search.in.h: Renamed from lib/search_.h.
97588         * modules/search (Files, Makefile.am): Use search.in.h instead of
97589         search_.h.
97590         * lib/signal.in.h: Renamed from lib/signal_.h.
97591         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
97592         _signal.h.
97593         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
97594         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
97595         stdbool_.h.
97596         * lib/stdint.in.h: Renamed from lib/stdint_.h.
97597         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
97598         stdint_.h.
97599         * lib/stdio.in.h: Renamed from lib/stdio_.h.
97600         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
97601         stdio_.h.
97602         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
97603         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
97604         stdlib_.h.
97605         * lib/string.in.h: Renamed from lib/string_.h.
97606         * modules/string (Files, Makefile.am): Use string.in.h instead of
97607         string_.h.
97608         * doc/gnulib-tool.texi (Initial import): Update.
97609         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
97610         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
97611         of sys_select_.h. Add dependency.
97612         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
97613         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
97614         of sys_socket_.h.
97615         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
97616         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
97617         sys_stat_.h.
97618         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
97619         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
97620         sys_time_.h.
97621         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
97622         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
97623         sysexits_.h.
97624         * lib/time.in.h: Renamed from lib/time_.h.
97625         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
97626         * lib/unistd.in.h: Renamed from lib/unistd_.h.
97627         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
97628         unistd_.h.
97629         * lib/wchar.in.h: Renamed from lib/wchar_.h.
97630         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
97631         wchar_.h.
97632         * lib/wctype.in.h: Renamed from lib/wctype_.h.
97633         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
97634         wctype_.h.
97635         * build-aux/bootstrap (slurp): Update.
97636         * lib/.cppi-disable: Update.
97638 2007-09-30  Bruno Haible  <bruno@clisp.org>
97640         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
97641         Needed on BeOS.
97643 2007-09-30  Bruno Haible  <bruno@clisp.org>
97645         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
97647 2007-09-29  Bruno Haible  <bruno@clisp.org>
97649         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
97651 2007-09-29  Bruno Haible  <bruno@clisp.org>
97653         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
97654         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
97655         * build-aux/install-reloc: Compile also areadlink.c.
97656         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
97658 2007-09-29  Bruno Haible  <bruno@clisp.org>
97660         * gnulib-tool (func_emit_initmacro_done): Indentation.
97662 2007-09-29  Bruno Haible  <bruno@clisp.org>
97664         * README: Add CVS checkout update instructions.
97665         Info from Bob Proulx <bob@proulx.com>.
97667 2007-09-28  Eric Blake  <ebb9@byu.net>
97669         Provide move-if-change.
97670         * build-aux/move-if-change: New file, based on best practice
97671         rather than any canonical upstream location.
97673 2007-09-28  Jim Meyering  <jim@meyering.net>
97675         Fix canonicalize loop-detection corner case.
97676         Do not attempt to stat the symlink values stored via seen_triple.
97677         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
97678         on linux-2.6.18, (but not 2.6.22).
97679         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
97680         triple_compare.  The former compares dev,ino,filename, while the latter
97681         would actually stat dirname(filename) when dev and ino were equal.
97682         * lib/hash-triple.c: Install <string.h>.
97683         (STREQ): Define.
97684         (triple_compare_ino_str): New function.
97685         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
97687 2007-09-28  Eric Blake  <ebb9@byu.net>
97689         Enforce that AC_REPLACE_FUNCS files exist.
97690         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
97691         override check for typos.
97693         Fix test-closein on Solaris 10.
97694         * tests/test-closein.c (main): Don't assume stdin can be inherited
97695         closed on all systems.
97696         * tests/test-closein.sh: Likewise.
97697         Reported by Piotr Tarnowski.
97699 2007-09-28  Jim Meyering  <jim@meyering.net>
97701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
97703 2007-09-27  Jim Meyering  <jim@meyering.net>
97705         canonicalize: Avoid a false-positive cycle failure.
97706         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
97707         Sort.  Remove cycle-check.
97708         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
97709         not cycle-check.h.
97710         (seen_triple): New function.
97711         (canonicalize_filename_mode): Use it instead of cycle-check.
97712         * tests/test-canonicalize.c: Add a test for this bug.
97713         * tests/test-canonicalize.sh: Set up and run the test.
97715         New module, file-set, from coreutils.
97716         * modules/file-set: Define it.
97717         * lib/file-set.c, lib/file-set.h: Implement.
97719         New module, hash-triple, from coreutils.
97720         * modules/hash-triple: Define it.
97721         * lib/hash-triple.c, lib/hash-triple.h: Implement.
97723 2007-09-25  Eric Blake  <ebb9@byu.net>
97725         Fix strerror on Interix.
97726         * lib/string_.h (strerror): Declare replacement.
97727         * doc/functions/strerror.texi (strerror): Document the Interix
97728         shortcoming.
97729         * modules/string (Makefile.am): Support new hooks.
97730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
97731         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
97732         gl_FUNC_STRERROR_SEPARATE.
97733         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
97734         * lib/strerror.c (rpl_strerror): Provide replacement.
97735         * modules/strerror (Depends-on): Add string.
97736         (configure.ac): Detect use of module.
97737         * tests/test-strerror.c: New file.
97738         * modules/strerror-tests: New test module.
97739         * modules/argp (Depends-on): Add strerror.
97740         * modules/error (Depends-on): Likewise.
97741         Reported by Martin Koeppe.
97743 2007-09-24  Bruno Haible  <bruno@clisp.org>
97745         * README: Update git instructions.
97747 2007-09-24  Eric Blake  <ebb9@byu.net>
97749         Revert fpending breakage from 2007-09-08.
97750         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
97751         __fpending.c.
97753 2007-09-24  Jim Meyering  <jim@meyering.net>
97755         filenamecat.c: Add a test.
97756         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
97757         showing how the function works when DIR is the empty string.
97759 2007-09-21  Simon Josefsson  <simon@josefsson.org>
97761         * tests/test-canonicalize.sh: Turn on executable bit.
97763 2007-09-19  Eric Blake  <ebb9@byu.net>
97765         * README: Update CVS instructions.
97767 2007-09-18  Bruno Haible  <bruno@clisp.org>
97769         * modules/areadlink: New file.
97770         * lib/areadlink.h (areadlink): New declaration.
97771         * lib/areadlink.c: New file, based on lib/xreadlink.c.
97773 2007-09-17  Jim Meyering  <jim@meyering.net>
97775         * lib/savewd.c (ESTALE) [!defined]: Define.
97776         Reported to be required on Interix by Martin Koeppe.
97778 2007-09-17  Bruno Haible  <bruno@clisp.org>
97780         * gnulib-tool (func_version): Use $version.
97782 2007-09-16  Bruno Haible  <bruno@clisp.org>
97784         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
97785         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
97786         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
97787         Reported by Greg Schafer <gschafer@zip.com.au>.
97789 2007-09-15  Bruno Haible  <bruno@clisp.org>
97791         * gnulib-tool (sed): Try a little harder to make bash understand the
97792         alias.
97793         Reported by Bruce Korb <bruce.korb@gmail.com>.
97795 2007-09-13  Eric Blake  <ebb9@byu.net>
97797         * ChangeLog: Remove conflict markers.
97799 2007-09-13  Simon Josefsson  <simon@josefsson.org>
97801         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
97802         Reported by Bruno Haible <bruno@clisp.org>.
97804 2007-09-12  Bruno Haible  <bruno@clisp.org>
97806         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
97807         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
97808         is not defined.
97810 2007-09-12  Eric Blake  <ebb9@byu.net>
97812         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
97813         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
97814         Autoconf definition.
97815         * modules/euidaccess (Depends-on): Add extensions, for
97816         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
97817         * modules/fnmatch (Depends-on): Likewise.
97818         * modules/getaddrinfo (Depends-on): Likewise.
97819         * modules/getdelim (Depends-on): Likewise.
97820         * modules/getline (Depends-on): Likewise.
97821         * modules/getsubopt (Depends-on): Likewise.
97822         * modules/gettext (Depends-on): Likewise.
97823         * modules/group-member (Depends-on): Likewise.
97824         * modules/mbchar (Depends-on): Likewise.
97825         * modules/memmem (Depends-on): Likewise.
97826         * modules/mempcpy (Depends-on): Likewise.
97827         * modules/memrchr (Depends-on): Likewise.
97828         * modules/pagealign_alloc (Depends-on): Likewise.
97829         * modules/readutmp (Depends-on): Likewise.
97830         * modules/stpcpy (Depends-on): Likewise.
97831         * modules/stpncpy (Depends-on): Likewise.
97832         * modules/strchrnul (Depends-on): Likewise.
97833         * modules/strndup (Depends-on): Likewise.
97834         * modules/strsep (Depends-on): Likewise.
97835         * modules/strverscmp (Depends-on): Likewise.
97836         * modules/vasprintf (Depends-on): Likewise.
97837         * modules/wcwidth (Depends-on): Likewise.
97838         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
97839         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
97840         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
97841         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
97842         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97843         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
97844         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
97845         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97846         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
97847         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
97848         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
97849         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
97850         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
97851         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
97852         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
97853         * m4/readutmp.m4 (gl_READUTMP): Likewise.
97854         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
97855         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
97856         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
97857         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
97858         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
97859         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
97860         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
97861         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
97862         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
97863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
97864         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
97865         so that lock.m4 can be used in gettext without extensions module.
97867 2007-09-11  Bruno Haible  <bruno@clisp.org>
97869         * m4/isc-posix.m4: Remove file.
97870         Suggested by Eric Blake.
97872 2007-09-11  Eric Blake  <ebb9@byu.net>
97874         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
97876 2007-09-10  Bruno Haible  <bruno@clisp.org>
97878         * posix-modules: Fix typo in error message.
97879         Reported by Matt <mkraai@beckman.com>.
97881 2007-09-09  Bruno Haible  <bruno@clisp.org>
97883         * doc/functions/getdelim.texi: Update list of platforms lacking the
97884         function.
97885         * doc/functions/getline.texi: Likewise.
97887 2007-09-09  Jim Meyering  <jim@meyering.net>
97889         * lib/hash.c (hash_initialize): Detect calloc failure.
97890         Reported by Bruno Haible.
97892 2007-09-09  Bruno Haible  <bruno@clisp.org>
97894         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
97895         malloc or realloc fails.
97897 2007-09-09  Bruno Haible  <bruno@clisp.org>
97899         * modules/getcwd (Depends-on): Add malloc-posix.
97900         * modules/glob (Depends-on): Likewise.
97901         * modules/putenv (Depends-on): Likewise.
97902         * modules/strdup (Depends-on): Likewise.
97903         * modules/getdelim (Depends-on): Add realloc-posix.
97904         * modules/read-file (Depends-on): Likewise.
97906 2007-09-09  Bruno Haible  <bruno@clisp.org>
97908         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
97909         (gl_FUNC_MALLOC_POSIX): Require it.
97910         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
97911         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
97912         * modules/realloc (Files): Add m4/malloc.m4.
97913         * modules/calloc (Files): Likewise.
97915 2007-09-09  Bruno Haible  <bruno@clisp.org>
97917         * modules/malloc-posix: New file.
97918         * modules/malloc (Depends-on): Add malloc-posix.
97919         * lib/malloc.c: Include errno.h.
97920         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
97921         and a POSIX-compatible malloc into a single function. Set ENOMEM
97922         when returning NULL.
97923         * m4/malloc.m4: New file.
97924         * doc/functions/malloc.texi: Mention the malloc-posix module.
97925         * lib/stdlib_.h (malloc): New declaration.
97926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97927         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
97928         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
97929         and HAVE_MALLOC_POSIX.
97931 2007-09-09  Bruno Haible  <bruno@clisp.org>
97933         * modules/realloc-posix: New file.
97934         * modules/realloc (Depends-on): Add realloc-posix.
97935         * lib/realloc.c: Include errno.h.
97936         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
97937         and a POSIX-compatible realloc into a single function. Set ENOMEM
97938         when returning NULL.
97939         * m4/realloc.m4: New file.
97940         * doc/functions/realloc.texi: Mention the realloc-posix module.
97941         * lib/stdlib_.h (realloc): New declaration.
97942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97943         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
97944         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
97945         and HAVE_REALLOC_POSIX.
97947 2007-09-09  Bruno Haible  <bruno@clisp.org>
97949         * modules/calloc-posix: New file.
97950         * modules/calloc (Depends-on): Add calloc-posix.
97951         * lib/calloc.c: Include errno.h.
97952         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
97953         and a POSIX-compatible calloc into a single function. Set ENOMEM
97954         when returning NULL.
97955         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
97956         * doc/functions/calloc.texi: Mention the calloc-posix module.
97957         * lib/stdlib_.h (calloc): New declaration.
97958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
97959         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
97960         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
97961         and HAVE_CALLOC_POSIX.
97963 2007-09-09  Bruno Haible  <bruno@clisp.org>
97965         Allow for modules to show an arbitrary notice.
97966         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
97967         * gnulib-tool: New option --extract-notice.
97968         (func_usage): Document it.
97969         (sed_extract_prog): Update.
97970         (func_get_notice): New function.
97971         (func_modules_notice): New function.
97972         (func_import, func_create_testdir): Invoke it.
97973         Suggested by Jim Meyering.
97975 2007-09-09  Bruno Haible  <bruno@clisp.org>
97977         * gnulib-tool: New options --verbose, --quiet.
97978         (func_usage): Document them.
97979         (verbose): New variable.
97980         (func_execute_command): New function.
97981         (func_import): Don't show the module list and the file list if
97982         $verbose < 0.
97983         (func_create_testdir): Likewise. Use func_execute_command.
97984         (func_create_megatestdir): Use func_execute_command.
97986 2007-09-08  Bruno Haible  <bruno@clisp.org>
97988         * gnulib-tool (func_import): Prefer rsync over wget when available,
97989         for fetching the PO files.
97991 2007-09-08  Bruno Haible  <bruno@clisp.org>
97993         * posix-modules: New file. Portions copied from gnulib-tool.
97994         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
97996 2007-09-08  Jim Meyering  <jim@meyering.net>
97998         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
97999         * lib/fpending.h: Rename from __fpending.h.
98000         * lib/fpending.c: Rename from __fpending.c.
98001         Include "fpending.h", not "__fpending.h".
98002         * lib/__fpending.h, lib/__fpending.c: Remove files.
98003         * modules/fpending (Files): Reflect new file names.
98004         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
98006 2007-09-08  Bruno Haible  <bruno@clisp.org>
98008         * m4/inttypes-h.m4: Remove stub file.
98010 2007-09-07  Simon Josefsson  <simon@josefsson.org>
98012         * doc/headers/stdint.texi: Discuss #include_next issue.
98014 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
98016         * build-aux/bootstrap: Remove obsolete comment about wget --help.
98018 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98020         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
98021         in variable name.
98023 2007-09-03  Jim Meyering  <jim@meyering.net>
98025         New module: git-version-gen.
98026         * modules/git-version-gen: New file.
98028         Import changes from coreutils for bootstrap script.
98030         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
98032         bootstrap: uses rsync to download the .po files
98033         * build-aux/bootstrap (po_download_command_format): New global.
98034         (download_po_files): Use rsync.
98035         (update_po_files): Don't remove .po files after download,
98036         so future rsync runs can take advantage of the copies.
98038         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
98040         Solve the unnecessary-.po-file-regeneration problem once and for all.
98041         * build-aux/bootstrap (download_po_files): New function, renamed from
98042         get_translations.  Now, downloads, but doesn't update LINGUAS.
98043         (update_po_files): New function.
98045         bootstrap: Ignore more.
98046         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
98047         uniwidth to e.g., lib/.gitignore.
98048         (slurp): Handle the sys_stat_.h -> sys mapping, too.
98050         * build-aux/bootstrap: New setting: vc_ignore.
98051         (insert_sorted_if_absent): Create $file if absent.
98052         Adapt to new, possibly empty, list: $vc_ignore.
98054         bootstrap: generate more ignorable names
98055         * build-aux/bootstrap (slurp): When generating ignorable names,
98056         also map .sin to .sed, .gperf to .c, and .y to .c.
98058 2007-09-03  Jim Meyering  <jim@meyering.net>
98060         * build-aux/git-version-gen: New file, from coreutils.  For details, see
98061         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
98063 2007-09-02  Bruno Haible  <bruno@clisp.org>
98065         Fix mis-recognition of 'mcs' on QNX 6.
98066         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
98067         output contains the string "Mono".
98068         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
98069         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
98071 2007-09-01  Bruno Haible  <bruno@clisp.org>
98073         Fix collision between uniwidth/* and linebreak modules.
98074         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
98075         u32_width): Remove declarations.
98076         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
98077         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
98078         streq3, streq2, streq1, streq0): Remove functions.
98079         (STREQ): Remove macro.
98080         (is_cjk_encoding): Remove function.
98081         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
98082         (uc_width, u8_width, u16_width, u32_width): Remove functions.
98083         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
98084         * NEWS: Document the change.
98086 2007-09-01  Bruno Haible  <bruno@clisp.org>
98088         * lib/streq.h: Add double-inclusion guard.
98090 2007-09-01  Karl Berry  <karl@gnu.org>
98092         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
98094 2007-08-28  Jim Meyering  <jim@meyering.net>
98096         Rename mreadlink_with_size to areadlink_with_size.
98097         * NEWS: Document the change.
98098         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
98099         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
98100         * lib/mreadlink.h: Rename this to...
98101         * lib/areadlink.h: ...this.
98102         * modules/mreadlink-with-size: Rename this to...
98103         * modules/areadlink-with-size: ...this.
98104         * lib/canonicalize.c: Reflect the renaming.
98105         * modules/canonicalize: Likewise.
98107 2007-08-26  Bruno Haible  <bruno@clisp.org>
98109         * gnulib-tool (func_import): When deciding which files to remove,
98110         consider also dangling symbolic links.
98111         Reported by Eric Blake.
98113 2007-08-26  Bruno Haible  <bruno@clisp.org>
98115         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
98117 2007-08-23  Simon Josefsson  <simon@josefsson.org>
98119         * lib/readline.c: Don't include getline.h, the prototype is now
98120         found in stdio.h.
98122 2007-08-23  Jim Meyering  <jim@meyering.net>
98124         Getdelim touchup.
98125         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
98126         around the funlockfile call, since funlockfile never sets errno.
98127         Don't set errno upon failed realloc.
98129 2007-08-22  Eric Blake  <ebb9@byu.net>
98131         Getline touchups.
98132         * lib/getdelim.c (getdelim): Revert regression that required *n to
98133         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
98134         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
98135         getdelim, rather than whether implementation is missing.
98136         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
98137         * lib/stdio_.h (getline): Also declare if replacement is
98138         required.
98139         * doc/functions/getdelim.texi: New file.
98140         * doc/functions/getline.texi: Likewise.
98141         * doc/gnulib.texi (Function Substitutes): Add new files.
98142         Reported by Bruno Haible.
98144 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
98146         * users.txt: Add Guile.
98148 2007-08-22  Eric Blake  <ebb9@byu.net>
98150         * tests/test-getdelim.c (main): Use remove, not unlink.
98151         * tests/test-getline.c (main): Likewise.
98153         Move getline and getdelim into stdio.h, per POSIX 200x.
98154         * modules/getline (Files): Remove getline.h.
98155         (Depends-on): Add stdio.
98156         (configure.ac): Add module indicator.
98157         * modules/getdelim (Files): Remove getdelim.h.
98158         (Depends-on): Add stdio.
98159         (configure.ac): Add module indicator.
98160         * modules/stdio (Makefile.am): Work with new indicators.
98161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
98162         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
98163         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98164         * lib/getdelim.h: Delete.
98165         * lib/getline.h: Delete.
98166         * lib/stdio_.h (getdelim, getline): Declare.
98167         * modules/getdelim-tests: New module.
98168         * modules/getline-tests: Likewise.
98169         * tests/test-getdelim.c: New file.
98170         * tests/test-getline.c: Likewise.
98171         * NEWS: Document the change.
98172         * lib/getline.c: Update choice of header.
98173         * lib/csharpcomp.c: Likewise.
98174         * lib/getpass.c: Likewise.
98175         * lib/javacomp.c: Likewise.
98176         * lib/javaversion.c: Likewise.
98177         * lib/yesno.c: Likewise.
98178         * lib/getdelim.c: Likewise.
98179         (getdelim): Set errno on failure, and avoid memory leak.
98181 2007-08-19  Bruno Haible  <bruno@clisp.org>
98183         * modules/closein (Depends-on): Add freadahead.
98184         * lib/closein.c: Include freadahead.h.
98185         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
98186         is zero.
98188 2007-08-19  Bruno Haible  <bruno@clisp.org>
98190         * modules/freadahead-tests: New file.
98191         * tests/test-freadahead.sh: New file.
98192         * tests/test-freadahead.c: New file.
98194         * modules/freadahead: New file.
98195         * lib/freadahead.h: New file.
98196         * lib/freadahead.c: New file.
98197         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
98198         fbufmode, fpurge, freadable, fwritable.
98200 2007-08-19  Eric Blake  <ebb9@byu.net>
98202         Test yesno in combination with closein.
98203         * lib/yesno.c (yesno): Document use of stdin.
98204         * modules/yesno-tests (Files): New module.
98205         * tests/test-yesno.c (main): New file.
98206         * tests/test-yesno.sh: Likewise.
98208 2007-08-19  Bruno Haible  <bruno@clisp.org>
98210         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
98211         * lib/fseeko.c (rpl_fseeko): Likewise.
98212         * lib/fseterr.c (fseterr): Likewise.
98214 2007-08-19  Bruno Haible  <bruno@clisp.org>
98216         * tests/test-lseek.c (main): Disable a test for BeOS.
98217         * doc/functions/lseek.texi: Document the BeOS bug.
98219 2007-08-19  Bruno Haible  <bruno@clisp.org>
98220             Eric Blake  <ebb9@byu.net>
98222         * lib/lseek.c: Include <sys/stat.h>.
98223         (rpl_lseek): Add workaround code also for Unix platforms.
98224         Needed for BeOS.
98225         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
98226         * doc/functions/lseek.texi: Document BeOS definiency.
98228 2007-08-18  Bruno Haible  <bruno@clisp.org>
98230         * modules/fstrcmp-tests: New file.
98231         * tests/test-fstrcmp.c: New file.
98233 2007-08-18  Bruno Haible  <bruno@clisp.org>
98235         * modules/fstrcmp: New file, from GNU gettext with modifications.
98236         * lib/fstrcmp.h: New file, from GNU gettext.
98237         * lib/fstrcmp.c: New file, from GNU gettext.
98238         * MODULES.html.sh (String handling): Add fstrcmp.
98240 2007-08-18  Bruno Haible  <bruno@clisp.org>
98242         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
98243         'bool'.
98244         (diag, compareseq): Remove const from the ctxt argument.
98245         (USE_HEURISTIC): Undefine at the end.
98247 2007-08-18  Jim Meyering  <jim@meyering.net>
98249         New file: lib/idcache.h
98250         * NEWS: Mention the addition.
98251         * modules/idcache (Files): Add lib/idcache.h
98252         * lib/idcache.c: Include "idcache.h".
98253         Don't include <sys/types.h>.
98254         Add a FIXME comment.
98255         Move file-scoped "static" declarations to the top.
98256         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
98258 2007-08-17  Bruno Haible  <bruno@clisp.org>
98259         and Paul Eggert  <eggert@cs.ucla.edu>
98261         * MODULES.html.sh: Add diffseq.
98262         * modules/diffseq: New file.
98263         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
98264         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
98266 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98268         Import changes from coreutils for bootstrap script.
98270         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
98272         * build-aux/bootstrap (slurp): Work even in environments where
98273         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
98274         current code does not slurp files whose names start with ".", and
98275         this looks like it might be a troublesome area.
98277         2007-07-11  Jim Meyering  <jim@meyering.net>
98279         If there's a GPL vN copyright comment, require that N == 3.
98281         2007-07-08  Jim Meyering  <jim@meyering.net>
98283         Run the coreutils-specific code only if tests/Makefile.am.in exists.
98284         * build-aux/bootstrap (mam_template): Move definition out of loop.
98286         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
98288         * build-aux/bootstrap (symlink_to_dir): Rename function from
98289         symlink_to_gnulib.  Add a directory parameter.  Update all
98290         callers.
98291         (cp_mark_as_generated): Also check for -- and link to -- files in
98292         gl/.
98294         2007-07-08  Jim Meyering  <jim@meyering.net>
98296         Adapt to deeper hierarchy in gnulib.
98297         * build-aux/bootstrap (symlink_to_dir): If the destination
98298         directory doesn't exist, create it. This is required at least for
98299         "lib/uniwidth/cjk.h".
98301         2007-05-15  Jim Meyering  <jim@meyering.net>
98303         * build-aux/bootstrap: Now that generated Makefile.am files
98304         are no longer under version control, they must be created at
98305         bootstrap time.
98307 2007-08-14  Ben Pfaff  <blp@gnu.org>
98309         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
98311 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98313         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
98314         given the changes below.
98315         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
98316         even on hosts that have padding bits beyond the supported 64.
98318 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
98320         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
98321         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
98322         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
98323         depends on it.
98324         (xstrtol_error): Remove.
98325         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
98326         but with a different signature.
98327         (ATTRIBUTE_NORETURN, __attribute__): New macros.
98328         * lib/xstrtol-error.c: Include exitfail.h.
98329         (xstrtol_fatal): New function, with a different signature from the
98330         old xstrtol_error, so that the caller need not worry about passing
98331         in an exit status, or about storage management of the option argument.
98332         (xstrtol_error): Now a static function.  Redo signature to
98333         implement xstrtol_fatal.  Output the correct number of hyphens in
98334         front of the option so that the caller need not worry about
98335         storage management.
98336         (N_): New macro.
98337         (_): Remove; not used now.
98338         * modules/xstrtol: Depend on getopt.
98339         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
98340         of old STRTOL_FATAL_ERROR macro.
98341         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
98342         of test program.
98343         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
98344         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
98346 2007-08-08  Eric Blake  <ebb9@byu.net>
98348         * lib/xstrtol-error.c: Add missing include.
98350         Move xstrtol messages into gnulib domain, when --pobase is used.
98351         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
98352         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
98353         * modules/xstrtol (Files): Distribute new file.
98354         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
98355         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
98356         * tests/test-xstrtol.c: ...into new file.
98357         * tests/test-xstrtoul.c: Also test xstrtoul.
98358         * tests/test-xstrtoimax.c: Also test xstrtoimax.
98359         * tests/test-xstrtoumax.c: Also test xstrtoumax.
98360         * tests/test-xstrtol.sh: Drive the tests.
98361         * tests/test-xstrtoimax.sh: Likewise.
98362         * tests/test-xstrtoumax.sh: Likewise.
98363         * modules/xstrtol-tests: New module.
98364         * modules/xstrtoimax-tests: Likewise.
98365         * modules/xstrtoumax-tests: Likewise.
98367 2007-08-08  Jim Meyering  <jim@meyering.net>
98369         New function: mfile_name_concat.
98370         * lib/filenamecat.c (mfile_name_concat): New function, just like
98371         file_name_concat, but return NULL upon failure rather than exiting
98372         with a diagnostic.
98373         * lib/filenamecat.h: Declare it.
98375 2007-08-07  Bruno Haible  <bruno@clisp.org>
98377         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
98378         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
98379         warning from gcc.
98380         Reported by Eric Blake.
98382 2007-08-07  Simon Josefsson  <simon@josefsson.org>
98384         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
98385         * modules/crypto/arcfour (License): Likewise.
98386         * modules/crypto/des-tests (License): Likewise.
98387         * modules/crypto/gc-arctwo-tests (License): Likewise.
98388         * modules/crypto/gc-des-tests (License): Likewise.
98389         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
98390         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
98391         * modules/crypto/gc-md2-tests (License): Likewise.
98392         * modules/crypto/gc-md4-tests (License): Likewise.
98393         * modules/crypto/gc-md5-tests (License): Likewise.
98394         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
98395         * modules/crypto/gc-rijndael-tests (License): Likewise.
98396         * modules/crypto/gc-sha1-tests (License): Likewise.
98397         * modules/crypto/gc-tests (License): Likewise.
98398         * modules/crypto/hmac-md5 (License): Likewise.
98399         * modules/crypto/hmac-sha1 (License): Likewise.
98400         * modules/crypto/md2-tests (License): Likewise.
98401         * modules/crypto/md4-tests (License): Likewise.
98402         * modules/crypto/md5 (License): Likewise.
98403         * modules/crypto/rijndael (License): Likewise.
98404         * modules/crypto/sha1 (License): Likewise.
98405         * modules/memxor (License): Likewise.
98407 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
98408         and Bruno Haible  <bruno@clisp.org>
98410         * NEWS: Describe interface changes to human, xstrtol.
98411         * lib/human.h: Include <xstrtol.h>.
98412         (human_options): Return enum strtol_error, not int.  Remove
98413         bool arg; take int * instead.
98414         * lib/human.c: Don't include "gettext.h".
98415         (_): Remove; no longer used.
98416         Don't include <xstrtol.h>, since human.h does it.
98417         (human_options): Adjust to abovementioned interface changes.
98418         Do not report error to stderr; that's now the caller's
98419         responsibility.
98420         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
98421         interface change.
98422         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
98423         Str, Argument_type_string.  All uses changed.  Put " argument"
98424         in diagnostics to make them clearer.  Change wording of suffix
98425         message for clarity.
98426         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
98427         Argument_type_string.
98428         (STRTOL_FATAL_WARN): Remove; no longer used.
98429         * modules/human (Depends-on): Remove gettext-h.
98431 2007-08-06  Simon Josefsson  <simon@josefsson.org>
98433         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
98435 2007-07-31  Bruno Haible  <bruno@clisp.org>
98437         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
98438         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
98439         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
98441 2007-07-31  Bruno Haible  <bruno@clisp.org>
98443         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
98444         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
98446 2007-07-30  Bruno Haible  <bruno@clisp.org>
98448         * modules/base64 (License): Use the synonymous term "LGPLv2+".
98449         * modules/c-ctype (License): Likewise.
98450         * modules/c-strcase (License): Likewise.
98451         * modules/check-version (License): Likewise.
98452         * modules/iconv (License): Likewise.
98453         * modules/iconv_open (License): Likewise.
98454         * modules/read-file (License): Likewise.
98455         * modules/striconv (License): Likewise.
98456         * modules/strverscmp (License): Likewise.
98457         * modules/vasprintf (License): Likewise.
98458         * modules/crypto/des (License): Likewise.
98459         * modules/crypto/gc (License): Likewise.
98460         * modules/crypto/gc-arcfour (License): Likewise.
98461         * modules/crypto/gc-arctwo (License): Likewise.
98462         * modules/crypto/gc-des (License): Likewise.
98463         * modules/crypto/gc-hmac-md5 (License): Likewise.
98464         * modules/crypto/gc-hmac-sha1 (License): Likewise.
98465         * modules/crypto/gc-md2 (License): Likewise.
98466         * modules/crypto/gc-md4 (License): Likewise.
98467         * modules/crypto/gc-md5 (License): Likewise.
98468         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
98469         * modules/crypto/gc-random (License): Likewise.
98470         * modules/crypto/gc-rijndael (License): Likewise.
98471         * modules/crypto/gc-sha1 (License): Likewise.
98472         * modules/crypto/md2 (License): Likewise.
98473         * modules/crypto/md4 (License): Likewise.
98475 2007-07-30  Jim Meyering  <jim@meyering.net>
98477         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
98478         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
98479         it has valid stat data.  This bug would cause du not to count the
98480         sizes of inaccessible directories.
98481         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
98482         in <http://bugzilla.redhat.com/250077>.
98484 2007-07-25  Peter O'Gorman  <peter@pogma.com>
98485             Bruno Haible  <bruno@clisp.org>
98487         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
98488         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
98489         #include_next, gives a diagnostic about it, but reports no error in
98490         the exit code.
98491         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
98493 2007-07-24  Ben Pfaff  <blp@gnu.org>
98495         Improve name: "count-one-bits" is better than "popcount".
98496         * MODULES.html.sh: Update name.
98497         * lib/popcount.h: Renamed lib/count-one-bits.h.
98498         (popcount): Renamed count_one_bits.
98499         (popcountl): Renamed count_one_bits_l.
98500         (popcountll): Renamed count_one_bits_ll.
98501         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
98502         * modules/popcount: Renamed module/count-one-bits.
98503         * modules/popcount-tests: Renamed module/count-one-bits-tests.
98504         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
98506 2007-07-23  Ben Pfaff  <blp@gnu.org>
98508         * lib/popcount.h (popcount32): Reduce size of constants, to allow
98509         better code generation, and add U to large constants to avoid
98510         warnings, in non-GCC case.
98511         Suggested by Bruno Haible.
98513 2007-07-23  Ben Pfaff  <blp@gnu.org>
98515         * lib/popcount.h: Use verify_true instead of if...abort.
98516         * modules/popcount: Depend on verify module.
98517         Suggested by Jim Meyering.
98519 2007-07-23  Bruno Haible  <bruno@clisp.org>
98521         * gnulib-tool (func_import): Create a .cvsignore file also when the
98522         directory is not yet in CVS but the toplevel directory is. When
98523         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
98524         Reported by Karl Berry.
98526 2007-07-22  Ben Pfaff  <blp@gnu.org>
98528         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
98529         case.
98530         Suggested by Eric Blake.
98532 2007-07-22  Ben Pfaff  <blp@gnu.org>
98534         New module: popcount.
98535         * MODULES.html.sh: Add popcount.
98536         * modules/popcount: New file.
98537         * modules/popcount-tests: New file.
98538         * tests/test-popcount.c: New file.
98539         * lib/popcount.h: New file.
98540         * m4/popcount.m4: New file.
98542 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
98544         * build-aux/announce-gen: Update to GPLv3.
98546         * build-aux/config.guess: Update from config.
98548 2007-07-21  Bruno Haible  <bruno@clisp.org>
98550         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
98551         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
98553 2007-07-20  Jim Meyering  <jim@meyering.net>
98555         * check-module: Diagnose a self-dependency.
98557 2007-07-19  Bruno Haible  <bruno@clisp.org>
98559         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
98560         empty.
98561         Reported by Eric Blake.
98563 2007-07-18  Bruno Haible  <bruno@clisp.org>
98565         * gnulib-tool: New options --po-base, --po-domain.
98566         (func_usage): Document them.
98567         (pobase, po_domain): New variables.
98568         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
98569         DEFAULT_TEXT_DOMAIN.
98570         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
98571         (func_import): Consider pobase and po_domain. Create a po/ directory.
98572         (func_create_testdir): Set pobase and po_domain to empty.
98573         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
98574         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
98576 2007-07-18  Bruno Haible  <bruno@clisp.org>
98578         * gnulib-tool (func_get_automake_snippet): Synthesize also an
98579         EXTRA_DIST augmentation for files in build-aux/.
98581 2007-07-16  Bruno Haible  <bruno@clisp.org>
98583         * modules/lseek (License): Use the synonymous term "LGPLv2+".
98584         * modules/getdelim (License): Likewise.
98586 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98588         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
98589         * modules/d-type (License): Likewise.
98590         * modules/extensions (License): Likewise.
98591         * modules/fnmatch (License): Likewise.
98592         * modules/fseeko (License): Likewise.
98593         * modules/getaddrinfo (License): Likewise.
98594         * modules/getline (License): Likewise.
98595         * modules/getlogin_r (License): Likewise.
98596         * modules/getpass (License): Likewise.
98597         * modules/gettimeofday (License): Likewise.
98598         * modules/glob (License): Likewise.
98599         * modules/inet_ntop (License): Likewise.
98600         * modules/malloc (License): Likewise.
98601         * modules/malloca (License): Likewise.
98602         * modules/memmem (License): Likewise.
98603         * modules/mempcpy (License): Likewise.
98604         * modules/memset (License): Likewise.
98605         * modules/minmax (License): Likewise.
98606         * modules/mktime (License): Likewise.
98607         * modules/netinet_in (License): Likewise.
98608         * modules/pathmax (License): Likewise.
98609         * modules/poll (License): Likewise.
98610         * modules/regex (License): Likewise.
98611         * modules/snprintf (License): Likewise.
98612         * modules/stdbool (License): Likewise.
98613         * modules/stdint (License): Likewise.
98614         * modules/stdio (License): Likewise.
98615         * modules/strcase (License): Likewise.
98616         * modules/strcasestr (License): Likewise.
98617         * modules/strdup (License): Likewise.
98618         * modules/string (License): Likewise.
98619         * modules/strndup (License): Likewise.
98620         * modules/strnlen (License): Likewise.
98621         * modules/strpbrk (License): Likewise.
98622         * modules/strptime (License): Likewise.
98623         * modules/strsep (License): Likewise.
98624         * modules/sys_select (License): Likewise.
98625         * modules/sys_socket (License): Likewise.
98626         * modules/sys_stat (License): Likewise.
98627         * modules/sys_time (License): Likewise.
98628         * modules/time (License): Likewise.
98629         * modules/time_r (License): Likewise.
98630         * modules/timegm (License): Likewise.
98631         * modules/unistd (License): Likewise.
98632         * modules/vsnprintf (License): Likewise.
98633         * modules/wctype (License): Likewise.
98635 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98637         * modules/argz (License): LGPLv2+.
98639 2007-07-15  Karl Berry  <karl@gnu.org>
98641         * doc/gnulib.texi: revise node structure per new fdl.texi.
98643 2007-07-14  Bruno Haible  <bruno@clisp.org>
98645         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
98646         the output file.
98647         * lib/uniname/uninames.h: Regenerated.
98649 2007-07-14  Karl Berry  <karl@gnu.org>
98651         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
98652         omitting sectioning and index commands.
98654 2007-07-13  Bruno Haible  <bruno@clisp.org>
98656         New gnulib-tool option --more-symlinks.
98657         * gnulib-tool (func_usage): Document --more-symlinks.
98658         (do_copyrights): New variable.
98659         Recognize option --more-symlinks.
98660         (func_import): Don't add a copyright notice transform to
98661         sed_transform_lib_file if do_copyrights is empty.
98663 2007-07-13  Bruno Haible  <bruno@clisp.org>
98665         * lib/vasnprintf.c (decimal_point_char): Define also if
98666         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
98667         && !NEED_PRINTF_DIRECTIVE_A.
98668         Reported by Clemens Koller <clemens.koller@anagramm.de> via
98669         Gary V. Vaughan <gary@gnu.org>.
98671 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
98673         * lib/inttypes_.h: Undo previous change, since it was fixed
98674         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
98676 2007-07-13  Bruno Haible  <bruno@clisp.org>
98678         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
98679         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
98681 2007-07-13  Jim Meyering  <jim@meyering.net>
98683         df: Don't fail for Tru64's "file-on-file mount".
98684         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
98685         so we fall through and use statfs instead.  Details here:
98686         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
98687         Reported by Albert Chin.
98689 2007-07-13  Bruno Haible  <bruno@clisp.org>
98691         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
98692         * modules/configmake (License): Likewise.
98693         * modules/gettext (License): Likewise.
98694         * modules/gettext-h (License): Likewise.
98695         * modules/include_next (License): Likewise.
98696         * modules/link-warning (License): Likewise.
98697         * modules/localcharset (License): Likewise.
98698         * modules/localename (License): Likewise.
98699         * modules/lock (License): Likewise.
98700         * modules/relocatable-lib-lgpl (License): Likewise.
98701         * modules/size_max (License): Likewise.
98702         * modules/vasnprintf (License): Likewise.
98703         * modules/wchar (License): Likewise.
98704         * modules/xsize (License): Likewise.
98706 2007-07-13  Bruno Haible  <bruno@clisp.org>
98708         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
98709         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
98711 2007-07-12  Bruno Haible  <bruno@clisp.org>
98713         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
98714         in the modules files.
98716 2007-07-11  Karl Berry  <karl@gnu.org>
98718         * MODULES.html.sh (func_module): use
98719          sed -e '\|^'"${includefile}"'$|d'
98720          instead of /.../d, to avoid errors on $includefile's containing /.
98722 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
98724         * gnulib-tool (func_import): Avoid duplication of --avoid
98725         statements
98726         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
98727         names to `_' in variable names.
98729 2007-07-10  Eric Blake  <ebb9@byu.net>
98731         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
98732         * NEWS: Document this change.
98734 2007-07-08  Bruno Haible  <bruno@clisp.org>
98736         Update to Unicode 5.0.
98737         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
98738         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
98739         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
98740         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
98741         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
98742         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
98743         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
98744         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
98745         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
98746         U+10A3F, U+1D242..U+1D244.
98747         (nonspacing_table_ind): Update.
98748         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
98749         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
98751 2007-07-08  Bruno Haible  <bruno@clisp.org>
98753         Update to Unicode 5.0.
98754         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
98755         code transform. Extend the name index field of unicode_name_to_code and
98756         unicode_code_to_name from 16 to 24 bits.
98757         * lib/uniname/uniname.c (unicode_character_name,
98758         unicode_name_character): Add the range 0x12xxx to the code transform.
98759         * lib/uniname/uninames.h: Regenerated.
98760         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
98762 2007-07-07  Bruno Haible  <bruno@clisp.org>
98764         * modules/wcwidth-tests: New file.
98765         * tests/test-wcwidth.c: New file.
98767         Work around MacOS X wcwidth() bug.
98768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
98769         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
98770         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
98771         original wcwidth in non-UTF-8 locales.
98772         * modules/wcwidth (Depends-on): Add localcharset, streq,
98773         uniwidth/width.
98774         * doc/functions/wcwidth.texi: Update.
98776 2007-07-07  Bruno Haible  <bruno@clisp.org>
98778         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
98779         (wcwidth): New declaration.
98780         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
98781         macros.
98782         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
98783         here. Prepare for creating <wchar.h> unconditionally.
98784         * modules/wchar (Depends-on): Add link-warning.
98785         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
98786         REPLACE_WCWIDTH, and GL_LINK_WARNING.
98787         * lib/wcwidth.h: Remove file.
98788         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
98789         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
98790         * modules/wcwidth (Files): Remove lib/wcwidth.h.
98791         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
98792         (Include): Replace wcwidth.h with <wchar.h>.
98793         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
98794         * lib/mbchar.h: Don't include wcwidth.h.
98795         * lib/mbswidth.c: Likewise.
98796         * NEWS: Mention the change.
98798 2007-07-07  Bruno Haible  <bruno@clisp.org>
98800         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
98801         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
98802         definition with an external declaration.
98803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
98804         defined as a function. Remove AC_C_INLINE requirement.
98805         * modules/wcwidth (Files): Add lib/wcwidth.c.
98806         (Makefile.am): Remove redundant statement.
98808 2007-07-07  Bruno Haible  <bruno@clisp.org>
98810         * MODULES.html.sh (Unicode string functions): Add the new modules.
98812         * tests/uniwidth/test-u32-strwidth.c: New file.
98813         * modules/uniwidth/u32-strwidth-tests: New file.
98815         * lib/uniwidth/u32-strwidth.c: New file.
98816         * modules/uniwidth/u32-strwidth: New file.
98818         * tests/uniwidth/test-u16-strwidth.c: New file.
98819         * modules/uniwidth/u16-strwidth-tests: New file.
98821         * lib/uniwidth/u16-strwidth.c: New file.
98822         * modules/uniwidth/u16-strwidth: New file.
98824         * tests/uniwidth/test-u8-strwidth.c: New file.
98825         * modules/uniwidth/u8-strwidth-tests: New file.
98827         * lib/uniwidth/u8-strwidth.c: New file.
98828         * modules/uniwidth/u8-strwidth: New file.
98830         * tests/uniwidth/test-u32-width.c: New file.
98831         * modules/uniwidth/u32-width-tests: New file.
98833         * lib/uniwidth/u32-width.c: New file.
98834         * modules/uniwidth/u32-width: New file.
98836         * tests/uniwidth/test-u16-width.c: New file.
98837         * modules/uniwidth/u16-width-tests: New file.
98839         * lib/uniwidth/u16-width.c: New file.
98840         * modules/uniwidth/u16-width: New file.
98842         * tests/uniwidth/test-u8-width.c: New file.
98843         * modules/uniwidth/u8-width-tests: New file.
98845         * lib/uniwidth/u8-width.c: New file.
98846         * modules/uniwidth/u8-width: New file.
98848         * tests/uniwidth/test-uc_width.c: New file.
98849         * modules/uniwidth/width-tests: New file.
98851         * lib/uniwidth/width.c: New file, from GNU libiconv.
98852         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
98853         * modules/uniwidth/width: New file.
98855         * lib/uniwidth.h: New file, from GNU libiconv.
98856         * modules/uniwidth/base: New file.
98858 2007-07-07  Bruno Haible  <bruno@clisp.org>
98860         * lib/uniname.h: New file, from GNU gettext.
98861         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
98862         * lib/uniname/uninames.h: New file, from GNU gettext.
98863         * lib/uniname/uniname.c: New file, from GNU gettext.
98864         * tests/uniname/test-uninames.sh: New file.
98865         * tests/uniname/test-uninames.c: New file, from GNU gettext.
98866         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
98867         * modules/uniname/base: New file.
98868         * modules/uniname/uniname: New file.
98869         * modules/uniname/uniname-tests: New file.
98870         * MODULES.html.sh (Unicode string functions): Add the new modules.
98872 2007-07-06  Bruno Haible  <bruno@clisp.org>
98874         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
98876 2007-07-06  Bruno Haible  <bruno@clisp.org>
98878         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
98879         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
98880         includes <cygwin/sys_time.h> which includes <sys/select.h> which
98881         include <sys/time.h>.
98882         Reported by Eric Blake.
98884 2007-07-06  Eric Blake  <ebb9@byu.net>
98886         Fix testing canonicalize on cygwin.
98887         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
98888         Revert patch from 2007-06-19.
98889         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
98890         canonicalize module is also in use.
98891         * tests/test-canonicalize.c: New file.
98892         * tests/test-canonicalize.sh: Likewise.
98893         * modules/canonicalize-tests: Likewise.
98895 2007-07-06  Jim Meyering  <jim@meyering.net>
98897         * lib/getugroups.c (getugroups): Detect getgrent failure.
98898         Adjust comment to reflect reality: this function may return -1.
98900 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
98902         * build-aux/bootstrap (TP_URL,get_translations): Update to use
98903         the new TP address.
98904         (usage): Fix typo
98905         (gnulib_mk): New variable.
98907 2007-07-05  Jim Meyering  <jim@meyering.net>
98909         Don't let endgrent clobber errno, no matter how improbable.
98910         * lib/getugroups.c (getugroups): Save and restore errno around
98911         endgrent call.
98913         Close the group DB even when failing with 2^31 or more members.
98914         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
98916 2007-07-04  Jim Meyering  <jim@meyering.net>
98918         * lib/getugroups.h: New file.
98919         * lib/getugroups.c: Include "getugroups.h".
98920         Remove uses of "register" keyword.
98921         Move local variable, "cp", down into scope where used.
98922         Give "username" parameter the "const" attribute.
98923         * modules/getugroups (Files): Add lib/getugroups.h
98925 2007-07-04  Karl Berry  <karl@gnu.org>
98927         * MODULES.html.sh (func_all_modules): Complete rename of
98928         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
98930 2007-07-02  Bruno Haible  <bruno@clisp.org>
98932         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
98933         mode, when inttypes.h comes from gnulib.
98934         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
98936 2007-07-02  Simon Josefsson  <simon@josefsson.org>
98938         * NEWS: Mention lgpl module name change.
98940         * modules/lgpl-2.1: Renamed from lgpl.
98942         * NEWS: Mention gpl module name change.
98944         * modules/gpl-3.0: New file, based on gpl-2.0.
98946         * modules/gpl-2.0: Renamed from gpl.
98948         * modules/gpl: Fix filename, doc/gpl.texi is now found at
98949         doc/gpl-2.0.texi.
98951 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98953         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
98954         #define __STDC_LIMIT_MACROS temporarily while including
98955         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
98956         Problem reported by Joel E. Denny in
98957         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
98959 2007-07-01  Bruno Haible  <bruno@clisp.org>
98961         * lib/unistdio.h: New file.
98962         * lib/unistdio/u-asnprintf.h: New file.
98963         * lib/unistdio/u-asprintf.h: New file.
98964         * lib/unistdio/u-printf-args.c: New file.
98965         * lib/unistdio/u-printf-args.h: New file.
98966         * lib/unistdio/u-printf-parse.h: New file.
98967         * lib/unistdio/u-snprintf.h: New file.
98968         * lib/unistdio/u-sprintf.h: New file.
98969         * lib/unistdio/u-vasprintf.h: New file.
98970         * lib/unistdio/u-vsnprintf.h: New file.
98971         * lib/unistdio/u-vsprintf.h: New file.
98972         * lib/unistdio/ulc-asnprintf.c: New file.
98973         * lib/unistdio/ulc-asprintf.c: New file.
98974         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
98975         * lib/unistdio/ulc-printf-parse.c: New file.
98976         * lib/unistdio/ulc-snprintf.c: New file.
98977         * lib/unistdio/ulc-sprintf.c: New file.
98978         * lib/unistdio/ulc-vasnprintf.c: New file.
98979         * lib/unistdio/ulc-vasprintf.c: New file.
98980         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
98981         * lib/unistdio/ulc-vsnprintf.c: New file.
98982         * lib/unistdio/ulc-vsprintf.c: New file.
98983         * lib/unistdio/u8-asnprintf.c: New file.
98984         * lib/unistdio/u8-asprintf.c: New file.
98985         * lib/unistdio/u8-printf-parse.c: New file.
98986         * lib/unistdio/u8-snprintf.c: New file.
98987         * lib/unistdio/u8-sprintf.c: New file.
98988         * lib/unistdio/u8-vasnprintf.c: New file.
98989         * lib/unistdio/u8-vasprintf.c: New file.
98990         * lib/unistdio/u8-vsnprintf.c: New file.
98991         * lib/unistdio/u8-vsprintf.c: New file.
98992         * lib/unistdio/u8-u8-asnprintf.c: New file.
98993         * lib/unistdio/u8-u8-asprintf.c: New file.
98994         * lib/unistdio/u8-u8-snprintf.c: New file.
98995         * lib/unistdio/u8-u8-sprintf.c: New file.
98996         * lib/unistdio/u8-u8-vasnprintf.c: New file.
98997         * lib/unistdio/u8-u8-vasprintf.c: New file.
98998         * lib/unistdio/u8-u8-vsnprintf.c: New file.
98999         * lib/unistdio/u8-u8-vsprintf.c: New file.
99000         * lib/unistdio/u16-asnprintf.c: New file.
99001         * lib/unistdio/u16-asprintf.c: New file.
99002         * lib/unistdio/u16-printf-parse.c: New file.
99003         * lib/unistdio/u16-snprintf.c: New file.
99004         * lib/unistdio/u16-sprintf.c: New file.
99005         * lib/unistdio/u16-vasnprintf.c: New file.
99006         * lib/unistdio/u16-vasprintf.c: New file.
99007         * lib/unistdio/u16-vsnprintf.c: New file.
99008         * lib/unistdio/u16-vsprintf.c: New file.
99009         * lib/unistdio/u16-u16-asnprintf.c: New file.
99010         * lib/unistdio/u16-u16-asprintf.c: New file.
99011         * lib/unistdio/u16-u16-snprintf.c: New file.
99012         * lib/unistdio/u16-u16-sprintf.c: New file.
99013         * lib/unistdio/u16-u16-vasnprintf.c: New file.
99014         * lib/unistdio/u16-u16-vasprintf.c: New file.
99015         * lib/unistdio/u16-u16-vsnprintf.c: New file.
99016         * lib/unistdio/u16-u16-vsprintf.c: New file.
99017         * lib/unistdio/u32-asnprintf.c: New file.
99018         * lib/unistdio/u32-asprintf.c: New file.
99019         * lib/unistdio/u32-printf-parse.c: New file.
99020         * lib/unistdio/u32-snprintf.c: New file.
99021         * lib/unistdio/u32-sprintf.c: New file.
99022         * lib/unistdio/u32-vasnprintf.c: New file.
99023         * lib/unistdio/u32-vasprintf.c: New file.
99024         * lib/unistdio/u32-vsnprintf.c: New file.
99025         * lib/unistdio/u32-vsprintf.c: New file.
99026         * lib/unistdio/u32-u32-asnprintf.c: New file.
99027         * lib/unistdio/u32-u32-asprintf.c: New file.
99028         * lib/unistdio/u32-u32-snprintf.c: New file.
99029         * lib/unistdio/u32-u32-sprintf.c: New file.
99030         * lib/unistdio/u32-u32-vasnprintf.c: New file.
99031         * lib/unistdio/u32-u32-vasprintf.c: New file.
99032         * lib/unistdio/u32-u32-vsnprintf.c: New file.
99033         * lib/unistdio/u32-u32-vsprintf.c: New file.
99034         * tests/unistdio/test-ulc-asnprintf1.c: New file.
99035         * tests/unistdio/test-ulc-asnprintf1.h: New file.
99036         * tests/unistdio/test-ulc-printf1.h: New file.
99037         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
99038         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
99039         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
99040         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
99041         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
99042         * tests/unistdio/test-ulc-vasprintf1.c: New file.
99043         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
99044         * tests/unistdio/test-ulc-vsprintf1.c: New file.
99045         * tests/unistdio/test-u8-asnprintf1.c: New file.
99046         * tests/unistdio/test-u8-asnprintf1.h: New file.
99047         * tests/unistdio/test-u8-printf1.h: New file.
99048         * tests/unistdio/test-u8-vasnprintf1.c: New file.
99049         * tests/unistdio/test-u8-vasnprintf2.c: New file.
99050         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
99051         * tests/unistdio/test-u8-vasnprintf3.c: New file.
99052         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
99053         * tests/unistdio/test-u8-vasprintf1.c: New file.
99054         * tests/unistdio/test-u8-vsnprintf1.c: New file.
99055         * tests/unistdio/test-u8-vsprintf1.c: New file.
99056         * tests/unistdio/test-u16-asnprintf1.c: New file.
99057         * tests/unistdio/test-u16-asnprintf1.h: New file.
99058         * tests/unistdio/test-u16-printf1.h: New file.
99059         * tests/unistdio/test-u16-vasnprintf1.c: New file.
99060         * tests/unistdio/test-u16-vasnprintf2.c: New file.
99061         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
99062         * tests/unistdio/test-u16-vasnprintf3.c: New file.
99063         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
99064         * tests/unistdio/test-u16-vasprintf1.c: New file.
99065         * tests/unistdio/test-u16-vsnprintf1.c: New file.
99066         * tests/unistdio/test-u16-vsprintf1.c: New file.
99067         * tests/unistdio/test-u32-asnprintf1.c: New file.
99068         * tests/unistdio/test-u32-asnprintf1.h: New file.
99069         * tests/unistdio/test-u32-printf1.h: New file.
99070         * tests/unistdio/test-u32-vasnprintf1.c: New file.
99071         * tests/unistdio/test-u32-vasnprintf2.c: New file.
99072         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
99073         * tests/unistdio/test-u32-vasnprintf3.c: New file.
99074         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
99075         * tests/unistdio/test-u32-vasprintf1.c: New file.
99076         * tests/unistdio/test-u32-vsnprintf1.c: New file.
99077         * tests/unistdio/test-u32-vsprintf1.c: New file.
99078         * modules/unistdio/base: New file.
99079         * modules/unistdio/u-printf-args: New file.
99080         * modules/unistdio/ulc-asnprintf: New file.
99081         * modules/unistdio/ulc-asprintf: New file.
99082         * modules/unistdio/ulc-fprintf: New file.
99083         * modules/unistdio/ulc-printf-parse: New file.
99084         * modules/unistdio/ulc-snprintf: New file.
99085         * modules/unistdio/ulc-sprintf: New file.
99086         * modules/unistdio/ulc-vasnprintf: New file.
99087         * modules/unistdio/ulc-vasprintf: New file.
99088         * modules/unistdio/ulc-vfprintf: New file.
99089         * modules/unistdio/ulc-vsnprintf: New file.
99090         * modules/unistdio/ulc-vsprintf: New file.
99091         * modules/unistdio/u8-asnprintf: New file.
99092         * modules/unistdio/u8-asprintf: New file.
99093         * modules/unistdio/u8-printf-parse: New file.
99094         * modules/unistdio/u8-snprintf: New file.
99095         * modules/unistdio/u8-sprintf: New file.
99096         * modules/unistdio/u8-vasnprintf: New file.
99097         * modules/unistdio/u8-vasprintf: New file.
99098         * modules/unistdio/u8-vsnprintf: New file.
99099         * modules/unistdio/u8-vsprintf: New file.
99100         * modules/unistdio/u8-u8-asnprintf: New file.
99101         * modules/unistdio/u8-u8-asprintf: New file.
99102         * modules/unistdio/u8-u8-snprintf: New file.
99103         * modules/unistdio/u8-u8-sprintf: New file.
99104         * modules/unistdio/u8-u8-vasnprintf: New file.
99105         * modules/unistdio/u8-u8-vasprintf: New file.
99106         * modules/unistdio/u8-u8-vsnprintf: New file.
99107         * modules/unistdio/u8-u8-vsprintf: New file.
99108         * modules/unistdio/u16-asnprintf: New file.
99109         * modules/unistdio/u16-asprintf: New file.
99110         * modules/unistdio/u16-printf-parse: New file.
99111         * modules/unistdio/u16-snprintf: New file.
99112         * modules/unistdio/u16-sprintf: New file.
99113         * modules/unistdio/u16-vasnprintf: New file.
99114         * modules/unistdio/u16-vasprintf: New file.
99115         * modules/unistdio/u16-vsnprintf: New file.
99116         * modules/unistdio/u16-vsprintf: New file.
99117         * modules/unistdio/u16-u16-asnprintf: New file.
99118         * modules/unistdio/u16-u16-asprintf: New file.
99119         * modules/unistdio/u16-u16-snprintf: New file.
99120         * modules/unistdio/u16-u16-sprintf: New file.
99121         * modules/unistdio/u16-u16-vasnprintf: New file.
99122         * modules/unistdio/u16-u16-vasprintf: New file.
99123         * modules/unistdio/u16-u16-vsnprintf: New file.
99124         * modules/unistdio/u16-u16-vsprintf: New file.
99125         * modules/unistdio/u32-asnprintf: New file.
99126         * modules/unistdio/u32-asprintf: New file.
99127         * modules/unistdio/u32-printf-parse: New file.
99128         * modules/unistdio/u32-snprintf: New file.
99129         * modules/unistdio/u32-sprintf: New file.
99130         * modules/unistdio/u32-vasnprintf: New file.
99131         * modules/unistdio/u32-vasprintf: New file.
99132         * modules/unistdio/u32-vsnprintf: New file.
99133         * modules/unistdio/u32-vsprintf: New file.
99134         * modules/unistdio/u32-u32-asnprintf: New file.
99135         * modules/unistdio/u32-u32-asprintf: New file.
99136         * modules/unistdio/u32-u32-snprintf: New file.
99137         * modules/unistdio/u32-u32-sprintf: New file.
99138         * modules/unistdio/u32-u32-vasnprintf: New file.
99139         * modules/unistdio/u32-u32-vasprintf: New file.
99140         * modules/unistdio/u32-u32-vsnprintf: New file.
99141         * modules/unistdio/u32-u32-vsprintf: New file.
99142         * modules/unistdio/ulc-asnprintf-tests: New file.
99143         * modules/unistdio/ulc-vasnprintf-tests: New file.
99144         * modules/unistdio/ulc-vasprintf-tests: New file.
99145         * modules/unistdio/ulc-vsnprintf-tests: New file.
99146         * modules/unistdio/ulc-vsprintf-tests: New file.
99147         * modules/unistdio/u8-asnprintf-tests: New file.
99148         * modules/unistdio/u8-vasnprintf-tests: New file.
99149         * modules/unistdio/u8-vasprintf-tests: New file.
99150         * modules/unistdio/u8-vsnprintf-tests: New file.
99151         * modules/unistdio/u8-vsprintf-tests: New file.
99152         * modules/unistdio/u16-asnprintf-tests: New file.
99153         * modules/unistdio/u16-vasnprintf-tests: New file.
99154         * modules/unistdio/u16-vasprintf-tests: New file.
99155         * modules/unistdio/u16-vsnprintf-tests: New file.
99156         * modules/unistdio/u16-vsprintf-tests: New file.
99157         * modules/unistdio/u32-asnprintf-tests: New file.
99158         * modules/unistdio/u32-vasnprintf-tests: New file.
99159         * modules/unistdio/u32-vasprintf-tests: New file.
99160         * modules/unistdio/u32-vsnprintf-tests: New file.
99161         * modules/unistdio/u32-vsprintf-tests: New file.
99162         * MODULES.html.sh (Unicode string functions): Add the new modules.
99164 2007-07-01  Bruno Haible  <bruno@clisp.org>
99166         * lib/sprintf.c (sprintf): Limit the available length estimation,
99167         to avoid address wraparound.
99168         * lib/vsprintf.c (vsprintf): Likewise.
99169         * modules/sprintf-posix (Dependencies): Add stdint.
99170         * modules/vsprintf-posix (Dependencies): Likewise.
99172 2007-07-01  Bruno Haible  <bruno@clisp.org>
99174         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
99175         Windows PATH as well. Conservative double-quoting. Comments.
99177 2007-07-01  Bruno Haible  <bruno@clisp.org>
99178             Eric Blake  <ebb9@byu.net>
99179             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99181         * gnulib-tool (self_abspathname): Fix algorithm to cope with
99182         empty components in $PATH, denoting '.'.
99184 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99186         * gnulib-tool: Fix indentation.
99187         (func_create_megatestdir): Likewise.
99188         Report by Bruno Haible.
99190 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99192         Sync from Automake.
99193         * build-aux/gnupload: Fix shell portability issues with for loops.
99194         Report by Karl Berry.
99196 2007-06-29  Simon Josefsson  <simon@josefsson.org>
99198         * build-aux/maint.mk (POURL): Use translationproject.org.
99200 2007-06-27  Simon Josefsson  <simon@josefsson.org>
99201             Bruno Haible  <bruno@clisp.org>
99203         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
99204         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
99205         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
99206         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
99207         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
99209 2007-06-27  Bruno Haible  <bruno@clisp.org>
99211         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
99212         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
99214 2007-06-26  Karl Berry  <karl@gnu.org>
99216         * MODULES.html.sh: remove xreadlink-with-size.
99218 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99220         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
99221         method that I hope also handles the double-include problem noted
99222         by Bruno Haible in
99223         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
99225 2007-06-23  Bruno Haible  <bruno@clisp.org>
99227         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99228         Don't let the 'mostlyclean' target fail if the last subdirectory could
99229         not be removed.
99230         Reported by Karl Berry.
99232 2007-06-23  Bruno Haible  <bruno@clisp.org>
99234         * gnulib-tool (echo): Add a speedier workaround for ksh.
99235         * tests/test-echo.sh: Likewise.
99237 2007-06-23  Bruno Haible  <bruno@clisp.org>
99239         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
99240         * tests/test-echo.sh: Likewise.
99242 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99244         * gnulib-tool (IFS): Initialize early, so we don't set it to
99245         empty later.
99246         (self_abspathname): Rewrite algorithm to set it, reindent.
99247         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
99248         (func_create_megatestdir): Merge some sed scripts.
99250 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
99252         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
99253         exposed by Sun Studio 11 cc on Solaris 8.
99255 2007-06-22  Bruno Haible  <bruno@clisp.org>
99257         * gnulib-tool (echo): Ensure the echo primitive does not interpret
99258         backslashes.
99259         * tests/test-echo.sh: New file.
99261 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99263         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
99264         simplify `sed_replace_build_aux' scripts, they are portable but
99265         echoing them with `echo' is not.
99266         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
99268 2007-06-21  Karl Berry  <karl@gnu.org>
99270         * config/srclist.txt: guess we can't handle the licenses via
99271         srclist at the moment.
99273 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
99275         * MODULES.html.sh: Add include_next.
99276         * modules/include_next: New file.
99278 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
99280         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
99281         INCLUDE_NEXT.
99282         (gl_CHECK_NEXT_HEADERS): New macro.
99283         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
99284         the obsolescent gl_ABSOLUTE_HEADER.
99285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
99286         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
99287         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
99288         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
99289         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
99290         * m4/math_h.m4 (gl_MATH_H): Likewise.
99291         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
99292         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
99293         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
99294         * m4/stdint.m4 (gl_STDINT_H): Likewise.
99295         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
99296         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
99297         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
99298         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
99299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
99300         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
99301         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
99302         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
99303         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
99304         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
99305         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
99306         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
99307         * m4/inttypes.m4 (gl_INTTYPES_H): Define
99308         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
99309         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
99310         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
99311         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
99312         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
99313         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
99314         * lib/float_.h: Likewise.
99315         * lib/inttypes_.h: Likewise.
99316         * lib/math_.h: Likewise.
99317         * lib/search_.h: Likewise.
99318         * lib/signal_.h: Likewise.
99319         * lib/stdint_.h: Likewise.
99320         * lib/stdio_.h: Likewise.
99321         * lib/stdlib_.h: Likewise.
99322         * lib/string_.h: Likewise.
99323         * lib/sys_stat_.h: Likewise.
99324         * lib/sys_time_.h: Likewise.
99325         * lib/time_.h: Likewise.
99326         * lib/unistd_.h: Likewise.
99327         * lib/wchar_.h: Likewise.
99328         * lib/wctype_.h: Likewise.
99329         * lib/dirent_.h: Likewise.
99330         * lib/iconv_.h: Likewise.
99331         * lib/locale_.h: Likewise.
99332         * lib/netinet_in_.h: Likewise.
99333         * lib/sys_select_.h: Likewise.
99334         * lib/sys_socket_.h: Likewise.
99335         * lib/sysexits_.h: Likewise.
99336         * modules/fcntl (Depends-on): Depend on include_next, not
99337         absolute_header.
99338         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
99339         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
99340         * modules/fchdir: Likewise.
99341         * modules/float: Likewise.
99342         * modules/iconv_open: Likewise.
99343         * modules/inttypes: Likewise.
99344         * modules/locale: Likewise.
99345         * modules/math: Likewise.
99346         * modules/netinet_in: Likewise.
99347         * modules/search: Likewise.
99348         * modules/signal: Likewise.
99349         * modules/stdint: Likewise.
99350         * modules/stdio: Likewise.
99351         * modules/stdlib: Likewise.
99352         * modules/string: Likewise.
99353         * modules/sys_select: Likewise.
99354         * modules/sys_socket: Likewise.
99355         * modules/sys_stat: Likewise.
99356         * modules/sys_time: Likewise.
99357         * modules/sysexits: Likewise.
99358         * modules/time: Likewise.
99359         * modules/unistd: Likewise.
99360         * modules/wchar: Likewise.
99361         * modules/wctype: Likewise.
99362         * modules/sys_stat: Change maintainer to "all".
99363         * modules/unistd: Likewise.
99365 2007-06-20  Karl Berry  <karl@gnu.org>
99367         * config/srclist.txt: track www changes in license files.
99369 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
99371         * build-aux/bootstrap: Remove stray dot.
99372         Make sure build_aux settings are honored when linking
99373         gnulib_extra_files.
99375 2007-06-19  Eric Blake  <ebb9@byu.net>
99377         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99378         Allow compilation on cygwin.
99380 2007-06-19  Jim Meyering  <jim@meyering.net>
99382         xreadlink-with-size: Remove module.  No longer used.
99383         Ex-callers now use xreadlink or mreadlink-with-size.
99384         * modules/xreadlink-with-size: Remove module.
99385         * lib/xreadlink-with-size.c: Remove file.
99386         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
99387         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
99388         just before the function definition *is* accurate.
99390         Eliminate one way canonicalize_filename_mode could exit.
99391         * lib/canonicalize.c (canonicalize_filename_mode):
99392         Use mreadlink_with_size, not xreadlink_with_size.
99394 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
99396         Detect porting problems to FreeBSD/arm, which has time_t wider than
99397         long int.  Original problem reported for GNU diff by Xin Li in
99398         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
99399         * modules/getdate (Depends-on): Add intprops, verify.
99400         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
99401         is an integer type no wider than long int.
99403 2007-06-18  Jim Meyering  <jim@meyering.net>
99405         New module: mreadlink-with-size.
99406         * MODULES.html.sh: Add mreadlink-with-size.
99407         * modules/mreadlink-with-size: New module
99408         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
99409         not xreadlink-with-size.
99410         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
99412 2007-06-16  Bruno Haible  <bruno@clisp.org>
99414         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
99415         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
99416         Reported by Gary V. Vaughan <gary@gnu.org>.
99418 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
99420         Revamp lchown so that it lives in unistd.h where it belongs.
99421         * lib/lchown.h: Remove.
99422         * lib/dirchownmod.c: Don't include lib/lchown.h.
99423         * lib/fchownat.c: Likewise.
99424         * lib/openat.c: Likewise.
99425         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
99426         does not follow symlinks.
99427         (EOPNOTSUPP): Define if not defined.
99428         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
99429         is defined to 0.
99430         (lchown): New decl.
99431         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
99432         Do not check for lchown decl.
99433         Set REPLACE_LCHOWN.
99434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
99435         REPLACE_LCHOWN.
99436         * modules/chown: Make it clear it follows symlinks.
99437         * modules/lchown: Make it clear it doesn't follow symlinks.
99438         (Files): Remove lib/lchown.h
99439         (Depends-on): Add unistd.
99440         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
99441         (Include): Include <unistd.h>, not "lchown.h".
99442         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
99443         REPLACE_LCHOWN.
99445 2007-06-15  Jim Meyering  <jim@meyering.net>
99447         Change license (GPL to LGPL) of fsusage and dependents.
99448         * modules/fsusage (License): Change to LGPL.
99449         * modules/full-read (License): Likewise.
99450         * modules/full-write (License): Likewise.
99451         * modules/safe-read (License): Likewise.
99452         * modules/safe-write (License): Likewise.
99454 2007-06-14  Ben Pfaff  <blp@gnu.org>
99456         Missing part of allocsa -> malloca transition.
99457         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
99458         gl_MALLOCA.
99460 2007-06-12  Bruno Haible  <bruno@clisp.org>
99462         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
99463         to ia64, x86_64, i386.
99464         Reported by Eric Blake.
99466 2007-06-12  Bruno Haible  <bruno@clisp.org>
99468         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
99469         cross-compiling to x86_64.
99471 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
99473         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
99474         glitch reported by Ralf Wildenhues in
99475         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
99477         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
99478         Vin Shelton.
99480 2007-06-11  Bruno Haible  <bruno@clisp.org>
99482         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
99483         replacement string.
99484         Reported by Eric Blake.
99486 2007-06-10  Bruno Haible  <bruno@clisp.org>
99488         Prepare vasnprintf code for use with Unicode strings.
99489         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
99490         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
99491         TYPE_U32_STRING.
99492         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
99493         a_u32_string variants.
99494         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99495         * lib/printf-args.c: Don't include config.h and the specification
99496         header if PRINTF_FETCHARGS is already defined.
99497         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
99498         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
99499         TYPE_U16_STRING, TYPE_U32_STRING.
99500         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
99501         u16_directive, u16_directives, u32_directive, u32_directives): New
99502         types.
99503         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
99504         New declarations.
99505         * lib/printf-parse.c: Don't include config.h and the specification
99506         header if PRINTF_PARSE is already defined. Eliminate the set of
99507         parameters for WIDE_CHAR_VERSION; the user of this file must provide
99508         them now. Include c-ctype.h.
99509         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
99510         directive and CHAR_T_ONLY_ASCII.
99511         * lib/vasnprintf.c: Don't include config.h and the specification header
99512         if VASNPRINTF is already defined.
99513         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
99514         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
99515         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
99516         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
99517         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
99518         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
99519         code accordingly.
99520         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
99521         pad_ourselves also in this case, with the 'c' and 's' directives, and
99522         with a different notion of "width".
99523         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
99525 2007-06-10  Bruno Haible  <bruno@clisp.org>
99527         * modules/unistr/u32-mbsnlen: New file.
99528         * lib/unistr/u32-mbsnlen.c: New file.
99530         * modules/unistr/u16-mbsnlen: New file.
99531         * lib/unistr/u16-mbsnlen.c: New file.
99533         * modules/unistr/u8-mbsnlen: New file.
99534         * lib/unistr/u8-mbsnlen.c: New file.
99536         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
99537         declarations.
99539 2007-06-10  Bruno Haible  <bruno@clisp.org>
99541         * lib/string_.h (mbsnlen): New declaration.
99542         * lib/mbsnlen.c: New file.
99543         * m4/mbsnlen.m4: New file.
99544         * modules/mbsnlen: New file.
99545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
99546         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
99547         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
99549 2007-06-10  Bruno Haible  <bruno@clisp.org>
99551         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
99553 2007-06-10  Bruno Haible  <bruno@clisp.org>
99555         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
99556         * lib/mbuiter.h: Likewise.
99558 2007-06-10  Bruno Haible  <bruno@clisp.org>
99560         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
99561         declaration.
99563 2007-06-10  Karl Berry  <karl@gnu.org>
99565         * config/srclist.txt: remove gettext entries, Bruno prefers
99566         to update individually.
99568 2007-06-10  Bruno Haible  <bruno@clisp.org>
99570         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
99571         'maxlen'. Ensure only length + width bytes are allocated, not
99572         length + 1 + width.
99574 2007-06-09  Bruno Haible  <bruno@clisp.org>
99576         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
99577         (CHAR_T): Remove macro.
99578         (VASNPRINTF): Update.
99580 2007-06-09  Bruno Haible  <bruno@clisp.org>
99582         * MODULES.html.sh (Unicode string functions): Add the new modules.
99584         * modules/uniconv/u32-conv-to-enc: New file.
99585         * lib/uniconv/u32-conv-to-enc.c: New file.
99586         * modules/uniconv/u32-conv-to-enc-tests: New file.
99587         * tests/uniconv/test-u32-conv-to-enc.c: New file.
99589         * modules/uniconv/u16-conv-to-enc: New file.
99590         * lib/uniconv/u16-conv-to-enc.c: New file.
99591         * lib/uniconv/u-conv-to-enc.h: New file.
99592         * modules/uniconv/u16-conv-to-enc-tests: New file.
99593         * tests/uniconv/test-u16-conv-to-enc.c: New file.
99595         * modules/uniconv/u8-conv-to-enc: New file.
99596         * lib/uniconv/u8-conv-to-enc.c: New file.
99597         * modules/uniconv/u8-conv-to-enc-tests: New file.
99598         * tests/uniconv/test-u8-conv-to-enc.c: New file.
99600         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
99601         u32_conv_to_encoding): New declarations.
99603 2007-06-09  Bruno Haible  <bruno@clisp.org>
99605         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
99607 2007-06-09  Bruno Haible  <bruno@clisp.org>
99609         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
99610         * modules/malloca: Renamed from modules/allocsa, updated.
99611         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
99612         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
99613         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
99614         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
99615         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
99616         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
99617         * modules/xmalloca: Renamed from modules/xallocsa, updated.
99618         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
99619         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
99620         * modules/c-strcasestr (Depends-on): Update.
99621         * lib/c-strcasestr.c: Update.
99622         * modules/c-strstr (Depends-on): Update.
99623         * lib/c-strstr.c: Update.
99624         * modules/canonicalize-lgpl (Depends-on): Update.
99625         * lib/canonicalize-lgpl.c: Update.
99626         * modules/clean-temp (Depends-on): Update.
99627         * lib/clean-temp.c: Update.
99628         * modules/csharpcomp (Depends-on): Update.
99629         * lib/csharpcomp.c: Update.
99630         * modules/csharpexec (Depends-on): Update.
99631         * lib/csharpexec.c: Update.
99632         * modules/javacomp (Depends-on): Update.
99633         * lib/javacomp.c: Update.
99634         * modules/javaexec (Depends-on): Update.
99635         * lib/javaexec.c: Update.
99636         * modules/mbscasestr (Depends-on): Update.
99637         * lib/mbscasestr.c: Update.
99638         * modules/mbsstr (Depends-on): Update.
99639         * lib/mbsstr.c: Update.
99640         * modules/setenv (Depends-on): Update.
99641         * lib/setenv.c: Update.
99642         * modules/strcasestr (Depends-on): Update.
99643         * lib/strcasestr.c: Update.
99644         * modules/striconveha (Depends-on): Update.
99645         * lib/striconveha.c: Update.
99646         * modules/relocatable-prog-wrapper (Files): Update.
99647         * lib/relocwrapper.c: Update.
99648         * build-aux/install-reloc: Update.
99649         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
99651 2007-06-08  Bruno Haible  <bruno@clisp.org>
99653         Port to uClibc.
99654         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
99655         * lib/fpurge.c (fpurge): Likewise.
99656         * lib/freading.c (freading): Likewise.
99657         * lib/fseeko.c (rpl_fseeko): Likewise.
99658         * lib/fseterr.c (fseterr): Likewise.
99659         * lib/fwriting.c (fwriting): Likewise.
99660         * tests/test-fflush.c (main): Avoid a failure on uClibc.
99662 2007-06-08  Bruno Haible  <bruno@clisp.org>
99664         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
99665         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
99666         * modules/gettext (Files): Add m4/intlmacosx.m4.
99668 2007-06-07  Bruno Haible  <bruno@clisp.org>
99670         * modules/localename-tests: New file.
99671         * tests/test-localename.c: New file.
99673         New module 'localename'.
99674         * lib/localename.h: New file.
99675         * lib/localename.c: New file, from GNU gettext.
99676         * m4/localename.m4: New file.
99677         * modules/localename: New file.
99679 2007-06-07  Bruno Haible  <bruno@clisp.org>
99681         Work around the lack of <wchar.h> on some builds of uClibc.
99682         * doc/headers/wchar.texi: Update.
99683         * lib/wchar_.h: Include <wchar.h> only if it exists.
99684         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
99685         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
99686         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
99687         doesn't exist.
99688         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
99689         * modules/mbfile (Depends-on): Add wchar.
99690         * modules/mbiter (Depends-on): Likewise.
99691         * modules/mbuiter (Depends-on): Likewise.
99692         Reported by Simon Josefsson.
99694 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
99696         Work around problem reported by Steven M. Schweda in
99697         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
99698         Tru64 5.1B with the Compaq compiler environment installed declares
99699         an 'isblank' function but does not define it in the C library.
99700         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
99701         * lib/regex_internal.h (isblank): Likewise.
99702         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
99703         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
99705 2007-06-05  Bruno Haible  <bruno@clisp.org>
99707         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
99708         ia64.
99709         * modules/printf-safe: New file.
99710         * modules/fprintf-posix (Depends-on): Add printf-safe.
99711         * modules/printf-posix (Depends-on): Likewise.
99712         * modules/snprintf-posix (Depends-on): Likewise.
99713         * modules/sprintf-posix (Depends-on): Likewise.
99714         * modules/vasnprintf-posix (Depends-on): Likewise.
99715         * modules/vasprintf-posix (Depends-on): Likewise.
99716         * modules/vfprintf-posix (Depends-on): Likewise.
99717         * modules/vprintf-posix (Depends-on): Likewise.
99718         * modules/vsnprintf-posix (Depends-on): Likewise.
99719         * modules/vsprintf-posix (Depends-on): Likewise.
99720         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
99721         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
99722         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
99723         "no" on i386, x86_64, ia64.
99724         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
99725         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99726         on i386, x86_64, ia64.
99727         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
99728         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99729         on i386, x86_64, ia64.
99730         * tests/test-vasnprintf-posix.c: Include float.h.
99731         (LDBL80_WORDS): New macro.
99732         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99733         on i386, x86_64, ia64.
99734         * tests/test-vasprintf-posix.c: Include float.h.
99735         (LDBL80_WORDS): New macro.
99736         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
99737         on i386, x86_64, ia64.
99738         * tests/test-snprintf-posix.c: Include float.h.
99739         * tests/test-sprintf-posix.c: Likewise.
99740         * tests/test-vsnprintf-posix.c: Likewise.
99741         * tests/test-vsprintf-posix.c: Likewise.
99743 2007-06-05  Bruno Haible  <bruno@clisp.org>
99745         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
99746         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
99747         non-IEEE numbers on i386, x86_64, ia64.
99748         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
99749         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
99750         * tests/test-isnanl.h: Include float.h.
99751         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
99753 2007-06-05  Bruno Haible  <bruno@clisp.org>
99755         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
99756         also the %a / %A. Handle the %a / %A code before this extra handling.
99758 2007-06-05  Bruno Haible  <bruno@clisp.org>
99760         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
99761         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
99763 2007-06-05  Bruno Haible  <bruno@clisp.org>
99765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
99766         typo in variable name.
99768 2007-06-05  Eric Blake  <ebb9@byu.net>
99770         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
99771         Reported by Simon Josefsson.
99773 2007-06-04  Bruno Haible  <bruno@clisp.org>
99775         Avoid test failures on some PowerPC platforms.
99776         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
99777         Define differently for PowerPC.
99778         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
99779         Reported by Gary V. Vaughan <gary@gnu.org>.
99781 2007-06-02  Bruno Haible  <bruno@clisp.org>
99783         Fix test-stdint failure on FreeBSD/ia64.
99784         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
99785         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
99786         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
99787         * doc/headers/stdint.texi: Update.
99789 2007-06-01  Bruno Haible  <bruno@clisp.org>
99791         * tests/test-binary-io.c (main): Pass a third argument to open().
99792         Reported by Gary V. Vaughan <gary@gnu.org>.
99794 2007-06-01  Bruno Haible  <bruno@clisp.org>
99796         * doc/functions/frexpl.texi: Update for mingw.
99798 2007-06-01  Bruno Haible  <bruno@clisp.org>
99800         * tests/test-lseek.c (main): Disable test of errno for invalid third
99801         argument.
99802         * doc/functions/lseek.texi: Update.
99803         Reported by Gary V. Vaughan <gary@gnu.org>.
99805 2007-05-28  Bruno Haible  <bruno@clisp.org>
99807         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
99809 2007-05-31  Eric Blake  <ebb9@byu.net>
99811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
99812         cross compiling.
99814 2007-05-30  Eric Blake  <ebb9@byu.net>
99815         and Bruno Haible  <bruno@clisp.org>
99817         Work around mingw test failures exposed by m4-1.4.9b.
99818         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
99819         * tests/test-unistd.c: Disable uid_t and git_t tests for the
99820         moment.
99822 2007-05-30  Bruno Haible  <bruno@clisp.org>
99824         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
99825         assuming that they are closed. Needed on HP-UX 11.
99827 2007-05-29  Bruno Haible  <bruno@clisp.org>
99829         Fix a problem with #include_next.
99830         * lib/dirent_.h: Split the double-inclusion guard.
99831         * lib/fcntl_.h: Likewise.
99832         * lib/float_.h: Likewise.
99833         * lib/iconv_.h: Likewise.
99834         * lib/inttypes_.h: Likewise.
99835         * lib/locale_.h: Likewise.
99836         * lib/math_.h: Likewise.
99837         * lib/netinet_in_.h: Likewise.
99838         * lib/search_.h: Likewise.
99839         * lib/signal_.h: Likewise.
99840         * lib/stdint_.h: Likewise.
99841         * lib/stdio_.h: Likewise.
99842         * lib/stdlib_.h: Likewise.
99843         * lib/string_.h: Likewise.
99844         * lib/sys_select_.h: Likewise.
99845         * lib/sys_socket_.h: Likewise.
99846         * lib/sys_stat_.h: Likewise.
99847         * lib/sys_time_.h: Likewise.
99848         * lib/sysexits_.h: Likewise.
99849         * lib/time_.h: Likewise.
99850         * lib/unistd_.h: Likewise.
99851         * lib/wchar_.h: Likewise.
99852         * lib/wctype_.h: Likewise.
99854 2007-05-29  Bruno Haible  <bruno@clisp.org>
99856         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
99857         for the moment.
99859 2007-05-29  Bruno Haible  <bruno@clisp.org>
99861         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
99862         invocation.
99863         Reported by Eric Blake.
99865 2007-05-29  Bruno Haible  <bruno@clisp.org>
99867         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
99868         compiling case.
99870 2007-05-29  Eric Blake  <ebb9@byu.net>
99871             Bruno Haible  <bruno@clisp.org>
99873         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
99874         cross compiles.
99876 2007-05-28  Eric Blake  <ebb9@byu.net>
99878         * modules/closein-tests (test_closein_LDADD): Support test on
99879         cygwin with libtool.
99881 2007-05-28  Bruno Haible  <bruno@clisp.org>
99883         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
99884         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
99885         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
99886         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
99887         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
99888         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
99889         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
99890         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
99891         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
99893 2007-05-28  Eric Blake  <ebb9@byu.net>
99895         Unconditionally include <config.h> in unit tests.
99896         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
99897         * tests/test-allocsa.c, tests/test-arcfour.c,
99898         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
99899         tests/test-array_list.c, tests/test-array_oset.c,
99900         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
99901         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
99902         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
99903         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
99904         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
99905         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
99906         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
99907         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
99908         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
99909         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
99910         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
99911         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
99912         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
99913         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
99914         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
99915         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
99916         test-md5.c, test-memmem.c, test-printf-posix.c,
99917         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
99918         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
99919         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
99920         test-strcasestr.c, test-striconv.c, test-striconveh.c,
99921         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
99922         test-vasnprintf-posix2.c, test-vasnprintf.c,
99923         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
99924         test-vfprintf-posix.c, test-vprintf-posix.c,
99925         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
99926         test-xvasprintf.c: Likewise.
99928 2007-05-28  Bruno Haible  <bruno@clisp.org>
99930         * gnulib-tool (func_import): Remember the --with-tests command-line
99931         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
99932         Reported by Eric Blake.
99934 2007-05-28  Bruno Haible  <bruno@clisp.org>
99936         * modules/ftell-tests: New file.
99937         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
99938         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
99940         * lib/ftell.c: New file.
99941         * modules/ftell: New file.
99942         * m4/ftell.m4: New file.
99943         * doc/functions/ftell.texi: Update.
99944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
99945         REPLACE_FTELL.
99946         * lib/stdio_.h (rpl_ftell): New declaration.
99947         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
99948         REPLACE_FTELL.
99950 2007-05-28  Eric Blake  <ebb9@byu.net>
99952         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
99954 2007-05-28  Bruno Haible  <bruno@clisp.org>
99956         * modules/fseek-tests: New file.
99957         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
99958         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
99960         * lib/fseek.c: New file.
99961         * modules/fseek: New file.
99962         * m4/fseek.m4: New file.
99963         * doc/functions/fseek.texi: Update.
99964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
99965         REPLACE_FSEEK.
99966         * lib/stdio_.h (rpl_fseek): New declaration.
99967         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
99968         REPLACE_FSEEK.
99970 2007-05-28  Bruno Haible  <bruno@clisp.org>
99972         * lib/stdio_.h (fflush): More comments.
99974 2007-05-28  Bruno Haible  <bruno@clisp.org>
99976         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
99977         runtime test.
99979 2007-05-28  Eric Blake  <ebb9@byu.net>
99981         Improve lseek module.
99982         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
99983         * lib/unistd_.h (lseek): Scale back link warning message.
99984         * tests/test-lseek.c: Beef up test.
99985         * tests/test-lseek.sh: Exercise more facets of lseek.
99986         Reported by Bruno Haible.
99988 2007-05-28  Bruno Haible  <bruno@clisp.org>
99990         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
99991         to define.
99993 2007-05-27  Bruno Haible  <bruno@clisp.org>
99995         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
99997 2007-05-27  Bruno Haible  <bruno@clisp.org>
99999         * modules/openmp: New file.
100000         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
100001         Noah Misch.
100003 2007-05-26  Bruno Haible  <bruno@clisp.org>
100005         * modules/chdir-long (Depends-on): Add fchdir.
100006         * modules/chdir-safer (Depends-on): Likewise.
100007         * modules/fts (Depends-on): Likewise.
100008         * modules/fts-lgpl (Depends-on): Likewise.
100009         * modules/openat (Depends-on): Likewise.
100010         * modules/savewd (Depends-on): Likewise.
100012 2007-05-24  Eric Blake  <ebb9@byu.net>
100014         Fix lseek on mingw.
100015         * modules/lseek: New module.
100016         * m4/lseek.m4: New file.
100017         * lib/lseek.c: New file.
100018         * modules/lseek-tests: New file.
100019         * tests/test-lseek.c: New file.
100020         * tests/test-lseek.sh: New file.
100021         * MODULES.html.sh: Document lseek module.
100022         * modules/fflush (Depends-on): Add lseek, fseeko.
100023         * modules/fseeko (Depends-on): Likewise.
100024         * modules/ftello (Depends-on): Likewise.
100025         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
100026         broken.
100027         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
100028         broken.
100029         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
100030         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
100031         * lib/ftello.c (rpl_ftello): Likewise.
100032         * tests/test-fseeko.c (main): Test this.
100033         * tests/test-fseeko.sh: Likewise.
100034         * tests/test-ftello.c (main): Likewise.
100035         * tests/test-ftello.sh: Likewise.
100036         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
100037         implies replacing fseek.
100038         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
100039         HAVE_FTELLO.
100040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
100041         * modules/unistd (Makefile.am): Likewise.
100042         * lib/unistd_.h (lseek): Declare a replacement.
100043         * doc/functions/lseek.texi (lseek): Document this fix.
100044         * doc/functions/fseek.texi (fseek): Likewise.
100045         * doc/functions/ftell.texi (ftell): Likewise.
100047 2007-05-24  Bruno Haible  <bruno@clisp.org>
100049         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
100050         in the printed representation of a NaN.
100051         * tests/test-vasprintf-posix.c (test_function): Likewise.
100052         * tests/test-snprintf-posix.h (test_function): Likewise.
100053         * tests/test-sprintf-posix.h (test_function): Likewise.
100054         Reported by Eric Blake.
100056 2007-05-23  Eric Blake  <ebb9@byu.net>
100058         Fix fseeko/ftello on cygwin 1.5.24.
100059         * doc/functions/fseeko.texi (fseeko): Document the fix.
100060         * doc/functions/ftello.texi (ftello): Document the fix.
100061         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
100062         * doc/functions/stdout.text (stdout): New file.
100063         * doc/functions/stderr.text (stderr): New file.
100064         * doc/gnulib.texi (Function Substitutes): Use new files.
100065         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
100066         prior to 1.7.0.
100067         * tests/test-ftello.c (main): Likewise for ftello.
100068         * tests/test-fseeko.sh: New file.
100069         * tests/test-ftello.sh: New file.
100070         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
100071         with seekable stdin.
100072         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
100073         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
100074         (gl_REPLACE_FSEEKO): New macro.
100075         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
100076         * modules/fseeko (Files): Distribute fseeko.c.
100077         * modules/ftello (Files): Distribute ftello.c.
100078         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
100079         mode.
100080         * lib/ftello.c (rpl_ftello): New file.
100081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
100082         fseeko, ftello.
100083         (gl_STDIN_LARGE_OFFSET): New macro.
100084         * modules/stdio (Makefile.am): Perform the replacement.
100085         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
100087 2007-05-23  Bruno Haible  <bruno@clisp.org>
100089         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
100090         GNULIB_POSIXCHECK is defined.
100092 2007-05-21  Bruno Haible  <bruno@clisp.org>
100094         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
100095         Check also the output for NaN arguments. When cross-compiling, guess
100096         no on IRIX.
100097         * lib/vasnprintf.c: Update comments.
100098         * tests/test-vasnprintf-posix.c (strisnan): New function.
100099         (test_function): Use it.
100100         * tests/test-vasprintf-posix.c (strisnan): New function.
100101         (test_function): Use it.
100102         * tests/test-snprintf-posix.h (strisnan): New function.
100103         (test_function): Use it.
100104         * tests/test-sprintf-posix.h (strisnan): New function.
100105         (test_function): Use it.
100106         Reported by Eric Blake.
100108 2007-05-20  Bruno Haible  <bruno@clisp.org>
100110         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
100111         numbers that fails on BeOS.
100112         * doc/functions/frexpl.texi: Update.
100114 2007-05-20  Jim Meyering  <jim@meyering.net>
100116         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
100117         forced upon us by glibc-2.6.
100119 2007-05-20  Bruno Haible  <bruno@clisp.org>
100121         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
100122         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
100123         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
100124         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
100125         NEED_PRINTF_INFINITE.
100126         (is_infinitel): New function.
100127         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
100128         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
100129         gl_PREREQ_VASNPRINTF_INFINITE.
100130         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
100131         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100132         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
100133         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
100134         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
100135         gl_PREREQ_VASNPRINTF_INFINITE.
100136         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100137         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100138         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100139         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100140         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100143         * doc/functions/fprintf.texi: Update.
100144         * doc/functions/printf.texi: Update.
100145         * doc/functions/snprintf.texi: Update.
100146         * doc/functions/sprintf.texi: Update.
100147         * doc/functions/vfprintf.texi: Update.
100148         * doc/functions/vprintf.texi: Update.
100149         * doc/functions/vsnprintf.texi: Update.
100150         * doc/functions/vsprintf.texi: Update.
100152 2007-05-20  Bruno Haible  <bruno@clisp.org>
100154         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
100155         was not found in libc.
100156         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
100158 2007-05-20  Bruno Haible  <bruno@clisp.org>
100160         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100161         printed as "-nan" instead of "nan".
100162         * tests/test-vasprintf-posix.c (test_function): Likewise.
100163         * tests/test-snprintf-posix.h (test_function): Likewise.
100164         * tests/test-sprintf-posix.h (test_function): Likewise.
100165         Needed for HP-UX 11.
100167 2007-05-20  Jim Meyering  <jim@meyering.net>
100169         Fix buggy test for the fchownat-deref bug.
100170         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
100171         symlink required for the run-test.  Without it, this test would
100172         always declare that fchownat doesn't work, and client code would
100173         unnecessarily use the replacement function with fixed libc.
100174         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
100175         Reported by Greg Schafer.
100177 2007-05-19  Bruno Haible  <bruno@clisp.org>
100179         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
100180         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
100181         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
100182         Needed for IRIX 6.5 and Solaris 2.5.1.
100184 2007-05-19  Bruno Haible  <bruno@clisp.org>
100186         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
100187         (test_function): Skip tests involving -0.0 on platforms where
100188         -0.0 = 0.0.
100189         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
100190         (test_function): Skip tests involving -0.0 on platforms where
100191         -0.0 = 0.0.
100192         * tests/test-snprintf-posix.h (have_minus_zero): New function.
100193         (test_function): Skip tests involving -0.0 on platforms where
100194         -0.0 = 0.0.
100195         * tests/test-sprintf-posix.h (have_minus_zero): New function.
100196         (test_function): Skip tests involving -0.0 on platforms where
100197         -0.0 = 0.0.
100198         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
100199         tests.
100200         * tests/test-printf-posix.h (test_function): Likewise.
100201         * tests/test-printf-posix.output: Remove all -0.0 related results.
100202         Needed for IRIX 6.5.
100204 2007-05-19  Bruno Haible  <bruno@clisp.org>
100206         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
100207         printed as "nan0x7fffffff" instead of "nan".
100208         * tests/test-vasprintf-posix.c (test_function): Likewise.
100209         * tests/test-snprintf-posix.h (test_function): Likewise.
100210         * tests/test-sprintf-posix.h (test_function): Likewise.
100211         * tests/test-fprintf-posix.h (NaN): Remove macro.
100212         (test_function): Remove all NaN related tests.
100213         * tests/test-printf-posix.h (NaN): Remove macro.
100214         (test_function): Remove all NaN related tests.
100215         * tests/test-printf-posix.output: Remove all NaN related results.
100216         Needed for IRIX 6.5.
100218 2007-05-19  Bruno Haible  <bruno@clisp.org>
100220         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
100221         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
100223 2007-05-19  Bruno Haible  <bruno@clisp.org>
100225         * lib/float_.h: New file.
100226         * m4/float_h.m4: New file.
100227         * modules/float: New file.
100228         * modules/isnanl (Dependencies): Add float.
100229         * modules/isnanl-nolibm (Dependencies): Likewise.
100230         * modules/mathl (Dependencies): Likewise.
100231         * modules/printf-frexpl (Dependencies): Likewise.
100232         * modules/signbit (Dependencies): Likewise.
100233         * modules/vasnprintf (Dependencies): Likewise.
100234         * doc/headers/float.texi: Update.
100236 2007-05-19  Jim Meyering  <jim@meyering.net>
100238         * lib/utimens.c (gl_futimens): Rename from futimens,
100239         now that glibc-2.6 declares futimens.
100240         * lib/utimens.h: Likewise.
100242 2007-05-19  Bruno Haible  <bruno@clisp.org>
100244         Avoid test failures on mingw.
100245         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
100246         * tests/test-printf-posix.sh: Likewise.
100247         * tests/test-vfprintf-posix.sh: Likewise.
100248         * tests/test-vprintf-posix.sh: Likewise.
100250 2007-05-19  Bruno Haible  <bruno@clisp.org>
100252         Fix *printf result for NaN, Inf, -0.0 on mingw.
100253         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
100254         * lib/vasnprintf.c: Include math.h and isnan.h.
100255         (is_infinite_or_zero): New function.
100256         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
100257         values in the %f, %F, %e, %E, %g, %G directives.
100258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
100259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100260         gl_PRINTF_INFINITE and test its result. Invoke
100261         gl_PREREQ_VASNPRINTF_INFINITE.
100262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100268         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100269         * doc/functions/fprintf.texi: Update.
100270         * doc/functions/printf.texi: Update.
100271         * doc/functions/snprintf.texi: Update.
100272         * doc/functions/sprintf.texi: Update.
100273         * doc/functions/vfprintf.texi: Update.
100274         * doc/functions/vprintf.texi: Update.
100275         * doc/functions/vsnprintf.texi: Update.
100276         * doc/functions/vsprintf.texi: Update.
100278 2007-05-19  Bruno Haible  <bruno@clisp.org>
100280         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
100281         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
100282         Instead of multiplying with 10^k, set extra_zeroes to k.
100283         (scale10_round_long_double): Remove function.
100285 2007-05-18  Bruno Haible  <bruno@clisp.org>
100287         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
100288         introduced on 2007-05-06.
100290 2007-05-18  Bruno Haible  <bruno@clisp.org>
100292         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
100293         %g directives.
100294         * tests/test-vasprintf-posix.c (test_function): Likewise.
100295         * tests/test-snprintf-posix.h (test_function): Likewise.
100296         * tests/test-sprintf-posix.h (test_function): Likewise.
100298 2007-05-18  Bruno Haible  <bruno@clisp.org>
100300         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
100301         (strmatch): New function.
100302         (test_function): Test the %f directive on numbers of various exponents.
100303         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
100304         (strmatch): New function.
100305         (test_function): Test the %f directive on numbers of various exponents.
100306         * tests/test-snprintf-posix.h (strmatch): New function.
100307         (test_function): Test the %f directive on numbers of various exponents.
100308         * tests/test-sprintf-posix.h (strmatch): New function.
100309         (test_function): Test the %f directive on numbers of various exponents.
100310         * tests/test-snprintf-posix.c (SIZEOF): New macro.
100311         * tests/test-sprintf-posix.c (SIZEOF): New macro.
100312         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
100313         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
100315 2007-05-18  Bruno Haible  <bruno@clisp.org>
100317         Add support for 'long double' number output.
100318         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
100319         * lib/vasnprintf.c: Include math.h and float+.h.
100320         (mp_limb_t): New type.
100321         (GMP_LIMB_BITS): New macro.
100322         (mp_twolimb_t): New type.
100323         (GMP_TWOLIMB_BITS): New macro.
100324         (mpn_t): New type.
100325         (multiply, divide, convert_to_decimal, decode_long_double,
100326         scale10_round_long_double, scale10_round_decimal_long_double,
100327         floorlog10l): New functions.
100328         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
100329         for the %f, %F, %e, %E, %g, %G directives.
100330         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
100331         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
100332         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
100333         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
100334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
100335         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100336         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100337         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100338         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100339         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100340         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100341         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
100342         * modules/snprintf-posix (Depends-on): Likewise.
100343         * modules/sprintf-posix (Depends-on): Likewise.
100344         * modules/vasnprintf-posix (Depends-on): Likewise.
100345         * modules/vasprintf-posix (Depends-on): Likewise.
100346         * modules/vfprintf-posix (Depends-on): Likewise.
100347         * modules/vsnprintf-posix (Depends-on): Likewise.
100348         * modules/vsprintf-posix (Depends-on): Likewise.
100349         * modules/vasnprintf (Files): Add lib/float+.h.
100350         * doc/functions/fprintf.texi: Update.
100351         * doc/functions/printf.texi: Update.
100352         * doc/functions/snprintf.texi: Update.
100353         * doc/functions/sprintf.texi: Update.
100354         * doc/functions/vfprintf.texi: Update.
100355         * doc/functions/vprintf.texi: Update.
100356         * doc/functions/vsnprintf.texi: Update.
100357         * doc/functions/vsprintf.texi: Update.
100359 2007-05-18  Bruno Haible  <bruno@clisp.org>
100361         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
100363 2007-05-18  Bruno Haible  <bruno@clisp.org>
100365         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
100366         for printing 64-bit integers. Needed for mingw.
100368 2007-05-18  Bruno Haible  <bruno@clisp.org>
100370         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
100371         gl_FUNC_FREXPL_WORKS.
100372         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
100374 2007-05-18  Bruno Haible  <bruno@clisp.org>
100376         * modules/frexpl-nolibm-tests: New file.
100378         * modules/frexpl-nolibm: New file.
100379         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
100381 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
100383         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
100384         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100385         GCC 4.2, which otherwise issues a lot of warnings.
100386         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
100387         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
100388         Likewise.
100389         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
100390         * modules/iconv_open (iconv.h): Likewise.
100391         * modules/locale (locale.h): Likewise.
100392         * modules/netinet_in (netinet/in.h): Likewise.
100393         * modules/sys_select (sys_select.h): Likewise.
100394         * modules/sys_socket (sys/socket.h): Likewise.
100395         * modules/sys_stat (sys/stat.h): Likewise.
100396         * modules/sysexits (sysexits.h): Likewise.
100397         * modules/unistd (unistd.h): Likewise.
100399 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100401         * modules/closein-tests (Makefile.am): Distribute
100402         `test-closein.sh'.
100404 2007-05-17  Bruno Haible  <bruno@clisp.org>
100406         * tests/test-printf-posix.output: Renamed from
100407         tests/test-fprintf-posix.out.
100408         * modules/fprintf-posix-tests: Update.
100409         * modules/printf-posix-tests: Update.
100410         * modules/vfprintf-posix-tests: Update.
100411         * modules/vprintf-posix-tests: Update.
100412         * tests/test-fprintf-posix.sh: Update.
100413         * tests/test-printf-posix.sh: Update.
100414         * tests/test-vfprintf-posix.sh: Update.
100415         * tests/test-vprintf-posix.sh: Update.
100416         Reported by Ralf Wildenhues.
100418 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
100420         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
100421         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
100422         GCC 4.2, which otherwise issues a lot of warnings.
100423         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
100424         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
100425         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
100426         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
100427         it should no longer be needed.
100428         * lib/string_.h: Likewise.
100429         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
100430         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
100431         * modules/inttypes (inttypes.h): Likewise.
100432         * modules/math (math.h): Likewise.
100433         * modules/search (search.h): Likewise.
100434         * modules/signal (signal.h): Likewise.
100435         * modules/stdint (stdint.h): Likewise.
100436         * modules/stdio (stdio.h): Likewise.
100437         * modules/stdlib (stdlib.h): Likewise.
100438         * modules/string (string.h): Likewise.
100439         * modules/sys_time (sys/time.h): Likewise.
100440         * modules/time (time.h): Likewise.
100441         * modules/wchar (wchar.h): Likewise.
100442         * modules/wctype (wtype.h): Likewise.
100444 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
100446         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
100448 2007-05-13  Bruno Haible  <bruno@clisp.org>
100450         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
100451         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100452         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
100453         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
100454         (gl_PREREQ_STRTOK_R): Don't require it here.
100456 2007-05-13  Bruno Haible  <bruno@clisp.org>
100458         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
100459         when used in C++ mode.
100461 2007-05-12  Bruno Haible  <bruno@clisp.org>
100463         * lib/linebuffer.h: Tweak doc.
100464         * lib/linebuffer.c: Likewise.
100466 2007-05-12  James Youngman  <jay@gnu.org>
100468         * lib/linebuffer.c (readlinebuffer_delim): New function,
100469         like readlinebuffer, but use a caller-specified delimiter.
100470         (readlinebuffer): Just call readlinebuffer_delim with '\n'
100471         as the delimiter.
100472         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
100474 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
100476         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
100477         * modules/openat (Files): Remove openat-die.c.
100478         (Depends-on): Add openat-die.
100479         * modules/openat-die: New module.
100481 2007-05-06  Bruno Haible  <bruno@clisp.org>
100483         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
100484         Update with info about Cygwin.
100485         * doc/functions/fprintf.texi: Update.
100486         * doc/functions/printf.texi: Update.
100487         * doc/functions/snprintf.texi: Update.
100488         * doc/functions/sprintf.texi: Update.
100489         * doc/functions/vfprintf.texi: Update.
100490         * doc/functions/vprintf.texi: Update.
100491         * doc/functions/vsnprintf.texi: Update.
100492         * doc/functions/vsprintf.texi: Update.
100493         Reported by Eric Blake.
100495 2007-05-06  Bruno Haible  <bruno@clisp.org>
100497         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
100498         padding ourselves for the floating-point directives.
100499         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
100500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
100501         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100502         gl_PRINTF_FLAG_ZERO and test its result. Invoke
100503         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
100504         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100505         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100508         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100509         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100510         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100511         * tests/test-snprintf-posix.h (test_function): Also check the width
100512         and some flags in the %f directive.
100513         * tests/test-sprintf-posix.h (test_function): Likewise.
100514         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100515         * tests/test-vasprintf-posix.c (test_function): Likewise.
100516         * doc/functions/fprintf.texi: Update.
100517         * doc/functions/printf.texi: Update.
100518         * doc/functions/snprintf.texi: Update.
100519         * doc/functions/sprintf.texi: Update.
100520         * doc/functions/vfprintf.texi: Update.
100521         * doc/functions/vprintf.texi: Update.
100522         * doc/functions/vsnprintf.texi: Update.
100523         * doc/functions/vsprintf.texi: Update.
100525 2007-05-06  Bruno Haible  <bruno@clisp.org>
100527         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
100528         pass the ' flag character to sprintf or snprintf.
100529         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
100530         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
100531         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100532         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
100533         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
100534         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
100535         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
100536         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
100537         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
100538         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
100539         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100540         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
100541         * tests/test-snprintf-posix.h (test_function): Also check the grouping
100542         flag.
100543         * tests/test-sprintf-posix.h (test_function): Likewise.
100544         * tests/test-vasnprintf-posix.c (test_function): Likewise.
100545         * tests/test-vasprintf-posix.c (test_function): Likewise.
100546         * doc/functions/fprintf.texi: Update.
100547         * doc/functions/printf.texi: Update.
100548         * doc/functions/snprintf.texi: Update.
100549         * doc/functions/sprintf.texi: Update.
100550         * doc/functions/vfprintf.texi: Update.
100551         * doc/functions/vprintf.texi: Update.
100552         * doc/functions/vsnprintf.texi: Update.
100553         * doc/functions/vsprintf.texi: Update.
100555 2007-05-01  Bruno Haible  <bruno@clisp.org>
100557         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
100559 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
100561         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
100562         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
100564 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
100566         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
100567         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
100568         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
100570 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
100572         * lib/argp-help.c (struct hol_entry): New member `ord'.
100573         (HOL_ENTRY_PTRCMP): Use ord for comparison
100574         (hol_sort): Initialize ord.
100576 2007-05-01  Bruno Haible  <bruno@clisp.org>
100578         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
100579         Reported by Eric Blake.
100580         * doc/gnulib.texi (Function Substitutes): Update.
100582 2007-05-01  Bruno Haible  <bruno@clisp.org>
100584         * doc/functions.texi: Remove file, now redundant through
100585         doc/functions/*.texi.
100587 2007-05-01  Bruno Haible  <bruno@clisp.org>
100589         * modules/argp (Depends-on): Add sleep.
100591 2007-05-01  Bruno Haible  <bruno@clisp.org>
100593         * modules/sleep-tests: New file.
100594         * tests/test-sleep.c: New file.
100596         * modules/sleep: New file.
100597         * lib/sleep.c: New file.
100598         * m4/sleep.m4: New file.
100599         * lib/unistd_.h (sleep): New declaration.
100600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
100601         HAVE_SLEEP.
100602         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
100603         * doc/functions/sleep.texi: Document the sleep module.
100605 2007-05-01  Bruno Haible  <bruno@clisp.org>
100607         * lib/sigprocmask.h: Remove file.
100608         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
100609         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
100610         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
100611         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
100612         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
100613         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
100614         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
100615         HAVE_SIGSET_T as a shell variable.
100616         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
100617         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
100618         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
100619         (Depends-on): Add signal. Remove verify.
100620         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
100621         (Include): Mention <signal.h> instead of sigprocmask.h.
100622         * NEWS: Mention the change.
100623         * lib/fatal-signal.c: Don't include sigprocmask.h.
100625 2007-05-01  Bruno Haible  <bruno@clisp.org>
100627         * modules/signal: New file.
100628         * lib/signal_.h: New file.
100629         * m4/signal_h.m4: New file.
100631 2007-05-01  Bruno Haible  <bruno@clisp.org>
100633         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
100634         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
100635         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
100636         HAVE_WCTYPE_CTMP_BUG into wctype.h.
100638 2007-05-01  Bruno Haible  <bruno@clisp.org>
100640         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
100641         configure time.
100642         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
100643         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
100644         * modules/sys_stat (Makefile.am): Substitute their values into
100645         sys/stat.h.
100647 2007-05-01  Bruno Haible  <bruno@clisp.org>
100649         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
100650         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
100651         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
100653 2007-05-01  Bruno Haible  <bruno@clisp.org>
100655         * doc/header/assert.texi: Undo last change: don't mention the gnulib
100656         'assert' module here.
100658 2007-05-01  Bruno Haible  <bruno@clisp.org>
100660         * doc/functions/*.texi: New files.
100661         * doc/functions/google-ranking.txt: New file.
100662         * doc/gnulib.texi (Function Substitutes): New chapter.
100663         (ctime, inet_ntoa): Remove sections.
100664         * doc/ctime.texi: Remove file.
100665         * doc/inet_ntoa.texi: Remove file.
100666         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
100667         dependencies.
100668         (%.info): New rule, specifying a --reference-limit.
100670 2007-05-01  Bruno Haible  <bruno@clisp.org>
100672         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
100674 2007-05-01  Bruno Haible  <bruno@clisp.org>
100676         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
100677         the portability of 'mkdir' to mingw systems.
100679 2007-05-01  Bruno Haible  <bruno@clisp.org>
100681         * doc/headers/google-ranking.txt: New file.
100683 2007-04-30  Eric Blake  <ebb9@byu.net>
100685         Prefer fseeko to fseek.
100686         * modules/getpass (Depends-on): Add fseeko.
100687         * lib/getpass.c (getpass): Use fseeko, not fseek.
100689 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
100691         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
100692         assumes the sorting is stable, while most qsort implementations
100693         are not.  Use argument addresses to ensure they never compare as
100694         equal.
100696         * tests/test-argp-2.sh (usage-indent test): Fix output
100697         (func_compare): Restore diff options
100698         * tests/test-argp.c: Restore #include "progname.h"
100700 2007-04-29  Bruno Haible  <bruno@clisp.org>
100702         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
100703         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
100704         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
100705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
100706         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
100707         (configure.ac): Define CHECK_SNPRINTF_POSIX.
100708         (TESTS, check_PROGRAMS): Add test-snprintf.
100709         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
100710         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
100711         (TESTS, check_PROGRAMS): Add test-vsnprintf.
100712         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
100713         assertions that fail on HP-UX, OSF/1, or IRIX.
100714         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
100716 2007-04-29  Bruno Haible  <bruno@clisp.org>
100718         * MODULES.html.sh (posix_functions): Remove 'contents'.
100720 2007-04-29  Karl Berry  <karl@gnu.org>
100722         * config/srclist.txt (gendocs_template_min): new entry.
100724 2007-04-29  Bruno Haible  <bruno@clisp.org>
100726         Work around fpurge bug on BSD systems.
100727         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
100728         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
100729         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
100730         fpurge to rpl_fpurge if the system already has this function.
100731         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
100732         the case where the system already has this function. Correct invariants
100733         on BSD systems.
100734         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
100735         BSD systems.
100737 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
100739         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
100740         proposed by Sven Verdoolaege.
100742         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
100743         options.
100744         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
100745         (usage and help tests): Update
100747 2007-04-29  Bruno Haible  <bruno@clisp.org>
100749         * tests/test-fflush.c (main): Use a file of size 17, not 10.
100750         Print more information in case of failure. Disable a test on BeOS.
100752 2007-04-29  Bruno Haible  <bruno@clisp.org>
100754         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
100755         This helps debugging on systems on which no gdb is available.
100757 2007-04-29  Bruno Haible  <bruno@clisp.org>
100759         * lib/freading.h: Improve comments.
100760         * lib/fwriting.h: Likewise.
100761         * tests/test-freading.c (main): Don't check freading immediately after
100762         repositioning. Needed for glibc.
100764 2007-04-29  Bruno Haible  <bruno@clisp.org>
100766         * lib/freading.c (freading): Trivial simplification.
100768 2007-04-28  Bruno Haible  <bruno@clisp.org>
100770         * tests/test-fwriting.c (main): Also test the interaction between
100771         fflush and fwriting.
100772         * modules/fwriting-tests (Depends-on): Add fflush.
100774         * tests/test-freading.c (main): Also test the interaction between
100775         fflush and freading.
100776         * modules/freading-tests (Depends-on): Add fflush.
100778 2007-04-28  Bruno Haible  <bruno@clisp.org>
100780         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
100781         fseeko and ftello.
100782         Suggested by Eric Blake.
100784 2007-04-28  Jim Meyering  <jim@meyering.net>
100786         Avoid false-negative in gl_STDINT_H's C99 conformance test.
100787         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
100788         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
100790 2007-04-27  Eric Blake  <ebb9@byu.net>
100792         * doc/headers/assert.texi (assert.h): Document assert module use.
100794 2007-04-27  Bruno Haible  <bruno@clisp.org>
100796         * doc/headers/*.texi: New files.
100797         * doc/gnulib.texi (Header File Substitutes): New chapter.
100798         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
100799         dependencies.
100800         (standards.info ,standards.html, standards.dvi): Update dependencies.
100801         (mostlyclean, clean): New targets.
100803 2007-04-27  Bruno Haible  <bruno@clisp.org>
100805         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
100806         * modules/sysexits (Files, Makefile.am): Update.
100808         * lib/sys_socket_.h: Renamed from lib/socket_.h.
100809         * modules/sys_socket (Files, Makefile.am): Update.
100811         * lib/sys_stat_.h: Renamed from lib/stat_.h.
100812         * modules/sys_stat (Files, Makefile.am): Update.
100814 2007-04-27  Eric Blake  <ebb9@byu.net>
100816         * lib/freading.h: Improve comments.
100817         * lib/fwriting.h: Likewise.
100818         * lib/fflush.c: Likewise.
100820         Fix closein for mingw.
100821         * modules/closein-tests: Add tests for closein.
100822         * tests/test-closein.c: New file.
100823         * tests/test-closein.sh: Likewise.
100824         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
100825         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
100827 2007-04-27  Bruno Haible  <bruno@clisp.org>
100829         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
100830         version is < 6.
100831         * lib/math_.h [__DECC]: Likewise.
100832         * lib/stdio_.h [__DECC]: Likewise.
100833         * lib/stdlib_.h [__DECC]: Likewise.
100834         * lib/string_.h [__DECC]: Likewise.
100835         * lib/time_.h [__DECC]: Likewise.
100836         * lib/wchar_.h [__DECC]: Likewise.
100837         * lib/wctype_.h [__DECC]: Likewise.
100839 2007-04-27  Bruno Haible  <bruno@clisp.org>
100841         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
100843 2007-04-27  Bruno Haible  <bruno@clisp.org>
100845         * lib/fflush.c: Add comments.
100846         * modules/fpurge-tests (Depends-on): Add fflush.
100847         * modules/freadable-tests (Depends-on): Likewise.
100848         * modules/fwritable-tests (Depends-on): Likewise.
100850 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
100852         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
100853         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
100854         Report by Bruno Haible <bruno@clisp.org>.
100856 2007-04-26  Eric Blake  <ebb9@byu.net>
100858         Fix fflush on mingw.
100859         * modules/fflush (Depends-on): Add freading.
100860         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
100861         but unread data.
100863 2007-04-26  Eric Blake  <ebb9@byu.net>
100864         and Bruno Haible  <bruno@clisp.org>
100866         Implement freading and fwriting.
100867         * lib/freading.c: New file.
100868         * lib/freading.h: Likewise.
100869         * m4/freading.m4: Likewise.
100870         * modules/freading: Likewise.
100871         * modules/freading-tests: Likewise.
100872         * tests/test-freading.c: Likewise.
100873         * lib/fwriting.c: New file.
100874         * lib/fwriting.h: Likewise.
100875         * m4/fwriting.m4: Likewise.
100876         * modules/fwriting: Likewise.
100877         * modules/fwriting-tests: Likewise.
100878         * tests/test-fwriting.c: Likewise.
100879         * MODULES.html.sh (File stream based Input/Output): Mention them.
100881 2007-04-26  Bruno Haible  <bruno@clisp.org>
100883         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
100884         'long' when we assume it.
100885         Suggested by Eric Blake.
100887 2007-04-26  Bruno Haible  <bruno@clisp.org>
100889         Ensure fseeko, ftello are declared on glibc systems.
100890         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
100891         * modules/fseeko (configure.ac-early): Likewise.
100892         * modules/ftello (configure.ac-early): Likewise.
100893         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
100894         AC_FUNC_FSEEKO for this.
100895         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
100896         (gl_CHECK_FSEEKO): Remove macro.
100898 2007-04-26  Bruno Haible  <bruno@clisp.org>
100900         * tests/test-fflush.c (main): Also check the ftell result after
100901         fflush and fseek/fseeko.
100902         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
100903         file descriptor position cache in the stream.
100904         * lib/fseeko.c (rpl_fseeko): Likewise.
100906 2007-04-26  Bruno Haible  <bruno@clisp.org>
100908         * modules/fflush-tests (Depends-on): Add fseeko.
100910 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
100911             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100913         * lib/argz_.h: ensure error_t definition is obtained in same
100914         mechanism system argz.h would have.
100915         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
100916         argz facilities are known bad.  Err on the side of caution if
100917         cross-compiling.
100919 2007-04-25  Eric Blake  <ebb9@byu.net>
100921         * lib/fpurge.c (includes): Use stdlib.h for free.
100922         * tests/test-fflush.c (main): Also test fflush-fseeko.
100924 2007-04-25  Bruno Haible  <bruno@clisp.org>
100926         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
100927         * lib/fseeko.c: New file.
100928         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
100929         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
100930         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
100931         gl_FUNC_FSEEKO.
100932         (gl_FUNC_FSEEKO): Invoke it.
100933         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
100934         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
100935         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
100937 2007-04-25  Bruno Haible  <bruno@clisp.org>
100939         * modules/fflush (Depends-on): Add ftello.
100941 2007-04-25  Bruno Haible  <bruno@clisp.org>
100943         * modules/ftello-tests: New file.
100944         * tests/test-ftello.c: New file.
100946         * modules/ftello: New file.
100947         * m4/ftello.m4: New file.
100948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
100949         HAVE_FTELLO.
100950         * lib/stdio_.h (ftello): New declaration.
100951         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
100952         HAVE_FTELLO.
100954 2007-04-25  Bruno Haible  <bruno@clisp.org>
100956         * modules/fseeko-tests: New file.
100957         * tests/test-fseeko.c: New file.
100959         * modules/fseeko: New file.
100960         * m4/fseeko.m4: New file.
100961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
100962         HAVE_FSEEKO.
100963         * lib/stdio_.h (fseeko): New declaration.
100964         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
100965         HAVE_FSEEKO.
100967 2007-04-25  Bruno Haible  <bruno@clisp.org>
100969         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
100971 2007-04-25  Bruno Haible  <bruno@clisp.org>
100973         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
100974         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
100975         * tests/test-unistd.c: Likewise.
100976         * tests/test-fcntl.c: Likewise.
100978 2007-04-23  Eric Blake  <ebb9@byu.net>
100980         * lib/fflush.c: Fix missing include.
100981         Reported by Bruno Haible.
100983 2007-04-23  Bruno Haible  <bruno@clisp.org>
100985         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
100986         Reported by Eric Blake.
100988 2007-04-23  Bruno Haible  <bruno@clisp.org>
100990         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
100992 2007-04-23  Bruno Haible  <bruno@clisp.org>
100994         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
100996 2007-04-23  Bruno Haible  <bruno@clisp.org>
100998         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
100999         Needed on HP-UX 11.
101001 2007-04-16  Eric Blake  <ebb9@byu.net>
101003         Make fflush rely on fpurge.
101004         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
101005         open coding all variants.
101006         * modules/fflush (Depends-on): Add fpurge and unistd.
101007         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
101008         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
101010         Fix --with-tests compilation on cygwin.
101011         * modules/argmatch-tests (Makefile.am): List gnulib library first
101012         in LDADD.
101013         * modules/argp-tests (Makefile.am): Likewise.
101014         * modules/array-list-tests (Makefile.am): Likewise.
101015         * modules/array-oset-tests (Makefile.am): Likewise.
101016         * modules/avltree-list-tests (Makefile.am): Likewise.
101017         * modules/avltree-oset-tests (Makefile.am): Likewise.
101018         * modules/avltreehash-list-tests (Makefile.am): Likewise.
101019         * modules/carray-list-tests (Makefile.am): Likewise.
101020         * modules/dirname-tests (Makefile.am): Likewise.
101021         * modules/frexp-tests (Makefile.am): Likewise.
101022         * modules/isnanl-tests (Makefile.am): Likewise.
101023         * modules/linked-list-tests (Makefile.am): Likewise.
101024         * modules/linkedhash-list-tests (Makefile.am): Likewise.
101025         * modules/lock-tests (Makefile.am): Likewise.
101026         * modules/rbtree-list-tests (Makefile.am): Likewise.
101027         * modules/rbtree-oset-tests (Makefile.am): Likewise.
101028         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
101029         * modules/tls-tests (Makefile.am): Likewise.
101030         * modules/tsearch-tests (Makefile.am): Likewise.
101031         * modules/xvasprintf-tests (Makefile.am): Likewise.
101033         Fix fpurge for cygwin.
101034         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
101035         value.
101036         * modules/fpurge-tests (Depends-on): Clean up trash.
101038 2007-04-16  Simon Josefsson  <simon@josefsson.org>
101040         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
101042         * m4/autobuild.m4: Re-indent.
101044 2007-04-13  Bruno Haible  <bruno@clisp.org>
101046         * modules/fpurge-tests: New file.
101047         * tests/test-fpurge.c: New file.
101049         * modules/fpurge: New file.
101050         * lib/fpurge.h: New file.
101051         * lib/fpurge.c: New file.
101052         * m4/fpurge.m4: New file.
101054 2007-04-13  Bruno Haible  <bruno@clisp.org>
101056         * modules/fbufmode-tests: New file.
101057         * tests/test-fbufmode.c: New file.
101059         * modules/fbufmode: New file.
101060         * lib/fbufmode.h: New file.
101061         * lib/fbufmode.c: New file.
101062         * m4/fbufmode.m4: New file.
101064 2007-04-13  Bruno Haible  <bruno@clisp.org>
101066         * modules/fwritable-tests: New file.
101067         * tests/test-fwritable.c: New file.
101069         * modules/fwritable: New file.
101070         * lib/fwritable.h: New file.
101071         * lib/fwritable.c: New file.
101072         * m4/fwritable.m4: New file.
101074 2007-04-13  Bruno Haible  <bruno@clisp.org>
101076         * modules/freadable-tests: New file.
101077         * tests/test-freadable.c: New file.
101079         * modules/freadable: New file.
101080         * lib/freadable.h: New file.
101081         * lib/freadable.c: New file.
101082         * m4/freadable.m4: New file.
101084 2007-04-13  Bruno Haible  <bruno@clisp.org>
101086         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
101087         MOSTLYCLEANFILES.
101089 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101091         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
101092         gzip bootstrap.conf to avoid dragging in i18n machinery.
101093         (gnulib_tool_option): Use it.
101095 2007-04-13  Bruno Haible  <bruno@clisp.org>
101097         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
101098         %F directives.
101099         * tests/test-vasprintf-posix.c (test_function): Likewise.
101100         * tests/test-snprintf-posix.h (test_function): Likewise.
101101         * tests/test-sprintf-posix.h (test_function): Likewise.
101102         * tests/test-fprintf-posix.h (test_function): Likewise.
101103         * tests/test-printf-posix.h (test_function): Likewise.
101104         * tests/test-fprintf-posix.out: Likewise.
101106 2007-04-13  Bruno Haible  <bruno@clisp.org>
101108         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
101109         * modules/tls-tests (configure.ac): Likewise.
101110         Reported by Arto C. Nirkko <anirkko@insel.ch>.
101112 2007-04-13  Bruno Haible  <bruno@clisp.org>
101114         * lib/tls.c (glthread_tls_get): Fix return type.
101115         Patch by Arto C. Nirkko <anirkko@insel.ch>.
101117 2007-04-12  Eric Blake  <ebb9@byu.net>
101119         * modules/gettime (Depends-on): Remove gettime.
101120         Reported by Dmitry V. Levin.
101122 2007-04-12  Bruno Haible  <bruno@clisp.org>
101124         * modules/fflush (Include): Mention <stdio.h>.
101125         * modules/strtoimax (Include): Mention <inttypes.h>.
101126         * modules/strtoumax (Include): Likewise.
101128 2007-04-12  Eric Blake  <ebb9@byu.net>
101130         * .cvsignore: New file.
101131         * .gitignore: Likewise.
101133 2007-04-12  Bruno Haible  <bruno@clisp.org>
101135         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
101136         not before, since $(LDADD) often contains libgnu.a.
101137         * modules/striconv-tests (test_striconv_LDADD): Likewise.
101138         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
101139         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
101140         Needed on Cygwin.
101142 2007-04-12  Eric Blake  <ebb9@byu.net>
101144         Work around glibc's failure to flush stdin on fclose.
101145         * lib/closein.c (close_stdin): Flush stdin before closing.
101147         Work around glibc's failure to reset seekable stdin on exit.
101148         * modules/closein: New module.
101149         * lib/closein.c: New file.
101150         * lib/closein.h: Likewise.
101151         * m4/closein.m4: Likewise.
101152         * MODULES.html.sh (File stream based Input/Output): Document it.
101154 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101156         * gnulib-tool: Rename generated 'autobuild' script to
101157         'do-autobuild' in --create-megatestdir output.
101159         * doc/gnulib.texi (Build robot for gnulib): Fix.
101161 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101163         * modules/sysexits (Depends-on): Add absolute-header.
101165 2007-04-12  Eric Blake  <ebb9@byu.net>
101167         No need to preserve errno on success.
101168         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
101169         Reported by Bruno Haible.
101171 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101173         * MODULES.html.sh (Support for maintaining and releasing
101174         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
101176 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101178         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
101180 2007-04-12  Simon Josefsson  <simon@josefsson.org>
101182         * modules/autobuild: New module.
101184         * m4/autobuild.m4: New file.
101186 2007-04-11  Bruno Haible  <bruno@clisp.org>
101188         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
101189         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
101190         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
101191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
101192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101193         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101194         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101195         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101196         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101197         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101198         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
101199         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101200         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101201         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
101202         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101203         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101204         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
101205         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101206         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101207         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
101208         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101209         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101210         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
101211         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101212         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101213         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
101214         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
101215         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
101216         Reported by Eric Blake.
101218 2007-04-11  Bruno Haible  <bruno@clisp.org>
101220         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
101222 2007-04-10  Bruno Haible  <bruno@clisp.org>
101224         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
101225         for NaN and Infinity. Needed on FreeBSD 6.1.
101226         * tests/test-vasnprintf-posix.c (test_function): Undo last change
101227         regarding results for "%010a" of Infinity and NaN.
101228         * tests/test-vasprintf-posix.c (test_function): Likewise.
101229         * tests/test-snprintf-posix.h (test_function): Likewise.
101230         * tests/test-sprintf-posix.h (test_function): Likewise.
101231         * tests/test-fprintf-posix.h (test_function): Likewise.
101232         * tests/test-printf-posix.h (test_function): Likewise.
101233         * tests/test-fprintf-posix.out: Likewise.
101235 2007-04-10  Bruno Haible  <bruno@clisp.org>
101237         * modules/locale-tests: New file.
101238         * tests/test-locale.c: New file.
101240         * modules/locale: New file.
101241         * lib/locale_.h: New file.
101242         * m4/locale_h.m4: New file.
101244 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
101245             Bruno Haible  <bruno@clisp.org>
101247         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
101248         be determined, test for availability of the copysignf, copysign,
101249         copysignl functions.
101250         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
101251         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
101252         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
101254 2007-04-09  Eric Blake  <ebb9@byu.net>
101256         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
101257         * modules/stdio (Makefile.am): Support fflush.
101258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
101259         * modules/fflush: New file.
101260         * lib/fflush.c: Likewise.
101261         * m4/fflush.m4: Likewise.
101262         * modules/fflush-tests: New test.
101263         * tests/test-fflush.c: Likewise.
101264         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
101266 2007-04-06  Bruno Haible  <bruno@clisp.org>
101268         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
101269         (VASNPRINTF): Use signbit for faster determination whether to print a
101270         minus sign.
101271         * modules/vasnprintf (Files): Remove lib/float+.h.
101272         * modules/fprintf-posix (Depends-on): Add signbit.
101273         * modules/snprintf-posix (Depends-on): Likewise.
101274         * modules/sprintf-posix (Depends-on): Likewise.
101275         * modules/vasnprintf-posix (Depends-on): Likewise.
101276         * modules/vasprintf-posix (Depends-on): Likewise.
101277         * modules/vfprintf-posix (Depends-on): Likewise.
101278         * modules/vsnprintf-posix (Depends-on): Likewise.
101279         * modules/vsprintf-posix (Depends-on): Likewise.
101281 2007-04-06  Bruno Haible  <bruno@clisp.org>
101283         * tests/test-frexp.c (main): Test also the sign bit of zero results.
101284         * tests/test-frexpl.c (main): Likewise.
101285         * tests/test-ldexpl.c (main): Likewise.
101286         * modules/frexp-tests (Depends-on): Add signbit.
101287         * modules/frexpl-tests (Depdends-on): Likewise.
101288         * modules/ldexpl-tests (Depdends-on): Likewise.
101290 2007-04-06  Bruno Haible  <bruno@clisp.org>
101292         * modules/signbit-tests: New file.
101293         * tests/test-signbit.c: New file.
101295         * modules/signbit: New file.
101296         * lib/signbitf.c: New file.
101297         * lib/signbitd.c: New file.
101298         * lib/signbitl.c: New file.
101299         * m4/signbit.m4: New file.
101300         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
101301         (signbit): New macro.
101302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
101303         REPLACE_SIGNBIT.
101304         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
101305         REPLACE_FREXPL into math.h.
101307 2007-04-06  Bruno Haible  <bruno@clisp.org>
101309         * modules/isnanf-nolibm-tests: New file.
101310         * tests/test-isnanf.c: New file.
101312         * modules/isnanf-nolibm: New file.
101313         * lib/isnanf.h: New file.
101314         * lib/isnanf.c: New file.
101315         * lib/isnan.c: Consider the USE_FLOAT macro.
101316         * m4/isnanf.m4: New file.
101318 2007-04-06  Bruno Haible  <bruno@clisp.org>
101320         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
101321         (Link): New section.
101323         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
101325 2007-04-06  Bruno Haible  <bruno@clisp.org>
101327         Assume the 'long double' type.
101328         * m4/longdouble.m4: Remove file.
101329         * config/srclist.txt: Don't mention longdouble.m4.
101330         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
101331         * lib/float+.h: Likewise.
101332         * lib/frexp.c: Likewise.
101333         * lib/printf-args.h: Likewise.
101334         * lib/printf-args.c: Likewise.
101335         * lib/printf-frexp.c: Likewise.
101336         * lib/printf-parse.c: Likewise.
101337         * lib/vasnprintf.c: Likewise.
101338         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
101339         * m4/intl.m4: Likewise.
101340         * m4/isnanl.m4: Likewise.
101341         * m4/printf.m4: Likewise.
101342         * m4/printf-frexpl.m4: Likewise.
101343         * m4/vasnprintf.m4: Likewise.
101344         * modules/allocsa (Files): Remove m4/longdouble.m4.
101345         * modules/gettext (Files): Likewise.
101346         * modules/relocatable-prog-wrapper (Files): Likewise.
101347         * modules/vasnprintf (Files): Likewise.
101348         * modules/isnanl (Files): Likewise.
101349         (Include): Simplify.
101350         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
101351         (Include): Simplify.
101352         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
101353         (Include): Simplify.
101354         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
101355         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101356         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
101357         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101358         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101359         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101360         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
101361         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101362         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
101363         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101364         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
101365         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
101366         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
101367         * tests/test-isnanl.c: Likewise.
101368         * tests/test-snprintf-posix.h: Likewise.
101369         * tests/test-sprintf-posix.h: Likewise.
101370         * tests/test-vasnprintf-posix.c: Likewise.
101371         * tests/test-vasnprintf-posix2.c: Likewise.
101372         * tests/test-vasprintf-posix.c: Likewise.
101374 2007-04-06  Bruno Haible  <bruno@clisp.org>
101376         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
101377         * lib/math_.h [__DECC]: Include the overridden include file through
101378         #include_next, outside the double-inclusion guard.
101379         * lib/stdio_.h [__DECC]: Likewise.
101380         * lib/stdlib_.h [__DECC]: Likewise.
101381         * lib/string_.h [__DECC]: Likewise.
101382         * lib/time_.h [__DECC]: Likewise.
101383         * lib/wchar_.h [__DECC]: Likewise.
101384         * lib/wctype_.h [__DECC]: Likewise.
101385         * lib/inttypes_.h [__DECC]: Likewise.
101386         Reported by Albert Chin <china@thewrittenword.com> in
101387         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
101389 2007-04-04  Eric Blake  <ebb9@byu.net>
101391         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
101392         1.5.x.
101394 2007-04-04  Bruno Haible  <bruno@clisp.org>
101396         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
101397         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
101399 2007-04-04  Bruno Haible  <bruno@clisp.org>
101401         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
101402         results for "%010a" of Infinity and NaN.
101403         * tests/test-vasprintf-posix.c (test_function): Likewise.
101404         * tests/test-snprintf-posix.h (test_function): Likewise.
101405         * tests/test-sprintf-posix.h (test_function): Likewise.
101406         * tests/test-fprintf-posix.h (test_function): Remove these tests.
101407         * tests/test-printf-posix.h (test_function): Likewise.
101408         * tests/test-fprintf-posix.out: Update.
101409         Needed for FreeBSD 6.1.
101411 2007-04-04  Bruno Haible  <bruno@clisp.org>
101413         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
101414         directly used by the gnulib modules nor by gnulib-tool.
101416 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101418         * DEPENDENCIES: Give overall description of version dependency
101419         desirability.  Use more-typical names for apps.
101420         Add shell, coreutils, diffutils, grep, tar, gzip.
101422 2007-04-04  Simon Josefsson  <simon@josefsson.org>
101424         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
101426 2007-04-04  Karl Berry  <karl@gnu.org>
101428         * MODULES.html.sh (func_module): missing '.
101430 2007-04-03  Bruno Haible  <bruno@clisp.org>
101432         * modules/argmatch-tests (Makefile.am): New variable
101433         test_argmatch_LDADD.
101434         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
101435         * modules/array-list-tests (Makefile.am): New variable
101436         test_array_list_LDADD.
101437         * modules/array-oset-tests (Makefile.am): New variable
101438         test_array_oset_LDADD.
101439         * modules/avltree-list-tests (Makefile.am): New variable
101440         test_avltree_list_LDADD.
101441         * modules/avltree-oset-tests (Makefile.am): New variable
101442         test_avltree_oset_LDADD.
101443         * modules/avltreehash-list-tests (Makefile.am): New variable
101444         test_avltreehash_list_LDADD.
101445         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
101446         test_canonicalize_lgpl_LDADD.
101447         * modules/carray-list-tests (Makefile.am): New variable
101448         test_carray_list_LDADD.
101449         * modules/dirname-tests (Makefile.am): New variable
101450         test_dirname_LDADD.
101451         * modules/linked-list-tests (Makefile.am): New variable
101452         test_linked_list_LDADD.
101453         * modules/linkedhash-list-tests (Makefile.am): New variable
101454         test_linkedhash_list_LDADD.
101455         * modules/rbtree-list-tests (Makefile.am): New variable
101456         test_rbtree_list_LDADD.
101457         * modules/rbtree-oset-tests (Makefile.am): New variable
101458         test_rbtree_oset_LDADD.
101459         * modules/rbtreehash-list-tests (Makefile.am): New variable
101460         test_rbtreehash_list_LDADD.
101461         * modules/xvasprintf-tests (Makefile.am): New variable
101462         test_xvasprintf_LDADD.
101463         Reported by Eric Blake.
101465 2007-04-03  Eric Blake  <ebb9@byu.net>
101467         * DEPENDENCIES: Weaken m4 requirements.
101469 2007-04-03  Bruno Haible  <bruno@clisp.org>
101471         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
101472         * modules/isnanl-tests (configure.ac): Likewise.
101474 2007-04-03  Ben Pfaff  <blp@gnu.org>
101476         * modules/iconv_open: Add $(srcdir)/ to source directory
101477         references in Makefile fragments that call gperf, to fix VPATH
101478         builds.
101480 2007-04-03  Bruno Haible  <bruno@clisp.org>
101482         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
101483         * lib/ldexpl.c: Undo last change.
101485 2007-04-03  Bruno Haible  <bruno@clisp.org>
101487         * modules/printf-frexpl (Depends-on): Undo last change.
101488         (Files): Add m4/ldexpl.m4.
101490 2007-04-03  Bruno Haible  <bruno@clisp.org>
101492         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
101493         * modules/isnanl (Link): New section.
101495         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
101496         * modules/frexp (Link): New section.
101498         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
101499         * modules/frexpl (Link): New section.
101501         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
101502         * modules/ldexpl (Link): New section.
101504 2007-04-03  Bruno Haible  <bruno@clisp.org>
101506         * modules/TEMPLATE-EXTENDED: New file.
101507         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
101509 2007-04-03  Bruno Haible  <bruno@clisp.org>
101511         * DEPENDENCIES: New file.
101512         Suggested by Simon Josefsson.
101514 2007-04-03  Bruno Haible  <bruno@clisp.org>
101516         * doc/gnulib.texi: Escape @.
101518 2007-04-03  James Youngman  <jay@gnu.org>
101519         and Paul Eggert  <eggert@cs.ucla.edu>
101521         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
101522         birthtime on all systems that have birthtime, not just those which
101523         use st_birthtimensec rather than st_birthtim.  Putting zero in
101524         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
101525         that the birth time is not available for files on an NFS mount.
101527 2007-04-03  Simon Josefsson  <simon@josefsson.org>
101529         * modules/memxor: Move back from crypto/, suggested by Bruno.
101530         * modules/crypto/hmac-sha1: Fix memxor dependency.
101532         * modules/crypto/gc: Moved from ../.
101534 2007-04-02  Eric Blake  <ebb9@byu.net>
101536         * lib/ldexpl.c (includes): Avoid libm.
101538         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
101540 2007-04-02  Bruno Haible  <bruno@clisp.org>
101542         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
101543         on IRIX.
101545 2007-04-02  Bruno Haible  <bruno@clisp.org>
101547         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
101548         x86 or x86_64 platforms running MacOS X.
101549         Reported by Ryan Schmidt <@ryandesign.com>.
101551 2007-04-02  Bruno Haible  <bruno@clisp.org>
101553         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
101554         i386.
101556 2007-04-01  Simon Josefsson  <simon@josefsson.org>
101558         * modules/crypto/arcfour: Moved from ../.
101559         * modules/crypto/arcfour-tests: Moved from ../.
101560         * modules/crypto/arctwo: Moved from ../.
101561         * modules/crypto/arctwo-tests: Moved from ../.
101562         * modules/crypto/des: Moved from ../.
101563         * modules/crypto/des-tests: Moved from ../.
101564         * modules/crypto/gc-arcfour: Moved from ../.
101565         * modules/crypto/gc-arcfour-tests: Moved from ../.
101566         * modules/crypto/gc-arctwo: Moved from ../.
101567         * modules/crypto/gc-arctwo-tests: Moved from ../.
101568         * modules/crypto/gc-des: Moved from ../.
101569         * modules/crypto/gc-des-tests: Moved from ../.
101570         * modules/crypto/gc-hmac-md5: Moved from ../.
101571         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
101572         * modules/crypto/gc-hmac-sha1: Moved from ../.
101573         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
101574         * modules/crypto/gc-md2: Moved from ../.
101575         * modules/crypto/gc-md2-tests: Moved from ../.
101576         * modules/crypto/gc-md4: Moved from ../.
101577         * modules/crypto/gc-md4-tests: Moved from ../.
101578         * modules/crypto/gc-md5: Moved from ../.
101579         * modules/crypto/gc-md5-tests: Moved from ../.
101580         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
101581         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
101582         * modules/crypto/gc-random: Moved from ../.
101583         * modules/crypto/gc-rijndael: Moved from ../.
101584         * modules/crypto/gc-rijndael-tests: Moved from ../.
101585         * modules/crypto/gc-sha1: Moved from ../.
101586         * modules/crypto/gc-sha1-tests: Moved from ../.
101587         * modules/crypto/gc-tests: Moved from ../.
101588         * modules/crypto/hmac-md5: Moved from ../.
101589         * modules/crypto/hmac-md5-tests: Moved from ../.
101590         * modules/crypto/hmac-sha1: Moved from ../.
101591         * modules/crypto/hmac-sha1-tests: Moved from ../.
101592         * modules/crypto/md2: Moved from ../.
101593         * modules/crypto/md2-tests: Moved from ../.
101594         * modules/crypto/md4: Moved from ../.
101595         * modules/crypto/md4-tests: Moved from ../.
101596         * modules/crypto/md5: Moved from ../.
101597         * modules/crypto/md5-tests: Moved from ../.
101598         * modules/crypto/memxor: Moved from ../.
101599         * modules/crypto/rijndael: Moved from ../.
101600         * modules/crypto/rijndael-tests: Moved from ../.
101601         * modules/crypto/sha1: Moved from ../.
101603 2007-03-30  James Youngman  <jay@gnu.org>
101605         * tests/test-stat-time.c (prepare_test): use chmod() rather than
101606         rename() to change the ctime of a file (because ctime is unaffected
101607         by rename on jfs2 on AIX 5.1).
101608         (main): Start by doing cleanup, in case a previous run failed leaving
101609         test files behind.
101611 2007-03-31  Bruno Haible  <bruno@clisp.org>
101613         Support old proprietary implementations of iconv.
101614         * modules/iconv_open: New file.
101615         * lib/iconv_.h: New file.
101616         * m4/iconv_h.m4: New file.
101617         * lib/iconv_open.c: New file.
101618         * lib/iconv_open-aix.gperf: New file.
101619         * lib/iconv_open-hpux.gperf: New file.
101620         * lib/iconv_open-irix.gperf: New file.
101621         * lib/iconv_open-osf.gperf: New file.
101622         * m4/iconv_open.m4: New file.
101623         * modules/linebreak (Depends-on): Add iconv_open.
101624         * modules/striconv (Depends-on): Likewise.
101625         * modules/striconveh (Depends-on): Likewise.
101626         * modules/unicodeio (Depends-on): Likewise.
101627         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
101628         (iconv_t)(-1).
101629         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
101630         conversion if cd is (iconv_t)(-1).
101631         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
101632         is not possible.
101634 2007-03-31  Bruno Haible  <bruno@clisp.org>
101636         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101637         work on Solaris either. Protect also second use of "autodetect_jp".
101639 2007-03-31  Bruno Haible  <bruno@clisp.org>
101641         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
101642         the function is not present.
101644 2007-03-31  Bruno Haible  <bruno@clisp.org>
101646         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
101647         the function is not present.
101649 2007-03-31  Bruno Haible  <bruno@clisp.org>
101651         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
101652         a bug in HP-UX iconv_open().
101654 2007-03-31  Bruno Haible  <bruno@clisp.org>
101656         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
101657         (Mathematics <math.h>): New section, add fpieee.
101658         (Input/output <stdio.h>): Add fseterr.
101659         (Mathematics <math.h>): New section, add printf-frexp.
101660         (Container data structures): Add sublist.
101661         (Core language properties): Add fpucw, inline.
101662         (Functions for greatest-width integer types <inttypes.h>): Add
101663         imaxabs, imaxdiv, inttypes.
101664         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
101665         isnanl-nolibm, ldexp.
101666         (Mathematics <math.h>): New section, add printf-frexpl.
101667         (Support for systems lacking POSIX:2001): Add fprintf-posix,
101668         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
101669         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
101670         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
101671         (Unicode string functions): Add unistr/u*-mbtoucr.
101672         (Java): Add javacomp-script, javaexec-script.
101673         (C#): Add csharpcomp-script, csharpexec-script.
101674         (Support for building libraries and executables): Add havelib,
101675         relocatable-*.
101676         (Support for maintaining and releasing projects): Renamed from
101677         'Support for maintaining and release projects'. Add announce-gen.
101679 2007-03-31  Bruno Haible  <bruno@clisp.org>
101681         * README: Talk primarily about git.
101682         (git and CVS): Renamed from CVS.
101683         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
101684         gnulib is available through git.
101685         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
101687 2007-03-30  Bruno Haible  <bruno@clisp.org>
101689         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
101690         * lib/poll_.h: Likewise.
101691         * lib/stat_.h: Likewise.
101692         * lib/sys_time_.h: Likewise.
101693         * lib/sysexit_.h: Likewise.
101694         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
101695         * lib/stdbool_.h: Likewise.
101696         * lib/byteswap_.h: Add double-inclusion guard.
101698 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
101700         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
101702 2007-03-30  Karl Berry  <karl@gnu.org>
101704         * config/srclist-update: double space after USA in the license
101705         substitution, since that's how it's usually (?) written.
101707 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
101709         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
101710         reported by Bruno Haible.
101712 2007-03-29  Bruno Haible  <bruno@clisp.org>
101714         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
101715         a bug in AIX iconv().
101717 2007-03-29  Bruno Haible  <bruno@clisp.org>
101719         * modules/ldexpl-tests: New file.
101720         * tests/test-ldexpl.c: New file.
101722 2007-03-29  Bruno Haible  <bruno@clisp.org>
101724         * lib/ldexpl.c: Include fpucw.h.
101725         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
101726         multiplication.
101727         * modules/ldexpl (Depends-on): Add fpucw.
101729 2007-03-29  Bruno Haible  <bruno@clisp.org>
101731         * modules/ldexpl: New file.
101732         * m4/ldexpl.m4: New file.
101733         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
101734         set.
101735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
101736         REPLACE_LDEXPL.
101737         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
101738         REPLACE_LDEXPL.
101739         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101740         gl_FUNC_LDEXPL_WORKS.
101741         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
101742         * modules/mathl (Files): Remove lib/ldexpl.c.
101743         (Depends-on): Add ldexpl.
101745 2007-03-29  Bruno Haible  <bruno@clisp.org>
101747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
101749 2007-03-29  Bruno Haible  <bruno@clisp.org>
101751         * tests/test-striconveh.c (main): Don't assume that a direct conversion
101752         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
101753         and possibly also HP-UX.
101754         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
101755         work on AIX, IRIX, HP-UX, OSF/1.
101756         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
101757         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
101758         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
101759         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
101760         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
101761         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
101763 2007-03-29  Bruno Haible  <bruno@clisp.org>
101765         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
101767 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101769         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
101770         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
101772 2007-03-29  Eric Blake  <ebb9@byu.net>
101774         * lib/acl-internal.h: Remove redundant include.
101775         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
101776         Cygwin when a file is locked.
101778 2007-03-29  Bruno Haible  <bruno@clisp.org>
101780         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
101781         file.
101782         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
101784 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
101786         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
101787         try to remove a parent directory if the child couldn't be removed
101788         (except for the first rmdir, which could fail because the child
101789         doesn't exist).  Problem reported by Jeff Blaine in
101790         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
101792 2007-03-28  Bruno Haible  <bruno@clisp.org>
101794         * lib/striconveh.c (utf8conv_carefully): New function.
101795         (mem_cd_iconveh_internal): Invoke it.
101797 2007-03-28  Bruno Haible  <bruno@clisp.org>
101799         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
101800         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
101801         input.
101802         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
101803         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
101804         unistr/u8-uctomb.
101806 2007-03-28  Bruno Haible  <bruno@clisp.org>
101808         * modules/unistr/u8-mbtoucr: New file.
101809         * lib/unistr/u8-mbtoucr.c: New file.
101810         * modules/unistr/u16-mbtoucr: New file.
101811         * lib/unistr/u16-mbtoucr.c: New file.
101812         * modules/unistr/u16-mbtoucr: New file.
101813         * lib/unistr/u16-mbtoucr.c: New file.
101814         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
101816 2007-03-27  Simon Josefsson  <simon@josefsson.org>
101817             Bruno Haible  <bruno@clisp.org>
101819         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
101820         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
101821         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
101823         * m4/stdio_h.m4: Add stubs for vasprintf too.
101825         * modules/stdio: Support vasprintf in sed command.
101827         * modules/vasprintf: Depend on stdio for prototypes.  Remove
101828         vasprintf.h.  Add stdio module indicator.
101830         * lib/stdio_.h: Declare asprintf and vasprintf, based on
101831         vasprintf.h.
101833         * lib/vasprintf.h: File removed.
101835         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
101836         * lib/vasprintf.c: Ditto.
101837         * lib/xvasprintf.c: Ditto.
101838         * tests/test-vasprintf-posix.c: Ditto.
101839         * tests/test-vasprintf.c: Ditto.
101841 2007-03-27  Bruno Haible  <bruno@clisp.org>
101843         Make vasnprintf multithread-safe.
101844         * lib/vasnprintf.c (decimal_point_char): New function.
101845         (VASNPRINTF): Use it.
101846         Suggested by Simon Josefsson.
101848 2007-03-27  Eric Blake  <ebb9@byu.net>
101850         Support sub-second birthtime on cygwin.
101851         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
101852         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
101853         (get_stat_birthtime): Also work with st_birthtim.
101855 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
101857         * lib/stat-time.h (USE_BIRTHTIME): Remove.
101858         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
101859         (get_stat_birthtime_ns): Do not try to use "spare" fields.
101860         (get_stat_birthtime_ns): Simplify compile-time tests.
101861         (get_stat_birthtime): Change the API to look like
101862         get_stat_mtime etc., except return a negative tv_nsec on error.
101863         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
101864         Don't check for "spare" fields.
101865         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
101866         or for struct stat.st_birthtime, as these tests aren't used.
101867         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
101869 2007-03-27  Bruno Haible  <bruno@clisp.org>
101871         * lib/stat-time.h: Include <sys/stat.h>.
101873 2007-03-27  James Youngman  <jay@gnu.org>
101875         * lib/stat-time.h (get_stat_birthtime): New function for
101876           retrieving st_birthtime as provided by UFS2 (hence *BSD).
101877         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
101878           and its variants.
101879         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
101880         * modules/stat-time-test: New file.
101881         * tests/test-stat-time.c: New test, devised by Bruno Haible.
101883 2007-03-26  Bruno Haible  <bruno@clisp.org>
101885         Better support of signalling NaNs.
101886         * lib/atanl.c: Include isnanl.h.
101887         (atanl): Perform test for NaN at the beginning of the function and
101888         through a call to isnanl.
101889         * lib/cosl.c: Include isnanl.h.
101890         (cosl): Perform test for NaN at the beginning of the function and
101891         through a call to isnanl.
101892         * lib/ldexpl.c: Include isnanl.h.
101893         (ldexpl): Perform test for NaN through a call to isnanl.
101894         * lib/logl.c: Include isnanl.h.
101895         (logl): Perform test for NaN at the beginning of the function and
101896         through a call to isnanl.
101897         * lib/sinl.c: Include isnanl.h.
101898         (sinl): Perform test for NaN at the beginning of the function and
101899         through a call to isnanl.
101900         * lib/sqrtl.c: Include isnanl.h.
101901         (sqrtl): Perform test for NaN at the beginning of the function and
101902         through a call to isnanl.
101903         * lib/tanl.c: Include isnanl.h.
101904         (tanl): Perform test for NaN at the beginning of the function and
101905         through a call to isnanl.
101906         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
101907         * modules/mathl (Depends-on): Add isnanl.
101909 2007-03-26  Eric Blake  <ebb9@byu.net>
101911         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
101912         regression in logic sense of previous patch.
101914 2007-03-26  Bruno Haible  <bruno@clisp.org>
101916         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
101917         unportable shell command "if ! ...".
101918         Reported by Ralf Wildenhues.
101920 2007-03-25  Bruno Haible  <bruno@clisp.org>
101922         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
101923         <sysexits.h> file, and only add EX_CONFIG.
101924         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
101925         absolute file name and whether it is sufficient. Substitute also
101926         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
101927         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
101928         ABSOLUTE_SYSEXITS_H into sysexits.h.
101930 2007-03-25  Bruno Haible  <bruno@clisp.org>
101932         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
101933         hints is NULL.
101935 2007-03-25  Bruno Haible  <bruno@clisp.org>
101937         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
101938         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
101940 2007-03-25  Bruno Haible  <bruno@clisp.org>
101942         * lib/vasnprintf.c: Include langinfo.h.
101943         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
101944         multithread-safe.
101945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
101946         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
101947         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101948         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101949         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101950         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101951         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101952         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
101953         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101954         Reported by Simon Josefsson.
101956 2007-03-25  Bruno Haible  <bruno@clisp.org>
101958         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
101959         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
101960         * modules/vasnprintf (Depends-on): Add stdint.
101962 2007-03-25  Bruno Haible  <bruno@clisp.org>
101964         * modules/fpieee: New file.
101965         * m4/fpieee.m4: New file.
101966         * modules/isnan-nolibm (Depends-on): Add fpieee.
101967         * modules/isnanl-nolibm (Depends-on): Add fpieee.
101968         * modules/isnanl (Depends-on): Add fpieee.
101970 2007-03-25  Bruno Haible  <bruno@clisp.org>
101972         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
101974 2007-03-25  Bruno Haible  <bruno@clisp.org>
101976         Avoid test failures on IRIX 6.5.
101977         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
101978         (main): Use it.
101979         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
101980         macros.
101981         (main): Use them.
101983 2007-03-25  Bruno Haible  <bruno@clisp.org>
101985         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
101986         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
101987         exists but doesn't work.
101988         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
101989         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
101990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
101991         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
101992         math.h.
101994 2007-03-25  Bruno Haible  <bruno@clisp.org>
101996         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
101997         returns inf. Needed on IRIX 6.5.
101999 2007-03-25  Bruno Haible  <bruno@clisp.org>
102001         * tests/test-frexpl.c: Include isnanl-nolibm.h.
102002         (main): Use isnanl instead of x != x idiom.
102003         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
102005         * tests/test-frexp.c: Include isnan.h.
102006         (main): Use isnan instead of x != x idiom.
102007         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
102009 2007-03-25  Bruno Haible  <bruno@clisp.org>
102011         * tests/test-frexp.c (NaN): New function/macro.
102012         (main): Use it instead of 0.0 / 0.0.
102013         * tests/test-isnan.c (NaN): New function/macro.
102014         (main): Use it instead of 0.0 / 0.0.
102015         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
102016         (test_function): Use it instead of 0.0 / 0.0.
102017         * tests/test-vasprintf-posix.c (NaN): New function/macro.
102018         (test_function): Use it instead of 0.0 / 0.0.
102019         * tests/test-snprintf-posix.h (NaN): New function/macro.
102020         (test_function): Use it instead of 0.0 / 0.0.
102021         * tests/test-sprintf-posix.h (NaN): New function/macro.
102022         (test_function): Use it instead of 0.0 / 0.0.
102023         * tests/test-fprintf-posix.h (NaN): New function/macro.
102024         (test_function): Use it instead of 0.0 / 0.0.
102025         * tests/test-printf-posix.h (NaN): New function/macro.
102026         (test_function): Use it instead of 0.0 / 0.0.
102028         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
102030 2007-03-25  Bruno Haible  <bruno@clisp.org>
102032         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
102034 2007-03-25  Bruno Haible  <bruno@clisp.org>
102036         * lib/regexec.c (merge_state_with_log): Make static.
102038 2007-03-25  Bruno Haible  <bruno@clisp.org>
102040         * lib/trigl.c (kernel_rem_pio2): Make static.
102042 2007-03-25  Bruno Haible  <bruno@clisp.org>
102044         * lib/sincosl.c (sincosl_table): Make static.
102046 2007-03-25  Bruno Haible  <bruno@clisp.org>
102048         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
102049         if the compiler does not support C99.
102051 2007-03-25  Bruno Haible  <bruno@clisp.org>
102053         * modules/time (Makefile.am): Ensure all rule action lines start with a
102054         tab.
102056 2007-03-24  Bruno Haible  <bruno@clisp.org>
102058         * modules/tsearch-tests: New file.
102059         * tests/test-tsearch.sh: New file.
102060         * tests/test-tsearch.c: New file, mostly copied from glibc.
102062         * modules/search-tests: New file.
102063         * tests/test-search.c: New file.
102065         * modules/search: New file.
102066         * lib/search_.h: New file, incorporating lib/tsearch.h.
102067         * m4/search_h.m4: New file.
102068         * lib/tsearch.h: Remove file.
102069         * lib/tsearch.c: Include search.h instead of tsearch.h.
102070         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
102071         HAVE_TSEARCH.
102072         * modules/tsearch (Files): Remove lib/tsearch.h.
102073         (Depends-on): Add search.
102074         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
102075         (Include): Change tsearch.h into search.h.
102077 2007-03-24  Bruno Haible  <bruno@clisp.org>
102079         * modules/fpucw: New file.
102080         * lib/fpucw.h: New file.
102081         * lib/frexp.c: Include fpucw.h.
102082         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102083         (FUNC): Use them.
102084         * lib/printf-frexp.c: Include fpucw.h.
102085         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
102086         (FUNC): Use them.
102087         * lib/vasnprintf.c: Include fpucw.h.
102088         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
102089         'long double' calculations.
102090         * tests/test-frexpl.c: Include fpucw.h.
102091         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102092         * tests/test-printf-frexpl.c: Include fpucw.h.
102093         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
102094         * modules/frexpl (Depends-on): Add fpucw.
102095         * modules/printf-frexpl (Depends-on): Likewise.
102096         * modules/fprintf-posix (Depends-on): Likewise.
102097         * modules/snprintf-posix (Depends-on): Likewise.
102098         * modules/sprintf-posix (Depends-on): Likewise.
102099         * modules/vasnprintf-posix (Depends-on): Likewise.
102100         * modules/vasprintf-posix (Depends-on): Likewise.
102101         * modules/vfprintf-posix (Depends-on): Likewise.
102102         * modules/vsnprintf-posix (Depends-on): Likewise.
102103         * modules/vsprintf-posix (Depends-on): Likewise.
102104         * modules/frexpl-tests (Depends-on): Likewise.
102105         * modules/printf-frexpl-tests (Depends-on): Likewise.
102107 2007-03-24  Bruno Haible  <bruno@clisp.org>
102109         * lib/float+.h: New file.
102110         * lib/isnan.c: Include float+.h.
102111         (SIZE): New macro.
102112         (FUNC): Compare only SIZE bytes of the value.
102113         * lib/vasnprintf.c: Include float+.h.
102114         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
102115         SIZEOF_LDBL or SIZEOF_DBL bytes.
102116         * modules/isnan-nolibm (Files): Add lib/float+.h.
102117         * modules/isnanl-nolibm (Files): Add lib/float+.h.
102118         * modules/isnanl (Files): Add lib/float+.h.
102119         * modules/vasnprintf (Files): Add lib/float+.h.
102121 2007-03-24  Bruno Haible  <bruno@clisp.org>
102123         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
102124         include isnanl-nolibm.h.
102126 2007-03-24  Bruno Haible  <bruno@clisp.org>
102128         * tests/test-read-file.c (main): Don't produce spurious output for
102129         expected situations. Make the test fail if it encountered unexpected
102130         results.
102132 2007-03-24  Bruno Haible  <bruno@clisp.org>
102134         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
102135         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
102137 2007-03-24  Bruno Haible  <bruno@clisp.org>
102139         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
102141 2007-03-24  Bruno Haible  <bruno@clisp.org>
102143         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
102144         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
102146         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
102147         * modules/utf8-ucs4: Turn into a symbolic link to module
102148         unistr/u8-mbtouc.
102150         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
102151         utf8-ucs4-unsafe.
102152         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
102153         unistr/u8-mbtouc-unsafe.
102155         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
102156         * modules/utf16-ucs4: Turn into a symbolic link to module
102157         unistr/u16-mbtouc.
102159         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
102160         utf16-ucs4-unsafe.
102161         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
102162         unistr/u16-mbtouc-unsafe.
102164         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
102165         * modules/ucs4-utf8: Turn into a symbolic link to module
102166         unistr/u8-ubtomb.
102168         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
102169         * modules/ucs4-utf16: Turn into a symbolic link to module
102170         unistr/u16-ubtomb.
102172 2007-03-24  Bruno Haible  <bruno@clisp.org>
102174         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
102175         Enable the function only if HAVE_INLINE.
102176         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
102177         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102178         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
102179         Enable the function only if HAVE_INLINE.
102180         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
102181         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
102182         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
102183         Enable the function only if HAVE_INLINE.
102184         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
102185         Enable the function only if HAVE_INLINE.
102186         * modules/utf8-ucs4: Update.
102187         * modules/utf8-ucs4-unsafe: Update.
102188         * modules/utf16-ucs4: Update.
102189         * modules/utf16-ucs4-unsafe: Update.
102190         * modules/ucs4-utf8: Update.
102191         * modules/ucs4-utf16: Update.
102193 2007-03-24  Bruno Haible  <bruno@clisp.org>
102195         * lib/utf8-ucs4.h: Remove file.
102196         * lib/utf8-ucs4-unsafe.h: Remove file.
102197         * lib/utf16-ucs4.h: Remove file.
102198         * lib/utf16-ucs4-unsafe.h: Remove file.
102199         * lib/ucs4-utf8.h: Remove file.
102200         * lib/ucs4-utf16.h: Remove file.
102201         * lib/unistr.h: Include their previous contents.
102202         * m4/utf-ucs4.m4: Remove file.
102203         * m4/ucs4-utf.m4: Remove file.
102204         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
102205         (Depends-on): Add unistr/base.
102206         (configure.ac): Remove gl_UTF_UCS4.
102207         (Makefile.am): Update.
102208         (Include): Change to unistr.h.
102209         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
102210         (Depends-on): Add unistr/base.
102211         (configure.ac): Remove gl_UTF_UCS4.
102212         (Makefile.am): Update.
102213         (Include): Change to unistr.h.
102214         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
102215         (Depends-on): Add unistr/base.
102216         (configure.ac): Remove gl_UTF_UCS4.
102217         (Makefile.am): Update.
102218         (Include): Change to unistr.h.
102219         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
102220         (Depends-on): Add unistr/base.
102221         (configure.ac): Remove gl_UTF_UCS4.
102222         (Makefile.am): Update.
102223         (Include): Change to unistr.h.
102224         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
102225         (Depends-on): Add unistr/base.
102226         (configure.ac): Remove gl_UCS4_UTF.
102227         (Makefile.am): Update.
102228         (Include): Change to unistr.h.
102229         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
102230         (Depends-on): Add unistr/base.
102231         (configure.ac): Remove gl_UCS4_UTF.
102232         (Makefile.am): Update.
102233         (Include): Change to unistr.h.
102234         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
102235         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
102236         utf8-ucs4-unsafe.h.
102237         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
102238         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
102239         utf16-ucs4-unsafe.h.
102240         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
102241         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
102242         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
102243         * lib/unistr/u8-strchr.c: Likewise.
102244         * lib/unistr/u8-strrchr.c: Likewise.
102245         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
102246         * lib/unistr/u16-strchr.c: Likewise.
102247         * lib/unistr/u16-strrchr.c: Likewise.
102248         * lib/striconveh.c: Update.
102249         * lib/linebreak.c: Update.
102251 2007-03-24  Bruno Haible  <bruno@clisp.org>
102253         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
102254         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
102256 2007-03-22  Bruno Haible  <bruno@clisp.org>
102258         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
102260 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
102262         * MODULES.html.sh (File system functions): New module write-any-file.
102263         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
102264         * m4/write-any-file.m4: New files.
102266 2007-03-23  Eric Blake  <ebb9@byu.net>
102268         * gnulib-tool: Rearrange space-tab sequences, since some editors
102269         like to eat them.
102271 2007-03-23  Eric Blake  <ebb9@byu.net>
102273         * lib/version-etc.c (version_etc_va): Update license wording to
102274         be more concise.  Recommended by Richard Stallman.
102276 2007-03-22  Bruno Haible  <bruno@clisp.org>
102278         * lib/poll.c (MSG_PEEK): New fallback definition.
102280 2007-03-22  Bruno Haible  <bruno@clisp.org>
102282         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
102283         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
102284         (main): Update.
102285         Fixes a compilation error on BeOS.
102287 2007-03-22  Bruno Haible  <bruno@clisp.org>
102289         * modules/frexpl-tests: New file.
102290         * tests/test-frexpl.c: New file.
102292         * modules/frexpl: New file.
102293         * m4/frexpl.m4: New file.
102294         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
102295         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
102296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
102297         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
102298         (Depends-on): Add frexpl. Remove isnanl-nolibm.
102299         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
102301 2007-03-22  Bruno Haible  <bruno@clisp.org>
102303         * lib/frexpl.c: Share code with lib/frexp.c.
102304         * modules/mathl (Files): Add lib/frexp.c.
102305         (Depends-on): Add isnanl-nolibm.
102307 2007-03-22  Bruno Haible  <bruno@clisp.org>
102309         * modules/printf-frexp (Files): Add m4/frexp.m4.
102310         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
102311         only if the found frexp function actually works.
102313 2007-03-22  Bruno Haible  <bruno@clisp.org>
102315         * lib/frexp.c: Remove older implementation that uses divisions.
102317 2007-03-21  Bruno Haible  <bruno@clisp.org>
102319         * modules/frexp-tests: New file.
102320         * tests/test-frexp.c: New file.
102322         * modules/frexp: New file.
102323         * lib/frexp.c: New file.
102324         * m4/frexp.m4: New file.
102325         * lib/math_.h (frexp): New declaration.
102326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
102327         REPLACE_FREXP.
102328         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
102330 2007-03-21  Bruno Haible  <bruno@clisp.org>
102332         * modules/isnanl-tests: New file.
102333         * tests/test-isnanl.c: New file.
102335         * modules/isnanl: New file.
102336         * lib/isnanl.h: New file.
102337         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
102338         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
102339         gl_FUNC_ISNANL_WORKS.
102340         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
102341         New macros.
102343 2007-03-21  Bruno Haible  <bruno@clisp.org>
102345         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
102346         lib/isnanl.h.
102347         (Include): Update.
102348         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
102349         * lib/vasnprintf.c: Update.
102350         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
102351         tests/test-isnanl.h, remove tests/test-isnanl.c.
102352         (Makefile.am): Update.
102353         * tests/test-isnanl-nolibm.c: New file.
102354         * tests/test-isnanl.h: New file.
102355         * tests/test-isnanl.c: Remove file.
102357 2007-03-21  Jim Meyering  <jim@meyering.net>
102359         When trying to open ".", treat ESTALE like EACCES.
102360         * lib/savewd.c (savewd_save): Resort to forking not just upon
102361         failure with EACCES, but also when errno is ESTALE.
102363 2007-03-20  Bruno Haible  <bruno@clisp.org>
102365         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
102366         Needed on AIX 5.1. Reported by Matthew Woehlke.
102368 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102370         Suggestions by Bruno Haible:
102371         * lib/acl-internal.h: Include "gettext.h" rather than rolling
102372         our own.
102373         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
102374         * modules/acl (Depends-on): Add gettext.
102376 2007-03-19  Bruno Haible  <bruno@clisp.org>
102378         * modules/iconvme: Remove file.
102379         * lib/iconvme.h: Remove file.
102380         * lib/iconvme.c: Remove file.
102381         * m4/iconvme.m4: Remove file.
102383 2007-03-19  Bruno Haible  <bruno@clisp.org>
102385         * doc/relocatable-maint.texi: Break long shell script line.
102386         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102388 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102390         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
102391         handle file_has_acl.
102392         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
102393         * lib/acl.c: Move header inclusions and related macro defns into
102394         lib/acl-internal.h.
102395         (S_ISLNK): Remove defn, since that's now done for us.
102396         (file_has_acl): Move to lib/file-has-acl.c.
102397         Call acl_trivial if available.  This is the crucial part of the fix.
102398         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
102399         shared within the library.  Rewrite a bit, partly to make it compatible
102400         with the GNU coding style.
102401         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
102402         Remove unnecessary double-quotes.
102403         Don't test for acl_to_text; the build will catch that.
102404         Replace acl_entries if it doesn't exist and it is needed.
102405         Check for -lsec and acl_trivial (as used on Solaris 10).
102406         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
102407         lib/file-has-acl.c.
102408         (Depends-on): Add sys_stat, for S_ISLNK.
102410 2007-03-19  Ben Pfaff  <blp@gnu.org>
102412         * doc/gnulib.texi: Fix typos.
102413         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
102415 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
102417         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
102418         If size is zero here, buf must be zero.
102420 2007-03-19  Simon Josefsson  <simon@josefsson.org>
102422         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
102423         <bruno@clisp.org>.
102425 2007-03-18  Bruno Haible  <bruno@clisp.org>
102427         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
102428         Suggested by Eric Blake.
102430 2007-03-18  Ben Pfaff  <blp@gnu.org>
102432         * doc/relocatable.texi: Recommend using as prefix a directory
102433         that does not exist and will never be created.  Based on
102434         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
102435         and others.
102437 2007-03-17  Bruno Haible  <bruno@clisp.org>
102439         * lib/fchownat.c: Include lchown.h.
102441 2007-03-17  Bruno Haible  <bruno@clisp.org>
102443         Fix endless loop when the given allocated size was > INT_MAX.
102444         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
102445         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
102446         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
102447         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
102448         * lib/sprintf.c (sprintf): Likewise.
102450 2007-03-17  Bruno Haible  <bruno@clisp.org>
102452         * tests/test-argp-2.sh (func_compare): Output a context diff.
102454 2007-03-17  Bruno Haible  <bruno@clisp.org>
102456         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
102457         locale's decimal-point character.
102459 2007-03-17  Bruno Haible  <bruno@clisp.org>
102461         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
102462         before comparing it. Needed because on some platforms (e.g. x86) a
102463         'long double' occupies less bytes than sizeof (long double).
102465 2007-03-17  Bruno Haible  <bruno@clisp.org>
102467         * tests/test-crc.c (main): Make printf statements 64-bit clean.
102468         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
102469         * tests/test-getaddrinfo.c (simple): Likewise.
102470         * tests/test-read-file.c (main): Likewise.
102472 2007-03-17  Bruno Haible  <bruno@clisp.org>
102474         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
102476 2007-03-17  Bruno Haible  <bruno@clisp.org>
102478         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
102479         unused variable.
102481 2007-03-17  Bruno Haible  <bruno@clisp.org>
102483         * tests/test-c-strcasecmp.c: Include c-strcase.h.
102484         * tests/test-c-strncasecmp.c: Likewise.
102486 2007-03-17  Bruno Haible  <bruno@clisp.org>
102488         * modules/stdlib (Depends-on): Add unistd.
102489         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
102490         Needed for MacOS X 10.3.
102492 2007-03-17  Bruno Haible  <bruno@clisp.org>
102494         * lib/unistr/u-strdup.h: Include <stdlib.h>.
102496 2007-03-17  Bruno Haible  <bruno@clisp.org>
102498         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
102500 2007-03-17  Bruno Haible  <bruno@clisp.org>
102502         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
102503         to reflect files copied from gnulib (with or without modifications).
102504         Suggested by Jim Meyering.
102506 2007-03-17  Eric Blake  <ebb9@byu.net>
102508         * NEWS: Document stdlib change from 2007-02-18.
102510 2007-03-17  Jim Meyering  <jim@meyering.net>
102512         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
102513         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
102514         someone uses a name containing shell meta-characters.
102515         Reported by Alfred M. Szmidt.
102517         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
102519 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102521         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
102522         and copy gettext configuration files only if configure.ac contains
102523         a use of AM_GNU_GETTEXT_VERSION.
102525 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
102527         * build-aux/bootstrap (gnulib_name): New variable.
102528         (gnulib_tool_options): Use it.
102530 2007-03-13  Simon Josefsson  <simon@josefsson.org>
102532         * tests/test-des.c: Use new namespace.
102534 2007-03-15  Bruno Haible  <bruno@clisp.org>
102536         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
102537         Reported by James Youngman <jay@gnu.org>.
102539 2007-03-15  Bruno Haible  <bruno@clisp.org>
102541         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
102542         declared prototype. Needed with cc on OSF/1 5.1.
102544 2007-03-15  Bruno Haible  <bruno@clisp.org>
102546         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
102547         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
102548         (struct gl_list_implementation): Add dispose_fn argument to the
102549         'create_empty', 'create' methods.
102550         (struct gl_list_impl_base): Add field 'dispose_fn'.
102551         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
102552         argument.
102553         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
102554         dispose_fn argument.
102555         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
102556         dispose_fn on the dropped values.
102557         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
102558         dispose_fn argument.
102559         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
102560         dropped values.
102561         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
102562         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102563         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
102564         (gl_tree_remove_node): Call dispose_fn on the dropped value.
102565         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
102566         argument.
102567         (gl_tree_list_free): Call dispose_fn on the dropped values.
102568         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
102569         the dropped values.
102570         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
102571         Add dispose_fn argument.
102572         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
102573         Call dispose_fn on the dropped values.
102574         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
102575         Add dispose_fn argument.
102576         (gl_sublist_create): Initialize the 'dispose_fn' field.
102577         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
102578         * tests/test-array_list.c (main): Update.
102579         * tests/test-carray_list.c (main): Update.
102580         * tests/test-avltree_list.c (main): Update.
102581         * tests/test-rbtree_list.c (main): Update.
102582         * tests/test-avltreehash_list.c (main): Update.
102583         * tests/test-rbtreehash_list.c (main): Update.
102584         * tests/test-linked_list.c (main): Update.
102585         * tests/test-linkedhash_list.c (main): Update.
102586         * tests/test-array_oset.c (main): Update.
102588 2007-03-15  Bruno Haible  <bruno@clisp.org>
102590         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
102591         (gl_oset_create_empty): Add dispose_fn argument.
102592         (struct gl_oset_implementation): Add dispose_fn argument to
102593         'create_empty' method.
102594         (struct gl_oset_impl_base): Add dispose_fn field.
102595         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
102596         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
102597         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
102598         values.
102599         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
102600         (gl_tree_oset_free): Call dispose_fn on the dropped values.
102601         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102602         dropped value.
102603         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
102604         dropped value.
102605         * tests/test-array_oset.c (main): Update.
102606         * tests/test-avltree_oset.c (main): Update.
102607         * tests/test-rbtree_oset.c (main): Update.
102608         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
102610 2007-03-13  Bruno Haible  <bruno@clisp.org>
102612         * tests/test-stdbool.c (i): Update after last patch.
102614 2007-03-12  Bruno Haible  <bruno@clisp.org>
102616         * lib/quotearg.c: Include <wctype.h> early, before the definition of
102617         the iswprint macro. Needed on Solaris 2.5.1.
102619 2007-03-12  Bruno Haible  <bruno@clisp.org>
102621         * tests/test-printf-frexp.c (main): Declare x as volatile.
102623 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102625         * doc/gnulib.texi (Build robot for gnulib): New section.
102627 2007-03-12  Jim Meyering  <jim@meyering.net>
102629         * build-aux/bootstrap: New file.
102630         * build-aux/bootstrap.conf: New file, from coreutils.
102632 2007-03-11  Bruno Haible  <bruno@clisp.org>
102634         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
102636 2007-03-12  Simon Josefsson  <simon@josefsson.org>
102638         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
102639         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
102640         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
102642 2007-03-11  Bruno Haible  <bruno@clisp.org>
102644         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
102645         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
102647 2007-03-11  Bruno Haible  <bruno@clisp.org>
102649         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
102650         formula. Needed for SunPRO C 5.0.
102652 2007-03-11  Bruno Haible  <bruno@clisp.org>
102654         * modules/long-options (Depends-on): Add getopt.
102656 2007-03-11  Bruno Haible  <bruno@clisp.org>
102658         * modules/modechange (Depends-on): Add stdbool.
102660 2007-03-11  Bruno Haible  <bruno@clisp.org>
102662         * modules/i-ring (Depends-on): Add stdbool.
102664 2007-03-11  Bruno Haible  <bruno@clisp.org>
102666         * modules/gc-des (Depends-on): Add stdbool.
102668 2007-03-11  Bruno Haible  <bruno@clisp.org>
102670         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
102672 2007-03-11  Bruno Haible  <bruno@clisp.org>
102674         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
102676 2007-03-11  Bruno Haible  <bruno@clisp.org>
102678         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
102680 2007-03-11  Bruno Haible  <bruno@clisp.org>
102682         * lib/vasnprintf.c (sprintf): Undefine.
102684 2007-03-11  Bruno Haible  <bruno@clisp.org>
102686         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
102687         initializers in SunPRO C and Compaq C compilers.
102689 2007-03-11  Bruno Haible  <bruno@clisp.org>
102691         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
102692         decrementing code ANSI C compliant.
102694 2007-03-11  Bruno Haible  <bruno@clisp.org>
102696         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
102697         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
102699 2007-03-11  Bruno Haible  <bruno@clisp.org>
102701         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
102702         <stdbool.h> substitute doesn't pass.
102704 2007-03-11  Bruno Haible  <bruno@clisp.org>
102706         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
102708 2007-03-11  Bruno Haible  <bruno@clisp.org>
102710         * gnulib-tool (func_create_megatestdir): Create also an autobuild
102711         script, for submission to autobuild.josefsson.org.
102713 2007-03-10  Bruno Haible  <bruno@clisp.org>
102715         * modules/canonicalize-lgpl-tests: New file.
102716         * tests/test-canonicalize-lgpl.sh: New file.
102717         * tests/test-canonicalize-lgpl.c: New file.
102719         * modules/c-strcase-tests: New file.
102720         * tests/test-c-strcase.sh: New file.
102721         * tests/test-c-strcasecmp.c: New file.
102722         * tests/test-c-strncasecmp.c: New file.
102724         * modules/atexit-tests: New file.
102725         * tests/test-atexit.sh: New file.
102726         * tests/test-atexit.c: New file.
102728 2007-03-10  Bruno Haible  <bruno@clisp.org>
102730         * tests/test-binary-io.sh: Use temporary filenames that are not so
102731         likely to clash with those of other tests (in a parallel make).
102732         * tests/test-binary-io.c: Likewise.
102734 2007-03-10  Bruno Haible  <bruno@clisp.org>
102736         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
102737         fallback; use #error instead.
102738         Suggested by Simon Josefsson.
102740 2007-03-10  Bruno Haible  <bruno@clisp.org>
102742         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
102743         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
102744         first and the last.
102746 2007-03-10  Bruno Haible  <bruno@clisp.org>
102748         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
102750 2007-03-10  Bruno Haible  <bruno@clisp.org>
102752         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
102753         "make distcheck".
102754         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
102755         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
102756         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
102758 2007-03-10  Bruno Haible  <bruno@clisp.org>
102760         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
102761         variable.
102762         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
102763         variable.
102765 2007-03-09  Eric Blake  <ebb9@byu.net>
102766         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
102768         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
102769         types are not being provided by gnulib.
102770         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
102771         types are supported.
102773 2007-03-10  Bruno Haible  <bruno@clisp.org>
102775         * lib/stdio_.h (__attribute__): New macro.
102776         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
102777         vsprintf): Specify __attribute__ __format__ for GCC.
102778         Suggested by Eric Blake.
102780 2007-03-09  Bruno Haible  <bruno@clisp.org>
102782         * modules/printf-posix-tests: New file.
102783         * tests/test-printf-posix.sh: New file.
102784         * tests/test-printf-posix.c: New file.
102786         * modules/printf-posix: New file.
102787         * lib/printf.c: New file.
102788         * m4/printf-posix-rpl.m4: New file.
102789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
102790         REPLACE_PRINTF.
102791         * lib/stdio_.h (printf): New declaration.
102792         (format, __format__, ____printf____, ____scanf____, ____strftime____,
102793         ____strfmon____): New macros.
102794         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
102795         REPLACE_PRINTF.
102797 2007-03-09  Bruno Haible  <bruno@clisp.org>
102799         * tests/test-vasnprintf-posix2.sh: New file.
102800         * tests/test-vasnprintf-posix2.c: New file.
102801         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
102802         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
102803         (Makefile.am): Activate test-vasnprintf-posix2.sh.
102805         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
102806         a locale dependent decimal point, rather than always '.'.
102808 2007-03-09  Eric Blake  <ebb9@byu.net>
102810         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
102811         spite of platforms like Tandem/NSK that define it to -1.
102813 2007-03-08  Bruno Haible  <bruno@clisp.org>
102815         * modules/vprintf-posix-tests: New file.
102816         * tests/test-vprintf-posix.sh: New file.
102817         * tests/test-vprintf-posix.c: New file.
102818         * tests/test-printf-posix.h: New file.
102820         * modules/vprintf-posix: New file.
102821         * lib/vprintf.c: New file.
102822         * m4/vprintf-posix.m4: New file.
102823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
102824         REPLACE_VPRINTF.
102825         * lib/stdio_.h (vprintf): New declaration.
102826         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
102827         REPLACE_VPRINTF.
102829 2007-03-08  Bruno Haible  <bruno@clisp.org>
102831         * modules/fprintf-posix-tests: New file.
102832         * tests/test-fprintf-posix.sh: New file.
102833         * tests/test-fprintf-posix.c: New file.
102835         * modules/fprintf-posix: New file.
102836         * lib/fprintf.c: New file.
102837         * m4/fprintf-posix.m4: New file.
102838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
102839         REPLACE_FPRINTF.
102840         * lib/stdio_.h (fprintf): New declaration.
102841         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
102842         REPLACE_FPRINTF.
102844 2007-03-08  Bruno Haible  <bruno@clisp.org>
102846         * modules/vfprintf-posix-tests: New file.
102847         * tests/test-vfprintf-posix.sh: New file.
102848         * tests/test-vfprintf-posix.c: New file.
102849         * tests/test-fprintf-posix.h: New file.
102850         * tests/test-fprintf-posix.out: New file.
102852         * modules/vfprintf-posix: New file.
102853         * lib/vfprintf.c: New file.
102854         * m4/vfprintf-posix.m4: New file.
102855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
102856         REPLACE_VFPRINTF.
102857         * lib/stdio_.h (vfprintf): New declaration.
102858         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
102859         REPLACE_VFPRINTF.
102861 2007-03-08  Bruno Haible  <bruno@clisp.org>
102863         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
102865 2007-03-08  Bruno Haible  <bruno@clisp.org>
102867         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
102868         instead of 'expr' invocations.
102869         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102870         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102871         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
102873         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102874         Suggested by Paul Eggert.
102876 2007-03-08  Bruno Haible  <bruno@clisp.org>
102878         * modules/fseterr-tests: New file.
102879         * tests/test-fseterr.c: New file.
102881         * modules/fseterr: New file.
102882         * lib/fseterr.h: New file.
102883         * lib/fseterr.c: New file.
102885 2007-03-08  Bruno Haible  <bruno@clisp.org>
102887         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
102888         * lib/getopt_.h: Likewise.
102889         * lib/mbswidth.h: Likewise.
102890         * lib/setenv.h: Likewise.
102891         * lib/vasnprintf.h: Likewise.
102892         * lib/vasprintf.h: Likewise.
102893         * lib/verror.h: Likewise.
102894         * lib/xsetenv.h: Likewise.
102895         * lib/xvasprintf.h: Likewise.
102897 2007-03-08  Jim Meyering  <jim@meyering.net>
102899         * users.txt: Add parted.
102901         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
102903 2007-03-07  Bruno Haible  <bruno@clisp.org>
102905         * m4/printf.m4: Make the shell script snippets copy&pastable.
102907 2007-03-02  Bruno Haible  <bruno@clisp.org>
102909         * lib/netinet_in_.h: New file.
102910         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
102911         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
102912         * modules/netinet_in (Files): Add lib/netinet_in_.h.
102913         (Depends-on): Add absolute-header.
102914         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
102915         into netinet/in.h.
102917 2007-03-03  Bruno Haible  <bruno@clisp.org>
102919         * lib/sys_select_.h: New file.
102920         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
102921         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
102922         * modules/sys_select (Files): Add lib/sys_select_.h.
102923         (Depends-on): Add absolute-header.
102924         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
102925         into sys/select.h.
102927 2007-03-02  Bruno Haible  <bruno@clisp.org>
102929         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
102930         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
102931         values.
102932         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
102933         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
102934         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
102935         * modules/sys_socket (Depends-on): Add absolute-header.
102936         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
102937         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
102938         (Include): Remove requirement of inclusion of <sys/types.h>.
102940 2007-03-02  Bruno Haible  <bruno@clisp.org>
102942         * lib/byteswap_.h (bswap_32): Fix formula.
102944 2007-03-06  Bruno Haible  <bruno@clisp.org>
102946         * modules/sprintf-posix-tests: New file.
102947         * tests/test-sprintf-posix.c: New file.
102949         * modules/sprintf-posix: New file.
102950         * lib/sprintf.c: New file.
102951         * m4/sprintf-posix.m4: New file.
102952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
102953         REPLACE_SPRINTF.
102954         * lib/stdio_.h (sprintf): New declaration.
102955         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
102956         REPLACE_SPRINTF.
102958 2007-03-06  Bruno Haible  <bruno@clisp.org>
102960         * modules/vsprintf-posix-tests: New file.
102961         * tests/test-vsprintf-posix.c: New file.
102962         * tests/test-sprintf-posix.h: New file.
102964         * modules/vsprintf-posix: New file.
102965         * lib/vsprintf.c: New file.
102966         * m4/vsprintf-posix.m4: New file.
102967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
102968         REPLACE_VSPRINTF.
102969         * lib/stdio_.h (vsprintf): New declaration.
102970         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
102971         REPLACE_VSPRINTF.
102973 2007-03-06  Bruno Haible  <bruno@clisp.org>
102975         * modules/vsnprintf (Depend-on): Remove minmax.
102977 2007-03-06  Bruno Haible  <bruno@clisp.org>
102979         * modules/snprintf-posix-tests: New file.
102980         * tests/test-snprintf-posix.c: New file.
102982         * modules/snprintf-posix: New file.
102983         * m4/snprintf-posix.m4: New file.
102984         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
102985         gl_FUNC_SNPRINTF.
102986         (gl_FUNC_SNPRINTF): Invoke it.
102987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
102988         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
102989         is set.
102990         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
102992 2007-03-06  Bruno Haible  <bruno@clisp.org>
102994         * modules/vsnprintf-posix-tests: New file.
102995         * tests/test-vsnprintf-posix.c: New file.
102996         * tests/test-snprintf-posix.h: New file.
102998         * modules/vsnprintf-posix: New file.
102999         * m4/vsnprintf-posix.m4: New file.
103000         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
103001         gl_FUNC_VSNPRINTF.
103002         (gl_FUNC_VSNPRINTF): Invoke it.
103003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
103004         * lib/stdio_.h (vsnprintf): Define as a replacement if
103005         REPLACE_VSNPRINTF is set.
103006         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
103008 2007-03-06  Bruno Haible  <bruno@clisp.org>
103010         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
103011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
103013 2007-03-06  Bruno Haible  <bruno@clisp.org>
103015         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
103016         (asinl): Declare also if HAVE_DECL_ASINL is set.
103017         (atanl): Declare also if HAVE_DECL_ATANL is set.
103018         (ceill): Declare also if HAVE_DECL_CEILL is set.
103019         (cosl): Declare also if HAVE_DECL_COSL is set.
103020         (expl): Declare also if HAVE_DECL_EXPL is set.
103021         (floorl): Declare also if HAVE_DECL_FLOORL is set.
103022         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
103023         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
103024         (logl): Declare also if HAVE_DECL_LOGL is set.
103025         (sinl): Declare also if HAVE_DECL_SINL is set.
103026         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
103027         (tanl): Declare also if HAVE_DECL_TANL is set.
103028         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
103029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
103030         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
103031         declaration of frexpl, ldexpl.
103032         * modules/printf-frexpl (Depends-on): Add math.
103033         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
103035 2007-03-05  Bruno Haible  <bruno@clisp.org>
103037         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
103038         frexpl and ldexpl are declared.
103039         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
103041 2007-03-05  Bruno Haible  <bruno@clisp.org>
103043         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
103044         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
103046 2007-03-05  Bruno Haible  <bruno@clisp.org>
103048         * lib/stdio_.h: Include <stddef.h>.
103050 2007-03-05  Bruno Haible  <bruno@clisp.org>
103052         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
103054 2007-03-05  Bruno Haible  <bruno@clisp.org>
103056         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
103057         NetBSD 4, from Ralf Wildenhues.
103059 2007-03-04  Bruno Haible  <bruno@clisp.org>
103061         * lib/vasprintf.h: Update #if logic for the case when the functions
103062         exist but are overridden.
103064 2007-03-04  Bruno Haible  <bruno@clisp.org>
103066         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
103067         implementations: glibc-2.4 and MacOS X 10.3.
103068         * tests/test-vasnprintf-posix.c (test_function): Test also the case
103069         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
103070         * tests/test-vasprintf-posix.c (test_function): Likewise.
103072 2007-03-04  Bruno Haible  <bruno@clisp.org>
103074         * modules/vasprintf-posix-tests: New file.
103075         * tests/test-vasprintf-posix.c: New file.
103077         * modules/vasprintf-posix: New file.
103078         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
103079         defined.
103080         * m4/vasprintf-posix.m4: New file.
103081         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
103082         gl_FUNC_VASPRINTF.
103083         (gl_FUNC_VASPRINTF): Invoke it.
103084         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
103085         here.
103086         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
103088 2007-03-04  Bruno Haible  <bruno@clisp.org>
103090         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
103091         REPLACE_GETTIMEOFDAY.
103092         * modules/sys_time (Makefile.am): Likewise.
103093         * m4/sys_time_h.m4: Likewise.
103094         * m4/gettimeofday.m4: Likewise.
103096 2007-03-04  Bruno Haible  <bruno@clisp.org>
103098         * modules/vasnprintf-posix-tests: New file.
103099         * tests/test-vasnprintf-posix.c: New file.
103101         * modules/vasnprintf-posix: New file.
103102         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
103103         printf-frexpl.h.
103104         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
103105         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
103106         REPLACE_VASNPRINTF is defined.
103107         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
103108         gl_FUNC_VASNPRINTF.
103109         (gl_FUNC_VASNPRINTF): Invoke it.
103110         * m4/vasnprintf-posix.m4: New file.
103111         * m4/printf.m4: New file.
103113 2007-03-04  Bruno Haible  <bruno@clisp.org>
103115         Compile progreloc.c only if --enable-relocatable is specified.
103116         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
103117         if --enable-relocatable was specified.
103118         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
103119         lib_SOURCES.
103121 2007-03-04  Jim Meyering  <jim@meyering.net>
103123         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
103124         Use it consistently, rather than enumerating errno constants.
103126 2007-03-04  Bruno Haible  <bruno@clisp.org>
103128         * modules/xvasprintf-tests: New file.
103129         * tests/test-xvasprintf.c: New file.
103131         * modules/vasprintf-tests: New file.
103132         * tests/test-vasprintf.c: New file.
103134         * modules/vasnprintf-tests: New file.
103135         * tests/test-vasnprintf.c: New file.
103137         * modules/vsnprintf-tests: New file.
103138         * tests/test-vsnprintf.c: New file.
103140         * modules/snprintf-tests: New file.
103141         * tests/test-snprintf.c: New file.
103143 2007-03-04  Bruno Haible  <bruno@clisp.org>
103145         Compile relocatable.c only if --enable-relocatable is specified.
103146         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
103147         gl_RELOCATABLE_LIBRARY.
103148         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
103149         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
103150         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
103151         gl_RELOCATABLE_LIBRARY.
103152         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
103153         (Makefile.am): Remove lib_SOURCES.
103154         * modules/relocatable-lib-lgpl (configure.ac): Invoke
103155         gl_RELOCATABLE_LIBRARY.
103156         (Makefile.am): Remove lib_SOURCES.
103157         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
103158         always.
103159         * modules/relocatable-prog-wrapper (configure.ac): Invoke
103160         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
103162 2007-03-04  Bruno Haible  <bruno@clisp.org>
103164         * modules/argmatch-tests: New file.
103165         * tests/test-argmatch.c: New file.
103167         * tests/test-allocsa.c (main): Halve the number of loop runs.
103169         * modules/alloca-opt-tests: New file.
103170         * tests/test-alloca-opt.c: New file.
103172 2007-03-04  Jim Meyering  <jim@meyering.net>
103174         Work around difference between Linux ACLs and Solaris 10 ZFS.
103175         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
103176         for EINVAL.
103178 2007-03-03  Bruno Haible  <bruno@clisp.org>
103180         * modules/relocatable-prog (Depends-on): Add back progreloc's
103181         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
103183 2007-03-03  Bruno Haible  <bruno@clisp.org>
103185         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
103186         * modules/relocatable-lib: New file.
103188 2007-03-03  Bruno Haible  <bruno@clisp.org>
103190         * modules/relocatable-prog: Renamed from modules/relocatable.
103191         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
103193 2007-03-03  Bruno Haible  <bruno@clisp.org>
103195         * modules/relocatable-script (Files): Add doc/relocatable.texi,
103196         m4/relocatable-lib.m4.
103197         (Depends-on): Remove 'relocatable'.
103198         (configure.ac): Add gl_RELOCATABLE_NOP.
103200 2007-03-03  Bruno Haible  <bruno@clisp.org>
103202         * modules/relocatable-prog-wrapper: New file.
103203         * modules/relocatable (Depends-on): Add it. Remove all other
103204         dependencies except progname.
103205         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
103207         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
103208         (gl_FUNC_STRERROR): Nop.
103209         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
103211         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
103212         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
103214         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
103215         (gl_FUNC_READLINK): Update.
103217         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
103219 2007-03-03  Bruno Haible  <bruno@clisp.org>
103221         * lib/xreadlink.c: Include <unistd.h> unconditionally.
103222         * modules/xreadlink (Depends-on): Add unistd.
103223         * modules/xreadlink-with-size (Depends-on): Likewise.
103225 2007-03-03  Bruno Haible  <bruno@clisp.org>
103227         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
103228         extracted from gt_FUNC_SETENV.
103229         (gt_FUNC_SETENV): Remove macro.
103230         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
103231         remove gt_FUNC_SETENV.
103233 2007-03-03  Bruno Haible  <bruno@clisp.org>
103235         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
103236         ENABLE_RELOCATABLE here.
103237         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
103239 2007-03-03  Bruno Haible  <bruno@clisp.org>
103241         * modules/rbtreehash-list-tests (Depends-on): Add progname.
103242         * tests/test-rbtreehash_list.c: Include progname.h.
103243         (main): Call set_program_name.
103245         * modules/rbtree-oset-tests (Depends-on): Add progname.
103246         * tests/test-rbtree_oset.c: Include progname.h.
103247         (main): Call set_program_name.
103249         * modules/rbtree-list-tests (Depends-on): Add progname.
103250         * tests/test-rbtree_list.c: Include progname.h.
103251         (main): Call set_program_name.
103253         * modules/linked-list-tests (Depends-on): Add progname.
103254         * tests/test-linked_list.c: Include progname.h.
103255         (main): Call set_program_name.
103257 2007-03-03  Bruno Haible  <bruno@clisp.org>
103259         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
103260         All uses of __restrict changed to _Restrict_.
103261         * lib/glob_.h (__restrict): Remove macro.
103263 2007-03-02  Bruno Haible  <bruno@clisp.org>
103265         * modules/gettext (configure.ac): Require gettext infrastructure
103266         from version 0.16.1.
103268 2007-03-02  Bruno Haible  <bruno@clisp.org>
103270         * modules/linkedhash-list-tests (Depends-on): Add progname.
103271         * tests/test-linkedhash_list.c: Include progname.h.
103272         (main): Call set_program_name.
103274         * modules/carray-list-tests (Depends-on): Add progname.
103275         * tests/test-carray_list.c: Include progname.h.
103276         (main): Call set_program_name.
103278         * modules/avltreehash-list-tests (Depends-on): Add progname.
103279         * tests/test-avltreehash_list.c: Include progname.h.
103280         (main): Call set_program_name.
103282         * modules/avltree-oset-tests (Depends-on): Add progname.
103283         * tests/test-avltree_oset.c: Include progname.h.
103284         (main): Call set_program_name.
103286         * modules/avltree-list-tests (Depends-on): Add progname.
103287         * tests/test-avltree_list.c: Include progname.h.
103288         (main): Call set_program_name.
103290         * modules/array-oset-tests (Depends-on): Add progname.
103291         * tests/test-array_oset.c: Include progname.h.
103292         (main): Call set_program_name.
103294         * modules/array-list-tests (Depends-on): Add progname.
103295         * tests/test-array_list.c: Include progname.h.
103296         (main): Call set_program_name.
103298         * modules/argp-tests (Depends-on): Add progname.
103299         * tests/test-argp.c: Include argp.h first. Include progname.h.
103300         (main): Call set_program_name.
103302 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
103304         * doc/gnulib-tool.texi (Initial import): Reword description of
103305         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
103306         limited effect even if defined after the first system include.
103308 2007-03-01  Bruno Haible  <bruno@clisp.org>
103310         * build-aux/config.libpath: Update to libtool-1.5.22.
103311         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
103313 2007-03-01  Bruno Haible  <bruno@clisp.org>
103315         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
103316         foo_CFLAGS.
103317         Reported by Ralf Wildenhues.
103319 2007-03-01  Bruno Haible  <bruno@clisp.org>
103321         * build-aux/install-reloc: Remove object files left over by some
103322         compilers.
103323         Reported by Ralf Wildenhues.
103325 2007-03-01  Bruno Haible  <bruno@clisp.org>
103327         * build-aux/install-reloc: Break long lines.
103329 2007-03-01  Bruno Haible  <bruno@clisp.org>
103331         * doc/relocatable.texi: Document that it may not work on OpenBSD.
103332         Reported by Ralf Wildenhues.
103334 2007-03-01  Bruno Haible  <bruno@clisp.org>
103336         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
103337         include ordering constraints.
103339 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
103341         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
103342         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
103343         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
103344         as another example.
103345         * lib/time_.h: Fix misspelling.
103346         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
103347         Require gl_HEADER_TIME_H_DEFAULTS.
103348         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
103349         * m4/time_r.m4 (gl_TIME_R): Likewise.
103350         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
103352 2007-03-01  Bruno Haible  <bruno@clisp.org>
103354         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
103355         * m4/utimens.m4 (gl_UTIMENS): Likewise.
103357 2007-03-01  Jim Meyering  <jim@meyering.net>
103359         * modules/xreadlink (Maintainer): Add my name.
103360         * modules/xreadlink-with-size (Depends-on): Alphabetize.
103362 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
103363             Bruno Haible  <bruno@clisp.org>
103365         * build-aux/install-reloc: Compile also c-ctype.c.
103366         * build-aux/relocatable.sh.in: New file.
103367         * doc/relocatable.texi: New file.
103368         * doc/relocatable-maint.texi: New file.
103369         * doc/gnulib.texi: Include relocatable-maint.texi.
103370         * lib/progreloc.c: Include unistd.h unconditionally.
103371         * lib/relocwrapper.c: Include unistd.h unconditionally.
103372         Include c-ctype.h.
103373         (add_dotbin): Use c_tolower.
103374         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
103375         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
103376         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
103377         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
103378         to m4/relocatable-lib.m4.
103379         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
103380         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
103381         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
103382         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
103383         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
103384         * modules/relocatable: New file.
103385         * modules/relocatable-lib: New file.
103386         * modules/relocatable-script: New file.
103388 2007-02-28  Bruno Haible  <bruno@clisp.org>
103390         Import --enable-relocatable infrastructure.
103391         * build-aux/config.libpath: New file, from GNU gettext.
103392         * build-aux/install-reloc: New file, from GNU gettext.
103393         * build-aux/reloc-ldflags: New file, from GNU gettext.
103394         * lib/relocatable.h: New file, from GNU gettext.
103395         * lib/relocatable.c: New file, from GNU gettext.
103396         * lib/relocwrapper.c: New file, from GNU gettext.
103397         * m4/relocatable.m4: New file, from GNU gettext.
103399 2007-02-28  Bruno Haible  <bruno@clisp.org>
103401         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
103403         * modules/xreadlink: New file, from GNU gettext with modifications.
103404         * lib/xreadlink.c: New file, from GNU gettext.
103405         * lib/xreadlink.h: Add comments.
103406         (xreadlink): New declaration.
103408         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
103409         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
103410         lib/xreadlink-with-size.c.
103411         (configure.ac): Remove gl_XREADLINK invocation.
103412         (Makefile.am): Augment lib_SOURCES.
103413         * m4/xreadlink.m4: Remove file.
103414         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
103415         (xreadlink_with_size): Renamed from xreadink.
103416         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
103417         * modules/canonicalize (Depends-on): Replace xreadlink with
103418         xreadlink-with-size.
103419         * lib/canonicalize.c (canonicalize_filename_mode): Update.
103421 2007-02-25  Jim Meyering  <jim@meyering.net>
103423         * build-aux/announce-gen: When complaining about excess arguments,
103424         list them.
103426 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
103428         * README: Document signed integer overflow situation more
103429         accurately.
103431 2007-02-25  Bruno Haible  <bruno@clisp.org>
103433         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
103434         'a' or 'A' conversion.
103436 2007-02-25  Bruno Haible  <bruno@clisp.org>
103438         * modules/filename: Renamed from modules/pathname.
103439         (Files): Replace lib/pathname.h with lib/filename.h. Replace
103440         lib/concatpath.c with lib/concat-filename.c.
103441         (Makefile.am): Update.
103442         (Include): Replace pathname.h with filename.h.
103443         * lib/filename.h: Renamed from lib/pathname.h.
103444         (concatenated_filename): Renamed from concatenated_pathname.
103445         * lib/concat-filename.c: Renamed from lib/concatpath.c.
103446         (concatenated_filename): Renamed from concatenated_pathname.
103447         * lib/findprog.c: Include filename.h instead of pathname.h.
103448         (find_in_path): Update.
103449         * lib/javacomp.c: Include filename.h instead of pathname.h.
103450         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
103451         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
103452         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
103453         is_oldgcj_14_13_usable, is_javac_usable): Update.
103454         * lib/javaexec.c: Include filename.h instead of pathname.h.
103455         (execute_java_class): Update.
103456         * modules/findprog: Update.
103457         * modules/javacomp: Update.
103458         * modules/javaexec: Update.
103459         * MODULES.html.sh (File system functions): Add 'filename', remove
103460         'pathname'.
103462 2007-02-25  Bruno Haible  <bruno@clisp.org>
103464         * modules/printf-frexpl-tests: New file.
103465         * tests/test-printf-frexpl.c: New file.
103467         * modules/printf-frexpl: New file.
103468         * lib/printf-frexpl.h: New file.
103469         * lib/printf-frexpl.c: New file.
103470         * m4/printf-frexpl.m4: New file.
103472 2007-02-25  Bruno Haible  <bruno@clisp.org>
103474         * modules/printf-frexp-tests: New file.
103475         * tests/test-printf-frexp.c: New file.
103477         * modules/printf-frexp: New file.
103478         * lib/printf-frexp.h: New file.
103479         * lib/printf-frexp.c: New file.
103480         * m4/printf-frexp.m4: New file.
103482 2007-02-25  Bruno Haible  <bruno@clisp.org>
103484         Assume automake >= 1.10 for the tests.
103485         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
103486         * modules/arctwo-tests: Likewise.
103487         * modules/argp-tests: Likewise.
103488         * modules/avltree-list-tests: Likewise.
103489         * modules/avltree-oset-tests: Likewise.
103490         * modules/avltreehash-list-tests: Likewise.
103491         * modules/carray-list-tests: Likewise.
103492         * modules/crc-tests: Likewise.
103493         * modules/des-tests: Likewise.
103494         * modules/gc-arcfour-tests: Likewise.
103495         * modules/gc-arctwo-tests: Likewise.
103496         * modules/gc-des-tests: Likewise.
103497         * modules/gc-hmac-md5-tests: Likewise.
103498         * modules/gc-hmac-sha1-tests: Likewise.
103499         * modules/gc-md2-tests: Likewise.
103500         * modules/gc-md4-tests: Likewise.
103501         * modules/gc-md5-tests: Likewise.
103502         * modules/gc-pbkdf2-sha1-tests: Likewise.
103503         * modules/gc-rijndael-tests: Likewise.
103504         * modules/gc-sha1-tests: Likewise.
103505         * modules/gc-tests: Likewise.
103506         * modules/getaddrinfo-tests: Likewise.
103507         * modules/hmac-md5-tests: Likewise.
103508         * modules/hmac-sha1-tests: Likewise.
103509         * modules/linked-list-tests: Likewise.
103510         * modules/linkedhash-list-tests: Likewise.
103511         * modules/lock-tests: Likewise.
103512         * modules/md2-tests: Likewise.
103513         * modules/md4-tests: Likewise.
103514         * modules/md5-tests: Likewise.
103515         * modules/rbtree-list-tests: Likewise.
103516         * modules/rbtree-oset-tests: Likewise.
103517         * modules/rbtreehash-list-tests: Likewise.
103518         * modules/read-file-tests: Likewise.
103519         * modules/rijndael-tests: Likewise.
103520         * modules/stdint-tests: Likewise.
103521         * modules/tls-tests: Likewise.
103523 2007-02-24  Bruno Haible  <bruno@clisp.org>
103525         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
103526         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
103527         function; instead check whether isnan with a double argument links.
103528         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
103529         function; instead check whether isnan with a 'long double' argument
103530         links.
103531         Reported by Eric Blake <ebb9@byu.net>.
103533 2007-02-24  Bruno Haible  <bruno@clisp.org>
103535         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
103536         defined.
103537         * lib/isnanl.c: Remove all code. Just include isnan.c.
103538         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
103540 2007-02-25  Jim Meyering  <jim@meyering.net>
103542         Avoid conflicting types for 'unsetenv' on FreeBSD.
103543         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
103544         conflicting with FreeBSD's (5.0 and 6.1) function declaration
103545         in stdlib.h.
103547 2007-02-24  Bruno Haible  <bruno@clisp.org>
103549         * modules/isnanl-nolibm-tests: New file.
103550         * tests/test-isnanl.c: New file.
103552         * modules/isnanl-nolibm: New file.
103553         * lib/isnanl.h: New file.
103554         * lib/isnanl.c: New file.
103555         * m4/isnanl.m4: New file.
103557 2007-02-24  Bruno Haible  <bruno@clisp.org>
103559         * modules/isnan-nolibm-tests: New file.
103560         * tests/test-isnan.c: New file.
103562         * modules/isnan-nolibm: New file.
103563         * lib/isnan.h: New file.
103564         * lib/isnan.c: New file.
103565         * m4/isnan.m4: New file.
103567 2007-02-24  Bruno Haible  <bruno@clisp.org>
103569         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
103570         assume that an exponent fits in 20 bits.
103572 2007-02-24  Jim Meyering  <jim@meyering.net>
103574         * m4/regex.m4: Update the description of the configure-time option,
103575         --without-included-regex, to state accurately what the defaults are,
103576         and perhaps to give people an idea why using this option is risky.
103578 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
103580         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
103581         loops on small arguments.  This attempts to avoid the problem
103582         Bruno Haible reported for AIX 4.3.2 in
103583         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
103585 2007-02-23  Bruno Haible  <bruno@clisp.org>
103587         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
103588         Needed for help2man.
103590 2007-02-23  Karl Berry  <karl@gnu.org>
103592         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
103593         exists, foo.h should be cvs-ignored, not committed.
103595 2007-02-23  Eric Blake  <ebb9@byu.net>
103597         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
103598         * lib/stat-time.h (includes): Likewise.
103599         * lib/utimecmp.c (includes): Likewise.
103600         * lib/utimens.h (includes): Likewise.
103601         * lib/getdate.y (includes): Also include "timespec.h" for use
103602         internal to the module.
103603         * modules/utimens (Depends-on): Revert yesterday's patch.
103604         * modules/nanosleep (Depends-on): Add missing dependency.
103606 2007-02-22  Bruno Haible  <bruno@clisp.org>
103608         * lib/glob.c: Don't include getlogin_r.h.
103610 2007-02-22  Jim Meyering  <jim@meyering.net>
103612         * modules/utimens (Depends-on): Add timespec, required for
103613         utimens.h's inclusion of timespec.h.
103615 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
103617         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
103618         long unreadable paths in GNU/Linux.  Problem reported by Andreas
103619         Schwab in
103620         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
103621         I'll try to think of a better way to fix the Solaris problem.
103623         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
103624         like glibc; on Solaris 10, it fails with errno == EINVAL.
103625         POSIX says the behavior is unspecified if the first argument is NULL,
103626         so play it safe and never pass NULL to the system getcwd.
103628 2007-02-21  Jim Meyering  <jim@meyering.net>
103630         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
103631         of gettimeofday.  It would conflict with the one now always
103632         provided via sys_time_.h.  Reported by Matthew Woehlke, as
103633         an IRIX 6.5 build failure.
103635 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
103637         Minor fixups to port to Solaris 10 with Sun C 5.8.
103638         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
103639         * modules/getcwd (Depends-on): Add dirfd.
103640         * lib/putenv.c (putenv): #undef it.
103641         (rpl_putenv): New decl.
103642         (malloc, free): Include <stdlib.h> rather than prototyping separately.
103644 2007-02-20  Bruno Haible  <bruno@clisp.org>
103646         * modules/stdio-tests: New file.
103647         * tests/test-stdio.c: New file.
103649         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
103650         (Depends-on): Add stdio.
103651         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103652         (Include): Use <stdio.h> instead of vsnprintf.h.
103653         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103654         HAVE_DECL_VSNPRINTF.
103655         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
103657         * modules/snprintf (Files): Remove lib/snprintf.h.
103658         (Depends-on): Add stdio.
103659         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
103660         (Include): Use <stdio.h> instead of snprintf.h.
103661         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
103662         HAVE_DECL_SNPRINTF.
103663         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
103664         * lib/getaddrinfo.c: Likewise.
103666         * modules/stdio: New file.
103667         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
103668         * lib/snprintf.h: Remove file.
103669         * lib/vsnprintf.h: Remove file.
103670         * lib/.cppi-disable: Remove snprintf.h.
103671         * m4/stdio_h.m4: New file.
103672         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
103674 2007-02-20  Jim Meyering  <jim@meyering.net>
103676         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
103677         used by e.g., mingw.  From Bruno Haible.
103679 2007-02-19  Bruno Haible  <bruno@clisp.org>
103681         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
103682         warnings.
103683         Reported by Ben Pfaff <blp@cs.stanford.edu>.
103685 2007-02-19  Bruno Haible  <bruno@clisp.org>
103687         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
103688         from mingw users.
103690 2007-02-19  Bruno Haible  <bruno@clisp.org>
103692         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
103693         warnings.
103694         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
103696 2007-02-19  Jim Meyering  <jim@meyering.net>
103698         Don't use FD after a successful "fdopendir (fd)".
103699         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
103700         Reset it by calling dirfd on the just-obtained DIR*.
103702         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
103703         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
103705 2007-02-18  Bruno Haible  <bruno@clisp.org>
103707         * lib/readlink.c: Include <unistd.h>.
103708         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
103709         HAVE_READLINK.
103710         * modules/readlink (Depends-on): Add unistd.
103711         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103712         (Include): Add <unistd.h>.
103714         * lib/getlogin_r.h: Remove file.
103715         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
103716         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
103717         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
103718         HAVE_DECL_GETLOGIN_R.
103719         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
103720         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103721         (Include): Use <unistd.h> instead of getlogin_r.h.
103723         * lib/getcwd.h: Remove file.
103724         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
103725         * lib/xgetcwd.c: Likewise.
103726         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
103727         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
103728         * modules/getcwd (Files): Remove lib/getcwd.h.
103729         (Depends-on): Add unistd.
103730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103731         (Include): Use <unistd.h> instad of getcwd.h.
103733         * lib/ftruncate.c: Include <unistd.h> first.
103734         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
103735         Set HAVE_FTRUNCATE.
103736         * modules/ftruncate (Depends-on): Add unistd.
103737         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103739         * lib/fchdir.c: Include <unistd.h> first.
103740         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
103741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
103742         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
103743         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103744         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
103746         * lib/dup2.c: Include <unistd.h> first.
103747         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
103748         HAVE_DUP2.
103749         * modules/dup2 (Depends-on): Add unistd.
103750         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103752         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
103753         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
103754         REPLACE_CHOWN. Don't define chown as a macro here.
103755         * modules/chown (Depends-on): Add unistd.
103756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
103758         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
103759         Add definition for GL_LINK_WARNING.
103760         (chown, dup2): New declarations.
103761         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
103762         link warning.
103763         (ftruncate): New declaration.
103764         (getcwd): New declaration, taken from old getcwd.h.
103765         (getlogin_r): New declaration, taken from old getlogin_r.h.
103766         (readlink): New declaration.
103767         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
103768         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
103769         (gl_PREREQ_UNISTD): Remove macro.
103770         (gl_UNISTD_MODULE_INDICATOR): New macro.
103771         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
103772         many new variables. Don't set UNISTD_H.
103773         * modules/unistd (Description): Change.
103774         (Depends-on): Add link-warning.
103775         (configure.ac): Update.
103776         (Makefile.am): Create unistd.h always. Substitute many new variables
103777         into it.
103779 2007-02-18  Bruno Haible  <bruno@clisp.org>
103781         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
103782         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
103783         HAVE_GETSUBOPT.
103784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
103785         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
103786         * lib/getsubopt.h: Remove file.
103787         * modules/getsubopt (Files): Remove lib/getsubopt.h.
103788         (Depends-on): Add stdlib.
103789         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103790         (Includes): Use <stdlib.h> instead of getsubopt.h.
103791         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
103792         Set HAVE_GETSUBOPT.
103793         * lib/getsubopt.c: Don't include getsubopt.h.
103795 2007-02-18  Bruno Haible  <bruno@clisp.org>
103797         * modules/fchdir (Depends-on): Add dup2.
103799 2007-02-18  Bruno Haible  <bruno@clisp.org>
103801         * lib/stdlib_.h: Handle glibc's special invocation convention
103802         specially.
103804 2007-02-18  Bruno Haible  <bruno@clisp.org>
103806         * modules/stdlib-tests: New file.
103807         * tests/test-stdlib.c: New file.
103809         * modules/mkstemp (Files): Remove lib/mkstemp.h.
103810         (Depends-on): Add stdlib.
103811         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103812         (Includes): Use <stdlib.h> instead of mkstemp.h.
103813         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103814         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
103815         * lib/mkstemp.c: Don't include mkstemp.h.
103816         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
103817         * lib/stdlib--.h: Don't include mkstemp.h.
103819         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
103820         (Depends-on): Add stdlib.
103821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
103822         (Includes): Use <stdlib.h> instead of mkdtemp.h.
103823         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
103824         HAVE_MKDTEMP.
103825         * lib/mkdtemp.c: Don't include mkdtemp.h.
103826         * lib/clean-temp.c: Don't include mkdtemp.h.
103828         * modules/exit (Files): Remove lib/exit.h.
103829         (Depends-on): Add stdlib.
103830         (Makefile.am): Remove lib_SOURCES.
103831         (Include): Use <stdlib.h> instead of exit.h.
103832         * lib/argmatch.c: Don't include exit.h.
103833         * lib/execute.c: Likewise.
103834         * lib/pagealign_alloc.c: Likewise.
103835         * lib/pipe.c: Likewise.
103836         * lib/wait-process.c: Likewise.
103837         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
103838         * lib/exitfail.c: Likewise.
103839         * lib/savewd.c: Likewise.
103840         * lib/xsetenv.c: Likewise.
103842         * modules/stdlib: New file.
103843         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
103844         and extra comments about mkstemp().
103845         * lib/exit.h: Remove file.
103846         * lib/mkdtemp.h: Remove file.
103847         * lib/mkstemp.h: Remove file.
103848         * m4/stdlib_h.m4: New file.
103849         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
103851 2007-02-18  Bruno Haible  <bruno@clisp.org>
103853         * modules/math-tests: New file.
103854         * tests/test-math.c: New file.
103856         * modules/math: New file.
103857         * modules/mathl (Files): Remove lib/mathl.h.
103858         (Depends-on): Add math.
103859         (Makefile.am): Don't mention mathl.h.
103860         (Include): Use <math.h> instead of mathl.h.
103861         * lib/math_.h: New file.
103862         * lib/mathl.h: Remove file.
103863         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
103864         mathl.h.
103865         * lib/asinl.c: Likewise.
103866         * lib/atanl.c: Likewise.
103867         * lib/ceill.c: Likewise.
103868         * lib/cosl.c: Likewise.
103869         * lib/expl.c: Likewise.
103870         * lib/floorl.c: Likewise.
103871         * lib/frexpl.c: Likewise.
103872         * lib/ldexpl.c: Likewise.
103873         * lib/logl.c: Likewise.
103874         * lib/sincosl.c: Likewise.
103875         * lib/sinl.c: Likewise.
103876         * lib/sqrtl.c: Likewise.
103877         * lib/tanl.c: Likewise.
103878         * lib/trigl.c: Likewise.
103879         * m4/math_h.m4: New file.
103880         * MODULES.html.sh (Mathematics): Add math.
103882 2007-02-17  Bruno Haible  <bruno@clisp.org>
103884         * modules/wctype-tests: New file.
103885         * tests/test-wctype.c: New file.
103887         * modules/wchar-tests: New file.
103888         * tests/test-wchar.c: New file.
103890         * modules/unistd-tests: New file.
103891         * tests/test-unistd.c: New file.
103893         * modules/time-tests: New file.
103894         * tests/test-time.c: New file.
103896         * modules/sysexits-tests: New file.
103897         * tests/test-sysexits.c: New file.
103899         * modules/sys_time-tests: New file.
103900         * tests/test-sys_time.c: New file.
103902         * modules/sys_stat-tests: New file.
103903         * tests/test-sys_stat.c: New file.
103905         * modules/sys_socket-tests: New file.
103906         * tests/test-sys_socket.c: New file.
103908         * modules/sys_select-tests: New file.
103909         * tests/test-sys_select.c: New file.
103911         * modules/string-tests: New file.
103912         * tests/test-string.c: New file.
103914         * modules/stdbool-tests: New file.
103915         * tests/test-stdbool.c: New file.
103917         * modules/netinet_in-tests: New file.
103918         * tests/test-netinet_in.c: New file.
103920         * modules/inttypes-tests: New file.
103921         * tests/test-inttypes.c: New file.
103923         * modules/fcntl-tests: New file.
103924         * tests/test-fcntl.c: New file.
103926         * modules/byteswap-tests: New file.
103927         * tests/test-byteswap.c: New file.
103929         * modules/arpa_inet-tests: New file.
103930         * tests/test-arpa_inet.c: New file.
103932 2007-02-17  Bruno Haible  <bruno@clisp.org>
103934         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
103935         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
103936         if the corresponding module is not enabled. Emit link warnings if
103937         the function is used nevertheless.
103938         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
103939         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
103940         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
103941         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
103942         * modules/inttypes (Depends-on): Add link-warning.
103943         (Makefile.am): Copy the contents of build-aux/link-warning.h into
103944         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
103945         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
103946         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
103947         * modules/imaxdiv (configure.ac): Likewise.
103948         * modules/strtoimax (configure.ac): Likewise.
103949         * modules/strtoumax (configure.ac): Likewise.
103951 2007-02-17  Bruno Haible  <bruno@clisp.org>
103953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
103954         gl_STRING_MODULE_INDICATOR_DEFAULTS.
103955         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
103956         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
103958 2007-02-17  Bruno Haible  <bruno@clisp.org>
103960         * modules/link-warning: New file.
103961         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
103962         * lib/string_.h (GL_LINK_WARNING): Remove definition.
103963         * modules/string (Depends-on): Add link-warning.
103964         (Makefile.am): Copy the contents of build-aux/link-warning.h into
103965         string.h.
103966         * MODULES.html.sh (Support for building libraries and executables): Add
103967         link-warning.
103969 2007-02-17  Bruno Haible  <bruno@clisp.org>
103971         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
103972         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
103973         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
103974         long lines.
103976 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
103977             Bruno Haible  <bruno@clisp.org>
103979         * modules/tmpfile: New file.
103980         * lib/tmpfile.c: New file.
103981         * m4/tmpfile.m4: New file.
103982         * MODULES.html.sh (func_all_modules): New section "Input/output".
103984 2007-02-15  Bruno Haible  <bruno@clisp.org>
103986         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
103987         (supports_delete_on_close): New function.
103988         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
103990 2007-02-14  Bruno Haible  <bruno@clisp.org>
103992         * modules/mbspcasecmp-tests: New file.
103993         * tests/test-mbspcasecmp.sh: New file.
103994         * tests/test-mbspcasecmp.c: New file.
103996         New module mbspcasecmp.
103997         * modules/mbspcasecmp: New file.
103998         * lib/mbspcasecmp.c: New file.
103999         * lib/string_.h (strncasecmp): Change warning message.
104000         (mbspcasecmp): New declaration.
104001         * m4/mbspcasecmp.m4: New file.
104002         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104003         GNULIB_MBSPCASECMP.
104004         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
104005         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
104007 2007-02-14  Bruno Haible  <bruno@clisp.org>
104009         * modules/mbsncasecmp-tests: New file.
104010         * tests/test-mbsncasecmp.sh: New file.
104011         * tests/test-mbsncasecmp.c: New file.
104013         New module mbsncasecmp.
104014         * modules/mbsncasecmp: New file.
104015         * lib/mbsncasecmp.c: New file.
104016         * lib/string_.h (mbsncasecmp): New declaration.
104017         * m4/mbsncasecmp.m4: New file.
104018         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104019         GNULIB_MBSNCASECMP.
104020         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
104021         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
104023 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
104025         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
104026         Verify that it doesn't overlap with our flags.
104027         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
104028         do not have the desired effect in multibyte locales; instead, use
104029         mbscasecmp.
104030         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
104031         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
104032         we don't require GNU fnmatch ourselves (if our users require it, they
104033         should do so explicitly).
104035         Fix regex code so it doesn't rely on strcasecmp.
104036         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
104037         Otherwise, include gnulib's langinfo.h.
104038         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
104039         undesirable behavior in non-C locales.  Instead, rely on localecharset.
104040         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
104041         * modules/regex (FILES): Remove m4/codeset.m4.
104042         (Depends-on): Add localcharset.  Remove strcase.
104044 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104046         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
104047         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
104049 2007-02-13  Bruno Haible  <bruno@clisp.org>
104051         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
104052         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104054 2007-02-12  Bruno Haible  <bruno@clisp.org>
104056         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104057         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
104058         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
104059         time warning rather than a link error.
104061 2007-02-12  Bruno Haible  <bruno@clisp.org>
104063         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
104064         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
104065         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
104067 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104069         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
104070         args, not 2.
104072 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
104074         New module 'time', so that apps can include <time.h> as per
104075         POSIX and GNU instead of separate include files like time_r.h
104076         and timegm.h.  This implementation tries out a simpler approach
104077         for replacing decls in standard include files (as compared to
104078         the string module), somewhat as an experiment.
104080         * config/srclist.txt: Comment out mktime.c for now.
104081         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
104082         since it doesn't apply any more.  Use generic wording instead.
104083         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
104084         'time'.
104085         * lib/time_.h, m4/time_h.m4, modules/time: New files.
104086         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
104087         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
104088         Don't include <sys/types.h>; no longer needed since we assume C89.
104089         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
104090         * lib/strftime.c: Likewise.
104091         * lib/time_r.c: Likewise.
104092         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
104093         * lib/nanosleep.c: Include <time.h> first, to check interface.
104094         * lib/strptime.c: Likewise.
104095         * lib/time_r.c: Likewise.
104096         * lib/timegm.c: Likewise.
104097         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
104098         needed.
104099         * lib/timegm.c: Don't include timegm.h; no longer needed.
104100         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
104101         time.h now handles any problems in that area.
104102         (struct timespec, nanosleep): Remove; time.h now arranges for these.
104103         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
104104         that time.h defines struct timespec.
104105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
104106         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
104107         handles that.
104108         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
104109         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
104110         needed.  Set REPLACE_LOCALTIME.
104111         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
104112         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
104113         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
104114         nanosleep; time_h.m4 now does that.  Don't require
104115         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
104116         module handles this now.
104117         * modules/getdate (Depends-on): Remove timespec.  Add time.
104118         * modules/nanosleep (Depends-on): Likewise.
104119         * modules/stat-time (Depends-on): Likewise.
104120         * modules/nanosleep (Include): Include time.h, not timespec.h.
104121         * modules/strptime (Files): Remove lib/strptime.h.
104122         (Depends-on): Add extensions, time.
104123         (Include): Include time.h, not strptime.h.
104124         * modules/time_r (Files): Remove lib/time_r.h.
104125         (Depends-on): Add time.
104126         (Include): Include time.h, not time_r.h.
104127         * modules/timegm: Likewise.
104128         * modules/timespec (Description): Now does timespec-related decls
104129         of our own, instead of struct timespec itself.
104130         (Depends-on): Add time; remove extensions.
104131         (Maintainer): Add self.
104132         * modules/utimecmp (Depends-on): Add time; remove timespec.
104133         * modules/utimens (Depends-on): Likewise.
104134         * modules/xnanosleep (Depends-on): Likewise.
104136 2007-02-11  Bruno Haible  <bruno@clisp.org>
104138         * lib/c-strstr.c: Include allocsa.h.
104139         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104140         * lib/c-strcasestr.c: Include allocsa.h.
104141         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104142         * lib/strcasestr.c: Include allocsa.h.
104143         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
104144         * lib/mbsstr.c: Include allocsa.h.
104145         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104146         allocsa/freesa instead of malloc/free.
104147         * lib/mbscasestr.c: Include allocsa.h.
104148         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
104149         allocsa/freesa instead of malloc/free.
104150         * modules/c-strstr (Depends-on): Add allocsa.
104151         * modules/c-strcasestr (Depends-on): Likewise.
104152         * modules/strcasestr (Depends-on): Likewise.
104153         * modules/mbsstr (Depends-on): Likewise.
104154         * modules/mbscasestr (Depends-on): Likewise.
104156 2007-02-11  Bruno Haible  <bruno@clisp.org>
104158         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
104160         * modules/mbsspn-tests: New file.
104161         * tests/test-mbsspn.sh: New file.
104162         * tests/test-mbsspn.c: New file.
104164 2007-02-11  Bruno Haible  <bruno@clisp.org>
104166         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
104168         * modules/mbspbrk-tests: New file.
104169         * tests/test-mbspbrk.sh: New file.
104170         * tests/test-mbspbrk.c: New file.
104172 2007-02-11  Bruno Haible  <bruno@clisp.org>
104174         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
104175         unneeded cast.
104177         * modules/mbscspn-tests: New file.
104178         * tests/test-mbscspn.sh: New file.
104179         * tests/test-mbscspn.c: New file.
104181 2007-02-11  Bruno Haible  <bruno@clisp.org>
104183         * modules/mbscasecmp-tests: New file.
104184         * tests/test-mbscasecmp.sh: New file.
104185         * tests/test-mbscasecmp.c: New file.
104187 2007-02-11  Bruno Haible  <bruno@clisp.org>
104189         Ensure O(n) worst-case complexity of mbscasestr.
104190         * lib/mbscasestr.c: Include stdbool.h.
104191         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104192         functions.
104193         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
104194         the bookkeeping indicates that it's worth it.
104195         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
104197         * modules/mbscasestr-tests: New file.
104198         * tests/test-mbscasestr1.c: New file.
104199         * tests/test-mbscasestr2.sh: New file.
104200         * tests/test-mbscasestr2.c: New file.
104201         * tests/test-mbscasestr3.sh: New file.
104202         * tests/test-mbscasestr3.c: New file.
104203         * tests/test-mbscasestr4.sh: New file.
104204         * tests/test-mbscasestr4.c: New file.
104205         * m4/locale-tr.m4: New file.
104207 2007-02-11  Bruno Haible  <bruno@clisp.org>
104209         Ensure O(n) worst-case complexity of mbsstr.
104210         * lib/mbsstr.c: Include stdbool.h.
104211         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
104212         functions.
104213         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
104214         bookkeeping indicates that it's worth it.
104215         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
104217         * modules/mbsstr-tests: New file.
104218         * tests/test-mbsstr1.c: New file.
104219         * tests/test-mbsstr2.sh: New file.
104220         * tests/test-mbsstr2.c: New file.
104221         * tests/test-mbsstr3.sh: New file.
104222         * tests/test-mbsstr3.c: New file.
104223         * m4/locale-fr.m4: New file.
104225 2007-02-11  Bruno Haible  <bruno@clisp.org>
104227         * lib/mbsrchr.c (mbsrchr): Fix bug.
104229         * modules/mbsrchr-tests: New file.
104230         * tests/test-mbsrchr.sh: New file.
104231         * tests/test-mbsrchr.c: New file.
104233 2007-02-11  Bruno Haible  <bruno@clisp.org>
104235         * lib/mbschr.c (mbschr): Fix bug.
104237         * modules/mbschr-tests: New file.
104238         * tests/test-mbschr.sh: New file.
104239         * tests/test-mbschr.c: New file.
104240         * m4/locale-zh.m4: New file.
104242 2007-02-11  Bruno Haible  <bruno@clisp.org>
104244         Support for copying multibyte string iterators.
104245         * lib/mbiter.h: Include <string.h>.
104246         (mbiter_multi_copy): New function.
104247         (mbi_copy): New macro.
104248         * lib/mbuiter.h: Include <string.h>.
104249         (mbuiter_multi_copy): New function.
104250         (mbui_copy): New macro.
104252 2007-02-11  Bruno Haible  <bruno@clisp.org>
104254         New module mbslen.
104255         * modules/mbslen: New file.
104256         * lib/mbslen.c: New file.
104257         * lib/string_.h (mbslen): New declaration.
104258         * m4/mbslen.m4: New file.
104259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104260         GNULIB_MBSLEN.
104261         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
104262         * MODULES.html.sh (Internationalization functions): Add mbslen.
104264 2007-02-11  Bruno Haible  <bruno@clisp.org>
104266         Ensure O(n) worst-case complexity of strcasestr substitute.
104267         * lib/strcasestr.c: Include stdbool.h.
104268         (knuth_morris_pratt): New function.
104269         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104270         bookkeeping indicates that it's worth it.
104271         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
104273         * modules/strcasestr-tests: New file.
104274         * tests/test-strcasestr.c: New file.
104276 2007-02-11  Bruno Haible  <bruno@clisp.org>
104278         Ensure O(n) worst-case complexity of c_strcasestr.
104279         * lib/c-strcasestr.c: Include stdbool.h, string.h.
104280         (knuth_morris_pratt): New function.
104281         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
104282         the bookkeeping indicates that it's worth it.
104283         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
104285         * modules/c-strcasestr-tests: New file.
104286         * tests/test-c-strcasestr.c: New file.
104288 2007-02-11  Bruno Haible  <bruno@clisp.org>
104290         Ensure O(n) worst-case complexity of c_strstr.
104291         * lib/c-strstr.c: Include stdbool.h, string.h.
104292         (knuth_morris_pratt): New function.
104293         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
104294         bookkeeping indicates that it's worth it.
104295         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
104297         * lib/c-strstr.c: Complete rewrite for maintainability.
104299         * modules/c-strstr-tests: New file.
104300         * tests/test-c-strstr.c: New file.
104302 2007-02-11  Bruno Haible  <bruno@clisp.org>
104304         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
104305         5.2.1 and earlier, whereby \055 was treated just like the range
104306         delimiter '-'.
104307         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
104309 2007-02-08  Bruno Haible  <bruno@clisp.org>
104311         * modules/regex (Depends-on): Add stdbool.
104312         Reported by Dalibor Topic <robilad@kaffe.org>.
104314 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
104316         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
104317         Prefer returning from main to exiting from it.
104318         Remove unnecessary parens after sizeof.
104320 2007-02-05  Bruno Haible  <bruno@clisp.org>
104322         New module mbssep.
104323         * modules/mbssep: New file.
104324         * lib/mbssep.c: New file.
104325         * lib/string_.h (strsep): Add a conditional link warning.
104326         (mbssep): New declaration.
104327         * m4/mbssep.m4: New file.
104328         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104329         GNULIB_MBSSEP.
104330         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
104331         * MODULES.html.sh (Internationalization functions): Add mbssep.
104333 2007-02-05  Bruno Haible  <bruno@clisp.org>
104335         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
104336         Optimize search in case of 1 delimiter.
104338 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104340         * lib/acl.h: Include sys/types.h before sys/acl.h.
104342 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
104344         Merge upstream fix for glibc bugzilla #3957:
104346         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
104348         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
104349         bit for RE_HAT_LISTS_NOT_NEWLINE.
104350         (build_charclass_op): Remove bogus comment.
104352 2007-02-05  Simon Josefsson  <simon@josefsson.org>
104354         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
104356 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104358         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
104359         * lib/memmem.c [!defined _LIBC]: Include config.h.
104361 2007-02-04  Bruno Haible  <bruno@clisp.org>
104363         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
104364         warning message.
104366 2007-02-04  Bruno Haible  <bruno@clisp.org>
104368         New module mbstok_r.
104369         * modules/mbstok_r: New file.
104370         * lib/mbstok_r.c: New file.
104371         * lib/string_.h (strtok_r): Change argument names to match the
104372         comments. Add a conditional link warning.
104373         (mbstok_r): New declaration.
104374         * m4/mbstok_r.m4: New file.
104375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104376         GNULIB_MBSTOK_R.
104377         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
104378         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
104380 2007-02-04  Bruno Haible  <bruno@clisp.org>
104382         New module mbsspn.
104383         * modules/mbsspn: New file.
104384         * lib/mbsspn.c: New file.
104385         * lib/string_.h (strspn): Add a conditional link warning.
104386         (mbsspn): New declaration.
104387         * m4/mbsspn.m4: New file.
104388         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104389         GNULIB_MBSSPN.
104390         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
104391         * MODULES.html.sh (Internationalization functions): Add mbsspn.
104393 2007-02-04  Bruno Haible  <bruno@clisp.org>
104395         New module mbspbrk.
104396         * modules/mbspbrk: New file.
104397         * lib/mbspbrk.c: New file.
104398         * lib/string_.h (strpbrk): Add a conditional link warning.
104399         (mbspbrk): New declaration.
104400         * m4/mbspbrk.m4: New file.
104401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104402         GNULIB_MBSPBRK.
104403         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
104404         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
104406 2007-02-04  Bruno Haible  <bruno@clisp.org>
104408         New module mbscspn.
104409         * modules/mbscspn: New file.
104410         * lib/mbscspn.c: New file.
104411         * lib/string_.h (strcspn): Add a conditional link warning.
104412         (mbscspn): New declaration.
104413         * m4/mbscspn.m4: New file.
104414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104415         GNULIB_MBSCSPN.
104416         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
104417         * MODULES.html.sh (Internationalization functions): Add mbscspn.
104419 2007-02-04  Bruno Haible  <bruno@clisp.org>
104421         New module mbscasestr, reduced goal of strcasestr.
104422         * modules/mbscasestr: New file.
104423         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
104424         (mbscasestr): Renamed from strcasestr.
104425         * lib/strcasestr.c: Don't include mbuiter.h.
104426         (strcasestr): Remove support for multibyte locales.
104427         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
104428         Change the conditional link warning.
104429         (mbscasestr): New declaration.
104430         * m4/mbscasestr.m4: New file.
104431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
104432         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
104433         REPLACE_STRCASESTR.
104434         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
104435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104436         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104437         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
104438         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
104439         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
104440         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
104441         (Depends-on): Remove mbuiter.
104442         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
104444 2007-02-04  Bruno Haible  <bruno@clisp.org>
104446         Simplify handling of strncasecmp.
104447         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
104448         the conditional link warning.
104449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
104450         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
104451         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
104452         * modules/strcase (configure.ac): Don't invoke
104453         gl_STRING_MODULE_INDICATOR.
104454         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
104456 2007-02-04  Bruno Haible  <bruno@clisp.org>
104458         New module mbscasecmp, reduced goal of strcasecmp.
104459         * modules/mbscasecmp: New file.
104460         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
104461         (mbscasecmp): Renamed from strcasecmp.
104462         * lib/strcasecmp.c: Don't include mbuiter.h.
104463         (strcasecmp): Remove support for multibyte locales.
104464         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
104465         Change the conditional link warning.
104466         (mbscasecmp): New declaration.
104467         * m4/mbscasecmp.m4: New file.
104468         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
104469         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
104470         REPLACE_STRCASECMP.
104471         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
104472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104473         GNULIB_MBSCASECMP.
104474         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
104475         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
104476         * modules/strcase (Files): Remove m4/mbrtowc.m4.
104477         (Depends-on): Remove mbuiter.
104478         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
104480 2007-02-04  Bruno Haible  <bruno@clisp.org>
104482         New module mbsstr. Remove module strstr.
104483         * modules/mbsstr: New file.
104484         * modules/strstr: Remove file.
104485         * lib/mbsstr.c: Renamed from lib/strstr.c.
104486         (mbsstr): Renamed from strstr.
104487         * lib/string_.h (strstr): Remove declaration. Change the conditional
104488         link warning.
104489         (mbsstr): New declaration.
104490         * m4/mbsstr.m4: New file.
104491         * m4/strstr.m4: Remove file.
104492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
104493         REPLACE_STRSTR.
104494         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
104495         Don't initialize GNULIB_STRSTR.
104496         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
104497         substitute GNULIB_STRSTR and REPLACE_STRSTR.
104498         * MODULES.html.sh (Internationalization functions): Add mbsstr.
104499         (Support for systems lacking ANSI C 89): Remove strstr.
104501 2007-02-04  Bruno Haible  <bruno@clisp.org>
104503         New module mbsrchr.
104504         * modules/mbsrchr: New file.
104505         * lib/mbsrchr.c: New file.
104506         * lib/string_.h (strrchr): Add a conditional link warning.
104507         (mbsrchr): New declaration.
104508         * m4/mbsrchr.m4: New file.
104509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104510         GNULIB_MBSRCHR.
104511         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
104512         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
104514 2007-02-04  Bruno Haible  <bruno@clisp.org>
104516         New module mbschr.
104517         * modules/mbschr: New file.
104518         * lib/mbschr.c: New file.
104519         * lib/string_.h (strchr): Add a conditional link warning.
104520         (mbschr): New declaration.
104521         * m4/mbschr.m4: New file.
104522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
104523         GNULIB_MBSCHR.
104524         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
104525         * MODULES.html.sh (Internationalization functions): Add mbschr.
104527 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104529         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
104531         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
104533 2007-02-04  Bruno Haible  <bruno@clisp.org>
104535         New module description section 'configure.ac-early'.
104536         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
104537         (func_get_autoconf_early_snippet): New function.
104538         (func_import, func_create_testdir): Use it. Remove special cases for
104539         modules 'extensions' and 'lock'.
104540         * modules/extensions (configure.ac-early): Require
104541         gl_USE_SYSTEM_EXTENSIONS.
104542         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
104544 2007-02-04  Bruno Haible  <bruno@clisp.org>
104546         Make use of gcj-4.3's -fsource and -ftarget option.
104547         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
104548         and if so try the options -fsource and -ftarget.
104549         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
104550         source_version, ftarget_option, target_version arguments.
104551         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
104552         (is_envjavac_oldgcj_14_14_usable): Renamed from
104553         is_envjavac_gcj_14_14_usable.
104554         (is_envjavac_oldgcj_14_13_usable): Renamed from
104555         is_envjavac_gcj_14_13_usable.
104556         (is_gcj_present): Update.
104557         (is_gcj_43, is_gcj43_usable): New functions.
104558         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
104559         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
104560         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
104561         try the options -fsource and -ftarget.
104563 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
104565         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
104566         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
104567         larger value.
104569 2007-02-03  Jim Meyering  <jim@meyering.net>
104571         Give tools a better chance to allocate space for very large buffers.
104572         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
104574         Make pwd and readlink work also when run with an unreadable parent dir
104575         on systems with openat support.
104576         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
104577         provided getcwd function, even when we have openat support.
104578         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
104580 2007-02-02  Bruno Haible  <bruno@clisp.org>
104582         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
104583         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
104584         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
104585         portability problems if one of these functions is only used on specific
104586         platforms.
104587         Reported by Paul Eggert.
104589 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
104591         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
104592         is causing more trouble than it's curing.
104593         * lib/regex_internal.h (__mempcpy): Remove.
104594         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
104595         (and make the code a tad smaller to boot).
104596         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
104598 2007-02-02  Jim Meyering  <jim@meyering.net>
104600         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
104601         section, not in the Makefile.am: one.
104603 2007-02-02  Eric Blake  <ebb9@byu.net>
104605         * lib/strchrnul.c: Always include config.h first.
104607         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
104608         gnulib strstr is not necessary here.
104610 2007-02-02  Simon Josefsson  <simon@josefsson.org>
104612         * m4/socklen.m4: Fix typo.
104614 2007-02-02  Eric Blake  <ebb9@byu.net>
104616         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
104617         * modules/netinet_in (Makefile.am): Likewise.
104619 2007-02-01  Bruno Haible  <bruno@clisp.org>
104621         * lib/string_.h (GL_LINK_WARNING): New macro.
104622         (strcasecmp, strstr, strcasestr): If provided by the system,
104623         conditionally define as a macro that leads to a warning instead of to
104624         an error.
104625         (strncasecmp): Conditionally define as a macro that leads to a warning.
104627 2007-02-01  Karl Berry  <karl@gnu.org>
104629         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
104631 2007-02-01  Bruno Haible  <bruno@clisp.org>
104633         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
104634         renamings.
104636 2007-02-01  Eric Blake  <ebb9@byu.net>
104638         * modules/regex (Depends-on): Revert dependence on mempcpy.
104639         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
104640         module's definition of mempcpy.
104641         Reported by Paul Eggert.
104643 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
104645         * lib/string_.h: If the gnulib module XYZ is not present, undefine
104646         the symbol XYZ before redefining it.  This fixes a problem with
104647         programs that don't use XYZ, when compiled on systems that define
104648         XYZ to something else.
104650 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
104652         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
104653         occurs when "mkdir -m foo" creates a setgid directory that is (1)
104654         writeable to group or other and (2) is intended to have a special
104655         mode bit that is set or cleared.  In such a case, the directory
104656         should be neither group- nor other-writeable until the special
104657         mode bits are right.
104659 2007-01-31  Eric Blake  <ebb9@byu.net>
104661         * modules/mountlist (Depends-on): Add strstr.
104663         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
104664         bug.
104665         * modules/string (Makefile.am): Remove redundant replacement.
104666         * modules/regex (Depends-on): Add mempcpy.
104668 2007-01-31  Bruno Haible  <bruno@clisp.org>
104670         New module description field 'Link'.
104671         * gnulib-tool (func_usage): Document --extract-link-directive.
104672         (sed_extract_prog): Recognize 'Link' directive.
104673         (func_get_link_directive): New function.
104674         (func_import): Show summary of link directives.
104675         Handle --extract-link-directive option.
104676         * modules/acl (Link): New section.
104677         * modules/clock-time (Link): New section.
104678         * modules/euidaccess (Link): New section.
104679         * modules/gettext (Link): New section.
104680         * modules/iconv (Link): New section.
104681         * modules/lock (Link): New section.
104682         * modules/nanosleep (Link): New section.
104683         * modules/readline (Link): New section.
104685 2007-01-27  Bruno Haible  <bruno@clisp.org>
104687         Enforce the use of gnulib modules for unportable <string.h> functions.
104688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
104689         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
104690         (gl_HEADER_STRING_H_BODY): Require it.
104691         * lib/string_.h: If the gnulib module XYZ is not present, redefine
104692         the symbol XYZ to one that gives a link error.
104693         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
104694         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
104695         * modules/mempcpy (configure.ac): Likewise.
104696         * modules/memrchr (configure.ac): Likewise.
104697         * modules/stpcpy (configure.ac): Likewise.
104698         * modules/stpncpy (configure.ac): Likewise.
104699         * modules/strcase (configure.ac): Likewise.
104700         * modules/strcasestr (configure.ac): Likewise.
104701         * modules/strchrnul (configure.ac): Likewise.
104702         * modules/strdup (configure.ac): Likewise.
104703         * modules/strndup (configure.ac): Likewise.
104704         * modules/strnlen (configure.ac): Likewise.
104705         * modules/strpbrk (configure.ac): Likewise.
104706         * modules/strsep (configure.ac): Likewise.
104707         * modules/strstr (configure.ac): Likewise.
104708         * modules/strtok_r (configure.ac): Likewise.
104710 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
104712         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
104714 2007-01-30  Jim Meyering  <jim@meyering.net>
104716         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
104718 2007-01-29  Bruno Haible  <bruno@clisp.org>
104720         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
104721         * lib/execute.c: Likewise.
104722         * lib/pipe.c: Likewise.
104723         * lib/printf-args.h: Likewise.
104724         * lib/printf-args.c: Likewise.
104725         * lib/printf-parse.c: Likewise.
104726         * lib/vasnprintf.c: Likewise.
104728 2007-01-29  Eric Blake  <ebb9@byu.net>
104730         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
104731         declaration.
104733 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
104735         * lib/strptime.h (strptime): Use 'restrict' for args where
104736         POSIX requires this.
104737         * lib/strptime.c (strptime): Likewise.
104738         Change license notice from LGPL to GPL, since gnulib-tool will
104739         change this as needed.
104740         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
104741         defined.
104742         Include "strptime.h" first, to check interface.
104743         Do not #undef _LIBC and _NL_CURRENT.
104744         Do not include <stdlib.h>; no longer needed.
104745         Include "time_r.h" and declare ptime_locale_status
104746         only if _LIBC is not defined.
104747         (__P): Remove unused macro.
104748         (match_string): Bring back glibc version, but use it only if _LIBC
104749         is defined.
104750         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
104751         Remove unnecessary assertion and abort() call.
104752         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
104753         * m4/strptime.m4: Fix serial number comment.
104754         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
104755         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
104756         (Depends-on): Add time_r.
104758 2007-01-29  Bruno Haible  <bruno@clisp.org>
104760         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104761         strptime.
104762         * modules/strptime (Depends-on): Add stdbool.
104763         * lib/strptime.h: Include <time.h> always. Add comments.
104765 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
104767         * modules/strptime: New file.
104768         * lib/strptime.h: New file.
104769         * lib/strptime.c: New file.
104770         * m4/strptime.m4: New file.
104772 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
104774         * MODULES.html.sh: New module mpsort.
104775         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
104777         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
104778         a circularity problem with HP-UX ia64 reported by Bob Proulx in
104779         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
104780         All uses changed.
104781         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
104782         All uses changed.
104783         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
104784         to _Restrict_.
104785         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
104786         the parameter matches the prototype.
104788 2007-01-28  Jim Meyering  <jim@meyering.net>
104790         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
104791         sys/time.h here, reverting that part of the previous patch:
104792         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
104794 2007-01-28  Bruno Haible  <bruno@clisp.org>
104796         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
104797         value of $(SYS_TIME_H).
104798         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
104799         remove it conditionally, too. [added by Jim Meyering]
104800         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
104801         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
104802         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
104803         GETTIMEOFDAY_REPLACEMENT to 1.
104805 2007-01-28  Bruno Haible  <bruno@clisp.org>
104807         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
104808         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
104809         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
104810         Set UNISTD_H instead of UNISTD_H2.
104811         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
104813 2007-01-28  Bruno Haible  <bruno@clisp.org>
104815         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
104816         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
104818 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104820         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
104821         (func_create_testdir): Ensure C locale for `grep' and `tr'
104822         character ranges.
104823         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
104824         ACLOCAL_AMFLAGS parsing state machine.
104826 2007-01-27  Bruno Haible  <bruno@clisp.org>
104828         * modules/unistr/base: Update.
104830 2007-01-27  Bruno Haible  <bruno@clisp.org>
104832         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
104833         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
104834         * modules/unistr/u32-mbtouc-unsafe: Renamed from
104835         modules/unistr/u32-mbtouc.
104836         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
104837         * lib/unistr.h: Update.
104838         * lib/linebreak.c: Update.
104839         * modules/unistr/u32-mbtouc: Renamed from
104840         modules/unistr/u32-mbtouc-safe.
104841         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
104842         * lib/unistr.h: Update.
104843         * lib/unistr/u32-to-u8.c: Update.
104844         * lib/unistr/u32-to-u16.c: Update.
104846 2007-01-27  Bruno Haible  <bruno@clisp.org>
104848         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
104849         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
104850         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
104851         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
104852         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
104853         * modules/unistr/u16-mbtouc-unsafe: Renamed from
104854         modules/unistr/u16-mbtouc.
104855         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
104856         * lib/unistr.h: Update.
104857         * lib/linebreak.c: Update.
104858         * modules/linebreak: Update.
104859         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
104860         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
104861         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
104862         * modules/unistr/u16-mbtouc: Renamed from
104863         modules/unistr/u16-mbtouc-safe.
104864         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
104865         * lib/unistr.h: Update.
104866         * lib/unistr/u16-to-u8.c: Update.
104867         * modules/unistr/u16-to-u8: Update.
104868         * lib/unistr/u16-to-u32.c: Update.
104869         * modules/unistr/u16-to-u32: Update.
104871 2007-01-27  Bruno Haible  <bruno@clisp.org>
104873         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
104874         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
104875         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
104876         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
104877         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
104878         * modules/unistr/u8-mbtouc-unsafe: Renamed from
104879         modules/unistr/u8-mbtouc.
104880         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
104881         * lib/unistr.h: Update.
104882         * lib/striconveh.c: Update.
104883         * modules/striconveh: Update.
104884         * lib/linebreak.c: Update.
104885         * modules/linebreak: Update.
104886         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
104887         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
104888         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
104889         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
104890         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
104891         * lib/unistr.h: Update.
104892         * lib/striconveh.c: Update.
104893         * modules/striconveh: Update.
104894         * lib/unistr/u8-to-u16.c: Update.
104895         * modules/unistr/u8-to-u16: Update.
104896         * lib/unistr/u8-to-u32.c: Update.
104897         * modules/unistr/u8-to-u32: Update.
104899 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104901         Sync from Libtool.
104902         * lib/argz.c: Do not include strings.h nor memory.h, include
104903         string.h unconditionally.  Patch by Simon Josefsson.
104905 2007-01-27  Bruno Haible  <bruno@clisp.org>
104907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
104908         from gl_HEADER_STRING_H_BODY.
104909         (gl_HEADER_STRING_H_BODY): Require it.
104910         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
104911         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
104912         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
104913         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
104914         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104915         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
104916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
104917         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
104918         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
104919         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
104920         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
104921         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
104922         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
104923         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
104924         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104926 2007-01-27  Bruno Haible  <bruno@clisp.org>
104928         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
104929         check_PROGRAMS into noinst_PROGRAMS.
104930         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
104931         check_PROGRAMS in this case.
104932         (func_import): Set for_test to false.
104933         (func_create_testdir): Set for_test to true.
104935 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104936             Bruno Haible  <bruno@clisp.org>
104938         * modules/strcasestr (Files): Remove lib/strcasestr.h.
104939         (Depends-on): Add string.
104940         (Includes): Use <string.h> instead of strcasestr.h.
104941         * modules/string (Makefile.am): Also substitute the value of
104942         REPLACE_STRCASESTR.
104943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
104944         assume strcasestr is declared in <string.h> not <strings.h>. Also
104945         set REPLACE_STRCASESTR.
104946         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
104947         REPLACE_STRCASESTR.
104948         * lib/strcasestr.h: Remove file.
104949         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
104950         * lib/string_.h (strcasestr): New declaration.
104952 2007-01-27  Bruno Haible  <bruno@clisp.org>
104954         * lib/string_.h: Use 'extern'.
104956 2007-01-27  Jim Meyering  <jim@meyering.net>
104958         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
104959         of set-but-not-used local, "q".
104961         * lib/mempcpy.c: Include <config.h> before <string.h>.
104962         This fixes a compilation error on HP-UX, due to the system's
104963         "restrict"-using mempcpy prototype.
104965 2007-01-26  Bruno Haible  <bruno@clisp.org>
104967         Small optimization.
104968         * lib/javacomp.c: Include c-strstr.h.
104969          (is_envjavac_gcj): Use c_strstr instead of strstr.
104970         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
104972 2007-01-26  Bruno Haible  <bruno@clisp.org>
104974         * MODULES.html.sh (Unicode string functions): Add the new modules.
104976         * modules/uniconv/u32-strconv-to-locale: New file.
104977         * lib/uniconv/u32-strconv-to-locale.c: New file.
104979         * modules/uniconv/u16-strconv-to-locale: New file.
104980         * lib/uniconv/u16-strconv-to-locale.c: New file.
104982         * modules/uniconv/u8-strconv-to-locale: New file.
104983         * lib/uniconv/u8-strconv-to-locale.c: New file.
104985         * modules/uniconv/u32-strconv-from-locale: New file.
104986         * lib/uniconv/u32-strconv-from-locale.c: New file.
104988         * modules/uniconv/u16-strconv-from-locale: New file.
104989         * lib/uniconv/u16-strconv-from-locale.c: New file.
104991         * modules/uniconv/u8-strconv-from-locale: New file.
104992         * lib/uniconv/u8-strconv-from-locale.c: New file.
104994         * modules/uniconv/u32-strconv-to-enc: New file.
104995         * lib/uniconv/u32-strconv-to-enc.c: New file.
104996         * modules/uniconv/u32-strconv-to-enc-tests: New file.
104997         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
104999         * modules/uniconv/u16-strconv-to-enc: New file.
105000         * lib/uniconv/u16-strconv-to-enc.c: New file.
105001         * lib/uniconv/u-strconv-to-enc.h: New file.
105002         * modules/uniconv/u16-strconv-to-enc-tests: New file.
105003         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
105005         * modules/uniconv/u8-strconv-to-enc: New file.
105006         * lib/uniconv/u8-strconv-to-enc.c: New file.
105007         * modules/uniconv/u8-strconv-to-enc-tests: New file.
105008         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
105010         * modules/uniconv/u32-strconv-from-enc: New file.
105011         * lib/uniconv/u32-strconv-from-enc.c: New file.
105012         * modules/uniconv/u32-strconv-from-enc-tests: New file.
105013         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
105015         * modules/uniconv/u16-strconv-from-enc: New file.
105016         * lib/uniconv/u16-strconv-from-enc.c: New file.
105017         * modules/uniconv/u16-strconv-from-enc-tests: New file.
105018         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
105020         * modules/uniconv/u8-strconv-from-enc: New file.
105021         * lib/uniconv/u8-strconv-from-enc.c: New file.
105022         * lib/uniconv/u-strconv-from-enc.h: New file.
105023         * modules/uniconv/u8-strconv-from-enc-tests: New file.
105024         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
105026         * modules/uniconv/u32-conv-from-enc: New file.
105027         * lib/uniconv/u32-conv-from-enc.c: New file.
105028         * modules/uniconv/u32-conv-from-enc-tests: New file.
105029         * tests/uniconv/test-u32-conv-from-enc.c: New file.
105031         * modules/uniconv/u16-conv-from-enc: New file.
105032         * lib/uniconv/u16-conv-from-enc.c: New file.
105033         * lib/uniconv/u-conv-from-enc.h: New file.
105034         * modules/uniconv/u16-conv-from-enc-tests: New file.
105035         * tests/uniconv/test-u16-conv-from-enc.c: New file.
105037         * modules/uniconv/u8-conv-from-enc: New file.
105038         * lib/uniconv/u8-conv-from-enc.c: New file.
105039         * modules/uniconv/u8-conv-from-enc-tests: New file.
105040         * tests/uniconv/test-u8-conv-from-enc.c: New file.
105042         * modules/uniconv/base: New file.
105043         * lib/uniconv.h: New file.
105045 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
105047         * doc/gnulib-tool.texi (Initial import): Update to match current
105048         behavior with strdup module.
105049         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
105050         * lib/memmem.h: Remove; all uses removed.  This is now done
105051         by <string.h>.
105052         * lib/mempcpy.h: Likewise.
105053         * lib/memrchr.h: Likewise.
105054         * lib/stpcpy.h: Likewise.
105055         * lib/stpncpy.h: Likewise.
105056         * lib/strcase.h: Likewise.
105057         * lib/strchrnul.h: Likewise.
105058         * lib/strdup.h: Likewise.
105059         * lib/strndup.h: Likewise.
105060         * lib/strnlen.h: Likewise.
105061         * lib/strpbrk.h: Likewise.
105062         * lib/strsep.h: Likewise.
105063         * lib/strstr.h: Likewise.
105064         * lib/strtok_r.h: Likewise.
105065         * lib/string_.h: New file.
105066         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
105067         Rely on <string.h> instead.
105068         * lib/canon-host.c: Likewise.
105069         * lib/chdir-long.c: Likewise.
105070         * lib/concatpath.c: Likewise.
105071         * lib/exclude.c: Likewise.
105072         * lib/fchdir.c: Likewise.
105073         * lib/getaddrinfo.c: Likewise.
105074         * lib/getcwd.c: Likewise.
105075         * lib/getsubopt.c: Likewise.
105076         * lib/glob.c: Likewise.
105077         * lib/hard-locale.c: Likewise.
105078         * lib/iconvme.c: Likewise.
105079         * lib/javacomp.c: Likewise.
105080         * lib/mempcpy.c: Likewise.
105081         * lib/memrchr.c: Likewise.
105082         * lib/regex_internal.h: Likewise.
105083         * lib/stpncpy.c: Likewise.
105084         * lib/strcasecmp.c: Likewise.
105085         * lib/strchrnul.c: Likewise.
105086         * lib/strdup.c: Likewise.
105087         * lib/striconv.c: Likewise.
105088         * lib/striconveh.c: Likewise.
105089         * lib/striconveha.c: Likewise.
105090         * lib/strncasecmp.c: Likewise.
105091         * lib/strndup.c: Likewise.
105092         * lib/strnlen.c: Likewise.
105093         * lib/strsep.c: Likewise.
105094         * lib/strstr.c: Likewise.
105095         * lib/strtok_r.c: Likewise.
105096         * lib/userspec.c: Likewise.
105097         * lib/w32spawn.h: Likewise.
105098         * lib/xstrndup.c: Likewise.
105099         * lib/mountlist.c (strstr): Remove decl.
105100         * m4/string_h.m4: New file.
105101         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
105102         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
105103         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
105104         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
105105         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
105106         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
105107         Set REPLACE_STRCASECMP if necessary.
105108         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
105109         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
105110         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
105111         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
105112         HAVE_DECL_STRDUP if necessary.
105113         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
105114         since gl_FUNC_STRNDUP does that now.
105115         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
105116         Check for decl here...
105117         (gl_PREREQ_STRNLEN): ... not here.
105118         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
105119         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
105120         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
105121         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
105122         necessary.
105123         * modules/string: New file.
105124         * modules/memmem (Files): Remove special-purpose include file.
105125         (Depends-on): Add string.
105126         (Include): Include <string.h>, not the removed file.
105127         * modules/mempcpy: Likewise.
105128         * modules/memrchr: Likewise.
105129         * modules/stpcpy: Likewise.
105130         * modules/stpncpy: Likewise.
105131         * modules/strcase: Likewise.
105132         * modules/strchrnul: Likewise.
105133         * modules/strdup: Likewise.
105134         * modules/strndup: Likewise.
105135         * modules/strnlen: Likewise.
105136         * modules/strpbrk: Likewise.
105137         * modules/strsep: Likewise.
105138         * modules/strstr: Likewise.
105139         * modules/strtok_r: Likewise.
105140         * tests/test-dirname.c: Don't include "strdup.h", since
105141         <string.h> now suffices.
105142         * tests/test-memmem.c: Don't include "memmem.h", since
105143         <string.h> now suffices.
105145 2007-01-25  Bruno Haible  <bruno@clisp.org>
105147         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
105148         *resultp is 0.
105150         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
105151         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
105152         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
105153         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
105155         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
105156         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
105157         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
105158         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
105159         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
105160         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
105162 2007-01-24  Bruno Haible  <bruno@clisp.org>
105164         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
105165         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
105166         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
105167         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
105168         gl_FUNC_FTS_CORE.
105169         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
105170         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
105171         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
105172         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
105173         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
105174         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
105175         gl_FUNC_FCHOWNAT.
105176         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
105177         gl_FUNC_STRFTIME.
105178         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
105179         Reported by Ralf Wildenhues.
105181 2007-01-24  Bruno Haible  <bruno@clisp.org>
105183         Drop AC_REQUIRE calls that are redundant with the module dependencies.
105184         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
105185         gl_GETADDRINFO.
105186         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
105187         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
105188         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
105190 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
105192         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
105193         Don't use 'exit'; just return from 'main'.
105194         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
105196         * lib/fnmatch_.h: Readjust white space and comments to match
105197         glibc, to avoid spurious diffs.
105199 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105201         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
105202         2004-12-01 change by Jakub Jelinek, since this code won't compile
105203         if !LIBC.  Problem reported by Bob Proulx.
105205 2007-01-23  Bruno Haible  <bruno@clisp.org>
105207         * lib/striconveh.c: Include c-strcaseeq.h.
105208         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
105209         * modules/striconveh (Depends-on): Add c-strcaseeq.
105211 2007-01-23  Bruno Haible  <bruno@clisp.org>
105213         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
105215         * modules/c-strcaseeq: New file.
105216         * lib/c-strcaseeq.h: New file.
105218         * modules/streq: New file.
105219         * lib/streq.h: New file.
105221 2007-01-23  Bruno Haible  <bruno@clisp.org>
105223         * modules/striconveha-tests: New file.
105224         * tests/test-striconveha.c: New file.
105226         * lib/striconveha.h: Include <stdbool.h>.
105227         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
105228         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
105229         (mem_iconveha_notranslit): Renamed from mem_iconveha.
105230         (mem_iconveha): New function.
105231         (str_iconveha_notranslit): Renamed from str_iconveha.
105232         (str_iconveha): New function.
105233         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
105234         c-strcase.
105236 2007-01-23  Bruno Haible  <bruno@clisp.org>
105238         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
105239         encodings without forgiving before trying any encoding with handler.
105240         (str_iconveha): Try all encodings without forgiving before trying any
105241         encoding with handler.
105243 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105245         Import the following changes from libc.
105247         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
105249         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
105251         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105253         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
105254         normal_bracket label.
105256         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
105258         [BZ #361]
105259         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
105260         to normal_bracket after fetching the next character.
105262 2007-01-22  Bruno Haible  <bruno@clisp.org>
105264         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
105265         argument.
105266         * lib/striconveh.c (iconv_carefully_1): New function.
105267         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
105268         argument.
105269         (str_cd_iconveh): Update.
105270         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
105271         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
105272         * tests/test-striconveh.c (MAGIC): New macro.
105273         (new_offsets): New function.
105274         (main): Test call with and without offsets.
105276 2007-01-22  Bruno Haible  <bruno@clisp.org>
105278         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
105279         * modules/sys_select (Makefile.am): Likewise.
105280         * modules/sys_socket (Makefile.am): Likewise.
105281         * modules/sys_time (Makefile.am): Likewise.
105283 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
105285         * modules/gettimeofday (License): Change from GPL to LGPL, since
105286         gettimeofday is a library function.
105288 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105290         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
105292 2007-01-21  Bruno Haible  <bruno@clisp.org>
105294         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
105296 2007-01-21  Bruno Haible  <bruno@clisp.org>
105298         * modules/striconveha: New file.
105299         * lib/striconveha.h: New file.
105300         * lib/striconveha.c: New file.
105301         * MODULES.html.sh (Internationalization functions): Add striconveha.
105302         * lib/striconv.c (str_iconv): Optimize the case of an empty input
105303         string.
105304         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
105306 2007-01-21  Bruno Haible  <bruno@clisp.org>
105308         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
105309         * lib/striconveh.c (str_iconveh): Likewise.
105311 2007-01-21  Bruno Haible  <bruno@clisp.org>
105313         * lib/striconveh.h (mem_iconveh): New declaration.
105314         * lib/striconveh.c (mem_iconveh): New function.
105315         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
105317 2007-01-21  Bruno Haible  <bruno@clisp.org>
105319         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
105321         * lib/striconveh.h (mem_cd_iconveh): Change specification.
105322         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
105323         original result buffer.
105324         (str_cd_iconveh): Update.
105325         * tests/test-striconveh.c (main): Update.
105327         * lib/striconv.h (mem_cd_iconv): Change specification.
105328         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
105329         result buffer.
105330         (str_cd_iconv): Update.
105331         * tests/test-striconv.c (main): Update.
105333 2007-01-21  Bruno Haible  <bruno@clisp.org>
105335         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
105337 2007-01-20  Jim Meyering  <jim@meyering.net>
105339         * lib/userspec.c (parse_with_separator): If a user or group string
105340         starts with "+", skip the corresponding name-to-ID look-up, since
105341         such a look-up must fail: user and group names may not include "+".
105343 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105345         * lib/poll.c: Include sys/time.h and time.h unconditionally,
105346         since we now assume the sys_time module.
105347         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
105348         check for sys/time.h; no longer needed.
105349         * modules/poll (Depends-on): Depend on sys_time.
105351 2007-01-18  Bruno Haible  <bruno@clisp.org>
105353         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
105354         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105356         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
105357         gettimeofday.
105359         * tests/test-gettimeofday.c: Include <time.h>.
105360         (dummy): Remove variable.
105362         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
105363         gl_HEADER_SYS_TIME_H.
105364         (gl_HEADER_SYS_TIME_H): New macro.
105366         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
105367         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105368         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
105369         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
105370         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105371         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
105372         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
105373         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105374         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
105375         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
105376         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105378         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
105379         last change; it caused a compilation error when cross-compiling to
105380         Cygwin.
105382 2007-01-18  Jim Meyering  <jim@meyering.net>
105384         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
105385         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
105386         than the race-prone "test -d sys || mkdir sys".
105387         (configure.ac): Use AC_PROG_MKDIR_P.
105388         * modules/sys_select: Likewise.
105389         * modules/sys_socket: Likewise.
105390         * modules/sys_time: Likewise.
105392 2007-01-18  Eric Blake  <ebb9@byu.net>
105394         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
105395         replace gettimeofday.
105396         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
105397         name, to avoid infinite recursion.
105399 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
105401         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
105402         module sys_time.
105403         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
105404         assume timespec.h defines struct timeval.
105405         * lib/settime.c: Likewise.
105406         * lib/utimens.c: Likewise.
105407         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
105408         since we now assume the gettimeofday module.
105409         * lib/tempname.c (__gen_tempname): Likewise.
105410         * lib/gettimeofday.h: Remove.
105411         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
105412         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
105413         Include <time.h>, for 'time()'.
105414         (localtime_buffer_addr): Also use this workaround if
105415         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
105416         to simplify the uses.  All uses changed.
105417         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
105418         that #undef is inside {}, and 'const' follows type name consistently.
105419         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
105420         (gettimeofday): Do not use the maximum possible value for
105421         tv->tv_usec, since that might break usages other than ls.c.
105422         Instead, we'll leave ls.c alone.  This undoes today's patch
105423         by Bruno.  Add a compile-time warning for 1s-clock resolution;
105424         we've never observed the problem but might as well keep the
105425         canary.
105426         * lib/nanosleep.c: Include timespec.h first, for interface check.
105427         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
105428         now assume the sys_time module.
105429         * lib/tempname.c: Likewise.
105430         * lib/timespec.h: Likewise.
105431         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
105432         needed.
105433         * lib/strftime.c: Likewise.
105434         * lib/timespec.h: Likewise.
105435         * lib/posixtm.c: Include posixtm.h first, for interface check.
105436         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
105437         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
105438         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
105439         * lib/sys_time_.h: New file.
105440         * lib/timespec.h (struct timespec): Use long int, not long.
105441         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105442         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
105443         Remove obsolescent call to AC_HEADER_TIME.
105444         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
105445         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
105446         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
105447         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
105448         Likewise.
105449         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
105450         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
105451         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
105452         into the sys_time module.  Check for gettimeofday just once.
105453         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
105454         for gettimeofday signature to just check the signature.  Merely
105455         compile it, since linking doesn't test signature.  Improve test for
105456         whether gettimeofday.o is actually needed.
105457         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
105458         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
105459         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
105460         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105461         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
105462         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
105463         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
105464         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
105465         than worrying about sys/time.h.
105466         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
105467         Don't bother worrying about TIME_WITH_SYS_TIME.
105468         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
105469         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
105470         * m4/sys_time_h.m4: New file.
105471         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
105472         Don't include sys/time.h.  Return from main rather than exiting.
105473         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
105474         all uses changed.
105475         * modules/gethrxtime (Depends-on): Add sys_time.
105476         * modules/gettime (Depends-on): Likewise.
105477         * modules/gettimeofday (Depends-on): Likewise.
105478         * modules/nanosleep (Depends-on): Likewise.
105479         * modules/settime (Depends-on): Likewise.
105480         * modules/tempname (Depends-on): Likewise.
105481         * modules/utimens (Depends-on): Likewise.
105482         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
105483         (Include): Change back to <sys/time.h>.
105484         (Maintainer): Add self.
105485         * modules/sys_time: New file.
105486         * modules/tempname (Depends-on): Add gettimeofday.
105487         * tests/test-gettimeofday.c: Include <sys/time.h>
105488         rather than gettimeofday.h.
105490 2007-01-17  Bruno Haible  <bruno@clisp.org>
105492         * gnulib-tool (func_get_license): Revert last patch. Instead, let
105493         the license default to GPL.
105494         (func_create_testdir): Don't complain if a module is LGPL and its
105495         tests module depends on GPLed modules.
105497 2007-01-17  Bruno Haible  <bruno@clisp.org>
105499         * lib/gettimeofday.c (gettimeofday): Add code for the case
105500         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
105501         maximum possible value for tv->tv_usec, rather than the minimum one.
105503 2005-10-08  Martin Lambers  <marlam@marlam.de>
105504 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
105505 2007-01-16  Bruno Haible  <bruno@clisp.org>
105507         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
105508         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
105509         gl_FUNC_GETTIMEOFDAY.
105510         (Include): Add gettimeofday.h.
105511         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
105512         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
105513         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
105514         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
105515         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
105516         * lib/gettimeofday.h: New file.
105517         * lib/gettimeofday.c: Include <sys/timeb.h>.
105518         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
105519         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
105520         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
105521         fall back on time().
105523         * tests/test-gettimeofday.c: New file.
105524         * modules/gettimeofday-tests: New file.
105526 2007-01-16  Eric Blake  <ebb9@byu.net>
105528         * modules/fnmatch (Depends-on): Depend on wchar.
105529         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
105530         * m4/fnmatch.m4: Likewise.
105531         * modules/mbchar (Makefile.am): Assume <wchar.h>.
105532         * m4/mbchar.m4: Likewise.
105533         * modules/mbswidth (Depends-on): Depend on wchar.
105534         * lib/mbswidth.c: Assume <wchar.h>.
105535         * m4/mbswidth.m4: Likewise.
105536         * modules/quotearg (Depends-on): Depend on wchar.
105537         * lib/quotearg.c: Assume <wchar.h>.
105538         * m4/quotearg.m4: Likewise.
105539         * modules/regex (Depends-on): Depend on wchar.
105540         * lib/regex_internal.h: Assume <wchar.h>.
105541         * m4/regex.m4: Likewise.
105542         * modules/stdint (Depends-on): Depend on wchar.
105543         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
105544         * m4/stdint.m4: Likewise.
105545         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
105546         * modules/strftime (Depends-on): Depend on wchar.
105547         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
105548         * modules/strtol (Depends-on): Depend on wchar.
105549         * lib/strtol.c: Assume <wchar.h>.
105550         * modules/wcwidth (Depends-on): Depend on wchar.
105551         * lib/wcwidth.h: Assume <wchar.h>.
105552         * m4/wcwidth.m4: Likewise.
105554 2007-01-16  Bruno Haible  <bruno@clisp.org>
105556         * modules/csharpexec-script: New, created from...
105557         * modules/csharpexec: ... this.
105559 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
105561         * modules/javaexec-script: New, created from...
105562         * modules/javaexec: ... this.
105564 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105566         * modules/poll (Dependencies): Add sys_select.
105568 2007-01-15  Jim Meyering  <jim@meyering.net>
105570         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
105571         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
105572         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
105573         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
105575 2007-01-15  Bruno Haible  <bruno@clisp.org>
105577         * modules/striconveh: New file.
105578         * lib/striconveh.h: New file.
105579         * lib/striconveh.c: New file.
105580         * MODULES.html.sh (Internationalization functions): Add striconveh.
105582         * modules/striconveh-tests: New file.
105583         * tests/test-striconveh.c: New file.
105585 2007-01-15  Bruno Haible  <bruno@clisp.org>
105587         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
105588         not from GNU libiconv or GNU libc.
105590 2007-01-15  Bruno Haible  <bruno@clisp.org>
105592         * doc/gnulib-intro.texi (Copyright): Explain the different license
105593         terms for module descriptions, autoconf macros, tests, documentation.
105595 2007-01-14  Bruno Haible  <bruno@clisp.org>
105597         * modules/striconv-tests: New file.
105598         * tests/test-striconv.c: New file.
105600 2007-01-14  Bruno Haible  <bruno@clisp.org>
105602         * modules/iconv-tests: New file.
105603         * tests/test-iconv.c: New file.
105605 2007-01-14  Bruno Haible  <bruno@clisp.org>
105607         * gnulib-tool (func_get_license): For test modules, use the license of
105608         the main module.
105610 2007-01-14  Bruno Haible  <bruno@clisp.org>
105612         * modules/iconv (Include): Clarify that <iconv.h> can only be included
105613         if iconv is found to exist.
105615 2007-01-14  Bruno Haible  <bruno@clisp.org>
105617         * modules/c-ctype-tests: New file.
105618         * tests/test-c-ctype.c: New file.
105620 2007-01-14  Bruno Haible  <bruno@clisp.org>
105622         * modules/binary-io-tests: New file.
105623         * tests/test-binary-io.sh: New file.
105624         * tests/test-binary-io.c: New file.
105626 2007-01-14  Bruno Haible  <bruno@clisp.org>
105628         * modules/array-oset-tests: New file.
105629         * tests/test-array_oset.c: New file.
105631 2007-01-14  Bruno Haible  <bruno@clisp.org>
105633         * modules/array-list-tests: New file.
105634         * tests/test-array_list.c: New file.
105636 2007-01-14  Bruno Haible  <bruno@clisp.org>
105638         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
105639         and make.
105640         Reported by Simon Josefsson in
105641         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
105643 2007-01-14  Bruno Haible  <bruno@clisp.org>
105645         * modules/allocsa-tests: New file.
105646         * tests/test-allocsa.c: New file.
105648 2007-01-14  Bruno Haible  <bruno@clisp.org>
105650         * modules/fchdir (Depends-on): Add absolute-header.
105651         * modules/unistd (Depends-on): Likewise.
105653 2006-12-30  Bruno Haible  <bruno@clisp.org>
105655         * modules/fchdir: New file.
105656         * modules/unistd (Files): Add lib/unistd_.h.
105657         (Makefile.am): Generate unistd.h from unistd_.h.
105658         * lib/fchdir.c: New file.
105659         * lib/dirent_.h: New file.
105660         * lib/unistd_.h: New file.
105661         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
105662         * m4/fchdir.m4: New file.
105663         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
105664         (gl_HEADER_UNISTD): Invoke it.
105665         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
105666         function.
105667         * lib/backupfile.c (opendir, closedir): Undefine.
105668         * lib/chown.c (open, close): Undefine.
105669         * lib/clean-temp.c (open, close): Undefine.
105670         * lib/copy-file.c (open, close): Undefine.
105671         * lib/execute.c (open, close): Undefine.
105672         * lib/fsusage.c (open, close): Undefine.
105673         * lib/gc-gnulib.c (open, close): Undefine.
105674         * lib/getcwd.c (opendir, closedir): Undefine.
105675         * lib/glob.c (opendir, closedir): Undefine.
105676         * lib/javacomp.c (open, close): Undefine.
105677         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
105678         * lib/openat-proc.c (open, close): Undefine.
105679         * lib/pagealign_alloc.c (open, close): Undefine.
105680         * lib/pipe.c (open, close): Undefine.
105681         * lib/progreloc.c (open, close): Undefine.
105682         * lib/savedir.c (opendir, closedir): Undefine.
105683         * lib/utime.c (open, close): Undefine.
105684         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
105686 2007-01-10  Bruno Haible  <bruno@clisp.org>
105688         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
105690 2007-01-12  Eric Blake  <ebb9@byu.net>
105692         Provide a robust <wchar.h>.  Further simplifications are now
105693         possible in other modules, but not included here.
105694         * modules/wchar: New module.
105695         * m4/wchar.m4: New file.
105696         * lib/wchar_.h: Likewise.
105697         * modules/mbchar (Depends-on): Depend on wchar, as the first use
105698         of the new module.
105699         * MODULES.html.sh (Extended multibyte and wide character utilities):
105700         New section.
105702 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
105704         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
105705         to a reasonable default for memory allocation.
105706         (xreadlink): Don't allocate a huge buffer, to work around a buggy
105707         file system that reports garbage st_size values for symlinks.
105708         Problem reported by Liyang Hu.
105710 2007-01-11  Simon Josefsson  <simon@josefsson.org>
105712         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
105713         Emacs .#* auto-save files).
105715 2007-01-11  Bruno Haible  <bruno@clisp.org>
105717         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
105718         directory.
105720 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
105722         Use @...@ consistently in lib/wctype_.h.
105723         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
105724         on it being set to 1 or 0.
105725         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
105726         go back to AC_SUBSTing it.
105727         * modules/wctype (Makefile.am): Undo previous change.
105729 2007-01-10  Eric Blake  <ebb9@byu.net>
105731         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
105732         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
105733         * modules/wctype (Makefile.am): Likewise.
105734         Reported by Chris McGuire.
105736 2007-01-10  Jim Meyering  <jim@meyering.net>
105738         fts.c: a small readability/maintainability improvement
105739         * lib/fts.c (fts_read): Make this code slightly more readable and
105740         maintainable by hoisting the "sp->fts_cur = p" assignments to
105741         immediately follow the statements that set P.  Derived from
105742         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
105744 2007-01-10  Eric Blake  <ebb9@byu.net>
105746         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
105747         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
105748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
105749         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
105750         Reported by Chris McGuire.
105752 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105754         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
105755         in sed script.
105757 2007-01-09  Bruno Haible  <bruno@clisp.org>
105759         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
105760         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
105761         variables.
105762         (func_module): Use them.
105764 2007-01-09  Bruno Haible  <bruno@clisp.org>
105766         * modules/unistr/base: New file.
105767         * lib/unistr.h: New file.
105769         * modules/unistr/u8-to-u16: New file.
105770         * lib/unistr/u8-to-u16.c: New file.
105772         * modules/unistr/u8-to-u32: New file.
105773         * lib/unistr/u8-to-u32.c: New file.
105775         * modules/unistr/u16-to-u8: New file.
105776         * lib/unistr/u16-to-u8.c: New file.
105778         * modules/unistr/u16-to-u32: New file.
105779         * lib/unistr/u16-to-u32.c: New file.
105781         * modules/unistr/u32-to-u8: New file.
105782         * lib/unistr/u32-to-u8.c: New file.
105784         * modules/unistr/u32-to-u16: New file.
105785         * lib/unistr/u32-to-u16.c: New file.
105787         * modules/unistr/u8-check: New file.
105788         * modules/unistr/u16-check: New file.
105789         * modules/unistr/u32-check: New file.
105790         * lib/unistr/u8-check.c: New file.
105791         * lib/unistr/u16-check.c: New file.
105792         * lib/unistr/u32-check.c: New file.
105794         * modules/unistr/u8-chr: New file.
105795         * modules/unistr/u16-chr: New file.
105796         * modules/unistr/u32-chr: New file.
105797         * lib/unistr/u8-chr.c: New file.
105798         * lib/unistr/u16-chr.c: New file.
105799         * lib/unistr/u32-chr.c: New file.
105801         * modules/unistr/u8-cmp: New file.
105802         * modules/unistr/u16-cmp: New file.
105803         * modules/unistr/u32-cmp: New file.
105804         * lib/unistr/u8-cmp.c: New file.
105805         * lib/unistr/u16-cmp.c: New file.
105806         * lib/unistr/u32-cmp.c: New file.
105808         * modules/unistr/u8-cpy: New file.
105809         * modules/unistr/u16-cpy: New file.
105810         * modules/unistr/u32-cpy: New file.
105811         * lib/unistr/u8-cpy.c: New file.
105812         * lib/unistr/u16-cpy.c: New file.
105813         * lib/unistr/u32-cpy.c: New file.
105814         * lib/unistr/u-cpy.h: New file.
105816         * modules/unistr/u8-cpy-alloc: New file.
105817         * modules/unistr/u16-cpy-alloc: New file.
105818         * modules/unistr/u32-cpy-alloc: New file.
105819         * lib/unistr/u8-cpy-alloc.c: New file.
105820         * lib/unistr/u16-cpy-alloc.c: New file.
105821         * lib/unistr/u32-cpy-alloc.c: New file.
105822         * lib/unistr/u-cpy-alloc.h: New file.
105824         * modules/unistr/u8-endswith: New file.
105825         * modules/unistr/u16-endswith: New file.
105826         * modules/unistr/u32-endswith: New file.
105827         * lib/unistr/u8-endswith.c: New file.
105828         * lib/unistr/u16-endswith.c: New file.
105829         * lib/unistr/u32-endswith.c: New file.
105830         * lib/unistr/u-endswith.h: New file.
105832         * modules/unistr/u8-mblen: New file.
105833         * modules/unistr/u16-mblen: New file.
105834         * modules/unistr/u32-mblen: New file.
105835         * lib/unistr/u8-mblen.c: New file.
105836         * lib/unistr/u16-mblen.c: New file.
105837         * lib/unistr/u32-mblen.c: New file.
105839         * modules/unistr/u8-mbtouc: New file.
105840         * modules/unistr/u16-mbtouc: New file.
105841         * modules/unistr/u32-mbtouc: New file.
105842         * lib/unistr/u8-mbtouc.c: New file.
105843         * lib/unistr/u16-mbtouc.c: New file.
105844         * lib/unistr/u32-mbtouc.c: New file.
105846         * modules/unistr/u8-mbtouc-safe: New file.
105847         * modules/unistr/u16-mbtouc-safe: New file.
105848         * modules/unistr/u32-mbtouc-safe: New file.
105849         * lib/unistr/u8-mbtouc-safe.c: New file.
105850         * lib/unistr/u16-mbtouc-safe.c: New file.
105851         * lib/unistr/u32-mbtouc-safe.c: New file.
105853         * modules/unistr/u8-move: New file.
105854         * modules/unistr/u16-move: New file.
105855         * modules/unistr/u32-move: New file.
105856         * lib/unistr/u8-move.c: New file.
105857         * lib/unistr/u16-move.c: New file.
105858         * lib/unistr/u32-move.c: New file.
105859         * lib/unistr/u-move.h: New file.
105861         * modules/unistr/u8-next: New file.
105862         * modules/unistr/u16-next: New file.
105863         * modules/unistr/u32-next: New file.
105864         * lib/unistr/u8-next.c: New file.
105865         * lib/unistr/u16-next.c: New file.
105866         * lib/unistr/u32-next.c: New file.
105868         * modules/unistr/u8-prev: New file.
105869         * modules/unistr/u16-prev: New file.
105870         * modules/unistr/u32-prev: New file.
105871         * lib/unistr/u8-prev.c: New file.
105872         * lib/unistr/u16-prev.c: New file.
105873         * lib/unistr/u32-prev.c: New file.
105875         * modules/unistr/u8-set: New file.
105876         * modules/unistr/u16-set: New file.
105877         * modules/unistr/u32-set: New file.
105878         * lib/unistr/u8-set.c: New file.
105879         * lib/unistr/u16-set.c: New file.
105880         * lib/unistr/u32-set.c: New file.
105881         * lib/unistr/u-set.h: New file.
105883         * modules/unistr/u8-startswith: New file.
105884         * modules/unistr/u16-startswith: New file.
105885         * modules/unistr/u32-startswith: New file.
105886         * lib/unistr/u8-startswith.c: New file.
105887         * lib/unistr/u16-startswith.c: New file.
105888         * lib/unistr/u32-startswith.c: New file.
105889         * lib/unistr/u-startswith.h: New file.
105891         * modules/unistr/u8-stpcpy: New file.
105892         * modules/unistr/u16-stpcpy: New file.
105893         * modules/unistr/u32-stpcpy: New file.
105894         * lib/unistr/u8-stpcpy.c: New file.
105895         * lib/unistr/u16-stpcpy.c: New file.
105896         * lib/unistr/u32-stpcpy.c: New file.
105897         * lib/unistr/u-stpcpy.h: New file.
105899         * modules/unistr/u8-stpncpy: New file.
105900         * modules/unistr/u16-stpncpy: New file.
105901         * modules/unistr/u32-stpncpy: New file.
105902         * lib/unistr/u8-stpncpy.c: New file.
105903         * lib/unistr/u16-stpncpy.c: New file.
105904         * lib/unistr/u32-stpncpy.c: New file.
105905         * lib/unistr/u-stpncpy.h: New file.
105907         * modules/unistr/u8-strcat: New file.
105908         * modules/unistr/u16-strcat: New file.
105909         * modules/unistr/u32-strcat: New file.
105910         * lib/unistr/u8-strcat.c: New file.
105911         * lib/unistr/u16-strcat.c: New file.
105912         * lib/unistr/u32-strcat.c: New file.
105913         * lib/unistr/u-strcat.h: New file.
105915         * modules/unistr/u8-strchr: New file.
105916         * modules/unistr/u16-strchr: New file.
105917         * modules/unistr/u32-strchr: New file.
105918         * lib/unistr/u8-strchr.c: New file.
105919         * lib/unistr/u16-strchr.c: New file.
105920         * lib/unistr/u32-strchr.c: New file.
105922         * modules/unistr/u8-strcmp: New file.
105923         * modules/unistr/u16-strcmp: New file.
105924         * modules/unistr/u32-strcmp: New file.
105925         * lib/unistr/u8-strcmp.c: New file.
105926         * lib/unistr/u16-strcmp.c: New file.
105927         * lib/unistr/u32-strcmp.c: New file.
105929         * modules/unistr/u8-strcpy: New file.
105930         * modules/unistr/u16-strcpy: New file.
105931         * modules/unistr/u32-strcpy: New file.
105932         * lib/unistr/u8-strcpy.c: New file.
105933         * lib/unistr/u16-strcpy.c: New file.
105934         * lib/unistr/u32-strcpy.c: New file.
105935         * lib/unistr/u-strcpy.h: New file.
105937         * modules/unistr/u8-strcspn: New file.
105938         * modules/unistr/u16-strcspn: New file.
105939         * modules/unistr/u32-strcspn: New file.
105940         * lib/unistr/u8-strcspn.c: New file.
105941         * lib/unistr/u16-strcspn.c: New file.
105942         * lib/unistr/u32-strcspn.c: New file.
105943         * lib/unistr/u-strcspn.h: New file.
105945         * modules/unistr/u8-strdup: New file.
105946         * modules/unistr/u16-strdup: New file.
105947         * modules/unistr/u32-strdup: New file.
105948         * lib/unistr/u8-strdup.c: New file.
105949         * lib/unistr/u16-strdup.c: New file.
105950         * lib/unistr/u32-strdup.c: New file.
105951         * lib/unistr/u-strdup.h: New file.
105953         * modules/unistr/u8-strlen: New file.
105954         * modules/unistr/u16-strlen: New file.
105955         * modules/unistr/u32-strlen: New file.
105956         * lib/unistr/u8-strlen.c: New file.
105957         * lib/unistr/u16-strlen.c: New file.
105958         * lib/unistr/u32-strlen.c: New file.
105959         * lib/unistr/u-strlen.h: New file.
105961         * modules/unistr/u8-strmblen: New file.
105962         * modules/unistr/u16-strmblen: New file.
105963         * modules/unistr/u32-strmblen: New file.
105964         * lib/unistr/u8-strmblen.c: New file.
105965         * lib/unistr/u16-strmblen.c: New file.
105966         * lib/unistr/u32-strmblen.c: New file.
105968         * modules/unistr/u8-strmbtouc: New file.
105969         * modules/unistr/u16-strmbtouc: New file.
105970         * modules/unistr/u32-strmbtouc: New file.
105971         * lib/unistr/u8-strmbtouc.c: New file.
105972         * lib/unistr/u16-strmbtouc.c: New file.
105973         * lib/unistr/u32-strmbtouc.c: New file.
105975         * modules/unistr/u8-strncat: New file.
105976         * modules/unistr/u16-strncat: New file.
105977         * modules/unistr/u32-strncat: New file.
105978         * lib/unistr/u8-strncat.c: New file.
105979         * lib/unistr/u16-strncat.c: New file.
105980         * lib/unistr/u32-strncat.c: New file.
105981         * lib/unistr/u-strncat.h: New file.
105983         * modules/unistr/u8-strncmp: New file.
105984         * modules/unistr/u16-strncmp: New file.
105985         * modules/unistr/u32-strncmp: New file.
105986         * lib/unistr/u8-strncmp.c: New file.
105987         * lib/unistr/u16-strncmp.c: New file.
105988         * lib/unistr/u32-strncmp.c: New file.
105990         * modules/unistr/u8-strncpy: New file.
105991         * modules/unistr/u16-strncpy: New file.
105992         * modules/unistr/u32-strncpy: New file.
105993         * lib/unistr/u8-strncpy.c: New file.
105994         * lib/unistr/u16-strncpy.c: New file.
105995         * lib/unistr/u32-strncpy.c: New file.
105996         * lib/unistr/u-strncpy.h: New file.
105998         * modules/unistr/u8-strnlen: New file.
105999         * modules/unistr/u16-strnlen: New file.
106000         * modules/unistr/u32-strnlen: New file.
106001         * lib/unistr/u8-strnlen.c: New file.
106002         * lib/unistr/u16-strnlen.c: New file.
106003         * lib/unistr/u32-strnlen.c: New file.
106004         * lib/unistr/u-strnlen.h: New file.
106006         * modules/unistr/u8-strpbrk: New file.
106007         * modules/unistr/u16-strpbrk: New file.
106008         * modules/unistr/u32-strpbrk: New file.
106009         * lib/unistr/u8-strpbrk.c: New file.
106010         * lib/unistr/u16-strpbrk.c: New file.
106011         * lib/unistr/u32-strpbrk.c: New file.
106012         * lib/unistr/u-strpbrk.h: New file.
106014         * modules/unistr/u8-strrchr: New file.
106015         * modules/unistr/u16-strrchr: New file.
106016         * modules/unistr/u32-strrchr: New file.
106017         * lib/unistr/u8-strrchr.c: New file.
106018         * lib/unistr/u16-strrchr.c: New file.
106019         * lib/unistr/u32-strrchr.c: New file.
106021         * modules/unistr/u8-strspn: New file.
106022         * modules/unistr/u16-strspn: New file.
106023         * modules/unistr/u32-strspn: New file.
106024         * lib/unistr/u8-strspn.c: New file.
106025         * lib/unistr/u16-strspn.c: New file.
106026         * lib/unistr/u32-strspn.c: New file.
106027         * lib/unistr/u-strspn.h: New file.
106029         * modules/unistr/u8-strstr: New file.
106030         * modules/unistr/u16-strstr: New file.
106031         * modules/unistr/u32-strstr: New file.
106032         * lib/unistr/u8-strstr.c: New file.
106033         * lib/unistr/u16-strstr.c: New file.
106034         * lib/unistr/u32-strstr.c: New file.
106035         * lib/unistr/u-strstr.h: New file.
106037         * modules/unistr/u8-strtok: New file.
106038         * modules/unistr/u16-strtok: New file.
106039         * modules/unistr/u32-strtok: New file.
106040         * lib/unistr/u8-strtok.c: New file.
106041         * lib/unistr/u16-strtok.c: New file.
106042         * lib/unistr/u32-strtok.c: New file.
106043         * lib/unistr/u-strtok.h: New file.
106045         * modules/unistr/u8-uctomb: New file.
106046         * modules/unistr/u16-uctomb: New file.
106047         * modules/unistr/u32-uctomb: New file.
106048         * lib/unistr/u8-uctomb.c: New file.
106049         * lib/unistr/u16-uctomb.c: New file.
106050         * lib/unistr/u32-uctomb.c: New file.
106052         * MODULES.html.sh (Unicode string functions): Add the new modules.
106054 2007-01-08  Bruno Haible  <bruno@clisp.org>
106056         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
106057         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
106058         subdirectories.
106060 2007-01-08  Karl Berry  <karl@gnu.org>
106062         * doc/error.texi: mention that main() fns must set program_name
106063         when progname is used.
106065 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
106067         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
106068         WCTYPE_H is empty, for the benefit of builds from non-distclean
106069         directories.  Problem reported by Eric Blake in
106070         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
106072 2007-01-08  Bruno Haible  <bruno@clisp.org>
106074         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
106075         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
106076         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
106077         PROVIDE_CANONICALIZE_FILENAME_MODE.
106078         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
106080 2007-01-08  Bruno Haible  <bruno@clisp.org>
106082         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
106083         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
106084         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
106085         * lib/fts.c: Likewise.
106086         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
106088 2006-12-25  Bruno Haible  <bruno@clisp.org>
106090         * modules/utf8-ucs4-safe: New file.
106091         * lib/utf8-ucs4-safe.h: New file.
106092         * lib/unistr/utf8-ucs4-safe.c: New file.
106094         * modules/utf16-ucs4-safe: New file.
106095         * lib/utf16-ucs4-safe.h: New file.
106096         * lib/unistr/utf16-ucs4-safe.c: New file.
106098         * MODULES.html.sh (Unicode string functions): Add the new modules.
106100 2007-01-08  Bruno Haible  <bruno@clisp.org>
106102         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
106103         (Depends-on): Add unitypes.
106104         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106105         (u8_mbtouc_aux): Move out to separate file.
106106         (u8_mbtouc): Use ucs4_t, uint8_t types.
106107         * lib/unistr/utf8-ucs4.c: New file.
106109         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
106110         (Depends-on): Add unitypes.
106111         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
106112         (u16_mbtouc_aux): Move out to separate file.
106113         (u16_mbtouc): Use ucs4_t, uint16_t types.
106114         * lib/unistr/utf16-ucs4.c: New file.
106116         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
106117         (Depends-on): Add unitypes.
106118         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
106119         (u8_uctomb_aux): Move out to separate file.
106120         (u8_uctomb): Use ucs4_t, uint8_t types.
106121         * lib/unistr/ucs4-utf8.c: New file.
106123         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
106124         (Depends-on): Add unitypes.
106125         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
106126         (u16_uctomb_aux): Move out to separate file.
106127         (u16_uctomb): Use ucs4_t, uint16_t types.
106128         * lib/unistr/ucs4-utf16.c: New file.
106130 2006-12-25  Bruno Haible  <bruno@clisp.org>
106132         * modules/unitypes: New file.
106133         * lib/unitypes.h: New file.
106134         * MODULES.html.sh (func_all_modules): New section "Unicode string
106135         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
106136         this section. Add unitypes.
106138 2007-01-08  Bruno Haible  <bruno@clisp.org>
106140         Avoid variable names that conflict with those from libtool.
106141         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
106142         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
106143         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
106144         library_names_spec to acl_library_names_spec, hardcode_* to
106145         acl_hardcode_*.
106146         Reported by Ralf Wildenhues.
106148 2007-01-08  Bruno Haible  <bruno@clisp.org>
106150         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
106151         definition.
106152         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
106153         definition.
106154         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
106155         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
106156         definition.
106157         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
106158         definition.
106159         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
106160         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
106161         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
106162         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
106163         definition.
106164         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
106165         definition.
106166         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
106167         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
106168         GC_USE_<algorithm>.
106169         * lib/gc-libgcrypt.c: Likewise.
106170         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
106171         * modules/gc-arctwo (configure.ac): Likewise.
106172         * modules/gc-des (configure.ac): Likewise.
106173         * modules/gc-hmac-md5 (configure.ac): Likewise.
106174         * modules/gc-hmac-sha1 (configure.ac): Likewise.
106175         * modules/gc-md2 (configure.ac): Likewise.
106176         * modules/gc-md4 (configure.ac): Likewise.
106177         * modules/gc-md5 (configure.ac): Likewise.
106178         * modules/gc-random (configure.ac): Likewise.
106179         * modules/gc-rijndael (configure.ac): Likewise.
106180         * modules/gc-sha1 (configure.ac): Likewise.
106182 2007-01-08  Bruno Haible  <bruno@clisp.org>
106184         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
106185         macro definition.
106186         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
106187         definition.
106188         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
106189         definition.
106190         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
106191         * modules/fcntl-safer (configure.ac): Likewise.
106192         * modules/fopen-safer (configure.ac): Likewise.
106193         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
106194         GNULIB_FWRITEERROR macro definition.
106196 2007-01-08  Bruno Haible  <bruno@clisp.org>
106198         * m4/gnulib-common.m4: New file.
106199         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
106200         (func_get_filelist): Add m4/gnulib-common.m4.
106202 2007-01-08  Bruno Haible  <bruno@clisp.org>
106204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
106205         command.
106207 2007-01-08  Jim Meyering  <jim@meyering.net>
106209         Use a more robust test for a "can't happen" condition.
106210         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
106211         narrowed the st_size value.  Presuming the "can't happen" condition
106212         is true, that narrowing could conceivably convert an invalid st_size
106213         value into a valid one.  Instead, use a change based on Matthew
106214         Woehlke's original patch.
106216         Slight readability improvement: use an assert-like macro
106217         in place of literal "abort ()" uses.
106218         * lib/fts.c (fts_assert): Define.
106219         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
106220         Use this macro instead of a bare 'abort'.
106222 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
106224         Don't worry about using IRIX 5.3's wctype.h broken definitions;
106225         simply work around them.
106226         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
106227         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
106228         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
106229         declaring.
106230         Don't bother to define as macros, since the standard doesn't require it.
106231         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
106232         longer worry about IRIX 5.3.
106233         (HAVE_WCTYPE_CTMP_BUG): Remove.
106235 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
106237         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
106238         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
106239         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
106240         Problems reported by Georg Schwarz for IRIX 5.3.
106242         * gnulib-tool (autoconf_minversion): Take the maximum version number
106243         found, not the minimum.  Problem reported by James Youngman.
106245 2007-01-03  Karl Berry  <karl@gnu.org>
106247         * doc/error.texi: new file, explaining interaction with progname.
106248         * doc/gnulib.texi: include it.  Update copyright.
106250 2007-01-03  Simon Josefsson  <simon@josefsson.org>
106252         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
106253         AC_CANONICAL_HOST, to improve autobuild outputs.
106255 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
106256             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
106258         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
106259         sockets, server sockets, and other file descriptors.  Count errors
106260         to compute the return value.  Reorder the code a bit to be easier
106261         to follow.  Don't set event bits that were not requested (except
106262         POLLERR and POLLHUP).
106264 2007-01-01  Bruno Haible  <bruno@clisp.org>
106266         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
106268 2007-01-03  Jim Meyering  <jim@meyering.net>
106270         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
106272 2007-01-02  Bruno Haible  <bruno@clisp.org>
106274         * modules/settime (Include): Require timespec.h.
106275         * modules/nanosleep (Include): Likewise.
106277 2007-01-01  Bruno Haible  <bruno@clisp.org>
106279         * gnulib-tool (func_emit_copyright_notice): Bump year.
106280         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
106282 2007-01-01  Bruno Haible  <bruno@clisp.org>
106284         Improve support for OpenBSD.
106285         * build-aux/config.rpath (libname_spec): Export.
106286         (library_names_spec): New variable. Export.
106287         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
106288         library_names_spec from the config.rpath output. Locate shared library
106289         through the name pattern in library_names_spec.
106291 2007-01-01  Eric Blake  <ebb9@byu.net>
106293         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
106295 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
106297         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
106298         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
106299         assume the C locale, and avoid an "eval" that could cause trouble.
106300         Problem with SORT reported by Bob Proulx.
106302         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
106303         Define.  Trivial patch from Henning Nielsen Lund, originally
106304         sent to bug-grep@gnu.org today.
106306 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
106308         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
106309         struct stat.  Problem reported by Henning Nielsen Lund.
106310         * lib/acl.c: Include acl.h first, to check interface.  Don't
106311         bother to include sys/types.h and sys/stat.h again.
106313 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
106315         Import the following change from libc; problem reported by
106316         Sven Verdoolaege.
106318         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
106320         [BZ #1373]
106321         * lib/argp.h: Remove __NTH for __argp_usage inline function.
106323 2006-12-28  Jim Meyering  <jim@meyering.net>
106325         * build-aux/announce-gen: Do not assume that the package
106326         builds any of tar.gz, tar.bz2, and .xdelta files.
106327         Suggestion from Simon Josefsson.
106329 2006-12-28  Simon Josefsson  <simon@josefsson.org>
106331         * modules/announce-gen: New file.
106333 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
106335         * lib/mbchar.h: Just include <wctype.h>; the wctype module
106336         handles its gotchas now.
106337         * lib/mbswidth.c: Likewise.
106338         * lib/wcwidth.h: Likewise.
106339         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
106340         and iswcntrl; the wctype module does this stuff now.
106341         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
106342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106343         * modules/mbchar (Depends-on): Add wctype.
106344         * modules/mbswidth (Depends-on): Likewise.
106345         * modules/wcwidth (Depends-on): Likewise.
106347 2006-12-27  Eric Blake  <ebb9@byu.net>
106349         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
106350         module uses more than what <wctype.h> is required to provide.
106352 2006-12-26  Eric Blake  <ebb9@byu.net>
106354         * gnulib-tool (sed_extract_prog): Avoid space-tab.
106356 2006-12-26  Eric Blake  <ebb9@byu.net>
106358         * modules/absolute-header: New module.
106359         * modules/fcntl (Depends-on): Depend on it.
106360         * modules/inttypes (Depends-on): Likewise.
106361         * modules/stdint (Depends-on): Likewise.
106362         * modules/sys_stat (Depends-on): Likewise.
106363         * modules/wctype (Depends-on): Likewise.
106364         * MODULES.html.sh (Support for building libraries and
106365         executables): Document it.
106367 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
106369         * gnulib-tool (SED): Remove, undoing previous change.
106370         The problem was that it broke coreutils on Solaris, because
106371         "sed --posix" leaked into a makefile.
106372         (sed): New alias, if 'alias' and GNU sed.
106374 2006-12-24  Jim Meyering  <jim@meyering.net>
106376         Work around an fchownat bug in glibc-2.4:
106377         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
106378         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
106379         in spite of the -P option.
106380         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
106381         New macros.
106382         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
106383         * modules/openat (Files): Add lib/fchownat.c.
106384         * lib/openat.c (fchownat): Don't define here.  Move to...
106385         * lib/fchownat.c: ...this new file.
106387 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
106389         Fix bug reported by Bruno Haible in
106390         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
106391         where quotearg.c didn't compile on Mac OS X 10.2 because it
106392         lacks <wchar.h> and wint_t.
106393         * lib/wctype_.h (__wctype_wint_t): New type.
106394         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
106395         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
106396         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
106397         Arg is now of type __wctype_wint_t, not wint_t.
106398         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
106399         substitute HAVE_WINT_T.
106400         * modules/wctype (Files): Add m4/wint_t.m4.
106401         (wctype.h): Substitute HAVE_WINT_T.
106403 2006-12-23  Bruno Haible  <bruno@clisp.org>
106405         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
106407 2006-12-23  Bruno Haible  <bruno@clisp.org>
106409         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
106410         S_ISLNK.
106411         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
106412         mingw.
106414 2006-12-22  Bruno Haible  <bruno@clisp.org>
106416         * lib/copy-file.c: Include acl.h.
106417         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
106418         Close the file descriptors only after being done with copy_acl.
106419         * modules/copy-file (Depends-on): Add acl.
106421 2006-12-22  Bruno Haible  <bruno@clisp.org>
106423         * gnulib-tool (SED): New variable.
106424         Use $SED instead of sed everywhere.
106426 2006-12-22  Bruno Haible  <bruno@clisp.org>
106428         * modules/no-c++: New file.
106429         * m4/no-c++.m4: New file.
106430         * MODULES.html.sh (Support for building libraries and executables):
106431         Add no-c++.
106433 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
106435         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
106436         Include <limits.h>, and use its INT_MAX to rewrite the
106437         j loop so that it does not overflow 'int'.  Problem reported by
106438         Ralf Wildenhues in
106439         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
106440         Play it safe by shifting left by 1 rather than multiplying by 2,
106441         as GCC is less likely to optimize this away when the value
106442         is signed (when it assumes overflow leads to undefined behavior).
106443         Also, don't assume time_t uses two's complement.
106445 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
106447         * MODULES.html.sh: New module wctype.
106448         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
106449         * lib/fnmatch.c: Don't bother to include <wchar.h> before
106450         <wctype.h>, since the new wctype module should fix this.
106451         * lib/quotearg.c: Include <wctype.h> unconditionally, since
106452         the wctype module should arrange for it.
106453         * lib/regex_internal.h: Likewise.
106454         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
106455         since the wctype module should handle this now.
106456         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
106457         * modules/fnmatch (Depends-on): Add wctype.
106458         * modules/quotearg (Depends-on): Likewise.
106459         * modules/regex (Depends-on): Likewise.
106461 2006-12-19  Bruno Haible  <bruno@clisp.org>
106463         * lib/strdup.h [C++]: Wrap definitions in extern "C".
106464         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
106466 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106468         * modules/savewd (Depends-on): Fix dependency on fcntl.
106470 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106472         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
106473         conforms to C99, rather than relying on the user's environment
106474         setting of STDINT_H.
106476 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
106477         and Eric Blake  <ebb9@byu.net>
106479         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
106480         This is more consistent with the other defines here.
106481         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
106482         Port to z/OS.  Problem reported by Paul Gilmartin.
106483         Change local vars to use gl_ prefix rather than ac_.
106484         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
106485         with other defines.
106486         * modules/double-slash-root: New module.
106487         * modules/dirname (Files): Remove m4/double-slash-root.m4.
106488         (Depends-on): Add double-slash-root.
106489         * MODULES.html.sh (File system functions): Mention new module.
106491 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
106493         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
106494         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
106495         This is for the benefit of gzip, which doesn't do i18n.
106497 2006-12-12  Jim Meyering  <jim@meyering.net>
106499         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
106500         Reported by Andreas Schwab <schwab@suse.de>.
106502 2006-12-12  Bruno Haible  <bruno@clisp.org>
106504         Merge these changes.
106505         2006-09-05  Bruno Haible  <bruno@clisp.org>
106506         * lib/iconvme.c (iconv_string): No need to save and restore errno when
106507         iconv_alloc succeeded.
106508         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
106509         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
106510         test for " && dest " at the end - dest is always != NULL there. Call
106511         iconv with 4xNULL arguments initially, to reset the state. Call iconv
106512         with 2xNULL arguments, also to flush the state storage. Handle the
106513         IRIX iconv behaviour. Realloc the final result, to throw away unused
106514         memory.
106516 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
106518         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
106519         and fchmodat unconditionally, since glibc 2.4 has them.
106520         Problem reported by Arkadiusz Miskiewicz.
106522 2006-12-10  Bruno Haible  <bruno@clisp.org>
106524         * gnulib-tool (func_import): Show the include files only for those
106525         modules that are copied and specified.
106526         Reported by Karl Berry.
106528 2006-12-08  Jim Meyering  <jim@meyering.net>
106530         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
106531         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
106533         * build-aux/announce-gen: Add two new options, both optional:
106534         --bootstrap-tools=TOOL_LIST
106535               a comma-separated list of tools, e.g.,
106536               autoconf,automake,bison,gnulib
106537         --gnulib-snapshot-date=DATE
106538               if gnulib is in the bootstrap tool list,
106539               then report this as the snapshot date.
106540               If not specified, use the current date/time.
106541               If you specify a date here, be sure it's UTC.
106543 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106545         * tests/test-argp-2.sh: Fix test to match actual output.
106546         (func_compare): Fix sed script to be portable.
106548 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
106550         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
106551         workaround for this case.  It is not autoconfigured now; offhand
106552         it's hard to see how to autoconfigure it.
106554 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
106556         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
106557         a directory that is about to be chowned.  Such a directory's
106558         initial file permissions should permit the owner only and this
106559         should not be changed until after the chown, since the group and
106560         other bits would be incorrect if they granted permission before
106561         the chown.
106563         Fix porting problem for iswctype reported by Georg Schwarz in:
106564         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
106565         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
106566         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
106567         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
106568         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
106570 2006-12-03  Jim Meyering  <jim@meyering.net>
106572         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
106573         p->fts_statp may not yet be defined.
106574         (fts_read): Instead, set it in the caller, once p->fts_statp is
106575         sure to be defined, and corresponds to a top-level directory.
106576         This bug made du -x fail.  Here's the coreutils test case:
106577         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
106578         Reported by Mike Frysinger.
106580 2006-12-01  Jim Meyering  <jim@meyering.net>
106582         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
106583         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
106584         Reported by Simon Josefsson.
106586 2006-11-30  Jim Meyering  <jim@meyering.net>
106588         * m4/warning.m4: Use the all-permissive copyright notice
106589         recommended by RMS (rather than LGPL).
106590         * m4/vararrays.m4: Likewise.
106591         * m4/flexmember.m4: Likewise.
106593 2006-11-29  Bruno Haible  <bruno@clisp.org>
106595         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106596         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
106597         using +=.
106598         Reported by Simon Josefsson <simon@josefsson.org>.
106600 2006-11-28  James Youngman  <jay@gnu.org>
106602         * README: Advise users that they might find the bug-gnulib@gnu.org
106603         and autotools-announce@gnu.org mailing lists useful.
106605 2006-11-28  Bruno Haible  <bruno@clisp.org>
106607         * m4/ptrdiff_max.m4: Remove file.
106609 2006-11-21  Bruno Haible  <bruno@clisp.org>
106611         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
106612         _AC_COMPUTE_INT.
106613         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106614         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
106615         _AC_COMPUTE_INT.
106616         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106617         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
106618         _AC_COMPUTE_INT.
106619         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106621 2006-11-28  Jim Meyering  <jim@meyering.net>
106623         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
106624         warning from "gcc -Wshadow" about shadowing the builtin.
106626 2006-11-27  Bruno Haible  <bruno@clisp.org>
106628         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
106629         _AC_COMPUTE_INT.
106630         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
106632 2006-11-27  Bruno Haible  <bruno@clisp.org>
106633             Paul Eggert  <eggert@cs.ucla.edu>
106635         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
106637 2006-11-26  Bruno Haible  <bruno@clisp.org>
106639         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
106640         noinst_LTLIBRARIES.
106642 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
106643             Bruno Haible  <bruno@clisp.org>
106645         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
106646         if compiling with "gcc -ansi".
106648 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
106650         Fix some incompatibilities with gcc -ansi -pedantic.
106651         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
106652         if compiling pedantically with GCC, unless it's C99 or later.
106653         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
106654         it mishandles gcc -ansi -pedantic as well.
106655         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
106656         if gcc -pedantic.
106657         * lib/regexec.c (check_node_accept_bytes): Don't use auto
106658         initializers for struct if -pedantic, unless it's C99 or later.
106660 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
106662         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
106663         Don't close an fd more than once. Identical atimes indicate
106664         success, not failure.
106666 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
106668         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
106670 2006-11-23  Jim Meyering  <jim@meyering.net>
106672         * build-aux/announce-gen: New file.  From coreutils.
106674 2006-11-22  Jim Meyering  <jim@meyering.net>
106676         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
106677         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
106678         (fts_read): Use a temporary to narrow the overused st_size member
106679         before using it in a switch statement.  Reported by Matthew Woehlke.
106681         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
106682         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
106684 2006-11-20  Bruno Haible  <bruno@clisp.org>
106686         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
106687         changequote instead of pairs of brackets.
106688         Reported by Andreas Schwab <schwab@suse.de>.
106690 2006-11-21  Jim Meyering  <jim@meyering.net>
106692         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
106693         so as to remain compatible with older compilers.
106694         Patch from Michael Deutschmann.
106696 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106698         * MODULES.html.sh (File system functions): Add openat.
106700         * lib/openat.h (rpl_fstatat): New macro, if
106701         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
106702         (fstatat): Define to rpl_fstatat under the same conditions,
106703         unless COMPILING_FSTATAT.
106704         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
106705         seems to have the bug.
106706         * lib/fstatat.c: New file.
106707         * modules/openat (Files): Add it.
106709 2006-11-20  Bruno Haible  <bruno@clisp.org>
106711         * Makefile: New file.
106713 2006-11-20  Jim Meyering  <jim@meyering.net>
106715         The beginnings of syntax-related checks for gnulib.
106716         * lib/Makefile: New file.
106717         * lib/t-idcache: New script.  Ensure that the two halves of
106718         idcache.c stay in sync.
106720         * lib/idcache.c: Adjust comments in user- and group- portions to
106721         be more accurate, and to be consistent with one another.
106723 2006-11-20  Jim Meyering  <jim@meyering.net>
106725         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
106726         continue using the flexible array member (thus, this module performs
106727         half as many malloc calls), with the addition that...
106728         (getgroup, getuser): Consistently record a non-match via an empty
106729         "name" string, and map an empty string match to a NULL return value.
106730         * modules/idcache (Depends-on): Re-add flexmember.
106732         * lib/idcache.c (getuser): Remove all uses of the register keyword.
106733         (getuidbyname, getgroup, getgidbyname): Likewise.
106735         Use cleaner syntax: NULL rather than 0.
106736         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
106738 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
106740         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
106741         It mishandled the case where the group was missing.
106742         Problem reported by Greg Schafer.
106743         * modules/idcache: Likewise.
106745 2006-11-18  Jim Meyering  <jim@meyering.net>
106747         * check-module (%exempt_header): Add exception for some
106748         conditionally-included headers.
106750         * modules/i-ring (Depends-on): Add verify.
106751         (License): Change to LGPL.
106753 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
106755         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
106756         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
106757         and inttostr.h.  Use snprintf rather than uinttostr, so that
106758         LGPLed code doesn't depend on GPLed.
106760 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
106762         * modules/inline (License): Change from GPL to LGPL.
106764 2006-11-17  Jim Meyering  <jim@meyering.net>
106766         * modules/d-type (License): Switch to LGPL.
106768 2006-11-15  Bruno Haible  <bruno@clisp.org>
106770         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
106772 2006-11-15  Eric Blake  <ebb9@byu.net>
106774         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
106775         the module dependency.
106777 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106778             Bruno Haible  <bruno@clisp.org>
106780         * gnulib-tool (func_create_testdir): Add license consistency check.
106782 2006-11-15  Eric Blake  <ebb9@byu.net>
106784         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
106785         random "(cached)" in configure output.
106787 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106789         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
106790         test for conforming inttypes.h is both announced and cached.
106792         * MODULES.html.sh (seen_modules, seen_files): New variables.
106793         (func_module): Rewrite to use a few less gnulib-tool and sed
106794         invocations.  Avoid a couple of quadratic algorithms for ...
106795         (missed_modules, missed_files): ... these, with ...
106796         (func_append, func_tmpdir): ... these new functions, from
106797         gnulib-tool.  Analogously, install traps for cleanup.
106799         * tests/test-gc.c (main): Remove unused variables.
106800         * tests/test-read-file.c: Include stdlib.h, for 'free'.
106802 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
106804         * modules/inttostr (License): Change to LGPL.
106806 2006-11-14  Eric Blake  <ebb9@byu.net>
106808         * modules/tempname (License): Change to LGPL.
106810 2006-11-14  Eric Blake  <ebb9@byu.net>
106812         * doc/functions.texi (Function Portability): *printf functions on
106813         Cygwin now understand all POSIX size specifiers.
106815 2006-11-14  Bruno Haible  <bruno@clisp.org>
106817         * modules/c-ctype (License): Change to LGPL.
106819 2006-11-12  Bruno Haible  <bruno@clisp.org>
106821         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
106822         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
106823         for GNOME libraries, for which the include files are installed in
106824         subdirectories of $prefix/include.
106826 2006-11-12  Bruno Haible  <bruno@clisp.org>
106828         * m4/lib-link.m4: Require at least autoconf-2.54.
106829         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
106830         name to underscores for the --with option.
106832 2006-11-13  Bruno Haible  <bruno@clisp.org>
106834         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
106835         the tests directory.
106836         Reported by Ralf Wildenhues.
106838 2006-11-13  Bruno Haible  <bruno@clisp.org>
106840         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
106841         (func_emit_initmacro_end): Undo the override here.
106842         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
106843         Works around the famous automake error in coreutils.
106845 2006-11-13  Eric Blake  <ebb9@byu.net>
106847         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
106848         element, not its node.
106850 2006-11-12  Bruno Haible  <bruno@clisp.org>
106852         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
106853         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
106855 2006-11-12  Bruno Haible  <bruno@clisp.org>
106857         * gnulib-tool: New option --local-symlink.
106858         (func_usage): Document it.
106859         (lsymbolic): New variable.
106860         (func_import, func_create_testdir): If --symlink was not specified,
106861         test whether --local-symlink was specified and the file comes from
106862         the local_gnulib_dir.
106864 2006-11-12  Bruno Haible  <bruno@clisp.org>
106866         * gnulib-tool (func_ln): New function.
106867         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
106869 2006-11-12  Bruno Haible  <bruno@clisp.org>
106871         Finish support for source files in subdirectories.
106872         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
106873         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
106874         AUTOMAKE_OPTIONS.
106875         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
106877 2006-11-12  Bruno Haible  <bruno@clisp.org>
106879         * gnulib-tool (func_get_automake_snippet): Synthesize also an
106880         EXTRA_lib_SOURCES augmentation.
106881         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
106883 2006-11-12  Jim Meyering  <jim@meyering.net>
106885         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
106886         file descriptors.  This also averts a failure on systems with
106887         native openat support when a traversed directory lacks "x" access.
106888         * lib/fts_.h: Include "i-ring.h"
106889         (struct FTS) [fts_fd_ring]: New member.
106890         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
106891         (FCHDIR): Add parentheses.
106892         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
106893         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
106894         When descending, rather than simply closing the previous
106895         fts_cwd_fd value, push that file descriptor onto the ring.
106896         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
106897         (fts_open): Initialize the new fd_ring member.
106898         (fts_close): Clear the ring.
106899         (fts_safe_changedir): When possible, use our new fd_ring to skip
106900         the diropen and fstat and dev/ino comparison that would normally
106901         accompany a virtual `chdir ("..")'.
106903         * modules/fts (Depends-on): Add i-ring.
106904         * modules/i-ring: New module.
106905         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
106906         * m4/i-ring.m4: New file.
106908 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106910         * gnulib-tool (func_create_testdir): Fix replacement of
106911         `build-aux' in configure.ac.  Run autotools in gltests
106912         subdirectory.
106913         (func_create_testdir, func_create_megatestdir, test): There is
106914         no need for '--force' in most autotool invocations in a new
106915         tree.  Actually fail the whole test if any of the tools, or the
106916         configure or make stages fail.
106918         Sync from Automake.
106919         * build-aux/gnupload: Revert last change.  Add pointer to upload
106920         instructions of the GNU Maintenance Instructions.
106921         Suggestion by Karl Berry.
106923 2006-11-10  Jim Meyering  <jim@meyering.net>
106925         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
106927 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106929         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
106930         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
106931         (bind_textdomain_codeset) [! ENABLE_NLS]:
106932         Evaluate all the arguments.  That way, callers get compatible behavior
106933         if the arguments have side effects.  Also, it avoids some GCC
106934         diagnostics in some cases; Joel E. Denny reported problems when Bison
106935         was configured with --enable-gcc-warnigs.
106937 2006-11-10  Jim Meyering  <jim@meyering.net>
106939         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
106940         relevant options in CFLAGS (like -O, -fno-inline) are taken into
106941         account.
106943 2006-11-10  Jim Meyering  <jim@meyering.net>
106945         * modules/inline: New file/module.
106946         * modules/xalloc (Files): Remove m4/inline.m4.
106947         (Depends-on): Add inline, instead.
106948         * modules/oset: Likewise.
106949         * modules/list: Likewise.
106951 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
106953         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
106954         Problem reported by Matthew Woehlke.
106956 2006-11-09  Bruno Haible  <bruno@clisp.org>
106958         * lib/tempname.c (gen_tempname): Remove variant that invokes
106959         __gen_tempname.
106960         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
106961         __gen_tempname.
106963 2006-11-08  Bruno Haible  <bruno@clisp.org>
106965         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
106966         to 'yes' instead of 'cross-compiling'.
106968 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
106970         * lib/quotearg.h (quotearg_free): New decl.
106971         * lib/quotearg.c (quotearg_free): New function.
106972         (slot0, nslots, slotvec0, slotvec):
106973         Now file-scope so that quotearg_free can get at them.
106975 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106977         Sync from Automake.
106978         * build-aux/gnupload: Add missing 'gnu' to example URL.
106979         Report by Karl Berry.
106981 2006-11-08  Bruno Haible  <bruno@clisp.org>
106983         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
106984         Suggested by Paul Eggert.
106986 2006-11-08  Jim Meyering  <jim@meyering.net>
106988         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
106989         It's already included if !_LIBC.
106990         (fts_safe_changedir): Add a comment.
106992 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
106994         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
106995         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
106996         Matthew Woehlke.
106998         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
106999         definitions up, to avoid colliding with change below.
107000         (static_inline) [HAVE_INLINE]: New macro.
107001         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
107002         Provide extern decls when !HAVE_INLINE.  Do not define unless
107003         static_inline is defined, either by us or by xmalloc.c.  Use
107004         static_inline rather than static inline.
107005         (XCALLOC): Optimize sizeof(T) = 1 case.
107006         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
107008 2006-11-07  Bruno Haible  <bruno@clisp.org>
107010         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
107011         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
107012         AC_C_INLINE.
107013         * modules/xalloc (Files): Add m4/inline.m4.
107015 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107017         * README: Fix typo.
107018         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
107019         (Miscellanous Notes): ...from this.
107021 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
107023         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
107024         Mention that offsetof should be used instead of sizeof.
107025         From Bruno Haible.
107027 2006-11-07  Bruno Haible  <bruno@clisp.org>
107029         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
107031 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107033         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107034         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
107035         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107036         (gl_tree_add_before, gl_tree_add_after):
107037         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
107038         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
107039         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
107040         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
107041         (gl_linked_add_after, gl_linked_add_at): Likewise.
107042         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
107043         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
107044         (gl_tree_add_before, gl_tree_add_after): Likewise.
107045         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
107046         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
107047         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
107049 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107051         * lib/gl_oset.h: Use C comment style, not C++ comment style.
107053 2006-11-06  Bruno Haible  <bruno@clisp.org>
107055         * m4/inline.m4: New file.
107056         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
107057         * modules/list (Files): Add m4/inline.m4.
107058         * modules/oset (Files): Likewise.
107060 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
107062         * lib/idcache.c: Include <stddef.h>, for offsetof.
107063         (struct userid.name): Change from char * to a flexible array member.
107064         All uses changed.
107065         * modules/idcache (Depends-on): Add flexmember.
107067         * MODULES.html.sh (Core language properties): New module flexmember.
107068         * modules/flexmember, m4/flexmember.m4: New files.
107070         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
107071         inline functions that are identical with the old xnmalloc_inline,
107072         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
107073         that we can avoid some unnecessary integer multiplications and
107074         divisions in the common case where the element size is known at
107075         compile time.
107076         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
107077         needed.
107078         (xnboundedmalloc): Remove.
107079         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
107080         arguments, for consistency with rest of this header.
107081         (xcharalloc): Rewrite using XNMALLOC.
107082         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
107083         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
107084         versions have been moved to lib/xalloc.h and renamed to be the
107085         non-*_inline versions.
107086         (xmalloc, xrealloc): Implement without reference to the xnmalloc
107087         and xnrealloc functions, since those functions are now inline and
107088         now call us.
107089         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
107090         renaming described above.
107091         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
107092         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
107093         captures the dependency in AC_C_INLINE.
107095         New module canonicalize-lgpl, proposed by Charles Wilson in
107096         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
107097         with a few small changes afterwards.
107098         * MODULES.html.sh (File system functions): New module
107099         canonicalize-lgpl.
107100         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
107101         and canonicalize_file_name.
107102         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
107103         * modules/canonicalize-lgpl: New files.
107105 2006-11-05  Bruno Haible  <bruno@clisp.org>
107107         * gnulib-tool (func_import, func_create_testdir): Create directories
107108         also for files in subdirectories of lib/.
107110 2006-11-05  Bruno Haible  <bruno@clisp.org>
107112         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
107113         ANSI C compliant.
107115 2006-11-03  Bruno Haible  <bruno@clisp.org>
107117         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
107118         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
107119         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
107120         (xnboundedmalloc): New inline function.
107121         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
107122         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
107123         xmalloc.
107124         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
107125         xmalloc.
107126         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
107127         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
107128         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
107129         xmalloc.
107130         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107131         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
107132         xmalloc.
107133         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
107134         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107135         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
107136         xmalloc.
107137         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
107138         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
107139         gl_tree_add_after): Use XMALLOC instead of xmalloc.
107140         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
107141         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
107142         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
107143         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
107145 2006-11-03  Bruno Haible  <bruno@clisp.org>
107147         * lib/c-ctype.h [C++]: Define functions without name mangling.
107148         * lib/fwriteerror.h [C++]: Likewise.
107149         * lib/gcd.h [C++]: Likewise.
107150         * lib/linebreak.h [C++]: Likewise.
107152 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
107154         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
107155         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
107156         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
107157         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
107158         Check for functions and headers just once.
107159         Check for declaration of canonicalize_file_name.
107160         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
107162 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107164         * gnulib-tool (func_import): Fix typo in actioncmd.
107166 2006-11-02  Bruno Haible  <bruno@clisp.org>
107168         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
107169         newline sequence in the Makefile.am snippet as a space, like "make"
107170         does.
107171         Reported by Roger Persson <perrog@gmail.com>.
107173 2006-11-01  Bruno Haible  <bruno@clisp.org>
107175         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
107176         already declared in <string.h>.
107177         * lib/strcase.h (strncasecmp): Don't declare it if yes.
107179 2006-11-01  Bruno Haible  <bruno@clisp.org>
107181         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
107182         * lib/strcase.h: Include <string.h>.
107183         (strcasecmp): Define to rpl_strcasecmp here.
107185 2006-11-01  Bruno Haible  <bruno@clisp.org>
107187         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
107189 2006-11-01  Eric Blake  <ebb9@byu.net>
107191         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
107193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
107195 2006-10-29  Bruno Haible  <bruno@clisp.org>
107197         Make it compile in C++ mode.
107198         * lib/full-write.c (full_rw): Add a cast.
107200 2006-11-01  Bruno Haible  <bruno@clisp.org>
107202         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
107203         be POSIX compliant.
107204         Reported by Roger Persson <perrog@gmail.com>.
107206 2006-11-01  Eric Blake  <ebb9@byu.net>
107208         * lib/getopt_.h: Fix comments.
107210 2006-10-31  Eric Blake  <ebb9@byu.net>
107212         * modules/tmpdir (Depends-on): Add sys_stat.
107213         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
107214         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
107215         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
107216         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
107217         tempname.
107219 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
107221         Avoid some C++ diagnostics reported by Bruno Haible.
107222         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
107223         xmalloc.
107224         (quotearg_alloc): Use xcharalloc rather than xmalloc.
107225         (struct slotvec): Move to top level.
107226         (quotearg_n_options): Rewrite to avoid xmalloc.
107227         * lib/xalloc.h (xcharalloc): New function.
107228         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
107229         [defined __cplusplus]: Add function template that provides result
107230         type propagation.  This part of the change is from Bruno Haible.
107232 2006-10-29  Bruno Haible  <bruno@clisp.org>
107234         Make it compile in C++ mode.
107235         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
107236         * lib/strnlen1.c (strnlen1): Cast memchr result.
107237         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
107238         * lib/clean-temp.c (string_equals, string_hash): Add casts.
107239         (create_temp_dir): Rename local variable 'template'.
107240         (compile_csharp_using_sscli): Add cast.
107241         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
107242         * lib/findprog.c (find_in_path): Likewise.
107243         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
107244         * lib/wait-process.c (register_slave_subprocess): Likewise.
107246 2006-10-22  Bruno Haible  <bruno@clisp.org>
107248         * modules/tsearch: New file.
107249         * lib/tsearch.h: New file.
107250         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
107251         * m4/tsearch.m4: New file.
107252         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
107254 2006-10-29  Eric Blake  <ebb9@byu.net>
107256         * lib/arcfour.c: Assume config.h.
107257         * lib/arctwo.c: Likewise.
107258         * lib/base64.c: Likewise.
107259         * lib/check-version.c: Likewise.
107260         * lib/crc.c: Likewise.
107261         * lib/des.c: Likewise.
107262         * lib/gc-gnulib.c: Likewise.
107263         * lib/gc-libgcrypt.c: Likewise.
107264         * lib/gc-pbkdf2-sha1.c: Likewise.
107265         * lib/getaddrinfo.c: Likewise.
107266         * lib/getdelim.c: Likewise.
107267         * lib/getline.c: Likewise.
107268         * lib/hmac-md5.c: Likewise.
107269         * lib/hmac-sha1.c: Likewise.
107270         * lib/iconvme.c: Likewise.
107271         * lib/md2.c: Likewise.
107272         * lib/md4.c: Likewise.
107273         * lib/memxor.c: Likewise.
107274         * lib/read-file.c: Likewise.
107275         * lib/readline.c: Likewise.
107276         * lib/rijndael-alg-fst.c: Likewise.
107277         * lib/rijndael-api-fst.c: Likewise.
107278         * lib/xgetdomainname.c: Likewise.
107280 2006-10-28  Eric Blake  <ebb9@byu.net>
107282         * lib/xstrndup.c: Assume config.h.
107284 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
107286         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
107287         stat-macros.h is now for our own macros, whereas stat_h is for
107288         macros in the <sys/stat.h> name space.
107289         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
107290         (STAT_MACROS_H): Remove.
107291         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
107292         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
107293         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
107294         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
107295         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
107296         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
107297         Move these macros to ...
107298         * lib/stat_.h: here.  Don't include stat-macros.h.
107299         * lib/canonicalize.c: Don't include stat-macros.h.
107300         * lib/chown.c: Likewise.
107301         * lib/euidaccess.c: Likewise.
107302         * lib/file-type.c: Likewise.
107303         * lib/filemode.c: Likewise.
107304         * lib/glob.c: Likewise.
107305         * lib/isapipe.c: Likewise.
107306         * lib/lchown.c: Likewise.
107307         * lib/lstat.c: Likewise.
107308         * lib/mkdir-p.c: Likewise.
107309         * lib/rmdir.c: Likewise.
107310         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
107311         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
107312         unless mkdir isn't declared, to speed up 'configure'.
107313         Always create sys/stat.h, since it's unlikely any real sys/stat.h
107314         would define all the S_* symbols.
107315         * modules/canonicalize (Depends-on):
107316         Depend on sys_stat, not stat-macros.
107317         * modules/chown: Likewise.
107318         * modules/euidaccess: Likewise.
107319         * modules/filemode: Likewise.
107320         * modules/file-type: Likewise.
107321         * modules/glob: Likewise.
107322         * modules/isapipe: Likewise.
107323         * modules/lchown: Likewise.
107324         * modules/lstat: Likewise.
107325         * modules/mkancesdirs: Likewise.
107326         * modules/rmdir: Likewise.
107327         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
107328         * modules/modechange: Likewise.
107329         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
107330         (configure.ac): Remove gl_STAT_MACROS.
107331         * modules/sys_stat (Depends-on): Remove stat-macros.
107333 2006-10-27  Bruno Haible  <bruno@clisp.org>
107335         * m4/signed.m4: Remove file.
107336         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
107337         invocation.
107338         * modules/vasnprintf (Files): Remove m4/signed.m4.
107340 2006-10-27  Bruno Haible  <bruno@clisp.org>
107342         Update to GNU gettext 0.16.
107343         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
107344         m4/inttypes-h.m4, m4/signed.m4.
107345         * m4/gettext.m4: Update to GNU gettext 0.16.
107346         * m4/intl.m4: New file, from GNU gettext.
107347         * m4/intldir.m4: New file, from GNU gettext.
107348         * config/srclist.txt: Update
107350 2006-10-27  Eric Blake  <ebb9@byu.net>
107352         * MODULES.html.sh: Document tempname.
107353         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
107354         dependencies.
107355         (Files): Move lib/tempname.c...
107356         * modules/tempname: ...to this new module.
107357         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
107358         (gl_PREREQ_TEMPNAME): Move...
107359         * m4/tempname.m4: ...to this new file.
107360         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
107361         * modules/sys_stat (Depends-on): Add stat-macros.
107362         * lib/stat_.h (includes): Pick up stat macros.
107363         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
107364         if stat macros are broken.
107365         * lib/tempname.c (includes): No need to include "stat-macros.h".
107366         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
107367         (direxists, __path_search) [!_LIBC]: Don't compile these in
107368         gnulib; the tmpdir module covers that.
107369         * lib/tempname.h: New file.
107371 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
107373         * COPYING: Explain how gnulib-tool converts licence headers.
107374         Almost all wording by Eric Blake.
107376 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
107378         * lib/mbchar.h (is_basic_table): Make read-only.
107379         * lib/mbchar.c (is_basic_table): Likewise.
107380         Reported by John Darrington.
107382 2006-10-25  Bruno Haible  <bruno@clisp.org>
107384         * lib/progname.h (set_program_name): Undefine before defining.
107386 2006-10-25  Bruno Haible  <bruno@clisp.org>
107388         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
107389         false for non-gcc C++ compilers.
107390         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
107392 2006-10-24  Bruno Haible  <bruno@clisp.org>
107394         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
107395         iconv implementations like Irix iconv.
107397 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107399         * modules/vararrays: New file.
107400         * m4/vararrays.m4: New file, taken from diffutils.
107401         * MODULES.html.sh: New module vararrays.
107403 2006-10-24  Karl Berry  <karl@gnu.org>
107405         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
107406         Don't call GNU Unix.
107408 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107410         * users.txt: Add Libtool.
107412         Sync from Libtool:
107414         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107416         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
107417         to gnulib's policy of including config.h unconditionally.
107419 2006-10-24  Bruno Haible  <bruno@clisp.org>
107421         * modules/wcwidth (Files): Add m4/wint_t.m4.
107422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
107423         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
107425 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
107427         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
107428         to pacify GCC with some -W flags enabled.  Problem reported by
107429         Bruno Haible.
107431 2006-10-24  Jim Meyering  <jim@meyering.net>
107433         * MODULES.html.sh: Remove uinttostr.  It's not a module.
107434         Reported by Karl Berry.
107436 2006-10-23  Bruno Haible  <bruno@clisp.org>
107438         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
107440 2006-10-24  Bruno Haible  <bruno@clisp.org>
107442         * lib/gl_list.h: Use C comment style, not C++ comment style.
107444 2006-10-23  Eric Blake  <ebb9@byu.net>
107446         * lib/getaddrinfo.c (includes): Add missing include.
107448 2006-10-23  Bruno Haible  <bruno@clisp.org>
107449             Paul Eggert  <eggert@cs.ucla.edu>
107451         Ability to rename obstack_free.
107452         * lib/obstack.h (__obstack_free): New macro. Declare instead of
107453         obstack_free.
107454         (obstack_free): Invoke the __obstack_free macro.
107455         * lib/obstack.c (obstack_free): Use __obstack_free macro.
107457 2006-10-23  Bruno Haible  <bruno@clisp.org>
107458             Paul Eggert  <eggert@cs.ucla.edu>
107460         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
107461         __argc, __argv from the declaration. (They are defined as macros on
107462         mingw.)
107464 2006-10-22  Bruno Haible  <bruno@clisp.org>
107466         * doc/gnulib-intro.texi: New file.
107467         * doc/gnulib.texi: Include it.
107469 2006-10-21  Bruno Haible  <bruno@clisp.org>
107471         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
107472         "Introduction", "Miscellanous Notes", "Particular Modules".
107474 2006-10-21  Bruno Haible  <bruno@clisp.org>
107476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
107477         Change mostlyclean-local rule to avoid sh syntax error from bash
107478         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
107480 2006-10-23  Jim Meyering  <jim@meyering.net>
107482         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
107483         in place of snprintf.
107485         * modules/inttostr (Files): Add lib/uinttostr.c.
107486         * lib/uinttostr.c (inttostr): New file/function.
107487         * lib/inttostr.h (uinttostr): Declare.
107488         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
107489         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
107490         Add uinttostr.
107491         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
107493 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107495         * lib/canonicalize.c (ELOOP): Define if not already defined.
107496         Problem reported by Bruno Haible in
107497         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
107499 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
107501         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
107502         Problem reported by Perry Smith and Ville Laurikari.
107504         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
107505         uses.
107507 2006-10-19  Bruno Haible  <bruno@clisp.org>
107509         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
107510         for mingw.
107512 2006-10-19  Bruno Haible  <bruno@clisp.org>
107514         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
107515         Needed for mingw.
107517 2006-10-19  Bruno Haible  <bruno@clisp.org>
107519         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
107521 2006-10-19  Bruno Haible  <bruno@clisp.org>
107523         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
107524         it.
107526 2006-10-19  Bruno Haible  <bruno@clisp.org>
107528         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
107529         invocation.
107531 2006-10-19  Bruno Haible  <bruno@clisp.org>
107533         * gnulib-tool (func_create_testdir): Don't include ftruncate and
107534         mountlist by default.
107536 2006-10-16  Bruno Haible  <bruno@clisp.org>
107538         * lib/c-strstr.c: Include c-strstr.h.
107540 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
107542         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
107543         in a slash.
107545 2006-10-18  Bruno Haible  <bruno@clisp.org>
107547         * lib/lock.h [C++]: Wrap definitions in extern "C".
107549 2006-10-18  Bruno Haible  <bruno@clisp.org>
107551         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
107552         gl_LIBOBJS list.
107554 2006-10-18  Bruno Haible  <bruno@clisp.org>
107556         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
107558 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
107560         * lib/xstrtol.h: Include gettext.h.
107561         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
107562         Problem reported by Eric Blake.
107563         * modules/xstrtol (Depends-on): Add gettext-h.
107565 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
107567         * lib/strftime.c (advance): New macro.
107568         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
107569         incomplete type, so you can't add 0 to it.  Problem and patch
107570         reported by Eelco Dolstra for dietlibc.
107572 2006-10-18  Jim Meyering  <jim@meyering.net>
107574         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
107575         type for a local, and rename it: s/up/user_proc/.
107577 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
107579         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
107580         READ_UTMP_USER_PROCESS.
107581         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
107583 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
107585         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
107586         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
107588 2006-10-17  Eric Blake  <ebb9@byu.net>
107590         * lib/sigprocmask.c (sigprocmask): Fix typo.
107592         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
107594         * modules/clean-temp (Makefile.am): Don't add to make output...
107595         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
107596         config.h.
107598 2006-10-17  Bruno Haible  <bruno@clisp.org>
107600         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
107601         differently if DEFAULT_TEXT_DOMAIN is set.
107603 2006-10-16  Bruno Haible  <bruno@clisp.org>
107605         * lib/clean-temp.c: Include fwriteerror.h.
107607 2006-10-16  Bruno Haible  <bruno@clisp.org>
107609         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
107611 2006-10-16  Bruno Haible  <bruno@clisp.org>
107613         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
107614         * lib/sigprocmask.h: Include <sys/types.h>.
107615         (sigset_t): Use the system's definition if present.
107617 2006-10-17  Eric Blake  <ebb9@byu.net>
107619         * lib/xvasprintf.c (includes): Assume config.h.
107620         * lib/xasprintf.c (includes): Likewise.
107622 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
107624         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
107625         at least as wide as intmax_t.
107627 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
107629         (Imported from Automake.)
107630         * build-aux/gnupload: Update to version 1.1 of directive file.
107632 2006-10-16  Eric Blake  <ebb9@byu.net>
107634         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
107635         match Automake 1.10a.
107637 2006-10-14  Bruno Haible  <bruno@clisp.org>
107639         * modules/sigprocmask: New file.
107640         * lib/sigprocmask.h: New file.
107641         * lib/sigprocmask.c: New file.
107642         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
107643         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
107644         request sigprocmask.o.
107645         (gl_PREREQ_SIGPROCMASK): New macro.
107646         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
107647         (Depends-on): Add sigprocmask.
107648         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
107649         gt_SIGNALBLOCKING. Test for 'raise' only once.
107650         * lib/fatal-signal.c: Include sigprocmask.h.
107651         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
107652         unblock_fatal_signals): Define always.
107653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107654         sigprocmask.
107656 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
107658         Sync from Automake.
107659         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
107660         which incorrectly sets the mode of an existing destination
107661         directory.  In some cases the unpatched install-sh could do the
107662         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
107663         system.  We hope this is rare in practice, but it's clearly worth
107664         fixing.  Problem reported by Alex Unleashed in
107665         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
107666         Also, don't bother to check for -m bugs unless we're using -m;
107667         suggested by Stepan Kasal.
107669 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107671         Sync from Automake.
107672         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
107673         `-c' flag, so they appear at the same position as in %FASTDEP%
107674         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
107675         which ignores unknown options only after the first non-option.
107676         Bug report against M4 by Nelson H. F. Beebe.
107678 2006-10-13  Jim Meyering  <jim@meyering.net>
107680         Fix a bug in yesterday's change.
107681         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
107682         p->fts_statp->st_dev would be used uninitialized.
107683         Ensures that we always call fts_stat on the very first entry.
107684         Miklos Szeredi reported that find -xdev stopped working.
107686 2006-10-12  Bruno Haible  <bruno@clisp.org>
107688         * gnulib-tool (func_get_automake_snippet): Append an automatically
107689         computed EXTRA_DIST augmentation.
107690         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
107691         * modules/alloca-opt (Makefile.am): Likewise.
107692         * modules/allocsa (Makefile.am): Likewise.
107693         * modules/arcfour (Makefile.am): Likewise.
107694         * modules/arctwo (Makefile.am): Likewise.
107695         * modules/argmatch (Makefile.am): Likewise.
107696         * modules/argz (Makefile.am): Likewise.
107697         * modules/atexit (Makefile.am): Likewise.
107698         * modules/backupfile (Makefile.am): Likewise.
107699         * modules/byteswap (Makefile.am): Likewise.
107700         * modules/c-strtod (Makefile.am): Likewise.
107701         * modules/c-strtold (Makefile.am): Likewise.
107702         * modules/calloc (Makefile.am): Likewise.
107703         * modules/canon-host (Makefile.am): Likewise.
107704         * modules/canonicalize (Makefile.am): Likewise.
107705         * modules/chdir-long (Makefile.am): Likewise.
107706         * modules/chdir-safer (Makefile.am): Likewise.
107707         * modules/check-version (Makefile.am): Likewise.
107708         * modules/chown (Makefile.am): Likewise.
107709         * modules/cloexec (Makefile.am): Likewise.
107710         * modules/close-stream (Makefile.am): Likewise.
107711         * modules/closeout (Makefile.am): Likewise.
107712         * modules/crc (Makefile.am): Likewise.
107713         * modules/csharpexec (Makefile.am): Likewise.
107714         * modules/cycle-check (Makefile.am): Likewise.
107715         * modules/des (Makefile.am): Likewise.
107716         * modules/dev-ino (Makefile.am): Likewise.
107717         * modules/dirfd (Makefile.am): Likewise.
107718         * modules/dirname (Makefile.am): Likewise.
107719         * modules/dup2 (Makefile.am): Likewise.
107720         * modules/eealloc (Makefile.am): Likewise.
107721         * modules/error (Makefile.am): Likewise.
107722         * modules/euidaccess (Makefile.am): Likewise.
107723         * modules/exclude (Makefile.am): Likewise.
107724         * modules/exitfail (Makefile.am): Likewise.
107725         * modules/fcntl-safer (Makefile.am): Likewise.
107726         * modules/fcntl (Makefile.am): Likewise.
107727         * modules/file-type (Makefile.am): Likewise.
107728         * modules/fileblocks (Makefile.am): Likewise.
107729         * modules/filemode (Makefile.am): Likewise.
107730         * modules/filenamecat (Makefile.am): Likewise.
107731         * modules/fnmatch (Makefile.am): Likewise.
107732         * modules/fopen-safer (Makefile.am): Likewise.
107733         * modules/fpending (Makefile.am): Likewise.
107734         * modules/fprintftime (Makefile.am): Likewise.
107735         * modules/free (Makefile.am): Likewise.
107736         * modules/fsusage (Makefile.am): Likewise.
107737         * modules/ftruncate (Makefile.am): Likewise.
107738         * modules/fts (Makefile.am): Likewise.
107739         * modules/gc-arcfour (Makefile.am): Likewise.
107740         * modules/gc-des (Makefile.am): Likewise.
107741         * modules/gc-hmac-md5 (Makefile.am): Likewise.
107742         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
107743         * modules/gc-md4 (Makefile.am): Likewise.
107744         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107745         * modules/gc-sha1 (Makefile.am): Likewise.
107746         * modules/gc (Makefile.am): Likewise.
107747         * modules/getaddrinfo (Makefile.am): Likewise.
107748         * modules/getcwd (Makefile.am): Likewise.
107749         * modules/getdelim (Makefile.am): Likewise.
107750         * modules/getdomainname (Makefile.am): Likewise.
107751         * modules/getgroups (Makefile.am): Likewise.
107752         * modules/gethostname (Makefile.am): Likewise.
107753         * modules/gethrxtime (Makefile.am): Likewise.
107754         * modules/getline (Makefile.am): Likewise.
107755         * modules/getloadavg (Makefile.am): Likewise.
107756         * modules/getlogin_r (Makefile.am): Likewise.
107757         * modules/getndelim2 (Makefile.am): Likewise.
107758         * modules/getopt (Makefile.am): Likewise.
107759         * modules/getpagesize (Makefile.am): Likewise.
107760         * modules/getpass-gnu (Makefile.am): Likewise.
107761         * modules/getpass (Makefile.am): Likewise.
107762         * modules/getsubopt (Makefile.am): Likewise.
107763         * modules/gettime (Makefile.am): Likewise.
107764         * modules/gettimeofday (Makefile.am): Likewise.
107765         * modules/getugroups (Makefile.am): Likewise.
107766         * modules/getusershell (Makefile.am): Likewise.
107767         * modules/glob (Makefile.am): Likewise.
107768         * modules/group-member (Makefile.am): Likewise.
107769         * modules/hard-locale (Makefile.am): Likewise.
107770         * modules/hash (Makefile.am): Likewise.
107771         * modules/hmac-md5 (Makefile.am): Likewise.
107772         * modules/hmac-sha1 (Makefile.am): Likewise.
107773         * modules/human (Makefile.am): Likewise.
107774         * modules/idcache (Makefile.am): Likewise.
107775         * modules/imaxabs (Makefile.am): Likewise.
107776         * modules/imaxdiv (Makefile.am): Likewise.
107777         * modules/inet_ntop (Makefile.am): Likewise.
107778         * modules/inet_pton (Makefile.am): Likewise.
107779         * modules/intprops (Makefile.am): Likewise.
107780         * modules/inttostr (Makefile.am): Likewise.
107781         * modules/inttypes (Makefile.am): Likewise.
107782         * modules/isapipe (Makefile.am): Likewise.
107783         * modules/javaversion (Makefile.am): Likewise.
107784         * modules/lchmod (Makefile.am): Likewise.
107785         * modules/lchown (Makefile.am): Likewise.
107786         * modules/localcharset (Makefile.am): Likewise.
107787         * modules/long-options (Makefile.am): Likewise.
107788         * modules/lstat (Makefile.am): Likewise.
107789         * modules/malloc (Makefile.am): Likewise.
107790         * modules/mathl (Makefile.am): Likewise.
107791         * modules/mbchar (Makefile.am): Likewise.
107792         * modules/md2 (Makefile.am): Likewise.
107793         * modules/md4 (Makefile.am): Likewise.
107794         * modules/md5 (Makefile.am): Likewise.
107795         * modules/memcasecmp (Makefile.am): Likewise.
107796         * modules/memchr (Makefile.am): Likewise.
107797         * modules/memcmp (Makefile.am): Likewise.
107798         * modules/memcoll (Makefile.am): Likewise.
107799         * modules/memcpy (Makefile.am): Likewise.
107800         * modules/memmem (Makefile.am): Likewise.
107801         * modules/memmove (Makefile.am): Likewise.
107802         * modules/mempcpy (Makefile.am): Likewise.
107803         * modules/memrchr (Makefile.am): Likewise.
107804         * modules/memset (Makefile.am): Likewise.
107805         * modules/memxor (Makefile.am): Likewise.
107806         * modules/mkancesdirs (Makefile.am): Likewise.
107807         * modules/mkdir-p (Makefile.am): Likewise.
107808         * modules/mkdir (Makefile.am): Likewise.
107809         * modules/mkdtemp (Makefile.am): Likewise.
107810         * modules/mkstemp (Makefile.am): Likewise.
107811         * modules/mktime (Makefile.am): Likewise.
107812         * modules/modechange (Makefile.am): Likewise.
107813         * modules/mountlist (Makefile.am): Likewise.
107814         * modules/nanosleep (Makefile.am): Likewise.
107815         * modules/obstack (Makefile.am): Likewise.
107816         * modules/openat (Makefile.am): Likewise.
107817         * modules/pagealign_alloc (Makefile.am): Likewise.
107818         * modules/pathmax (Makefile.am): Likewise.
107819         * modules/physmem (Makefile.am): Likewise.
107820         * modules/poll (Makefile.am): Likewise.
107821         * modules/posixtm (Makefile.am): Likewise.
107822         * modules/posixver (Makefile.am): Likewise.
107823         * modules/putenv (Makefile.am): Likewise.
107824         * modules/quote (Makefile.am): Likewise.
107825         * modules/quotearg (Makefile.am): Likewise.
107826         * modules/raise (Makefile.am): Likewise.
107827         * modules/read-file (Makefile.am): Likewise.
107828         * modules/readline (Makefile.am): Likewise.
107829         * modules/readlink (Makefile.am): Likewise.
107830         * modules/readtokens (Makefile.am): Likewise.
107831         * modules/readutmp (Makefile.am): Likewise.
107832         * modules/realloc (Makefile.am): Likewise.
107833         * modules/regex (Makefile.am): Likewise.
107834         * modules/rename-dest-slash (Makefile.am): Likewise.
107835         * modules/rename (Makefile.am): Likewise.
107836         * modules/rijndael (Makefile.am): Likewise.
107837         * modules/rmdir (Makefile.am): Likewise.
107838         * modules/rpmatch (Makefile.am): Likewise.
107839         * modules/safe-read (Makefile.am): Likewise.
107840         * modules/safe-write (Makefile.am): Likewise.
107841         * modules/same-inode (Makefile.am): Likewise.
107842         * modules/same (Makefile.am): Likewise.
107843         * modules/save-cwd (Makefile.am): Likewise.
107844         * modules/savedir (Makefile.am): Likewise.
107845         * modules/setenv (Makefile.am): Likewise.
107846         * modules/settime (Makefile.am): Likewise.
107847         * modules/sha1 (Makefile.am): Likewise.
107848         * modules/sig2str (Makefile.am): Likewise.
107849         * modules/snprintf (Makefile.am): Likewise.
107850         * modules/stat-macros (Makefile.am): Likewise.
107851         * modules/stat-time (Makefile.am): Likewise.
107852         * modules/stdbool (Makefile.am): Likewise.
107853         * modules/stdint (Makefile.am): Likewise.
107854         * modules/stdlib-safer (Makefile.am): Likewise.
107855         * modules/stpcpy (Makefile.am): Likewise.
107856         * modules/stpncpy (Makefile.am): Likewise.
107857         * modules/strcase (Makefile.am): Likewise.
107858         * modules/strcasestr (Makefile.am): Likewise.
107859         * modules/strchrnul (Makefile.am): Likewise.
107860         * modules/strcspn (Makefile.am): Likewise.
107861         * modules/strdup (Makefile.am): Likewise.
107862         * modules/strerror (Makefile.am): Likewise.
107863         * modules/strftime (Makefile.am): Likewise.
107864         * modules/strndup (Makefile.am): Likewise.
107865         * modules/strnlen (Makefile.am): Likewise.
107866         * modules/strpbrk (Makefile.am): Likewise.
107867         * modules/strsep (Makefile.am): Likewise.
107868         * modules/strstr (Makefile.am): Likewise.
107869         * modules/strtod (Makefile.am): Likewise.
107870         * modules/strtoimax (Makefile.am): Likewise.
107871         * modules/strtok_r (Makefile.am): Likewise.
107872         * modules/strtol (Makefile.am): Likewise.
107873         * modules/strtoll (Makefile.am): Likewise.
107874         * modules/strtoul (Makefile.am): Likewise.
107875         * modules/strtoull (Makefile.am): Likewise.
107876         * modules/strtoumax (Makefile.am): Likewise.
107877         * modules/strverscmp (Makefile.am): Likewise.
107878         * modules/sys_socket (Makefile.am): Likewise.
107879         * modules/sys_stat (Makefile.am): Likewise.
107880         * modules/sysexits (Makefile.am): Likewise.
107881         * modules/time_r (Makefile.am): Likewise.
107882         * modules/timegm (Makefile.am): Likewise.
107883         * modules/timespec (Makefile.am): Likewise.
107884         * modules/tmpfile-safer (Makefile.am): Likewise.
107885         * modules/trim (Makefile.am): Likewise.
107886         * modules/unistd-safer (Makefile.am): Likewise.
107887         * modules/unlinkdir (Makefile.am): Likewise.
107888         * modules/unlocked-io (Makefile.am): Likewise.
107889         * modules/userspec (Makefile.am): Likewise.
107890         * modules/utime (Makefile.am): Likewise.
107891         * modules/utimecmp (Makefile.am): Likewise.
107892         * modules/utimens (Makefile.am): Likewise.
107893         * modules/vasnprintf (Makefile.am): Likewise.
107894         * modules/vasprintf (Makefile.am): Likewise.
107895         * modules/vsnprintf (Makefile.am): Likewise.
107896         * modules/xalloc (Makefile.am): Likewise.
107897         * modules/xgetcwd (Makefile.am): Likewise.
107898         * modules/xnanosleep (Makefile.am): Likewise.
107899         * modules/xreadlink (Makefile.am): Likewise.
107900         * modules/xstrtod (Makefile.am): Likewise.
107901         * modules/xstrtol (Makefile.am): Likewise.
107902         * modules/xstrtold (Makefile.am): Likewise.
107903         * modules/yesno (Makefile.am): Likewise.
107904         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
107906 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
107908         * modules/error (Makefile.am): Distribute files through
107909         EXTRA_DIST, not lib_SOURCES.
107911 2006-10-12  Eric Blake  <ebb9@byu.net>
107913         * modules/error (Makefile.am): Distribute files in /lib.
107914         * modules/obstack (Makefile.am): Likewise.
107916 2006-10-12  Bruno Haible  <bruno@clisp.org>
107918         * modules/acl (Makefile.am): Distribute all files in lib/ through
107919         EXTRA_DIST.
107920         * modules/arcfour (Makefile.am): Likewise.
107921         * modules/arctwo (Makefile.am): Likewise.
107922         * modules/argmatch (Makefile.am): Likewise.
107923         * modules/argz (Makefile.am): Likewise.
107924         * modules/atexit (Makefile.am): Likewise.
107925         * modules/backupfile (Makefile.am): Likewise.
107926         * modules/c-strtod (Makefile.am): Likewise.
107927         * modules/c-strtold (Makefile.am): Likewise.
107928         * modules/calloc (Makefile.am): Likewise.
107929         * modules/canon-host (Makefile.am): Likewise.
107930         * modules/canonicalize (Makefile.am): Likewise.
107931         * modules/chdir-long (Makefile.am): Likewise.
107932         * modules/chdir-safer (Makefile.am): Likewise.
107933         * modules/check-version (Makefile.am): Likewise.
107934         * modules/chown (Makefile.am): Likewise.
107935         * modules/cloexec (Makefile.am): Likewise.
107936         * modules/close-stream (Makefile.am): Likewise.
107937         * modules/closeout (Makefile.am): Likewise.
107938         * modules/crc (Makefile.am): Likewise.
107939         * modules/cycle-check (Makefile.am): Likewise.
107940         * modules/des (Makefile.am): Likewise.
107941         * modules/dirfd (Makefile.am): Likewise.
107942         * modules/dirname (Makefile.am): Likewise.
107943         * modules/dup2 (Makefile.am): Likewise.
107944         * modules/euidaccess (Makefile.am): Likewise.
107945         * modules/exclude (Makefile.am): Likewise.
107946         * modules/exitfail (Makefile.am): Likewise.
107947         * modules/fcntl-safer (Makefile.am): Likewise.
107948         * modules/file-type (Makefile.am): Likewise.
107949         * modules/fileblocks (Makefile.am): Likewise.
107950         * modules/filemode (Makefile.am): Likewise.
107951         * modules/filenamecat (Makefile.am): Likewise.
107952         * modules/fnmatch (Makefile.am): Likewise.
107953         * modules/fopen-safer (Makefile.am): Likewise.
107954         * modules/fpending (Makefile.am): Likewise.
107955         * modules/fprintftime (Makefile.am): Likewise.
107956         * modules/free (Makefile.am): Likewise.
107957         * modules/fsusage (Makefile.am): Likewise.
107958         * modules/ftruncate (Makefile.am): Likewise.
107959         * modules/fts (Makefile.am): Likewise.
107960         * modules/gc (Makefile.am): Likewise.
107961         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
107962         * modules/getaddrinfo (Makefile.am): Likewise.
107963         * modules/getcwd (Makefile.am): Likewise.
107964         * modules/getdelim (Makefile.am): Likewise.
107965         * modules/getdomainname (Makefile.am): Likewise.
107966         * modules/getgroups (Makefile.am): Likewise.
107967         * modules/gethostname (Makefile.am): Likewise.
107968         * modules/gethrxtime (Makefile.am): Likewise.
107969         * modules/getline (Makefile.am): Likewise.
107970         * modules/getloadavg (Makefile.am): Likewise.
107971         * modules/getlogin_r (Makefile.am): Likewise.
107972         * modules/getopt (Makefile.am): Likewise.
107973         * modules/getpass (Makefile.am): Likewise.
107974         * modules/getpass-gnu (Makefile.am): Likewise.
107975         * modules/getsubopt (Makefile.am): Likewise.
107976         * modules/gettime (Makefile.am): Likewise.
107977         * modules/gettimeofday (Makefile.am): Likewise.
107978         * modules/getugroups (Makefile.am): Likewise.
107979         * modules/getusershell (Makefile.am): Likewise.
107980         * modules/glob (Makefile.am): Likewise.
107981         * modules/group-member (Makefile.am): Likewise.
107982         * modules/hard-locale (Makefile.am): Likewise.
107983         * modules/hash (Makefile.am): Likewise.
107984         * modules/hmac-md5 (Makefile.am): Likewise.
107985         * modules/hmac-sha1 (Makefile.am): Likewise.
107986         * modules/human (Makefile.am): Likewise.
107987         * modules/idcache (Makefile.am): Likewise.
107988         * modules/imaxabs (Makefile.am): Likewise.
107989         * modules/imaxdiv (Makefile.am): Likewise.
107990         * modules/inet_ntop (Makefile.am): Likewise.
107991         * modules/inet_pton (Makefile.am): Likewise.
107992         * modules/inttostr (Makefile.am): Likewise.
107993         * modules/isapipe (Makefile.am): Likewise.
107994         * modules/lchown (Makefile.am): Likewise.
107995         * modules/long-options (Makefile.am): Likewise.
107996         * modules/lstat (Makefile.am): Likewise.
107997         * modules/malloc (Makefile.am): Likewise.
107998         * modules/mathl (Makefile.am): Likewise.
107999         * modules/mbchar (Makefile.am): Likewise.
108000         * modules/md2 (Makefile.am): Likewise.
108001         * modules/md4 (Makefile.am): Likewise.
108002         * modules/md5 (Makefile.am): Likewise.
108003         * modules/memcasecmp (Makefile.am): Likewise.
108004         * modules/memchr (Makefile.am): Likewise.
108005         * modules/memcmp (Makefile.am): Likewise.
108006         * modules/memcoll (Makefile.am): Likewise.
108007         * modules/memcpy (Makefile.am): Likewise.
108008         * modules/memmem (Makefile.am): Likewise.
108009         * modules/memmove (Makefile.am): Likewise.
108010         * modules/mempcpy (Makefile.am): Likewise.
108011         * modules/memrchr (Makefile.am): Likewise.
108012         * modules/memset (Makefile.am): Likewise.
108013         * modules/memxor (Makefile.am): Likewise.
108014         * modules/mkancesdirs (Makefile.am): Likewise.
108015         * modules/mkdir (Makefile.am): Likewise.
108016         * modules/mkdir-p (Makefile.am): Likewise.
108017         * modules/mkdtemp (Makefile.am): Likewise.
108018         * modules/mkstemp (Makefile.am): Likewise.
108019         * modules/mktime (Makefile.am): Likewise.
108020         * modules/modechange (Makefile.am): Likewise.
108021         * modules/mountlist (Makefile.am): Likewise.
108022         * modules/nanosleep (Makefile.am): Likewise.
108023         * modules/openat (Makefile.am): Likewise.
108024         * modules/pagealign_alloc (Makefile.am): Likewise.
108025         * modules/physmem (Makefile.am): Likewise.
108026         * modules/poll (Makefile.am): Likewise.
108027         * modules/posixtm (Makefile.am): Likewise.
108028         * modules/posixver (Makefile.am): Likewise.
108029         * modules/putenv (Makefile.am): Likewise.
108030         * modules/quote (Makefile.am): Likewise.
108031         * modules/quotearg (Makefile.am): Likewise.
108032         * modules/raise (Makefile.am): Likewise.
108033         * modules/read-file (Makefile.am): Likewise.
108034         * modules/readline (Makefile.am): Likewise.
108035         * modules/readlink (Makefile.am): Likewise.
108036         * modules/readtokens (Makefile.am): Likewise.
108037         * modules/readutmp (Makefile.am): Likewise.
108038         * modules/realloc (Makefile.am): Likewise.
108039         * modules/regex (Makefile.am): Likewise.
108040         * modules/rename (Makefile.am): Likewise.
108041         * modules/rename-dest-slash (Makefile.am): Likewise.
108042         * modules/rijndael (Makefile.am): Likewise.
108043         * modules/rmdir (Makefile.am): Likewise.
108044         * modules/rpmatch (Makefile.am): Likewise.
108045         * modules/safe-read (Makefile.am): Likewise.
108046         * modules/safe-write (Makefile.am): Likewise.
108047         * modules/same (Makefile.am): Likewise.
108048         * modules/save-cwd (Makefile.am): Likewise.
108049         * modules/savedir (Makefile.am): Likewise.
108050         * modules/setenv (Makefile.am): Likewise.
108051         * modules/settime (Makefile.am): Likewise.
108052         * modules/sha1 (Makefile.am): Likewise.
108053         * modules/sig2str (Makefile.am): Likewise.
108054         * modules/snprintf (Makefile.am): Likewise.
108055         * modules/stdlib-safer (Makefile.am): Likewise.
108056         * modules/stpcpy (Makefile.am): Likewise.
108057         * modules/stpncpy (Makefile.am): Likewise.
108058         * modules/strcase (Makefile.am): Likewise.
108059         * modules/strcasestr (Makefile.am): Likewise.
108060         * modules/strchrnul (Makefile.am): Likewise.
108061         * modules/strcspn (Makefile.am): Likewise.
108062         * modules/strdup (Makefile.am): Likewise.
108063         * modules/strerror (Makefile.am): Likewise.
108064         * modules/strftime (Makefile.am): Likewise.
108065         * modules/strndup (Makefile.am): Likewise.
108066         * modules/strnlen (Makefile.am): Likewise.
108067         * modules/strpbrk (Makefile.am): Likewise.
108068         * modules/strsep (Makefile.am): Likewise.
108069         * modules/strstr (Makefile.am): Likewise.
108070         * modules/strtod (Makefile.am): Likewise.
108071         * modules/strtoimax (Makefile.am): Likewise.
108072         * modules/strtok_r (Makefile.am): Likewise.
108073         * modules/strtol (Makefile.am): Likewise.
108074         * modules/strtoll (Makefile.am): Likewise.
108075         * modules/strtoul (Makefile.am): Likewise.
108076         * modules/strtoull (Makefile.am): Likewise.
108077         * modules/strtoumax (Makefile.am): Likewise.
108078         * modules/strverscmp (Makefile.am): Likewise.
108079         * modules/time_r (Makefile.am): Likewise.
108080         * modules/timegm (Makefile.am): Likewise.
108081         * modules/tmpfile-safer (Makefile.am): Likewise.
108082         * modules/unistd-safer (Makefile.am): Likewise.
108083         * modules/unlinkdir (Makefile.am): Likewise.
108084         * modules/userspec (Makefile.am): Likewise.
108085         * modules/utime (Makefile.am): Likewise.
108086         * modules/utimecmp (Makefile.am): Likewise.
108087         * modules/utimens (Makefile.am): Likewise.
108088         * modules/vasnprintf (Makefile.am): Likewise.
108089         * modules/vasprintf (Makefile.am): Likewise.
108090         * modules/vsnprintf (Makefile.am): Likewise.
108091         * modules/xalloc (Makefile.am): Likewise.
108092         * modules/xgetcwd (Makefile.am): Likewise.
108093         * modules/xnanosleep (Makefile.am): Likewise.
108094         * modules/xreadlink (Makefile.am): Likewise.
108095         * modules/xstrtod (Makefile.am): Likewise.
108096         * modules/xstrtol (Makefile.am): Likewise.
108097         * modules/xstrtold (Makefile.am): Likewise.
108098         * modules/yesno (Makefile.am): Likewise.
108100 2006-10-12  Jim Meyering  <jim@meyering.net>
108102         * m4/getloadavg.m4: Revert the change below.
108104         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
108105         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
108106         fail with a symlink, which is what coreutils' ./bootstrap now
108107         creates by default.
108109 2006-10-12  Bruno Haible  <bruno@clisp.org>
108111         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
108112         mingw.
108113         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
108114         MSVC and mingw explicitly.
108116 2006-10-11  Simon Josefsson  <jas@extundo.com>
108117             Bruno Haible  <bruno@clisp.org>
108119         Add support for multiple gnulib-tool invocations in the scope of a
108120         single configure.ac file.
108121         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
108122         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
108123         with the same contents as the _LIBADD variable.
108124         (func_emit_initmacro_start, func_emit_initmacro_end,
108125         func_emit_initmacro_done): New functions.
108126         (func_import, func_create_testdir): Invoke them. Allow the identifiers
108127         gl_LIBOBJS and gl_LTLIBOBJS.
108129 2006-10-11  Bruno Haible  <bruno@clisp.org>
108131         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
108132         (func_create_testdir): Don't create po/Makefile.am, don't invoke
108133         autoreconf. Instead, invoke autopoint explicitly but move back the
108134         *.m4 files from gnulib.
108136 2006-10-11  Bruno Haible  <bruno@clisp.org>
108138         * gnulib-tool (func_usage): Make module names after --create-testdir
108139         optional.
108140         (func_create_testdir): If no module was specified, use nearly all
108141         modules.
108143 2006-10-12  Jim Meyering  <jim@meyering.net>
108145         Big performance improvement for fts-based tools that use FTS_NOSTAT.
108146         Avoid spurious inode-mismatch problems on non-POSIX file systems.
108147         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
108148         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
108149         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
108150         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
108151         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
108152         (fts_set_stat_required): New function.
108153         (fts_open): Defer the calls to fts_stat, if possible or requested.
108154         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
108155         into fts_stat itself.
108156         (fts_read): Perform any required (deferred) fts_stat call.
108157         (fts_build): Likewise, for the directory we're about to open and read.
108158         In the readdir loop, carefully decide whether each entry will require
108159         an eventual call to fts_stat, using dirent.d_type info if available.
108160         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
108161         a command line argument into this function.  Update all callers.
108162         Map a return value of FTS_DOT to FTS_D for a command line argument.
108163         * modules/fts (Depends-on): Add d-type.  Alphabetize.
108164         Thanks to Miklos Szeredi for his tenacity and for the initial
108165         bug report about "find" failing on a FUSE-based file system.
108167         * lib/fts.c (fts_open): Use consistent indentation.
108169 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108171         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
108172         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
108173         reported by Jim Meyering.  All uses of cache variables renamed
108174         to match Autoconf's.
108175         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
108176         the other one.
108178         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
108179         Fix misspelling in diagnostic.
108181 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108183         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
108184         defined.  Problem reported by Matthew Woehlke.
108186         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
108187         Add support for Tandem NonStop R series.
108188         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
108189         Use new macro.
108191         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
108192         (has_trailing_slash): Omit size arg; all callers changed.
108193         Omit 'inline', since it doesn't help performance and we'd
108194         need to configure it.
108195         Don't count //, ///, etc. as having a trailing slash.
108196         As a side effect, this removes a C99ism reported by Matthew Woehlke.
108197         (rpl_rename_dest_slash): On failure, use rename's errno rather
108198         than (in some cases) an incorrect or junk errno.
108199         Simplify code by removing need to compute length; this does
108200         cause it to make two passes instead of one over the file name,
108201         but it's worth it.
108203         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
108204         change, since Autoconf's version may no longer be appropriate now
108205         that we are using CVS Autoconf's version.  Add support for Tandem.
108207 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
108208             Bruno Haible  <bruno@clisp.org>
108210         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
108211         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
108212         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
108213         gl_AC_TYPE_LONG_LONG.
108215         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
108216         instead of HAVE_LONG_LONG.
108217         * lib/printf-args.c (printf_fetchargs): Likewise.
108218         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
108219         * lib/vasnprintf.c (VASNPRINTF): Likewise.
108220         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
108221         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
108222         gl_AC_TYPE_LONG_LONG.
108224 2006-10-11  Bruno Haible  <bruno@clisp.org>
108226         * m4/longlong.m4: Add comments.
108227         * m4/ulonglong.m4: Likewise.
108229 2006-10-10  Bruno Haible  <bruno@clisp.org>
108231         Make it possible to #define stpcpy, strdup to aliases.
108232         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
108233         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
108235 2006-10-10  Bruno Haible  <bruno@clisp.org>
108237         Make it possible to #define gcd to an alias.
108238         * lib/gcd.c: Include config.h.
108240 2006-10-10  Bruno Haible  <bruno@clisp.org>
108242         Make it possible to #define c_isascii to an alias.
108243         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
108244         defined. Undefine the macros before defining them, to avoid gcc
108245         warnings.
108246         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
108247         define NO_C_CTYPE_MACROS early.
108249 2006-10-10  Bruno Haible  <bruno@clisp.org>
108251         Make it possible to #define set_program_name to an alias.
108252         * lib/progname.c: Don't undefine set_program_name; instead, undefine
108253         ENABLE_RELOCATABLE early.
108255 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108257         Port to Tandem NSK OSS, which has 64-bit signed int but at most
108258         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
108259         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
108260         More generally, don't assume that 64-bit signed int is available
108261         if unsigned int is, and vice versa.
108262         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
108263         unsigned symbols, not on their signed counterparts.
108264         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
108265         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
108266         (UINT64_C, UINTMAX_C):
108267         Likewise.
108268         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
108269         unsigned counterparts.
108270         (Have_long_long, Unsigned): New macros.
108271         (Int): Renamed from INT.
108272         (strtoimax): Use the new macros.
108273         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
108274         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
108275         * modules/inttypes (inttypes.h): Substitute
108276         HAVE_UNSIGNED_LONG_LONG_INT.
108277         * modules/stdint (stdint.h): Likewise.
108278         (Files): Add m4/ulonglong.m4.
108280 2006-10-10  Bruno Haible  <bruno@clisp.org>
108282         Fix a gcc -Wshadow warning.
108283         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
108284         to 'bucket'.
108285         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
108286         gl_linked_indexof_from_to): Likewise.
108287         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
108288         Likewise.
108289         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
108290         Likewise.
108291         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
108292         Reported by Eric Blake.
108294 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
108296         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
108297         for NetBSD.  Problem reported by Bruno Haible.
108299 2006-10-09  Jim Meyering  <jim@meyering.net>
108301         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
108302         Patch from Bruno Haible.
108304 2006-10-09  Jim Meyering  <jim@meyering.net>
108306         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
108307         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
108308         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
108310 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108312         Don't include <config.h> twice; this doesn't work in some cases,
108313         e.g., when config.h has "#define intmax_t long long int" and
108314         we include <config.h>, <inttypes.h>, <config.h> in that order.
108315         Problem reported by Matthew Woehlke in:
108316         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
108317         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
108318         * lib/fts-cycle.c: Don't include config.h.
108319         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
108320         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
108321         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
108322         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
108323         inttypes.h.
108324         * lib/xstrtoumax.c: Likewise.
108325         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
108326         __strtol and the like, so that this module is more like its siblings.
108327         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
108328         Remove; no longer needed now that we assume gnulib inttypes.h.
108330 2006-10-08  Bruno Haible  <bruno@clisp.org>
108332         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
108333         option.
108335 2006-10-07  Jim Meyering  <jim@meyering.net>
108337         * modules/inttypes (inttypes.h): Revert what seems to have been
108338         an inadvertent part of today's change: use "|", not "/" in the
108339         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
108341 2006-10-07  Bruno Haible  <bruno@clisp.org>
108343         * modules/sublist: New file.
108345 2006-10-07  Bruno Haible  <bruno@clisp.org>
108347         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
108348         * modules/argz (argz.h): Likewise.
108349         * modules/arpa_inet (arpa/inet.h): Likewise.
108350         * modules/byteswap (byteswap.h): Likewise.
108351         * modules/configmake (configmake.h): Likewise.
108352         * modules/fcntl (fcntl.h): Likewise.
108353         * modules/fnmatch (fnmatch.h): Likewise.
108354         * modules/getopt (getopt.h): Likewise.
108355         * modules/glob (glob.h): Likewise.
108356         * modules/inttypes (inttypes.h): Likewise.
108357         * modules/netinet_in (netinet/in.h): Likewise.
108358         * modules/poll (poll.h): Likewise.
108359         * modules/stdbool (stdbool.h): Likewise.
108360         * modules/stdint (stdint.h): Likewise.
108361         * modules/sys_select (sys/select.h): Likewise.
108362         * modules/sys_socket (sys/socket.h): Likewise.
108363         * modules/sys_stat (sys/stat.h): Likewise.
108364         * modules/sysexits (sysexits.h): Likewise.
108365         * modules/unistd (unistd.h): Likewise.
108366         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108367         Add a "DO NOT EDIT" comment to the generated file.
108368         (func_import): Likewise for gnulib-comp.m4.
108370 2006-10-07  Bruno Haible  <bruno@clisp.org>
108372         * lib/gl_sublist.h: New file.
108373         * lib/gl_sublist.c: New file.
108375 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108377         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
108378         name (relative to the original working directory) and the file
108379         name component (relative to the temporary working directory).  All
108380         callers changed.
108381         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
108382         * lib/mkdir-p.c (make_dir_parents): Likewise.
108383         * lib/mkdir-p.h (make_dir_parents): Likewise.
108385 2006-10-06  Eric Blake  <ebb9@byu.net>
108387         Define several macros for use by the clean-temp module.
108388         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
108389         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
108390         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
108392         * lib/clean-temp.h (close_stream_temp): New declaration.
108393         * lib/clean-temp.c (includes): Pull in headers according to what
108394         other modules are in use.
108395         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
108397 2006-10-06  Bruno Haible  <bruno@clisp.org>
108399         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
108400         instead of fopen, fwriteerror.
108402 2006-10-06  Bruno Haible  <bruno@clisp.org>
108404         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
108405         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
108406         int.
108407         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
108408         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
108409         Return an error indicator.
108410         Suggested by Eric Blake.
108412 2006-10-06  Bruno Haible  <bruno@clisp.org>
108414         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
108415         Reported by Eric Blake.
108417 2006-10-06  Bruno Haible  <bruno@clisp.org>
108419         * modules/closeout (Description): Mention stderr too.
108421 2006-10-06  Bruno Haible  <bruno@clisp.org>
108422         and Paul Eggert  <eggert@cs.ucla.edu>
108424         * lib/closeout.c (close_stdout): Also close stderr.
108425         * lib/closeout.h: Update comment.
108427 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
108429         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
108430         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
108431         * lib/dirchownmod.c: Include lchown.h.
108432         * lib/lchown.c: Don't include files that lchown.h now includes.
108433         Don't declare chown, since lchown.h now does that.
108434         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
108435         (lchown): Define to rpl_chown if lchown is declared but
108436         does not exist.  Declare using a prototype if lchown is not
108437         declared.  Add a copyright notice.
108438         * lib/mkstemp.h: Include <unistd.h>.
108439         * lib/openat.c: Include lchown.h.
108441         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
108442         we now test for that separately.
108443         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
108444         rather than O_NOFOLLOW, when testing whether it's possible to
108445         avoid a race condition reliably.
108446         * lib/savewd.c (savewd_chdir): Likewise.
108448         Remove macros that are no longer needed now that stdint.h is
108449         reliable.
108450         * lib/fsusage.c (UINTMAX_MAX): Remove.
108451         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
108452         * lib/utimecmp.c (SIZE_MAX): Remove.
108454         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
108456         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
108457         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
108458         O_NOATIME works.
108460 2006-10-05  Bruno Haible  <bruno@clisp.org>
108462         * lib/gl_list.h (gl_sortedlist_search_from_to,
108463         gl_sortedlist_indexof_from_to): New declarations.
108464         (gl_list_implementation): New fields sortedlist_search_from_to,
108465         sortedlist_indexof_from_to.
108466         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
108467         inline functions.
108468         * lib/gl_list.c (gl_sortedlist_search_from_to,
108469         gl_sortedlist_indexof_from_to): New functions.
108470         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
108471         function.
108472         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
108473         (gl_array_sortedlist_search_from_to): New function.
108474         (gl_array_list_implementation): Update.
108475         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
108476         function.
108477         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
108478         (gl_carray_sortedlist_search_from_to): New function.
108479         (gl_carray_list_implementation): Update.
108480         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
108481         gl_linked_sortedlist_indexof_from_to): New functions.
108482         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108483         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108484         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
108485         gl_tree_sortedlist_indexof_from_to): New functions.
108486         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108487         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108488         Update.
108489         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108490         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
108491         Update.
108493 2006-10-05  Bruno Haible  <bruno@clisp.org>
108495         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
108496         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
108497         (struct gl_list_implementation): Add fields search_from_to,
108498         indexof_from_to. Remove fields search, indexof.
108499         (gl_list_search): Use the search_from_to method.
108500         (gl_list_search_from, gl_list_search_from_to): New functions.
108501         (gl_list_indexof): Use the indexof_from_to method.
108502         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108503         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
108504         (gl_list_search_from, gl_list_search_from_to): New functions.
108505         (gl_list_indexof): Use the indexof_from_to method.
108506         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
108507         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
108508         gl_array_indexof. Add start_index, end_index arguments.
108509         (gl_array_search_from_to): Renamed from gl_array_search. Add
108510         start_index, end_index arguments.
108511         (gl_array_remove, gl_array_list_implementation): Update.
108512         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
108513         gl_carray_indexof. Add start_index, end_index arguments.
108514         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
108515         start_index, end_index arguments.
108516         (gl_carray_remove, gl_carray_list_implementation): Update.
108517         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
108518         gl_linked_search. Add start_index, end_index arguments.
108519         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
108520         start_index, end_index arguments.
108521         (gl_linked_remove): Update.
108522         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
108523         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
108524         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
108525         field to 'size_t'.
108526         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
108527         gl_tree_search. Add start_index, end_index arguments.
108528         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108529         start_index, end_index arguments.
108530         (gl_tree_remove): Update.
108531         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
108532         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
108533         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
108534         function.
108535         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
108536         gl_tree_search. Add start_index, end_index arguments.
108537         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
108538         start_index, end_index arguments.
108539         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
108540         Update.
108541         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
108543 2006-10-05  Bruno Haible  <bruno@clisp.org>
108545         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
108547         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
108548         fwriteerror_temp): New declarations.
108549         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
108550         (descriptors): New variable.
108551         (cleanup): First, close the descriptors.
108552         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
108553         fclose_temp, fwriteerror_temp): New functions.
108555 2006-10-04  Jim Meyering  <jim@meyering.net>
108557         * lib/fts.c (fts_open): Tiny comment change.
108559 2006-10-04  Bruno Haible  <bruno@clisp.org>
108561         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
108562         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
108563         gl_LOCK_BODY.
108564         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
108565         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
108566         gl_LOCK_EARLY_BODY.
108567         (gl_LOCK): Require gl_LOCK_BODY.
108569 2006-10-04  Bruno Haible  <bruno@clisp.org>
108571         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
108572         (gl_oset_search_atleast): New declaration.
108573         (struct gl_oset_implementation): Add field 'search_atleast'.
108574         (gl_oset_search_atleast): New inline function.
108575         * lib/gl_oset.c (gl_oset_search_atleast): New function.
108576         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
108577         (gl_array_oset_implementation): Update.
108578         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
108579         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
108580         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
108582 2006-10-04  Bruno Haible  <bruno@clisp.org>
108584         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
108586 2006-10-03  Bruno Haible  <bruno@clisp.org>
108588         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
108589         from gl_avltreehash_list_implementation.
108591 2006-10-03  Bruno Haible  <bruno@clisp.org>
108593         * lib/gl_oset.c (gl_oset_add): Fix return type.
108595 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
108597         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
108599 2006-10-02  Eric Blake  <ebb9@byu.net>
108601         * modules/strnlen (Depends-on): Add extensions.
108603 2006-10-02  Eric Blake  <ebb9@byu.net>
108605         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
108606         definition in 2.60+.
108608 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
108610         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
108611         checks.
108613 2006-10-02  Bruno Haible  <bruno@clisp.org>
108615         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
108616         to the AUTOMAKE_OPTIONS.
108617         Reported by Jim Meyering.
108619 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
108621         Work around bug in Solaris 10 /proc file system:
108622         /proc/self/fd/NNN/.. isn't the parent directory of
108623         the directory whose file descriptor is NNN.  This needs to
108624         be worked around at run time, not compile time, since a
108625         program might be built on Solaris 8, where things work, and
108626         run on Solaris 10.
108627         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
108628         to use the following interface instead:
108629         (OPENAT_BUFFER_SIZE): New macro.
108630         (openat_proc_name): New function.
108631         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
108632         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
108633         Likewise.
108634         * lib/openat-proc.c: New file.
108635         * modules/openat (Files): Add lib/openat-proc.c.
108636         (Depends-on): Add same-inode, stdbool.
108637         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
108639 2006-09-29  Bruno Haible  <bruno@clisp.org>
108641         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
108642         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
108643         argument. Set stdout_closed before testing for ferror, not after.
108644         (fwriteerror, fwriteerror_no_ebadf): New functions.
108646 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108648         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
108650 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
108652         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
108653         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
108655 2006-09-28  Jim Meyering  <jim@meyering.net>
108657         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
108658         Include <unistd.h>.
108660 2006-09-28  Bruno Haible  <bruno@clisp.org>
108662         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
108663         * modules/linkedhash-list (Depends-on): Likewise.
108664         * modules/rbtreehash-list (Depends-on): Likewise.
108666 2006-09-28  Bruno Haible  <bruno@clisp.org>
108668         * lib/strndup.h: Simplify the redefinition of strndup.
108669         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
108670         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
108672 2006-09-28  Bruno Haible  <bruno@clisp.org>
108674         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
108675         * lib/gl_linkedhash_list.c: Likewise.
108676         * lib/gl_rbtreehash_list.c: Likewise.
108678 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
108680         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
108681         getaddrinfo.
108683         * lib/__fpending.h: Don't include <stdio_ext.h> unless
108684         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
108685         it causes <stdio_ext.h> to cause a compile-time error.
108686         Problem reported by Nelson H. F. Beebe.
108687         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
108688         of HAVE_DECL___PENDING.
108690         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
108691         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
108692         declaration.
108694 2006-09-27  Jim Meyering  <jim@meyering.net>
108696         This file could end up with a definition for a function
108697         named __strndup, rather than rpl_strndup on a system with
108698         incomplete weak_alias support.
108699         * lib/strndup.c (strndup): Rename from __strndup.
108700         Remove #defines that used to map __strndup to strndup.
108701         Don't use K&R prototypes.
108702         Remove LIBC-related code, since this file is not sync'd with glibc.
108703         * lib/strndup.h: Revamp, accordingly.
108704         * m4/strndup.m4: Modernize.
108706 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
108708         * modules/savewd (Depends-on): Add 'raise'.
108709         * lib/savewd.c: Include <signal.h>, for 'raise'.
108711 2006-09-26  Jim Meyering  <jim@meyering.net>
108713         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
108714         when we detect Darwin 8.7.0's acl_get_file bug.
108715         Rearrange to perform the new (below) run-test while $LIBS
108716         contains any acl-related library.  Set USE_ACL at the end.
108717         (gl_ACL_GET_FILE): New function.
108719 2006-09-26  Eric Blake  <ebb9@byu.net>
108721         * lib/verror.c: Include <config.h> unconditionally.
108723 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
108725         * modules/clock-time (Maintainer): Add self.
108726         * modules/getlogin_r (Depends-on): Add extensions.
108728 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108730         * modules/clock-time: New module.
108731         * modules/nanosleep (Depends-on): Add clock-time.
108732         * modules/gethrxtime (Depends-on): Likewise.
108733         * modules/gettime (Depends-on): Likewise.
108734         * modules/settime (Depends-on): Likewise.
108736         * modules/fts-lgpl: Depend on openat.
108737         * modules/mkancesdirs: Depend on savewd.
108738         * modules/mkdir-p: Likewise.
108740 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108742         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
108744         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
108745         `gl_have_arbitrary_file_name_length_limit' to
108746         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
108747         actually works between configure runs.
108749 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108750             Bruno Haible  <bruno@clisp.org>
108752         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
108754 2006-09-25  Jim Meyering  <jim@meyering.net>
108756         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
108757         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
108759 2006-09-25  Eric Blake  <ebb9@byu.net>
108761         * gnulib-tool (func_import, func_create_testdir): Fix typos in
108762         exec's in 2006-09-18 patch when shuffling fds.
108764 2006-09-25  Bruno Haible  <bruno@clisp.org>
108766         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
108767         Reported by Jim Meyering.
108769 2006-09-24  Jim Meyering  <jim@meyering.net>
108771         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
108772         compare a pointer against a literal "0".  That caused failures with
108773         at least HP-UX's hpcc.
108775 2006-09-22  Simon Josefsson  <jas@extundo.com>
108777         * modules/gc-sha1:
108778         * modules/gc-md4:
108779         * modules/gc-hmac-sha1:
108780         * modules/gc-hmac-md5:
108781         * modules/gc-des:
108782         * modules/gc-arcfour: Distribute more files.
108784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108786         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
108787         (gl_linked_iterator_from_to): Initialize struct completely.
108788         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
108789         (gl_tree_iterator_from_to): Likewise
108790         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
108791         * lib/gl_array_list.c [lint] (gl_array_iterator)
108792         (gl_array_iterator_from_to): Likewise.
108793         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
108794         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
108795         (gl_carray_iterator_from_to): Likewise.
108797         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
108798         * lib/md4.c (md4_process_block): Remove unused variable.
108799         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
108800         parentheses for clarity.
108802 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108804         * modules/bison-i18n (Depends-on): Add gettext.
108806 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108808         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
108809         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
108810         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
108811         also add missing comma that caused broken test.
108812         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
108813         stdlib.h, for `abort'.
108814         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
108815         variables.
108816         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
108817         include unistd.h if present, for `rmdir'.
108818         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
108819         variables.
108820         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
108821         in the process include standard headers for prototypes.
108822         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
108823         gets declared on GNU/Linux.
108824         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
108825         unistd.h, for `rmdir'.
108826         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
108828         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
108829         always true.
108830         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
108832         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
108834 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108836         * gnulib-tool (func_version): Create output all at once.  This
108837         may help avoid triggering unnecessary SIGPIPEs, and at any
108838         rate it doesn't hurt.
108840 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108841             Bruno Haible  <bruno@clisp.org>
108843         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
108844         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
108845         * m4/signed.m4 (bh_C_SIGNED): Likewise.
108847         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
108848         (gl_FUNC_VASPRINTF): Invoke it.
108850 2006-09-22  Bruno Haible  <bruno@clisp.org>
108852         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
108853         getloadavg.c as first argument.
108855 2006-09-22  Bruno Haible  <bruno@clisp.org>
108857         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
108858         at the beginning of the gl_INIT macro.
108859         * modules/getloadavg (configure.ac): Pass $gl_source_base to
108860         gl_GETLOADAVG.
108862 2006-09-22  Bruno Haible  <bruno@clisp.org>
108864         * gnulib-tool (func_create_megatestdir): Don't include the config-h
108865         module.
108866         Suggested by Ralf Wildenhues.
108868 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108870         Import this patch from libc:
108872         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
108874         * lib/regex_internal.c (re_string_reconstruct): Handle
108875         offset < pstr->valid_raw_len && pstr->offsets_needed case.
108876         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
108877         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
108878         re_string_context_at.
108880         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
108881         now requires it.
108882         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
108883         gl_REGEX now does it for us.
108884         (gl_REGEX): Add test taken from
108885         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
108887         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
108888         Check that large offsets work.  Modernize Autoconf usages.
108889         Prefer "yes" to mean a good thing rather than a bad.
108890         Don't put "#define mkstemp" in config.h, as this might interfere
108891         with standard system headers that "#define mkstemp mkstemp64".
108893         * modules/mkstemp (Depends-on): Add extensions, so that
108894         mkstemp is visible on some platforms.
108895         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
108896         (Include): Change to "mkstemp.h" from <stdlib.h>.
108897         (Files): Add mkstemp.h.
108899         * lib/mkstemp.h: New file, since some standard headers
108900         #define mkstemp.
108901         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
108902         Include "mkstemp.h".
108903         Make the _LIBC code resemble glibc original more,
108904         e.g., use K&R style.
108905         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
108906         (mkstemp): Remove, since mkstemp.h does this for us.
108907         * lib/stdlib--.h: Include mkstemp.h.
108909         Import this patch from libc:
108911         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
108913         * lib/tempname.c (__gen_tempname): Change attempts_min
108914         into a macro.  Use preprocessor to decide how to initialize
108915         attempts [Coverity CID 67].
108917 2006-09-20  Bruno Haible  <bruno@clisp.org>
108919         * lib/mkdtemp.c: Import from libc.
108920         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
108921                 * sysdeps/posix/tempname.c (__gen_tempname): Change
108922                 attempts_min into a macro.  Use preprocessor to decide how to
108923                 initialize attempts [Coverity CID 67].
108924         2001-11-27  Paul Eggert  <eggert@twinsun.com>
108925                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
108926                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
108928 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108930         * gnulib-tool (func_exit): New function, to allow to pass the
108931         exit status portably through the trap.  Use everywhere.
108932         (--help, --version): Signal a write error.
108933         (trap): catch SIGPIPE, for write errors.
108934         Exit at the end of the trap, with the correct exit status.
108936 2006-09-19  Karl Berry  <karl@gnu.org>
108938         * doc/gnulib.texi: note about the license texinfo files.
108940 2006-09-19  Eric Blake  <ebb9@byu.net>
108942         * gnulib-tool: Avoid space-tab.
108944 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
108946         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
108947         that prevented coreutils 6.1 from building.  Problem reported
108948         by Petter Reinholdtsen.
108950 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
108952         * gnulib-tool (avoidlist): Fix typo that broke options like
108953         --avoid=lock that are used by coreutils bootstrap.
108955 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
108957         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
108958         more systematically.
108960 2006-09-18  Jim Meyering  <jim@meyering.net>
108962         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
108964 2006-09-18  Bruno Haible  <bruno@clisp.org>
108966         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
108968 2006-09-18  Bruno Haible  <bruno@clisp.org>
108970         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
108971         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
108972         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
108973         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
108974         * m4/gettext.m4: Require autoconf >= 2.52.
108975         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
108976         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
108977         of gl_cv_header_inttypes_h.
108979 2006-09-18  Bruno Haible  <bruno@clisp.org>
108981         * lib/javaversion.c: Include configmake.h.
108983 2006-09-18  Bruno Haible  <bruno@clisp.org>
108985         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
108986         avoid that the while loops be executed in a subshell.
108988 2006-09-18  Bruno Haible  <bruno@clisp.org>
108990         * MODULES.html.sh (func_module): Break long lines.
108991         Suggested by Bruce Korb <bkorb@gnu.org>.
108993 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108995         Speed up by a factor of 1.12.
108996         * gnulib-tool (nl): New variable.
108997         (func_import): Rewrite include directive extraction to only read each
108998         directive once.
109000 2006-09-17  Bruno Haible  <bruno@clisp.org>
109002         * modules/javaversion (Makefile.am): Remove DEFS setting.
109003         (Depends-on): Add configmake, for PKGDATADIR definition.
109005 2006-09-17  Bruno Haible  <bruno@clisp.org>
109007         * gnulib-tool (func_create_testdir): Rewrite all files at once.
109009 2006-09-17  Bruno Haible  <bruno@clisp.org>
109011         * gnulib-tool (func_append): New function, stolen from libtool.m4.
109012         (func_modules_transitive_closure, func_modules_add_dummy,
109013         func_modules_to_filelist, func_import, func_create_testdir,
109014         func_create_megatestdir, ...): Use it wherever possible.
109015         Suggested by Ralf Wildenhues.
109017 2006-09-16  Karl Berry  <karl@gnu.org>
109019         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
109020         to avoid sectioning errors.
109021         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
109022         [ifinfo]: blank line after @center-ed titles.
109023         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
109024         Spell FSF address consistently with others.
109025         (These changes approved by rms.)
109027 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109029         Speed up by a factor of 1.61.
109030         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
109031         already checked module names again.
109033 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109035         Speed up by a factor of 1.13.
109036         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
109037         for new_files, and the input to func_add_or_update.
109039 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109041         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
109042         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
109044 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109046         * modules/mkancesdirs (Depends-on): Add fcntl.
109047         * modules/savewd: New file.
109048         * MODULES.html.sh (File system functions): Add savewd.
109050         * modules/configmake (Makefile.am): Add support for the
109051         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
109053 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109055         * m4/savewd.m4: New file.
109057 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109059         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
109060         (dirchownmod): New arg FD.  All callers changed.
109061         Use FD rather than opening the directory ourself, as opening is
109062         now the caller's responsibility.
109063         * lib/dirchownmod.h: Likewise.
109064         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
109065         hosts that require <sys/types.h> before <sys/stat.h>.  Include
109066         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
109067         (test_dir): Remove.
109068         (mkancesdirs): Return length of prefix of FILE that has already
109069         been made, or -2 if there is a child doing the work.  Redo
109070         algorithm so that it is O(N) rather than O(N**2).  Optimize away
109071         ".", and treat ".." specially since it might stray back into
109072         already-created areas.  Use a subprocess if necessary.  New arg
109073         WD; all users changed.  MAKE_DIR function should now return 1
109074         if it creates a directory that is not readable.  Return -2 if
109075         a child process is spun off.
109076         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
109077         Adjust signature to match code.
109078         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
109079         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
109080         all users changed.
109081         * lib/savewd.c, lib/savewd.h: New files.
109083 2006-09-15  Jim Meyering  <jim@meyering.net>
109085         * modules/rename-dest-slash: New module.
109086         * MODULES.html.sh (posix_compat): Add it here.
109088         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
109090 2006-09-15  Jim Meyering  <jim@meyering.net>
109092         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
109093         file.
109095         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
109097 2006-09-15  Jim Meyering  <jim@meyering.net>
109099         * lib/rename-dest-slash.c (has_trailing_slash): Use
109100         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
109101         (rpl_rename_dest_slash): Perform the cheaper trailing slash
109102         test before testing whether SRC is a directory.
109103         Suggestions from Bruno Haible.
109105         Avoid a warning about an unused variable.
109106         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
109107         into the #ifdef block where it's used.
109109         * lib/rename-dest-slash.c: New file.
109111 2006-09-14  Bruno Haible  <bruno@clisp.org>
109113         * lib/allocsa.c: Include <config.h> unconditionally.
109114         * lib/asnprintf.c: Likewise.
109115         * lib/asprintf.c: Likewise.
109116         * lib/c-strcasecmp.c: Likewise.
109117         * lib/c-strcasestr.c: Likewise.
109118         * lib/c-strncasecmp.c: Likewise.
109119         * lib/c-strstr.c: Likewise.
109120         * lib/classpath.c: Likewise.
109121         * lib/clean-temp.c: Likewise.
109122         * lib/concatpath.c: Likewise.
109123         * lib/copy-file.c: Likewise.
109124         * lib/csharpcomp.c: Likewise.
109125         * lib/csharpexec.c: Likewise.
109126         * lib/execute.c: Likewise.
109127         * lib/fatal-signal.c: Likewise.
109128         * lib/findprog.c: Likewise.
109129         * lib/fwriteerror.c: Likewise.
109130         * lib/gl_array_list.c: Likewise.
109131         * lib/gl_array_oset.c: Likewise.
109132         * lib/gl_avltree_list.c: Likewise.
109133         * lib/gl_avltree_oset.c: Likewise.
109134         * lib/gl_avltreehash_list.c: Likewise.
109135         * lib/gl_carray_list.c: Likewise.
109136         * lib/gl_linked_list.c: Likewise.
109137         * lib/gl_linkedhash_list.c: Likewise.
109138         * lib/gl_list.c: Likewise.
109139         * lib/gl_oset.c: Likewise.
109140         * lib/gl_rbtree_list.c: Likewise.
109141         * lib/gl_rbtree_oset.c: Likewise.
109142         * lib/gl_rbtreehash_list.c: Likewise.
109143         * lib/imaxabs.c: Likewise.
109144         * lib/imaxdiv.c: Likewise.
109145         * lib/javacomp.c: Likewise.
109146         * lib/javaexec.c: Likewise.
109147         * lib/javaversion.c: Likewise.
109148         * lib/linebreak.c: Likewise.
109149         * lib/localcharset.c: Likewise.
109150         * lib/lock.c: Likewise.
109151         * lib/mbchar.c: Likewise.
109152         * lib/mbswidth.c: Likewise.
109153         * lib/mkdtemp.c: Likewise.
109154         * lib/pipe.c: Likewise.
109155         * lib/printf-args.c: Likewise.
109156         * lib/printf-parse.c: Likewise.
109157         * lib/progname.c: Likewise.
109158         * lib/progreloc.c: Likewise.
109159         * lib/readlink.c: Likewise.
109160         * lib/sh-quote.c: Likewise.
109161         * lib/stpcpy.c: Likewise.
109162         * lib/stpncpy.c: Likewise.
109163         * lib/strcasecmp.c: Likewise.
109164         * lib/strcasestr.c: Likewise.
109165         * lib/strcspn.c: Likewise.
109166         * lib/striconv.c: Likewise.
109167         * lib/strncasecmp.c: Likewise.
109168         * lib/strnlen1.c: Likewise.
109169         * lib/strstr.c: Likewise.
109170         * lib/strtok_r.c: Likewise.
109171         * lib/tls.c: Likewise.
109172         * lib/tmpdir.c: Likewise.
109173         * lib/unicodeio.c: Likewise.
109174         * lib/unsetenv.c: Likewise.
109175         * lib/vasnprintf.c: Likewise.
109176         * lib/vasprintf.c: Likewise.
109177         * lib/wait-process.c: Likewise.
109178         * lib/xallocsa.c: Likewise.
109179         * lib/xsetenv.c: Likewise.
109180         * lib/xstriconv.c: Likewise.
109182 2006-09-13  Simon Josefsson  <jas@extundo.com>
109184         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
109185         that internally, suggested by Ralf Wildenhues
109186         <Ralf.Wildenhues@gmx.de>.
109188 2006-09-13  Simon Josefsson  <jas@extundo.com>
109190         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
109191         @LIBOBJS@.
109192         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
109194 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
109196         * lib/_fpending.c: Include <config.h> unconditionally, since we no
109197         longer worry about uses that don't define HAVE_CONFIG_H.
109198         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
109199         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
109200         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
109201         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
109202         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
109203         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
109204         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
109205         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
109206         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
109207         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
109208         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
109209         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
109210         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
109211         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
109212         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
109213         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
109214         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
109215         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
109216         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
109217         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
109218         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
109219         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
109220         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
109221         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
109222         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
109223         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
109224         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
109225         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
109226         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
109227         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
109228         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
109229         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
109230         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
109231         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
109232         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
109233         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
109234         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
109235         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
109236         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
109237         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
109238         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
109239         Likewise.
109241 2006-09-13  Eric Blake  <ebb9@byu.net>
109243         * lib/getopt.c: Fix typo in last commit.
109245 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
109247         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
109248         dgettext.
109250 2006-09-12  Jim Meyering  <jim@meyering.net>
109252         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
109253         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
109254         Reported by Nelson H. F. Beebe.
109256 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
109258         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
109259         program_invocation_name and program_invocation_short_name are
109260         initialized.
109261         * lib/argp-namefrob.h: Move declarations of program_invocation_name
109262         and program_invocation_short_name to argp.h, so they are visible
109263         to user programs.
109264         * lib/argp.h: Likewise
109266 2006-09-10  Bruno Haible  <bruno@clisp.org>
109268         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
109269         m4/inttypes_h.m4, m4/uintmax_t.m4.
109271 2006-09-10  Bruno Haible  <bruno@clisp.org>
109273         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
109274         gl_AC_TYPE_UINTMAX_T.
109276 2006-09-10  Bruno Haible  <bruno@clisp.org>
109278         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
109280 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
109282         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
109283         convention.  Text proposed by Bruno Haible.
109284         (struct argp_option): Document the use of N_() wrappers.
109286         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
109287         '\v', and translate the two parts separately, instead of feeding
109288         the whole string to gettext.  This allows to exclude
109289         '\v' from the strings visible to the translator by writing doc
109290         strings as N_("..") "\v" N_("..").
109292 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
109294         * config/srclist.txt: Undo latest change; the bug was fixed.
109296 2006-09-09  Bruno Haible  <bruno@clisp.org>
109298         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
109299         assignments if building a library without libtool.
109300         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
109301         in func_emit_lib_Makefile_am.
109302         (func_import): When building a static library libfoo.a, arrange to
109303         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
109304         (func_create_testdir): Likewise.
109305         * modules/gc (configure.ac, Makefile.am): If building statically,
109306         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
109307         * modules/iconvme (configure.ac, Makefile.am): Likewise.
109308         * modules/striconv (configure.ac, Makefile.am): Likewise.
109309         Based on a suggestion by Ralf Wildenhues.
109311 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109313         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109314         Check for unistd.h too, since Autoconf doesn't assume POSIX.
109315         Also:
109317         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109318         Add year_2050_test to catch glibc bug 2821
109319         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109321         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
109322         Prefer #ifdef to #if.
109324         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
109325         Return from 'main' instead of calling 'exit'.
109327 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109329         * lib/mktime.c (guess_time_tm): Fix bug where mktime
109330         returned the maximum time_t value rather than (time_t) -1.
109331         Problem originally reported by William Bardwell
109332         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
109334         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109335         Moved to here ...
109336         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
109337         ... from here.
109339 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109341         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
109342         2821 is fixed.
109344 2006-09-08  Jim Meyering  <jim@meyering.net>
109346         Don't make generated files read-only.  That would bother too many
109347         people.  However, do retain the ability to work when targets are
109348         read-only: remove the destination and temporary files before writing
109349         them (when generated via sed or echo), or by using the -f option for
109350         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
109351         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109352         * modules/byteswap, modules/configmake, modules/fcntl:
109353         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109354         * modules/localcharset, modules/netinet_in, modules/poll:
109355         * modules/stdbool, modules/stdint, modules/sys_select:
109356         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109358 2006-09-08  Jim Meyering  <jim@meyering.net>
109360         Avoid new build failure on FreeBSD 6.0.
109361         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
109362         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
109363         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
109365 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109367         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
109369 2006-09-07  Jim Meyering  <jim@meyering.net>
109371         Fix global typo in last change: use chmod u-w, not chmod u-x.
109372         Spotted by Paul Eggert and Bruce Korb.
109373         * modules/alloca-opt, modules/argz, modules/arpa_inet:
109374         * modules/byteswap, modules/configmake, modules/fcntl:
109375         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
109376         * modules/localcharset, modules/netinet_in, modules/poll:
109377         * modules/stdbool, modules/stdint, modules/sys_select:
109378         * modules/sys_socket, modules/sys_stat, modules/sysexits:
109380 2006-09-06  Jim Meyering  <jim@meyering.net>
109382         Make generated files be read-only.
109383         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
109384         Ensure that each generated file is now read-only.
109385         * modules/argz: Likewise.
109386         * modules/arpa_inet: Likewise.
109387         * modules/byteswap: Likewise.
109388         * modules/configmake: Likewise.
109389         * modules/fcntl: Likewise.
109390         * modules/fnmatch: Likewise.
109391         * modules/getopt: Likewise.
109392         * modules/glob: Likewise.
109393         * modules/inttypes: Likewise.
109394         * modules/netinet_in: Likewise.
109395         * modules/poll: Likewise.
109396         * modules/stdbool: Likewise.
109397         * modules/stdint: Likewise.
109398         * modules/sys_select: Likewise.
109399         * modules/sys_socket: Likewise.
109400         * modules/sys_stat: Likewise.
109401         * modules/sysexits: Likewise.
109402         * modules/localcharset: Same as above, but continue using temporary
109403         file named "t-$@" (why different?) rather than the "$@-t" used
109404         everywhere else.
109406         * modules/sysexits (Makefile.am): Replace literal occurrences
109407         of "sysexit.h" more readable, and more consistent, "$@".
109409 2006-09-06  Bruno Haible  <bruno@clisp.org>
109411         * modules/striconv: New file.
109412         * modules/xstriconv: New file.
109413         * MODULES.html.sh (Internationalization functions): Add striconv,
109414         xstriconv.
109416 2006-09-06  Bruno Haible  <bruno@clisp.org>
109418         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
109419         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
109420         not using libtool correctly.
109422 2006-09-06  Bruno Haible  <bruno@clisp.org>
109424         * lib/striconv.h: New file.
109425         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
109426         iconvstring.c.
109427         * lib/xstriconv.h: New file.
109428         * lib/xstriconv.c: New file.
109430 2006-09-06  Bruno Haible  <bruno@clisp.org>
109432         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109433         lib_..._LDFLAGS.
109435 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109437         * lib/argz_.h: Sync from Libtool.
109439         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
109440                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
109442         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
109444 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109446         * modules/trim: New file.
109448 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
109450         * lib/trim.h: New file.
109451         * lib/trim.c: New file.
109453 2006-09-05  Bruno Haible  <bruno@clisp.org>
109455         * MODULES.html.sh (String handling): Add trim.
109457 2006-09-04  Karl Berry  <karl@gnu.org>
109459         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
109460         until next release.
109462 2006-09-03  Bruno Haible  <bruno@clisp.org>
109464         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
109465         correctly.
109467 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109469         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
109470         not gl_GETLOADAVG.  Omit unneeded semicolons.
109471         Problems reported by Ralf Wildenhues in
109472         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109473         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
109474         at the end, which is the usual gnulib style.
109476         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
109477         of doing all the work ourselves.
109478         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
109479         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
109481 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109483         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
109484         Problem reported by Ralf Wildenhues in
109485         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
109487         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
109488         HAVE_STRUCT_STATFS_F_FSTYPENAME.
109490 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
109492         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
109493         yesterday's patch by changing test -n to test -z.
109495 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109497         * modules/getloadavg (Files): Add m4/getloadavg.m4.
109498         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
109499         the former is now obsolescent.
109501         * modules/chdir-long (Depends-on): Add fcntl.
109503 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109505         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
109506         obsolescent, and programs should use gnulib instead.
109507         * m4/getloadavg.m4: New file, with contents taken from Autoconf
109508         but with prefixes changed.
109510 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
109512         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
109513         or stdbool.h, because they might not exist while configuring.
109515         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
109516         Don't include unistd.h or limits.h; not needed, since chdir-long.h
109517         does that for us.
109518         (O_DIRECTORY): Remove.
109520 2006-08-31  Eric Blake  <ebb9@byu.net>
109522         * gnulib-tool: Don't let emacs change spaces to TAB.
109524 2006-08-31  Bruno Haible  <bruno@clisp.org>
109526         * gnulib-tool: When calling func_import more than once, do it in a
109527         subshell.
109528         Reported by Eric Blake <ebb9@byu.net>.
109530 2006-08-31  Bruno Haible  <bruno@clisp.org>
109532         * gnulib-tool (nl): Remove variable.
109533         (sed_transform_lib_file): Use more robust test for config-h module.
109534         (func_import): Fix typo in 2006-08-25 patch.
109536 2006-08-31  Bruno Haible  <bruno@clisp.org>
109538         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
109539         specified, augment Makefile.am variables instead of assigning them.
109541 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109543         Work around a bug in both the Linux and SunOS 64-bit kernels:
109544         nanosleep mishandles sleeps for longer than 2**31 seconds.
109545         Problem reported by Frank v Waveren in
109546         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109547         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
109548         Check for nanosleep bug.
109549         (LIB_NANOSLEEP): Append clock_gettime library if needed.
109551 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109553         Work around a bug in both the Linux and SunOS 64-bit kernels:
109554         nanosleep mishandles sleeps for longer than 2**31 seconds.
109555         Problem reported by Frank v Waveren in
109556         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
109557         * lib/nanosleep.c (BILLION): New constant.
109558         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
109559         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
109560         implementation.
109562 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109564         * modules/nanosleep (Depends-on): Add gettime.
109566 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
109567         and Simon Josefsson  <jas@extundo.com>
109568         and Oskar Liljeblad  <oskar@osk.mine.nu>
109570         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
109571         * gnulib-tool (func_import): New license type 'unmodifiable license
109572         text'.
109573         * modules/fdl: Use it.  Longer description.
109574         * module/gpl, module/lgpl: New files.
109576 2006-08-30  Jim Meyering  <jim@meyering.net>
109578         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
109579         shadowing the parameter.
109581 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109583         Sync from Libtool:
109585         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109587         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
109588         sharing with gnulib.  Report by Eric Blake.
109590 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109592         * modules/isapipe: New file.
109593         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
109595 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109597         * modules/configmake (Makefile.am): Add a comment, and omit
109598         the CONFIGMAKE_ prefix from generated macro names.  Suggested
109599         by Bruno Haible.
109601 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109603         * m4/isapipe.m4: New file.
109605 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
109607         * lib/isapipe.c, lib/isapipe.h: New files.
109609 2006-08-29  Jim Meyering  <jim@meyering.net>
109611         * modules/configmake (Makefile.am): Make configmake.h depend on
109612         Makefile.  Otherwise, a stale configmake.h could hang around.
109614 2006-08-29  Eric Blake  <ebb9@byu.net>
109616         * lib/error.c (error_at_line, print_errno_message): Match libc, after
109617         resolution of upstream bug 3044.
109619 2006-08-29  Bruno Haible  <bruno@clisp.org>
109621         * modules/localcharset (Depends-on): Add configmake.
109622         (Makefile.am): Remove setting of LIBDIR through DEFS.
109624 2006-08-29  Bruno Haible  <bruno@clisp.org>
109626         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
109627         defined.
109629 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109631         * modules/fcntl: New file.
109632         * modules/chdir-safer (Depends-on): Add fcntl.
109633         * modules/fts: Likewise.
109634         * modules/mkdir-p: Likewise.
109636         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
109637         This undoes the most recent change, since we're now addressing the
109638         problem in a different way.
109640         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
109641         into output, since the output might be called Makefile.am even
109642         if $makefile_name is something different.
109643         (func_import): Use $makefile_am rather than
109644         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
109645         empty.
109647         * modules/inttypes (Files): Add m4/inttypes-h.m4.
109649 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109651         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
109652         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
109653         recent change to stdint.m4, since we're now addressing the problem in a
109654         different way.
109656 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109658         * m4/fcntl_h.m4: New file.
109660 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
109662         * lib/fcntl_.h: New file.
109663         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
109664         the fcntl module.
109665         * lib/dirchownmod.c: Likewise.
109666         * lib/fts.c: Likewise.
109668         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
109669         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
109670         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
109671         just before including <inttypes.h>, to avoid circular inclusion.
109673 2006-08-28  Jim Meyering  <jim@meyering.net>
109675         * doc/visibility.texi: Actually read and correct the grammar of the
109676         sentence affected by yesterday's change.
109678 2006-08-28  Eric Blake  <ebb9@byu.net>
109680         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
109681         needs wrapper.
109683 2006-08-28  Eric Blake  <ebb9@byu.net>
109685         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
109687 2006-08-28  Eric Blake  <ebb9@byu.net>
109689         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
109691 2006-08-28  Bruno Haible  <bruno@clisp.org>
109693         * modules/c-strstr: New file, from GNU gettext.
109694         * MODULES.html.sh (String handling): Add c-strstr.
109696 2006-08-28  Bruno Haible  <bruno@clisp.org>
109698         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
109699         macros.
109700         Reported by Eric Blake.
109702 2006-08-28  Bruno Haible  <bruno@clisp.org>
109704         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
109705         (VASNPRINTF): Return a string of length > INT_MAX without failing.
109706         * lib/vasprintf.c: Include errno.h, limits.h.
109707         (EOVERFLOW): New fallback definition.
109708         (vasprintf): Test here whether the string length is > INT_MAX.
109709         * lib/vsnprintf.c: Include errno.h, limits.h.
109710         (EOVERFLOW): New fallback definition.
109711         (vsnprintf): Fix bug when generated string was too long for the buffer.
109712         Test here whether the string length is > INT_MAX.
109714 2006-08-28  Bruno Haible  <bruno@clisp.org>
109716         * lib/inttypes_.h (SCNX*): Remove definitions.
109717         Reported by Eric Blake.
109719 2006-08-28  Bruno Haible  <bruno@clisp.org>
109721         * lib/c-strstr.h: New file, from GNU gettext.
109722         * lib/c-strstr.c: New file, from GNU gettext.
109724 2006-08-28  Bruno Haible  <bruno@clisp.org>
109726         * gnulib-tool: Reorder some statements.
109728 2006-08-28  Bruno Haible  <bruno@clisp.org>
109730         * gnulib-tool: New option --makefile-name.
109731         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
109732         $makefile_name.
109733         (func_import): Write $makefile_name to the cache file, and read it from
109734         there unless explicitly specified. Use $makefile_name as file name
109735         instead of Makefile.am. Adjust the recommendations accordingly.
109737 2006-08-28  Bruno Haible  <bruno@clisp.org>
109739         * gnulib-tool (func_verify_module): Check against misapplying patch.
109741 2006-08-28  Bruno Haible  <bruno@clisp.org>
109743         * gnulib-tool (func_relativize, func_relconcat): New functions.
109744         Give an error if --local-dir is given with --update.
109745         Remove trailing slashes from $local_gnulib_dir.
109746         (func_import): Store the relativized $local_gnulib_dir in
109747         gnulib-cache.m4, and read it from there if not specified explicitly.
109749 2006-08-28  Bruno Haible  <bruno@clisp.org>
109751         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
109752         is the current directory. Respect also $local_gnulib_dir.
109754 2006-08-28  Bruno Haible  <bruno@clisp.org>
109755             Simon Josefsson  <jas@extundo.com>
109757         BeOS portability.
109758         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
109760 2006-08-27  Jim Meyering  <jim@meyering.net>
109762         * doc/visibility.texi: Remove duplicate word: "pointer".
109764 2006-08-26  Bruno Haible  <bruno@clisp.org>
109766         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
109767         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
109768         (Makefile.am): Create inttypes.h from inttypes_.h.
109769         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
109771         * modules/imaxabs: New file.
109773         * modules/imaxdiv: New file.
109775 2006-08-26  Bruno Haible  <bruno@clisp.org>
109777         * m4/inttypes.m4: New file.
109778         * m4/_inttypes_h.m4: Remove file.
109779         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
109780         PRI_MACROS_BROKEN.
109781         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
109783         * m4/imaxabs.m4: New file.
109785         * m4/imaxdiv.m4: New file.
109787 2006-08-26  Bruno Haible  <bruno@clisp.org>
109789         * lib/inttypes_.h: New file.
109790         * lib/inttypes.h: Remove file.
109791         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
109793         * lib/imaxabs.c: New file.
109795         * lib/imaxdiv.c: New file.
109797 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109799         New config-h module, so that "make" output needn't be cluttered
109800         by -DHAVE_CONFIG_H.
109801         * MODULES.html.sh (Support for building libraries and executables):
109802         Add config-h.
109803         * modules/config-h: New file.
109804         * gnulib-tool (nl, sed_transform_lib_file): New vars.
109805         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
109806         the config-h module is used.
109808         New configmake module, so that "make" output needn't be cluttered
109809         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
109810         * MODULES.html.sh (Support for building libraries and executables):
109811         Add configmake.
109812         * modules/configmake: New file.
109814 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
109816         * m4/config-h.m4: New file.
109818 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109820         * config/srclist.txt: Add elisp-comp.
109822 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
109824         * MODULES.html.sh (Support for building libraries and executables):
109825         Add elisp-comp.
109826         * build-aux/elisp-comp: New file.
109827         * modules/elisp-comp: New file.
109829 2006-08-24  Bruno Haible  <bruno@clisp.org>
109831         * gnulib-tool (func_create_testdir): Use non-default values of
109832         sourcebase and m4base.
109834 2006-08-24  Bruno Haible  <bruno@clisp.org>
109836         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
109837         HTML structure.
109839 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
109841         * modules/openat (Depends-on): Add lchown.
109843 2006-08-23  Bruno Haible  <bruno@clisp.org>
109845         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
109846         of gl_LOCK_EARLY instead of gl_LOCK.
109848 2006-08-23  Bruno Haible  <bruno@clisp.org>
109850         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
109851         on OSF/1 to no.
109852         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
109854 2006-08-23  Bruno Haible  <bruno@clisp.org>
109856         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
109857         as unusable.
109859         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
109860         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
109861         (gl_LOCK): New macro.
109863 2006-08-22  Simon Josefsson  <jas@extundo.com>
109865         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
109866         to md5 module.
109868 2006-08-22  Simon Josefsson  <jas@extundo.com>
109870         * MODULES.html.sh: Add "Support for maintaining and release
109871         projects".
109873         * build-aux/gnupload: New file, from coreutils.
109875 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109877         Avoid the need for AC_LIBSOURCES in m4 macros.
109878         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
109879         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
109880         * modules/check-version (EXTRA_DIST): Add check-version.h.
109881         * modules/crc (EXTRA_DIST): Add crc.h.
109882         * modules/des (EXTRA_DIST): Add des.h.
109883         * modules/gc (EXTRA_DIST): Add gc.h.
109884         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
109885         * modules/getline (EXTRA_DIST): Add getline.h.
109886         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
109887         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
109888         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
109889         * modules/md2 (EXTRA_DIST): Add md2.h.
109890         * modules/md4 (EXTRA_DIST): Add md4.h.
109891         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
109892         * modules/read-file (EXTRA_DIST): Add read-file.h.
109893         * modules/readline (EXTRA_DIST): Add readline.h.
109894         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
109895         rijndael-api-fst.h.
109897 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109899         * m4/rijndael.m4 (gl_ARCFOUR):
109900         * m4/arctwo.m4 (gl_ARCTWO):
109901         * m4/check-version.m4 (gl_CHECK_VERSION):
109902         * m4/crc.m4 (gl_CRC):
109903         * m4/des.m4 (gl_DES):
109904         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
109905         * m4/gc.m4 (gl_GC):
109906         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
109907         * m4/getline.m4 (gl_FUNC_GETLINE):
109908         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
109909         * m4/hmac-md5.m4 (gl_HMAC_MD5):
109910         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
109911         * m4/md2.m4 (gl_MD2):
109912         * m4/md4.m4 (gl_MD4):
109913         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
109914         * m4/read-file.m4 (gl_FUNC_READ_FILE):
109915         * m4/readline.m4 (gl_FUNC_READLINE):
109916         * m4/rijndael.m4 (gl_RIJNDAEL):
109917         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
109918         to get the necessary .h files and whatnot.
109920 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
109922         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
109923         gnulib rather than the other way around.
109924         * config/srclistvars.sh (COREUTILS): Remove.
109926 2006-08-22  Jim Meyering  <jim@meyering.net>
109928         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
109930         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
109932 2006-08-22  Eric Blake  <ebb9@byu.net>
109934         * modules/regexprops-generic: New file.
109935         * MODULES.html.sh (Support for building documentation): List it.
109937 2006-08-22  Eric Blake  <ebb9@byu.net>
109939         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
109940         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
109941         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
109942         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
109944 2006-08-22  Bruno Haible  <bruno@clisp.org>
109946         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
109947         and lib_LTLIBRARIES like the other lib_* variables.
109949 2006-08-22  Bruno Haible  <bruno@clisp.org>
109951         * build-aux/x-to-1.in: New file, from GNU gettext.
109953 2006-08-22  Bruno Haible  <bruno@clisp.org>
109955         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
109956         <utmpx.h> exists.
109958 2006-08-22  Bruno Haible  <bruno@clisp.org>
109960         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
109961         <utmpx.h> exists.
109963 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109965         BeOS portability.
109966         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
109967         exist.
109968         Problem reported by Bruno Haible.
109970 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
109972         Avoid the need for AC_LIBSOURCES in m4 macros.
109973         * modules/acl (EXTRA_DIST): Add acl.h.
109974         * modules/argmatch (Files): Add m4/argmatch.m4.
109975         (configure.ac): Add gl_ARGMATCH.
109976         (EXTRA_DIST): Renamed from lib_SOURCES, for
109977         consistency with the other modules.  Remove argmatch.c.
109978         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
109979         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
109980         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
109981         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
109982         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
109983         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
109984         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
109985         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
109986         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
109987         * modules/closeout (EXTRA_DIST): Add closeout.h.
109988         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
109989         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
109990         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
109991         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
109992         dirname.h; remove basename.c and stripslash.c.
109993         * modules/exclude (EXTRA_DIST): Add exclude.h.
109994         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
109995         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
109996         * modules/file-type (EXTRA_DIST): Add file-type.h.
109997         * modules/filemode (EXTRA_DIST): Add filemode.h.
109998         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
109999         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110000         * modules/fpending (EXTRA_DIST): Add __fpending.h.
110001         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
110002         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
110003         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
110004         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
110005         * modules/getdate (EXTRA_DIST): Add getdate.c.
110006         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
110007         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
110008         * modules/getpass (EXTRA_DIST): Add getpass.h.
110009         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
110010         * modules/group-member (EXTRA_DIST): Add group-member.h.
110011         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
110012         * modules/hash (EXTRA_DIST): Add hash.h.
110013         * modules/human (EXTRA_DIST): Add human.h.
110014         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
110015         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
110016         * modules/lchown (EXTRA_DIST): Add lchown.h.
110017         * modules/long-options (EXTRA_DIST): Add long-options.h.
110018         * modules/lstat (EXTRA_DIST): Add lstat.h.
110019         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
110020         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
110021         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
110022         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
110023         * modules/memxor (EXTRA_DIST): Add memxor.h.
110024         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
110025         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
110026         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
110027         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
110028         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
110029         * modules/physmem (EXTRA_DIST): Add physmem.h.
110030         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
110031         * modules/posixver (EXTRA_DIST): Add posixver.h.
110032         * modules/quote (EXTRA_DIST): Add quote.h.
110033         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
110034         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
110035         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
110036         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
110037         regex_internal.h regexec.c.
110038         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
110039         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
110040         * modules/same (EXTRA_DIST): Add same.h.
110041         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
110042         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
110043         * modules/savedir (EXTRA_DIST): Add savedir.h.
110044         * modules/sha1 (EXTRA_DIST): Add sha1.h.
110045         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
110046         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
110047         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
110048         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
110049         * modules/strdup (EXTRA_DIST): Add strdup.h.
110050         * modules/strftime (EXTRA_DIST): Add strftime.h.
110051         * modules/strndup (EXTRA_DIST): Add strndup.h.
110052         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
110053         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
110054         * modules/time_r (EXTRA_DIST): Add time_r.h.
110055         * modules/timespec (EXTRA_DIST): Add timespec.h.
110056         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
110057         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
110058         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
110059         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
110060         * modules/userspec (EXTRA_DIST): Add userspec.h.
110061         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
110062         * modules/utimens (EXTRA_DIST): Add utimens.h.
110063         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
110064         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
110065         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
110066         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
110067         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
110068         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
110069         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
110070         * modules/yesno (EXTRA_DIST): Add yesno.h.
110072 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
110074         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
110076         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
110077         * m4/dev-ino.m4, same-inode.m4: Remove.
110079         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
110080         * m4/acl.m4 (AC_FUNC_ACL):
110081         * m4/backupfile.m4 (gl_BACKUPFILE):
110082         * m4/c-strtod.m4 (gl_C99_STRTOLD):
110083         * m4/canon-host.m4 (gl_CANON_HOST):
110084         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110085         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
110086         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
110087         * m4/cloexec.m4 (gl_CLOEXEC):
110088         * m4/close-stream.m4 (gl_CLOSE_STREAM):
110089         * m4/closeout.m4 (gl_CLOSEOUT):
110090         * m4/dirfd.m4 (gl_FUNC_DIRFD):
110091         * m4/dirname.m4 (gl_DIRNAME):
110092         * m4/exclude.m4 (gl_EXCLUDE):
110093         * m4/exitfail.m4 (gl_EXITFAIL):
110094         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
110095         * m4/file-type.m4 (gl_FILE_TYPE):
110096         * m4/filemode.m4 (gl_FILEMODE):
110097         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
110098         * m4/fpending.m4 (gl_FUNC_FPENDING):
110099         * m4/fprintftime.m4 (gl_FPRINTFTIME):
110100         * m4/fts.m4 (gl_FUNC_FTS):
110101         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
110102         * m4/getdate.m4 (gl_GETDATE):
110103         * m4/gethrxtime.m4 (gl_GETHRXTIME):
110104         * m4/getpagesize.m4 (gl_GETPAGESIZE):
110105         * m4/getpass.m4 (gl_FUNC_GETPASS):
110106         * m4/gettime.m4 (gl_GETTIME):
110107         * m4/getugroups.m4 (gl_GETUGROUPS):
110108         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
110109         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
110110         * m4/hard-locale.m4 (gl_HARD_LOCALE):
110111         * m4/hash.m4 (gl_HASH):
110112         * m4/idcache.m4 (gl_IDCACHE):
110113         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
110114         * m4/lchown.m4 (gl_FUNC_LCHOWN):
110115         * m4/long-options.m4 (gl_LONG_OPTIONS):
110116         * m4/lstat.m4 (gl_FUNC_LSTAT):
110117         * m4/md5.m4 (gl_MD5):
110118         * m4/memcasecmp.m4 (gl_MEMCASECMP):
110119         * m4/memcoll.m4 (gl_MEMCOLL):
110120         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
110121         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
110122         * m4/memxor.m4 (gl_MEMXOR):
110123         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
110124         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
110125         * m4/modechange.m4 (gl_MODECHANGE):
110126         * m4/mountlist.m4 (gl_MOUNTLIST):
110127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
110128         * m4/openat.m4 (gl_FUNC_OPENAT):
110129         * m4/pathmax.m4 (gl_PATHMAX):
110130         * m4/physmem.m4 (gl_PHYSMEM):
110131         * m4/posixtm.m4 (gl_POSIXTM):
110132         * m4/posixver.m4 (gl_POSIXVER):
110133         * m4/quote.m4 (gl_QUOTE):
110134         * m4/quotearg.m4 (gl_QUOTEARG):
110135         * m4/readtokens.m4 (gl_READTOKENS):
110136         * m4/readutmp.m4 (gl_READUTMP):
110137         * m4/regex.m4 (gl_REGEX):
110138         * m4/safe-read.m4 (gl_SAFE_READ):
110139         * m4/safe-write.m4 (gl_SAFE_WRITE):
110140         * m4/same.m4 (gl_SAME):
110141         * m4/save-cwd.m4 (gl_SAVE_CWD):
110142         * m4/savedir.m4 (gl_SAVEDIR):
110143         * m4/settime.m4 (gl_SETTIME):
110144         * m4/sha1.m4 (gl_SHA1):
110145         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
110146         * m4/stat-macros.m4 (gl_STAT_MACROS):
110147         * m4/stat-time.m4 (gl_STAT_TIME):
110148         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
110149         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
110150         * m4/strdup.m4 (gl_FUNC_STRDUP):
110151         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
110152         * m4/strndup.m4 (gl_FUNC_STRNDUP):
110153         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
110154         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
110155         * m4/time_r.m4 (gl_TIME_R):
110156         * m4/timespec.m4 (gl_TIMESPEC):
110157         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
110158         * m4/unlinkdir.m4 (gl_UNLINKDIR):
110159         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
110160         * m4/userspec.m4 (gl_USERSPEC):
110161         * m4/utimecmp.m4 (gl_UTIMECMP):
110162         * m4/utimens.m4 (gl_UTIMENS):
110163         * m4/xalloc.m4 (gl_XALLOC):
110164         * m4/xgetcwd.m4 (gl_XGETCWD):
110165         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
110166         * m4/xreadlink.m4 (gl_XREADLINK):
110167         * m4/xstrtod.m4 (gl_XSTRTOD):
110168         * m4/yesno.m4 (gl_YESNO):
110169         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110170         to get the necessary .h files and whatnot.
110172 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
110173             Bruno Haible  <bruno@clisp.org>
110175         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
110176         /bin/sh understanding of '!' conditional negation.
110178 2006-08-21  Jim Meyering  <jim@meyering.net>
110180         * modules/openat (Depends-on): Really alphabetize.
110182         * modules/acl (Depends-on): Add error and quote.
110184         * check-module (find_included_lib_files): Add at-func.c to the
110185         ok-to-include-more-than-once white list.
110187         * modules/openat (Depends-on): Add lstat.  Alphabetize.
110189 2006-08-21  Bruno Haible  <bruno@clisp.org>
110191         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110192         Emit a pkgdata_DATA variable only if some snippets add contents to it.
110193         Reported by Martin Lambers <marlam@marlam.de>.
110195 2006-08-21  Bruno Haible  <bruno@clisp.org>
110197         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
110198         specify an installation location, don't emit a noinst_LIBRARIES or
110199         noinst_LTLIBRARIES assignment.
110201 2006-08-21  Bruno Haible  <bruno@clisp.org>
110203         BeOS portability.
110204         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
110205         BeOS has mbrtowc() but no <wctype.h>.
110207 2006-08-21  Bruno Haible  <bruno@clisp.org>
110209         BeOS portability.
110210         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
110211         exist.
110213 2006-08-21  Bruno Haible  <bruno@clisp.org>
110215         BeOS portability.
110216         * lib/mbchar.h: Include <wctype.h> only if it exists.
110218 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110220         Remove files that are no longer needed by their respective modules.
110221         * m4/obstack.m4: Remove.
110222         * m4/strerror_r.m4: Remove.
110223         * m4/uint32_t.m4: Remove.
110224         * m4/uintptr_t.m4: Remove.
110225         * m4/ullong_max.m4: Remove.
110226         * m4/xstrtoimax.m4: Remove.
110227         * m4/xstrtoumax.m4: Remove.
110229         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
110230         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
110231         dependencies now capture this.
110233         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
110234         Do not use AC_LIBSOURCES, since gnulib modules now do this.
110235         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
110236         * m4/human.m4 (gl_HUMAN): Likewise.
110237         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
110238         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
110240         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
110242         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
110243         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
110244         stdint.
110245         * m4/human.m4 (gl_HUMAN): Likewise.
110246         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
110247         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
110248         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110249         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110250         * m4/xstrtol (gl_XSTRTOL): Likewise.
110252         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
110253         AC_TYPE_LONG_LONG_INT.
110254         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
110255         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
110256         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
110257         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
110259         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
110260         on stdbool.
110262         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
110263         (gl_PREREQ_XSTRTOUL): Remove.
110265         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
110267         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
110268         mode.
110270 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110272         Add and change modules to make it easier for coreutils to use
110273         gnulib-tool.
110274         * modules/backupfile (Files): Remove m4/d-ino.m4.
110275         (Depends-on): Add d-ino.
110276         * modules/cycle-check (Depends-on): Add stdint.
110277         (lib_SOURCES): Add cycle-check.h.
110278         * modules/d-ino: New module.
110279         * modules/d-type: New module.
110280         * modules/error (Files): Remove m4/strerror_r.m4.
110281         * modules/filemode (Files): Add m4/st_dm_mode.m4.
110282         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110283         m4/inttypes_h.m4, m4/uintmax_t.m4.
110284         (Depends-on): Add stdint.
110285         (lib_SOURCES): Add fsusage.h.
110286         * modules/getcwd (Files): Remove d-ino.m4.
110287         (Depends-on): Add d-ino.
110288         * modules/getndelim2 (Depends-on): Add stdint.
110289         * modules/glob (Files): Remove m4/d-type.m4.
110290         (Depends-on): Add d-type.
110291         * modules/host-os: New module.
110292         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
110293         m4/inttypes_h.m4, m4/uintmax_t.m4.
110294         * Depends-on: Add stdint.
110295         (lib_SOURCES): Add human.h.
110296         * modules/inttostr (Files): Remove m4/intmax_t.m4,
110297         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
110298         m4/uintmax_t.m4, m4/ulonglong.m4.
110299         (Depends-on): Add stdint.
110300         (EXTRA_DIST): Add inttostr.h.
110301         * modules/lchmod: New module.
110302         * modules/link-follow: New module.
110303         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
110304         (Depends-on): Add lchmod.
110305         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
110306         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
110307         (Depends-on): Add stdint.
110308         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
110309         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
110310         (Depends-on): Add stdint.
110311         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
110312         * modules/perl: New module.
110313         * modules/regex (Depends-on): Add stdint.
110314         * modules/rmdir-errno: New module.
110315         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110316         m4/intmax_t.m4.
110317         (Depends-on): Add stdint.
110318         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
110319         m4/uintmax_t.m4.
110320         (Depends-on): Add stdint.
110321         * modules/unlink-busy: New module.
110322         * modules/utimecmp (Depends-on): Add stdint.
110323         * modules/uptime: New module.
110324         * modules/winsz-ioctl: New module.
110325         * modules/winsz-termios: New module.
110326         * modules/xnanosleep (Depends-on): Add nanosleep.
110327         * modules/ullong_max: Remove.
110328         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
110329         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
110330         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
110331         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
110332         (Depends-on): Add inttypes.
110333         (lib_SOURCES): Add xstrtol.h.
110334         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
110335         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
110336         * MODULES.html.sh: Move 'assert' into the assert section.
110337         Move 'dummy' into the linking section.
110338         Remove ullong_max.
110339         Add section for compatibility checks for POSIX:2001 functions,
110340         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
110341         winsz-ioctl, and winsz-termios into it.
110342         Add lchmod.
110343         Add top-level Misc section and put host-os, perl, and uptime
110344         into it.
110346 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110348         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
110349         now assume the stdint module.  Do not include inttypes.h.
110350         * lib/fsusage.h: Likewise.
110351         * lib/getndelim2.c: Likewise.
110352         * lib/human.h: Likewise.
110353         * lib/inttostr.h: Likewise.
110354         * lib/obstack.c: Likewise.
110355         * lib/regex_internal.h: Likewise.
110356         * lib/tempname.c: Likewise.
110357         * lib/utimecmp.c: Likewise.
110358         * lib/xstrtol.h: Likewise.
110360         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
110362         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
110363         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
110364         * lib/xtime.h: Likewise.
110366 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110368         * modules/openat (Files): Add lib/fchmodat.c.
110369         Fixes problem reported by Jay Youngman.
110371 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110373         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
110374         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
110376 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
110377             Bruno Haible  <bruno@clisp.org>
110379         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
110380         and is a script that invokes bison. Tighten the code. Add comments.
110382 2006-08-18  Jim Meyering  <jim@meyering.net>
110384         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
110385         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
110386         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
110387         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
110389 2006-08-18  Bruno Haible  <bruno@clisp.org>
110391         * modules/bison-i18n: New file.
110392         * MODULES.html.sh (Internationalization functions): Add it.
110394 2006-08-18  Bruno Haible  <bruno@clisp.org>
110396         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
110397         sys/statvfs.h. When getmntinfo was found, check its declaration and
110398         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
110400 2006-08-18  Bruno Haible  <bruno@clisp.org>
110402         * m4/bison-i18n.m4: New file, from bison.
110404 2006-08-18  Bruno Haible  <bruno@clisp.org>
110406         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
110407         (ME_DUMMY): Treat "kernfs" as a dummy.
110408         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
110410 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110412         Update from coreutils.
110414         2006-08-15  Jim Meyering  <jim@meyering.net>
110416         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
110418         2006-01-17  Jim Meyering  <jim@meyering.net>
110420         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
110422         2006-01-11  Jim Meyering  <jim@meyering.net>
110424         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
110425         Check for the lchmod function.
110427 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
110429         Update from coreutils.
110431         * lib/__fpending.h: Add copyright notice.
110432         * lib/fprintftime.h: Likewise.
110433         * lib/savedir.c: Use (C) in copyright notice.
110434         * lib/savedir.h: Likewise.
110436         2006-08-15  Jim Meyering  <jim@meyering.net>
110438         * lib/at-func.c: New file, with the logic of all emulated at-functions.
110439         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
110440         in support of the EXPECTED_ERRNO macro.
110441         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
110442         definitions.  Instead, define the appropriate symbols and include
110443         "at-func.c".
110444         * lib/mkdirat.c (mkdirat): Likewise.
110445         * lib/fchmodat.c (fchmodat): Likewise.
110446         (ENOSYS): Remove definition.
110447         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
110448         it.  Don't include "unistd--.h" -- it wasn't ever used.
110450         2006-01-17  Jim Meyering  <jim@meyering.net>
110452         Rewrite fts.c not to change the current working directory,
110453         by using openat, fstatat, fdopendir, etc..
110455         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
110456         (HAVE_OPENAT_SUPPORT): Define.
110457         [_LIBC] (fchdir): Don't undef or define; no longer used.
110458         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
110459         Now, this `function' always succeeds, and consumes its file descriptor
110460         parameter -- so callers must not close such FDs.  Update callers.
110461         (diropen_fd, opendirat, cwd_advance_fd): New functions.
110462         (diropen): Add parameter, SP.  Adjust all callers.
110463         Implement using diropen_fd, rather than open.
110464         (fts_open): Initialize new member, fts_cwd_fd.
110465         Remove fts_rft-setting code.
110466         (fts_close): Close fts_cwd_fd, if necessary.
110467         (__opendir2): Define in terms of opendir or opendirat,
110468         depending on whether the FST_NOCHDIR flag is set.
110469         (fts_build): Since fts_safe_changedir consumes its FD, and since
110470         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
110471         and close the dup'd file descriptor upon failure.
110472         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
110473         (fts_safe_changedir): Tweak semantics to reflect that this function
110474         now calls cwd_advance_fd and hence consumes its FD argument.
110475         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
110476         [struct FTS] (fts_rft): Remove now-unused member.
110477         [struct FTS] (fts_cycle.state): Improve comment.
110479         * lib/openat.c (openat_needs_fchdir): New function.
110480         * lib/openat.h (openat_needs_fchdir): Declare it.
110482 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
110484         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
110485         Problem and fix reported by Pádraig Brady in
110486         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
110488 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110490         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
110492 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110494         * lib/memcoll.c (memcoll): Optimize for the common case where the
110495         arguments are bytewise equal.
110497 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110499         * doc/regexprops-generic.texi: Add a copyright notice.
110501 2006-08-15  Bruno Haible  <bruno@clisp.org>
110503         * modules/tmpdir (License): Change to LGPL.
110505 2006-08-15  Bruno Haible  <bruno@clisp.org>
110507         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
110508         module.
110510 2006-08-14  Simon Josefsson  <jas@extundo.com>
110512         * config/srclist.txt: Add gnupload.
110514 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110516         Change copyright notice from LGPL 2 to GPL 2, since that's the
110517         standard form used in the gnulib repository.
110518         * tests/test-lock.c: Likewise.
110519         * tests/test-stdint.c: Likewise.
110520         * tests/test-tls.c: Likewise.
110522         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
110523         prelude-manager.  User shorter URLs for GNU projects, without '?'.
110524         Add copyright notice.
110526         * check-module: Add copyright notice.  Output a copyright
110527         notice if "--version" is specified.
110528         * modules/COPYING: New file.
110529         * tests/test-getaddrinfo.c: Add copyright notice.
110530         * tests/test-verify.c: Likewise.
110532 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110534         Change copyright notice from LGPL 2 to GPL 2, since that's the
110535         standard form used in the gnulib repository.
110536         * lib/lock.c: LGPL -> GPL.
110537         * lib/lock.h: Likewise.
110538         * lib/strnlen1.c: Likewise.
110539         * lib/strnlen1.h: Likewise.
110540         * lib/tls.c: Likewise.
110541         * lib/tls.h: Likewise.
110542         * lib/tmpdir.c: Likewise.
110544         * lib/TODO: Remove; this belongs only in coreutils.
110546 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110548         Add copyright notices to long-enough files that lack them, since
110549         otherwise the files aren't clearly free.  Use the same notice that
110550         getdate.texi already uses.
110551         * doc/alloca-opt.texi: Add copyright notice.
110552         * doc/alloca.texi: Likewise.
110553         * doc/ctime.texi: Likewise.
110554         * doc/functions.texi: Likewise.
110555         * doc/gcd.texi: Likewise.
110556         * doc/gnulib-tool.texi: Likewise.
110557         * doc/inet_ntoa.texi: Likewise.
110558         * doc/visibility.texi: Likewise.
110560         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
110561         * doc/quote.texi: Add copyright notice.
110563         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
110564         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
110565         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
110566         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
110567         is now obsolete, and give a pointer to the Sun list.
110568         Add copyright notice.
110570 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
110572         * config/srclistvars.sh: Add copyright notice.
110574 2006-08-14  Eric Blake  <ebb9@byu.net>
110576         Import the following change from libc:
110578         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
110580         Upstream bug 2997.
110581         * lib/misc/error.c: Add space between program name and message if file
110582         name is missing.
110584 2006-08-12  Karl Berry  <karl@gnu.org>
110586         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
110587         remove, these originate in gnulib now.
110589 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110591         * doc/Makefile (standards.info standards.html standards.dvi):
110592         Also depend on make-stds.texi.
110594 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
110596         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
110597         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
110599         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
110600         in wchar_t.  Problem reported by Eric Blake.
110602         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
110603         LEN is smaller than SIZE.  Suggested by Bruno Haible.
110604         Also, help the compiler to keep LEN in a register.
110606 2006-08-11  Eric Blake  <ebb9@byu.net>
110608         * users.txt: Sort.  Add tar.
110610 2006-08-11  Bruno Haible  <bruno@clisp.org>
110612         * users.txt: New file.
110614 2006-08-11  Bruno Haible  <bruno@clisp.org>
110616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
110617         before <wchar.h>. Needed for OSF/1 and BSD/OS.
110619 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110621         * modules/snprintf (Depends-on): Remove minmax.
110622         (Maintainer): Add self and Bruno.
110624 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
110626         * lib/.cppi-disable: Add snprintf.h, socket_.h.
110627         * lib/snprintf.c: Include <errno.h> and <limits.h>.
110628         (EOVERFLOW): Define if the system does not.
110629         Do not include "minmax.h"; it wasn't used.
110630         (snprintf): Don't assume size_t promotes to an unsigned type.
110631         Fix bug when generated string was too long for the buffer: the
110632         buffer's contents are supposed to be the initial prefix of the
110633         output.  Don't assume vasnprintf returns EOVERFLOW if the size
110634         exceeds INT_MAX; do the check ourselves.
110636         Import the following changes from libc:
110638         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
110640         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
110641         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
110642         set wc to the byte which couldn't be converted.
110643         (re_string_reconstruct): Don't clear valid_raw_len before calling
110644         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
110645         tip_context using re_string_context_at.
110647         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
110649         * lib/posix/regex.h: g++ still cannot handled [restrict].
110651         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
110653         * lib/posix/regex.h: Remove special handling for VMS.
110655 2006-08-10  Jim Meyering  <jim@meyering.net>
110657         * modules/same-inode: New module.
110658         * modules/dev-ino: New module.
110659         * modules/cycle-check: Depend on these modules, rather than simply
110660         including their .h files.
110661         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
110662         required via m4/cycle-check.m4.
110663         * modules/same: Depend on new same-inode module, rather than
110664         including same-inode.h.
110665         * modules/chdir-safer: New file.
110667         * modules/chown (Depends-on): Add stat-macros.
110669 2006-08-10  Jim Meyering  <jim@meyering.net>
110671         * m4/cycle-check.m4: New file.
110672         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
110673         * m4/dev-ino.m4, m4/same-inode.m4: New files.
110675 2006-08-10  Eric Blake  <ebb9@byu.net>
110677         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
110678         in from original proposal.
110680 2006-08-10  Eric Blake  <ebb9@byu.net>
110681         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110683         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
110684         namespace.
110686 2006-08-10  Bruno Haible  <bruno@clisp.org>
110688         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
110689         as well.
110691 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110693         Sync from coreutils.
110695         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
110697         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
110698         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
110700 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110702         * modules/restrict: Remove; no longer needed now that we assume
110703         Autoconf 2.59 or later.
110704         * MODULES.html.sh: Remove 'restrict'.
110705         * modules/argp (Depends-on): Remove 'restrict'.
110706         * modules/base64 (Depends-on): Likewise.
110707         * modules/gc (Depends-on): Likewise.
110708         * modules/getaddrinfo (Depends-on): Likewise.
110709         * modules/glob (Depends-on): Likewise.
110710         * modules/inet_ntop (Depends-on): Likewise.
110711         * modules/inet_pton (Depends-on): Likewise.
110712         * modules/memxor (Depends-on): Likewise.
110713         * modules/regex (Depends-on): Likewise.
110714         * modules/strtok_r (Depends-on): Likewise.
110715         * modules/time_r (Depends-on): Likewise.
110717 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
110719         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
110720         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
110721         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
110722         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
110723         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
110724         * m4/memxor.m4 (gl_MEMXOR): Likewise.
110725         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
110726         gl_C_RESTRICT replaced by AC_C_RESTRICT.
110728         Merge from coreutils.
110729         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
110730         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
110731         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
110732         * m4/time_r.m4 (gl_TIME_R): Likewise.
110734 2006-08-09  Karl Berry  <karl@gnu.org>
110736         * config/srclist.txt: no more gettext-tools, per Bruno.
110738 2006-08-08  Eric Blake  <ebb9@byu.net>
110740         * modules/verror: New module.
110741         * MODULES.html.sh: Document it.
110743 2006-08-08  Eric Blake  <ebb9@byu.net>
110745         * lib/verror.h, lib/verror.c: New files.
110747 2006-08-08  Eric Blake  <ebb9@byu.net>
110749         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
110750         verror_at_line output complies with GNU Coding Standards even when
110751         file is NULL.
110753 2006-08-07  Bruno Haible  <bruno@clisp.org>
110755         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
110756         versions of AIX.
110757         Reported by Ralf Wildenhues.
110759 2006-08-07  Bruno Haible  <bruno@clisp.org>
110761         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
110762         in an AC_DEFUN. Needed so that the autoconf snippets can use
110763         AC_REQUIRE.
110765 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110768         Initialize pkgdata_DATA.
110769         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
110770         overriding it.
110772 2006-08-06  Eric Blake  <ebb9@byu.net>
110774         * lib/error.h: Fold in some upstream changes from glibc.
110775         * lib/error.c: Likewise.
110777 2006-08-04  Bruno Haible  <bruno@clisp.org>
110779         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110780         Make the mostlyclean-local rule depend on mostlyclean-generic.
110781         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
110783 2006-07-31  Bruno Haible  <bruno@clisp.org>
110785         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
110786         <stdlib.h>, <string.h>.
110788 2006-07-30  Bruno Haible  <bruno@clisp.org>
110790         * modules/readlink (License): Change to LGPL.
110792 2006-07-30  Bruno Haible  <bruno@clisp.org>
110794         * modules/javaversion (Makefile.am): Distribute javaversion.java and
110795         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
110796         set PKGDATADIR to point to it.
110798 2006-07-30  Bruno Haible  <bruno@clisp.org>
110800         * modules/csharpexec (configure.ac): Comment out macro invocation.
110801         * modules/javaexec (configure.ac): Likewise.
110802         * modules/javacomp-script (configure.ac): Likewise.
110804         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
110806 2006-07-30  Bruno Haible  <bruno@clisp.org>
110808         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
110809         linked-list.
110811 2006-07-30  Bruno Haible  <bruno@clisp.org>
110813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
110815 2006-07-30  Bruno Haible  <bruno@clisp.org>
110817         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110818         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
110819         get removed.
110821 2006-07-29  Bruno Haible  <bruno@clisp.org>
110823         Make it possible for gnulib-tool to work with locally modified or
110824         augmented gnulib repositories.
110825         * gnulib-tool (func_usage): Document --local-dir option.
110826         (local_gnulib_dir): New variable.
110827         Handle --local-dir option.
110828         (func_lookup_file): New function.
110829         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
110830         (func_get_description, func_get_filelist, func_get_description,
110831         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
110832         func_get_automake_snippet, func_get_include_directive,
110833         func_get_license, func_get_maintainer): Use func_lookup_file.
110834         (func_import, func_create_testdir): Use func_lookup_file.
110836 2006-07-29  Bruno Haible  <bruno@clisp.org>
110838         * modules/setenv (Depends-on): Add unistd.
110840 2006-07-29  Bruno Haible  <bruno@clisp.org>
110842         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
110844 2006-07-29  Bruno Haible  <bruno@clisp.org>
110846         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
110848 2006-07-29  Bruno Haible  <bruno@clisp.org>
110850         * gnulib-tool (import, update): If there is no Makefile.am, look at
110851         aclocal.m4, instead of bailing out.
110853 2006-07-29  Bruno Haible  <bruno@clisp.org>
110855         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
110856         Categorize the options by when they are useful.
110858 2006-07-29  Bruno Haible  <bruno@clisp.org>
110860         * gnulib-tool (func_usage): Document option --no-libtool.
110861         Handle option --no-libtool.
110862         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
110863         for changed semantics of $libtool variable.
110864         (func_import): Likewise. If libtool is not used, show this through
110865         an option --no-libtool.
110866         (func_create_testdir): Update.
110868 2006-07-29  Bruno Haible  <bruno@clisp.org>
110870         * gnulib-tool (func_import): Extend error message about missing
110871         --doc-base.
110873 2006-07-29  Bruno Haible  <bruno@clisp.org>
110875         * gnulib-tool (func_import): Don't create the $docbase directory if
110876         there is no file to store there.
110878 2006-07-29  Bruno Haible  <bruno@clisp.org>
110880         * gnulib-tool (autoconf_minversion): If a --dir option is given and
110881         relevant, look for configure.ac there, not in the current directory.
110882         Also use a simple search for AC_PREREQ, not "autoconf --trace".
110884 2006-07-29  Bruno Haible  <bruno@clisp.org>
110886         * gnulib-tool (SORT): New variable.
110887         (func_usage): Undocument --assume-autoconf option.
110888         Remove --assume-autoconf option handling.
110889         (autoconf_minversion): Determine from the contents of configure.ac.
110890         (func_import): Remove autoconf_minversion handling.
110891         Suggested by Eric Blake.
110893 2006-07-29  Bruno Haible  <bruno@clisp.org>
110895         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
110897 2006-07-29  Bruno Haible  <bruno@clisp.org>
110899         * config/srclist.txt (*setenv.[ch]): Remove rules.
110901 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110903         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
110905 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
110907         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
110908         arpa/inet.h.
110910 2006-07-28  Simon Josefsson  <jas@extundo.com>
110912         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
110913         * modules/inet_pton (Depends-on): Likewise.
110915 2006-07-28  Simon Josefsson  <jas@extundo.com>
110917         * m4/netinet_in_h.m4: New file.
110919 2006-07-28  Simon Josefsson  <jas@extundo.com>
110921         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
110922         #include's.
110924 2006-07-28  Simon Josefsson  <jas@extundo.com>
110926         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
110927         #include's.
110929 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
110931         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
110932         setgid on directories only if they set these bits.
110933         * lib/modechange.h: Remove obsolete comment about masks.
110935 2006-07-28  Eric Blake  <ebb9@byu.net>
110937         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
110938         macro expansion.
110940 2006-07-28  Bruno Haible  <bruno@clisp.org>
110942         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
110944 2006-07-28  Bruno Haible  <bruno@clisp.org>
110946         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
110948 2006-07-28  Bruno Haible  <bruno@clisp.org>
110950         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
110951         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
110952         Define fallbacks.
110953         Avoids link error on FreeBSD 4.x.
110954         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
110956         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
110957         encoding.
110958         * lib/mbswidth.c (iswcntrl): Likewise.
110960 2006-07-27  Bruno Haible  <bruno@clisp.org>
110962         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
110963         test.
110965 2006-07-27  Bruno Haible  <bruno@clisp.org>
110967         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
110968         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
110969         defined.
110971 2006-07-26  Eric Blake  <ebb9@byu.net>
110973         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
110975 2006-07-26  Eric Blake  <ebb9@byu.net>
110977         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
110978         like mingw that lack mkstemp.
110979         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
110980         avoid compilation warning on mingw.
110982 2006-07-26  Bruno Haible  <bruno@clisp.org>
110984         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
110985         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
110986         INT_FAST*_MIN, INTPTR_MIN.
110988 2006-07-25  Bruno Haible  <bruno@clisp.org>
110990         * modules/version-etc (Depends-on): Add stdarg.
110992 2006-07-25  Bruno Haible  <bruno@clisp.org>
110994         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
110995         complex commands.
110997 2006-07-25  Bruno Haible  <bruno@clisp.org>
110999         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
111000         defined in <stdarg.h> or config.h.
111002 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111004         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
111005         (gl_STDIO_SAFER): Remove.
111007 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
111009         * MODULES.html.sh (File stream based Input/Output):
111010         Add fopen-safer, tmpfile-safer; remove stdio-safer.
111011         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
111012         * modules/fopen-safer, modules/tmpfile-safer: New files.
111013         * modules/stdio-safer: Remove.
111015 2006-07-24  Bruno Haible  <bruno@clisp.org>
111017         * modules/tmpdir: New file.
111018         * MODULES.html.sh (File system functions): Add it.
111020 2006-07-24  Bruno Haible  <bruno@clisp.org>
111022         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
111023         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
111025 2006-07-24  Bruno Haible  <bruno@clisp.org>
111027         * modules/clean-temp: New file.
111029 2006-07-24  Bruno Haible  <bruno@clisp.org>
111031         * m4/tmpdir.m4: New file, from GNU gettext.
111033 2006-07-24  Bruno Haible  <bruno@clisp.org>
111035         * lib/tmpdir.h: New file, from GNU gettext.
111036         * lib/tmpdir.c: New file, from GNU gettext.
111038 2006-07-24  Bruno Haible  <bruno@clisp.org>
111040         * lib/clean-temp.h: New file, from GNU gettext.
111041         * lib/clean-temp.c: New file, from GNU gettext.
111043 2006-07-23  Eric Blake  <ebb9@byu.net>
111045         * modules/stdio-safer (Files): Add tmpfile-safer.c.
111046         (Depends-on): Add binary-io.
111048 2006-07-23  Eric Blake  <ebb9@byu.net>
111050         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
111052 2006-07-23  Eric Blake  <ebb9@byu.net>
111054         * lib/tmpfile-safer.c: New file.
111055         * lib/stdio-safer.h (fopen_safer): Add prototype.
111056         * lib/stdio--.h (tmpfile): Make safer.
111058 2006-07-23  Bruno Haible  <bruno@clisp.org>
111060         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
111061         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
111062         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
111063         gl_linked_remove_at): Use it.
111065 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111066         and Simon Josefsson <jas@extundo.com>
111068         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
111070         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
111072 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111074         * modules/close-stream: New file.
111075         * modules/closeout (Description): Make it clear that it exits
111076         with a diagnostic on error.
111077         (Depends-on): Add close-stream.  Remove fpending, stdbool.
111078         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
111080 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111082         * m4/close-stream.m4: New file.
111084 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
111086         * lib/close-stream.c, lib/close-stream.h: New files.
111088 2006-07-22  Bruno Haible  <bruno@clisp.org>
111090         Merge from GNU gettext 0.15.
111092         2006-05-01  Bruno Haible  <bruno@clisp.org>
111094                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
111096         2006-07-22  Bruno Haible  <bruno@clisp.org>
111098                 * modules/javaversion: New file.
111099                 * MODULES.html.sh (Java): Add javaversion.
111101         2006-03-12  Bruno Haible  <bruno@clisp.org>
111103                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
111105         2005-12-04  Bruno Haible  <bruno@clisp.org>
111107                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
111108                 (untested).
111110         2006-06-21  Bruno Haible  <bruno@clisp.org>
111112                 Avoid warnings from recent versions of mcs.
111113                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
111114                 -o, -L, -r any more. Use options documented since mcs-1.0
111115                 instead. Similarly for -g.
111117         2005-12-04  Bruno Haible  <bruno@clisp.org>
111119                 * build-aux/csharpcomp.sh.in: Suffix for resources is
111120                 .resources, not .resource.
111122         2005-07-09  Bruno Haible  <bruno@clisp.org>
111124                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
111125                 add a .dll suffix.
111126                 Reported by Mark Junker <mjscod@gmx.de>.
111128         2006-07-22  Bruno Haible  <bruno@clisp.org>
111130                 * modules/gettext: Upgrade to gettext-0.15.
111131                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
111132                 m4/visibility.m4.
111133                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
111135 2006-07-22  Bruno Haible  <bruno@clisp.org>
111137         Merge from GNU gettext 0.15.
111139         2006-03-25  Bruno Haible  <bruno@clisp.org>
111141                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
111143         2006-07-21  Bruno Haible  <bruno@clisp.org>
111145                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
111146                 "1.1".
111148         2006-05-09  Bruno Haible  <bruno@clisp.org>
111150                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
111151                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
111152                 for the conftestver execution.
111154         2006-05-01  Bruno Haible  <bruno@clisp.org>
111156                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
111157                 optional target-version argument. Verify that the compiler
111158                 groks source of the specified source-version, or add -source
111159                 option as necessary. Verify that the compiler produces
111160                 bytecode in the specified target-version, or add -target and
111161                 -source options as necessary. Make the result of the test
111162                 available as variable CONF_JAVAC. Also log error output in
111163                 config.log.
111165         2006-03-11  Bruno Haible  <bruno@clisp.org>
111167                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
111169         2006-05-09  Bruno Haible  <bruno@clisp.org>
111171                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
111172                 CLASSPATH_SEPARATOR to a semicolon.
111174         2006-03-12  Bruno Haible  <bruno@clisp.org>
111176                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
111177                 available as variable CONF_JAVA, for subsequent autoconf
111178                 tests. Also log error output in config.log.
111180         2006-07-19  Bruno Haible  <bruno@clisp.org>
111182                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
111183                 that getline works on glibc2 systems. Needed to avoid trouble
111184                 in relocatable.c.
111185                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
111187         2005-12-04  Bruno Haible  <bruno@clisp.org>
111189                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
111190                 launcher (untested).
111192         2005-12-04  Bruno Haible  <bruno@clisp.org>
111194                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
111196         2006-07-22  Bruno Haible  <bruno@clisp.org>
111198                 * gettext.m4: Update from GNU gettext-0.15.
111199                 * nls.m4: Likewise.
111200                 * po.m4: Likewise.
111201                 * inttypes-pri.m4: Likewise.
111202                 * inttypes-h.m4: Renamed from inttypes.m4.
111203                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
111205 2006-07-22  Bruno Haible  <bruno@clisp.org>
111207         Merge from GNU gettext 0.15.
111209         2005-07-05  Bruno Haible  <bruno@clisp.org>
111211                 * printf-args.c (printf_fetchargs): Work around broken
111212                 definition of wint_t on mingw.
111214         2005-02-12  Bruno Haible  <bruno@clisp.org>
111216                 * xallocsa.h: Add extern "C" for C++.
111218         2006-05-17  Bruno Haible  <bruno@clisp.org>
111220                 Cygwin portability.
111221                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
111223         2006-04-30  Bruno Haible  <bruno@clisp.org>
111225                 * progreloc.c: Include <mach-o/dyld.h> if available.
111226                 (find_executable): Use _NSGetExecutablePath when possible.
111228         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111230                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
111231                 function.
111233         2005-12-29  Bruno Haible  <bruno@clisp.org>
111235                 * progreloc.c (set_program_name_and_installdir): Fix
111236                 compilation error.
111238         2005-12-04  Bruno Haible  <bruno@clisp.org>
111240                 Cygwin portability.
111241                 * progreloc.c: Include <windows.h> also on Cygwin.
111242                 (find_executable): Add support for Cygwin.
111243                 (set_program_name_and_installdir): Handle also platforms with
111244                 nonempty EXEEXT.
111246         2006-07-11  Bruno Haible  <bruno@clisp.org>
111248                 * javacomp.c: Fix a comment.
111249                 Reported by Jim Meyering.
111251         2006-04-30  Bruno Haible  <bruno@clisp.org>
111253                 * javacomp.h (compile_java_class): Add source_version,
111254                 target_version arguments.
111255                 * javacomp.c: Rewritten to choose only a compiler that
111256                 respects the specified source_version and target_version.
111258         2006-06-27  Bruno Haible  <bruno@clisp.org>
111260                 Assume correct S_ISDIR macro.
111261                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
111263         2006-07-22  Bruno Haible  <bruno@clisp.org>
111265                 * javaversion.h: New file, from GNU gettext.
111266                 * javaversion.c: New file, from GNU gettext.
111267                 * javaversion.java: New file, from GNU gettext.
111268                 * javaversion.class: New file, from GNU gettext.
111270         2006-05-17  Bruno Haible  <bruno@clisp.org>
111272                 Cygwin portability.
111273                 * javaexec.c (execute_java_class): Test for jview program
111274                 also on Cygwin.
111276         2006-04-09  Bruno Haible  <bruno@clisp.org>
111278                 * fatal-signal.c: Don't include string.h.
111279                 (at_fatal_signal): Use a copying loop instead of memcpy.
111281         2005-12-04  Bruno Haible  <bruno@clisp.org>
111283                 * csharpexec.c: Add support for 'clix' launcher (untested).
111284                 (execute_csharp_using_sscli): New function.
111285                 (execute_csharp_program): Call it.
111287         2006-06-21  Bruno Haible  <bruno@clisp.org>
111289                 Avoid warnings from recent versions of mcs.
111290                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
111291                 -o, -L, -r any more. Use options documented since mcs-1.0
111292                 instead. Similarly for -g.
111294         2005-07-09  Bruno Haible  <bruno@clisp.org>
111296                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
111297                 add a .dll suffix.
111298                 Reported by Mark Junker <mjscod@gmx.de>.
111300         2006-06-17  Bruno Haible  <bruno@clisp.org>
111302                 * config.charset: Update for NetBSD 3.0.
111304         2006-05-17  Bruno Haible  <bruno@clisp.org>
111306                 Cygwin portability.
111307                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
111309         2006-05-16  Bruno Haible  <bruno@clisp.org>
111311                 * localcharset.c [CYGWIN]: Include <windows.h>.
111312                 (get_charset_aliases): For Cygwin, return the same CPxxx
111313                 aliases list as under WIN32.
111314                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
111315                 the environment variables. Fall back to GetACP().
111317         2006-04-05  Bruno Haible  <bruno@clisp.org>
111319                 * config.charset: Update Juan Manuel Guerrero's address.
111321         2005-02-12  Bruno Haible  <bruno@clisp.org>
111323                 * allocsa.h: Add extern "C" for C++.
111325         2005-02-10  Bruno Haible  <bruno@clisp.org>
111327                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
111328                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
111330         2006-07-22  Bruno Haible  <bruno@clisp.org>
111332                 * gettext.h: Update to GNU gettext-0.15.
111334 2006-07-22  Bruno Haible  <bruno@clisp.org>
111336         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
111337         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
111338         lib-prefix.m4, longdouble.m4, ssize_t.m4.
111340 2006-07-21  Eric Blake  <ebb9@byu.net>
111342         * modules/stdlib-safer: New file.
111343         * MODULES.html.sh (File stream based Input/Output): Add
111344         stdlib-safer.
111346 2006-07-21  Eric Blake  <ebb9@byu.net>
111348         * lib/stdlib-safer.h: New file from coreutils, required by
111349         stdlib--.h.
111351 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
111353         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
111355 2006-07-20  Bruno Haible  <bruno@clisp.org>
111357         * gnulib-tool: Recognize new option --assume-autoconf.
111358         (autoconf_minversion): New variable.
111359         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
111361 2006-07-20  Bruno Haible  <bruno@clisp.org>
111363         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
111365 2006-07-19  Derek R. Price  <derek@ximbiot.com>
111367         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
111368         Reindent and repaginate.
111370 2006-07-19  Derek Price  <derek@ximbiot.com>
111372         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
111373         Correct grammar.
111375 2006-07-17  Bruno Haible  <bruno@clisp.org>
111377         * modules/list: New file.
111378         * modules/array-list: New file.
111379         * modules/carray-list, modules/carray-list-tests: New files.
111380         * modules/linked-list, modules/linked-list-tests: New files.
111381         * modules/avltree-list, modules/avltree-list-tests: New files.
111382         * modules/rbtree-list, modules/rbtree-list-tests: New files.
111383         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
111384         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
111385         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
111386         * modules/oset: New file.
111387         * modules/array-oset: New file.
111388         * modules/avltree-oset, modules/avltree-oset-tests: New files.
111389         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
111390         * tests/test-carray_list.c: New file.
111391         * tests/test-linked_list.c: New file.
111392         * tests/test-avltree_list.c: New file.
111393         * tests/test-rbtree_list.c: New file.
111394         * tests/test-linkedhash_list.c: New file.
111395         * tests/test-avltreehash_list.c: New file.
111396         * tests/test-rbtreehash_list.c: New file.
111397         * tests/test-avltree_oset.c: New file.
111398         * tests/test-rbtree_oset.c: New file.
111399         * MODULES.html.sh (Container data structures): New section.
111401 2006-07-17  Bruno Haible  <bruno@clisp.org>
111403         * m4/gl_list.m4: New file.
111405 2006-07-17  Bruno Haible  <bruno@clisp.org>
111407         * lib/gl_list.h: New file.
111408         * lib/gl_list.c: New file.
111409         * lib/gl_array_list.h: New file.
111410         * lib/gl_array_list.c: New file.
111411         * lib/gl_carray_list.h: New file.
111412         * lib/gl_carray_list.c: New file.
111413         * lib/gl_linked_list.h: New file.
111414         * lib/gl_linked_list.c: New file.
111415         * lib/gl_anylinked_list1.h: New file.
111416         * lib/gl_anylinked_list2.h: New file.
111417         * lib/gl_avltree_list.h: New file.
111418         * lib/gl_avltree_list.c: New file.
111419         * lib/gl_anyavltree_list1.h: New file.
111420         * lib/gl_anyavltree_list2.h: New file.
111421         * lib/gl_rbtree_list.h: New file.
111422         * lib/gl_rbtree_list.c: New file.
111423         * lib/gl_anyrbtree_list1.h: New file.
111424         * lib/gl_anyrbtree_list2.h: New file.
111425         * lib/gl_anytree_list1.h: New file.
111426         * lib/gl_anytree_list2.h: New file.
111427         * lib/gl_linkedhash_list.h: New file.
111428         * lib/gl_linkedhash_list.c: New file.
111429         * lib/gl_anyhash_list1.h: New file.
111430         * lib/gl_anyhash_list2.h: New file.
111431         * lib/gl_avltreehash_list.h: New file.
111432         * lib/gl_avltreehash_list.c: New file.
111433         * lib/gl_rbtreehash_list.h: New file.
111434         * lib/gl_rbtreehash_list.c: New file.
111435         * lib/gl_anytreehash_list1.h: New file.
111436         * lib/gl_anytreehash_list2.h: New file.
111438         * lib/gl_oset.h: New file.
111439         * lib/gl_oset.c: New file.
111440         * lib/gl_array_oset.h: New file.
111441         * lib/gl_array_oset.c: New file.
111442         * lib/gl_avltree_oset.h: New file.
111443         * lib/gl_avltree_oset.c: New file.
111444         * lib/gl_rbtree_oset.h: New file.
111445         * lib/gl_rbtree_oset.c: New file.
111446         * lib/gl_anytree_oset.h: New file.
111448 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111450         * m4/mkancesdirs.m4: New file.
111451         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
111452         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
111453         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
111454         it.
111456 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111458         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
111459         * lib/mkancesdirs.h: New files.
111460         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
111461         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
111462         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
111463         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
111464         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
111465         callers changed.  Revamp internals significantly, by not
111466         attempting to create directories that are temporarily more
111467         permissive than the final results.  Do not attempt to use
111468         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
111469         This removes some race conditions, fixes some bugs, and simplifies
111470         things.  Use new dirchownmod function to do owner and mode changes.
111471         * lib/mkdir-p.h: Likewise.
111472         * lib/modechange.c (octal_to_mode): New function.
111473         (struct mode_change): New member mentioned.
111474         (make_node_op_equals): New arg mentioned.  All callers changed.
111475         (mode_compile): Keep track of which mode bits the user has explicitly
111476         mentioned.
111477         (mode_adjust): New arg DIR, so that we implement the X op correctly.
111478         New arg PMODE_BITS, to keep track of which mode bits the user
111479         mentioned; it treats S_ISUID and S_ISGID speciall.
111480         All callers changed.
111481         * lib/modechange.h: Likewise.
111483 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
111485         * MODULES.html.sh: Add mkancestors.
111486         * modules/mkancesdirs: New module.
111487         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
111488         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
111489         The chdir-safer and afs files are now orphans; I'll remove them
111490         unless someone speaks up.
111491         Add lib/dirchownmod.c, lib/dirchownmod.h.
111492         (Depends-on): Remove alloca, chown, save-cwd, dirname.
111493         Add lchown, mkancesdirs.
111494         (Maintainer): Add self.
111496 2006-07-15  Karl Berry  <karl@gnu.org>
111498         * gnulib-tool: help message wording/arrangement.
111500 2006-07-14  Simon Josefsson  <jas@extundo.com>
111502         * doc/gnulib.texi (Libtool and Windows): New section.
111504 2006-07-12  Simon Josefsson  <jas@extundo.com>
111506         * modules/gendocs (License): Fix license, approved by Karl.
111508 2006-07-12  Eric Blake  <ebb9@byu.net>
111510         * MODULES.html.sh: Add gendocs.
111512 2006-07-11  Eric Blake  <ebb9@byu.net>
111514         * modules/fdl: New module, to install doc/fdl.texi.
111515         * MODULES.html.sh: Add new section for documentation modules.
111516         * gnulib-tool: Avoid space-tab.
111517         (--doc-base): New option, to manage files from doc.
111519 2006-07-11  Eric Blake  <ebb9@byu.net>
111521         * m4/absolute-header.m4: Fix comments to match recent change.
111523 2006-07-11  Eric Blake  <ebb9@byu.net>
111525         * gnulib-tool: List --doc-base before --tests-base.
111527 2006-07-11  Derek R. Price  <derek@ximbiot.com>
111529         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
111531 2006-07-11  Bruno Haible  <bruno@clisp.org>
111533         * README: Mention where to put documentation.
111535 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111537         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
111539 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111541         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
111542         to stdint.m4.
111544 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
111546         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
111547         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
111548         "no/such/file/stdint.h" when there is no such file, so that
111549         the resulting C code can be parsed by dodgy compilers.
111550         Problems reported by Bob Proulx.
111552 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111554         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
111555         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111556         macros into the GNU _D_EXACT_NAMLEN.
111557         * lib/savedir.c:  Likewise.
111558         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
111560 2006-07-10  Derek R. Price  <derek@ximbiot.com>
111561         and Paul Eggert  <eggert@cs.ucla.edu>
111563         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
111564         * m4/savedir.m4:
111565         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
111566         macros into the GNU _D_EXACT_NAMLEN.
111568 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111570         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
111571         around the absolute name, to work around a problem with the HP-UX
111572         11.23 native C compiler, reported by Bob Proulx.
111574 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111576         * doc/maintain.texi, make-stds.texi: Sync from
111577         <http://savannah.gnu.org/projects/gnustandards>.
111579 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
111581         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
111583 2006-07-09  Jim Meyering  <jim@meyering.net>
111585         * m4/glob.m4: Remove a doubled word in a comment.
111587 2006-07-09  Jim Meyering  <jim@meyering.net>
111589         * lib/argp-pv.c: Remove a doubled word in a comment.
111590         * lib/check-version.c (check_version): Likewise.
111591         * lib/javacomp.c (compile_java_class): Likewise.
111593 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
111595         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
111596         for the benefit of people using Autoconf 2.60.  If you want to
111597         support older Autoconf versions you can copy m4/onceonly_2_57.m4
111598         (or m4/onceonly.m4, if pre-2.57) manually.
111600 2006-07-08  Jim Meyering  <jim@meyering.net>
111602         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
111603         comment.
111604         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
111605         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
111606         comment.
111608 2006-07-08  Jim Meyering  <jim@meyering.net>
111610         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
111612 2006-07-07  Simon Josefsson  <jas@extundo.com>
111614         * tests/test-crc.c: Change expected crc value, the test vector
111615         were probably computed using the old broken crc.c?
111617 2006-07-06  Simon Josefsson  <jas@extundo.com>
111619         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
111620         now the canonical place for the M4 file).
111622         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
111623         from the sys_socket dependency now.
111625         * modules/inet_pton (Files): Ditto.
111627         * modules/inet_ntop (Files): Ditto.
111629 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111631         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
111632         not gl_PREREQ_GETUSERSHELL.
111634 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111636         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
111637         with only one argument, for Autoconf 2.60.
111638         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
111639         expand to nothing, so add a shell command to avoid syntax error.
111640         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
111642 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111644         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
111646 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111648         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
111649         no longer needed.  Check for isblank decl.
111650         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
111651         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
111652         of existence.
111654 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111656         * lib/getloadavg.c: Use __VMS, not VMS.
111657         * lib/getopt.c: Likewise.
111658         * lib/getpagesize.h: Likewise.
111659         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
111660         and probably does not work.
111662 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111664         * lib/.cppi-disable: Add wcwidth.
111665         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
111666         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
111667         (ISGRAPH): Remove.  All uses changed to isgraph.
111668         (FOLD) [!defined _LIBC]: Remove special case.
111669         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
111670         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
111671         HAVE_ISBLANK.
111672         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
111673         case.
111675 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
111677         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
111678         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
111679         brackets.  Other minor changes to suppress some compiler
111680         warnings.
111682 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111683         and Paul Eggert  <eggert@cs.ucla.edu>
111685         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
111686         of invoking obsolescent AC_HEADER_DIRENT macro.
111687         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
111688         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
111689         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
111690         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
111691         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
111692         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111693         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
111694         * m4/readdir.m4: Remove; no longer needed.
111696 2006-07-06  Derek R. Price  <derek@ximbiot.com>
111697         and Paul Eggert  <eggert@cs.ucla.edu>
111699         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
111700         Don't worry about this obsolete case any more.
111701         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
111702         directories.
111703         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
111704         worry about this obsolete case any more.
111705         * lib/fts.c: Likewise.
111706         * lib/getcwd.c: Likewise.
111707         * lib/glob.h: Likewise.
111708         * lib/savedir.c: Likewise.
111710 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111712         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
111713         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
111714         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
111715         needed.
111716         All uses removed.
111717         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111718         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111719         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
111720         needed.
111721         * m4/getdate.m4 (gl_GETDATE): Likewise.
111722         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111723         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111724         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111725         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111726         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
111727         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111728         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
111729         needed.
111731 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111733         * lib/memcasecmp.c: Include <limits.h>.
111734         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
111735         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
111736         Don't assume isdigit succeeds only on '0' through '9'.
111738 2006-07-05  Eric Blake  <ebb9@byu.net>
111740         * modules/getaddrinfo (Depends-on): Add snprintf.
111742 2006-07-05  Eric Blake  <ebb9@byu.net>
111744         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
111745         to avoid 'header present but could not be compiled' on cygwin.
111747 2006-07-05  Eric Blake  <ebb9@byu.net>
111749         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
111750         missing from netdb.h.
111751         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
111753 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111755         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
111756         no longer needed.
111757         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
111758         * m4/getdate.m4 (gl_GETDATE): Likewise.
111759         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
111760         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
111761         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
111762         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
111763         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111765 2006-07-05  Derek R. Price  <derek@ximbiot.com>
111767         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
111768         All uses of is_space replaced by isspace.
111769         * lib/exit.h: Don't talk about STDC_HEADERS.
111770         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
111771         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
111772         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
111773         replaced by isprint etc.
111774         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
111775         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111776         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
111777         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
111778         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
111779         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
111781 2006-07-05  Bruno Haible  <bruno@clisp.org>
111783         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
111784         the function exists, before testing against AIX.
111785         Reported by Martin Lambers <marlam@marlam.de>.
111787 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111789         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
111790         From Mark D. Baushke.
111792 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
111794         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
111795         to the absolute name, not just one, to bypass Sun C 5.8's
111796         "warning: #include of /usr/include/... may be non-portable".
111798 2006-07-04  Eric Blake  <ebb9@byu.net>
111800         * modules/dirname-tests: New test module.
111801         * tests/test-dirname.c: New file, replacing dirname.c
111802         TEST_DIRNAME section that was recently deleted.
111804 2006-07-04  Bruno Haible  <bruno@clisp.org>
111806         Assume ANSI C header files and <ctype.h> functions.
111807         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
111808         (mbsnwidth): Use isprint, iscntrl instead.
111810 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111812         Merge from coreutils.
111813         * MODULES.html.sh: Add xstrtold.
111814         * modules/xstrtold: New file.
111815         * modules/cycle-check (Files): Add lib/same-inode.h.
111816         * modules/dirname (Files): Add m4/double-slash-root.m4.
111817         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
111818         * modules/mkdir-p (Files): Add lib/same-inode.h.
111819         * modules/same (Files): Add lib/same-inode.h.
111821 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111823         * m4/absolute-header.m4: Renamed from full-header-path.m4.
111824         This is to keep the terminology clean; POSIX talks about
111825         "absolute pathnames", not "full pathnames", but the GNU
111826         Coding Standards say to use "path" for something else;
111827         so use "absolute" to keep both sides happy.
111828         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
111829         Set gl_absolute_header, not gl_full_header_path.
111830         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
111831         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
111832         All uses changed.
111834         Merge from coreutils.
111836         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111838         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
111839         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
111840         want to require the building of c-strtod.o.
111841         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
111842         needs -lm directly.
111843         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
111845         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
111847         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
111848         --as-needed option if available.  Problem reported by Albert Chin in
111849         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
111850         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
111851         cc merely issues a bunch of annoying warnings for --as-needed
111852         (this problem was reported by Bob Proulx).  Also, try linking with
111853         -lm to detect a bug in binutils 2.16 (this problem was reported
111854         by Ralf Wildenhues).
111856         2006-06-18  Jim Meyering  <jim@meyering.net>
111858         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
111859         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
111860         macro.
111861         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
111862         also check for glibc-2.4's abort-inducing bug.
111864         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
111865         Low-probability clean-up should be to use rmdir to get rid of
111866         the just-created directory, not unlink.
111868         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
111869         configure fail, and request a bug report to inform us about it.
111870         Add a comment that, barring reports to the contrary, in 2007 we'll
111871         assume ftruncate is universally available.
111873         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111875         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
111877         2006-03-12  Jim Meyering  <jim@meyering.net>
111879         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
111880         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
111881         * m4/same.m4 (gl_SAME): Likewise.
111882         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
111884         2006-03-11  Eric Blake  <ebb9@byu.net>
111886         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
111887         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
111888         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
111889         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
111891 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111893         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
111894         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
111895         reported by Mark D. Baushke, one in
111896         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
111898         Merge from coreutils.
111900         * lib/.cppi-disable: Add stdint_.h.
111901         * lib/.cvsignore: Add stdint.h.
111903         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
111905         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
111906         both double and long double versions.
111907         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
111908         * lib/xstrtold.c: New file.
111909         * lib/xstrtod.h (xstrtold): New decl.
111911         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
111913         * lib/filemode.c (setst): Remove.
111914         (strmode): Rewrite to avoid setst.  This makes the code shorter,
111915         (arguably) clearer, and the generated code is a bit smaller on my
111916         Debian GNU/Linux stable x86 host.
111918         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
111920         * lib/filemode.c: Include "filemode.h" first, to test the interface.
111921         Assume that filemode.h includes sys/types.h and sys/stat.h.
111922         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
111923         (ftypelet): Reorder to put common cases first, for efficiency.
111924         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
111925         to do 'M'.
111926         (strmode): Renamed from mode_string, and now stores 12 bytes instead
111927         of 10, for compatibility with FreeBSD.  All callers changed.
111928         (filemodestring): Now stores 12 bytes instead of 10, and sets file
111929         types that can't be deduced solely from st_mode.  First arg is now a
111930         const pointer.
111931         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
111932         (strmode): Renamed from mode_string.
111933         (filemodestring): New decl.
111934         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
111935         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
111936         needed.
111937         (S_ISPORT, S_ISWHT): New macros, if not already defined.
111939         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
111941         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
111942         fsusage.h now does that.  Include fsusage.h first, to test interface.
111943         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
111944         at most one method (the old code could have generated decls that
111945         didn't conform to C89, not that this was ever exercised).
111946         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
111948         2006-03-19  Jim Meyering  <jim@meyering.net>
111950         Work even in a chroot where d_ino values for entries in "/"
111951         don't match the stat.st_ino values for the same names.
111952         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
111953         number, iterate through all entries again, using lstat instead.
111954         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
111955         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
111957         * lib/getcwd.c (__getcwd): Clarify a comment.
111958         Use memcpy in place of a call to strcpy.
111960         2006-03-12  Jim Meyering  <jim@meyering.net>
111962         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
111963         matches that of the current directory (which we're about to chdir ".."
111964         out of), then save the dev-ino of the parent, instead.
111966         * lib/same-inode.h (SAME_INODE): New file/macro.
111967         * lib/chdir-safer.c (SAME_INODE): Remove definition.
111968         Include "same-inode.h", instead.
111969         * lib/same.c: Likewise.
111970         * lib/cycle-check.h: Include "same-inode.h".
111971         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
111972         * lib/cycle-check.c (SAME_INODE): Remove definition.
111973         * lib/root-dev-ino.h: Include "same-inode.h".
111975         2006-03-11  Eric Blake  <ebb9@byu.net>
111977         * lib/same.c (same_name): s/base_name/last_component/
111978         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
111979         * lib/filenamecat.c (file_name_concat): Likewise.
111981         2006-03-11  Eric Blake  <ebb9@byu.net>,
111982                     Paul Eggert  <eggert@cs.ucla.edu>
111984         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
111985         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
111986         drive prefix.
111987         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
111988         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
111989         (last_component): New method.
111990         * lib/dirname.c (dir_len): Determine when drive letters need a
111991         subsequent slash.  Preserve // when it is special.
111992         (dir_name): Don't append dot when drive letter is absolute.
111993         [TEST_DIRNAME]: Move into a full-blown gnulib test.
111994         * lib/basename.c (base_name): New semantics - malloc the result.
111995         Preserve // when it is special.  Preserve relative files that look
111996         like drive letters.
111997         (base_len): Preserve // when it is special.
111998         (last_component): New method, similar to old base_name semantics.
111999         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
112000         base_name.  Strip redundant slashes from ///.
112002 2006-07-03  Jim Meyering  <jim@meyering.net>
112004         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
112005         macro is used before the first cycle_check call.
112007 2006-07-03  Eric Blake  <ebb9@byu.net>
112009         * modules/dirname (Depends-on): Add xstrndup.
112011 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112013         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
112014         test cases, so that config.log is a bit easier to follow.
112016 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
112018         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
112019         both are 64 bits, since this seems to be the tradition, and this
112020         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
112021         we ever run into a host that prefers long long to long in this
112022         case, we'll need another configure-time test.  Problem reported by
112023         Jim Meyering.
112025 2006-07-02  Eric Blake  <ebb9@byu.net>
112027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
112029 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112031         * modules/inttypes (Depends-on): No longer depends on stdint.
112032         * modules/stdint (Description): Say more about assumptions.
112033         Say that the fast types might differ.  Say macros are used.
112034         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
112035         (Makefile.am): Revise list of substituted symbols to match
112036         new stdint.m4.
112037         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
112038         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
112039         * tests/test-stdint.c (verify_same_types)
112040         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
112041         the code conforms to C99/C89.
112042         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
112043         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
112045 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112047         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
112048         but fix a bug, by requiring at least 64 bits.
112049         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
112050         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
112051         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
112052         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
112054         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
112055         changes.  Make 2.59 a prerequisite.  Check and substitute for
112056         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
112057         inttypes.h.  Do not use special include files; just use the
112058         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
112059         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
112060         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
112061         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
112062         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
112063         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
112064         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
112065         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
112066         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
112067         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
112068         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
112069         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
112070         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
112071         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
112072         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
112073         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
112074         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
112075         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
112076         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
112077         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
112078         WINT_MAX.  Check for C99 conformance more strictly, by detecting
112079         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
112080         not check for things that C99 does not require, e.g., int8_t.  If
112081         a test isn't needed unless <stdint.h> isn't working, and is
112082         unlikely to be needed for any other reason, then don't do it
112083         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
112084         size_t, since we assume C89 freestanding at least.  Do not check
112085         for sig_atomic_t, wchar_t, or wint_t, since the code now does
112086         the right thing even if the types are not defined.  Instead use:
112087         (gl_STDINT_TYPE_PROPERTIES): New macro.
112088         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
112089         testing whether <sys/types.h> clashes, as Autoconf does this for
112090         us now.  All uses removed.
112091         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
112092         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
112093         (gl_CHECK_TYPE_SAME):
112094         Remove; no longer needed.
112095         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
112096         exists, since we'll return 0 anyway in that case.
112097         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
112099 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
112101         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
112102         possible collision with system files.
112103         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
112104         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
112105         WCHAR_MIN and WCHAR_MAX in this case.
112106         (<stddef.h>): Do not include; no longer needed.
112107         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
112108         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
112109         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
112110         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
112111         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
112112         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
112113         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
112114         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
112115         !defined(__c99))]: Include in this case too, since it's harmless
112116         now.
112117         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
112118         dangerous to do so.
112119         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
112120         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
112121         (_STDINT_MIN, _STDINT_MAX): New macros.
112122         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
112123         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
112124         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
112125         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
112126         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
112127         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
112128         macros, not typedefs; this simplifies things quite a bit.
112129         Use long int for all types narrower than int64_t.
112130         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
112131         Define in terms of long long int or int64_t or long int,
112132         not int64_t or int32_t.  This saves some compile-time testing.
112133         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
112134         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
112135         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
112136         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
112137         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
112138         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
112139         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
112140         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
112141         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
112142         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
112143         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112144         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112145         undef any previous version and define our own version, for
112146         simplicity and consistency with the new macros for types.
112147         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
112148         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
112149         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
112150         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
112151         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
112152         @WINT_T_SUFFIX@ to keep things simple here.
112153         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
112154         Simplify by assuming typical 8/16/32/64 host, since we're
112155         already doing that elsewhere anyway.
112156         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
112157         and assume long long int is 64 bits if available.  This
112158         speeds up 'configure'.
112160 2006-07-01  Eric Blake  <ebb9@byu.net>
112162         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
112163         Reported by Andreas Buening.
112165 2006-07-01  Eric Blake  <ebb9@byu.net>
112167         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
112169 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112171         * lib/getaddrinfo.c: fixed typo
112173 2006-06-29  Jim Meyering  <jim@meyering.net>
112175         * modules/strftime (Maintainer): Add my name, since with the
112176         FPRINTFTIME changes strftime.c has forked from glibc.
112178 2006-06-29  Eric Blake  <ebb9@byu.net>
112180         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
112182 2006-06-29  Eric Blake  <ebb9@byu.net>
112184         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
112186 2006-06-29  Eric Blake  <ebb9@byu.net>
112188         * lib/stat_.h: New file.
112190 2006-06-29  Eric Blake  <ebb9@byu.net>
112192         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
112193         unused static function.
112195 2006-06-29  Eric Blake  <ebb9@byu.net>
112197         * doc/functions.texi (Function Portability): Document missing lstat
112198         on mingw.
112200 2006-06-29  Eric Blake  <ebb9@byu.net>
112202         * MODULES.html.sh: Add sys_stat.
112203         * modules/sys_stat: New module.
112204         * modules/mkstemp (Depends-on): Add sys_stat.
112206 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112208         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
112210 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112212         * m4/c-bs-a.m4: Removed.
112214 2006-06-29  Derek R. Price  <derek@ximbiot.com>
112216         * lib/strftime.c: Assume strftime() exists.
112218 2006-06-29  Derek Price  <derek@ximbiot.com>
112220         * modules/c-bs-a: Removed - \a is C89.
112221         * MODULES.html.sh: Remove c-bs-a.
112223 2006-06-29  Bruno Haible  <bruno@clisp.org>
112225         * modules/wcwidth (License): Change to LGPL.
112227 2006-06-28  Simon Josefsson  <jas@extundo.com>
112229         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
112230         on _WIN32.
112232         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
112233         getnameinfo.
112235 2006-06-28  Simon Josefsson  <jas@extundo.com>
112237         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
112239 2006-06-28  Simon Josefsson  <jas@extundo.com>
112241         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
112242         functions there.  It will succeed on Windows XP, but on Windows
112243         2000 and (presumably) earlier, it will fail, and use the internal
112244         re-implementation.
112245         (use_win32_p): New function.
112246         (getaddrinfo): Use strtoul on servname, to support numeric ports.
112247         Support AI_NUMERICSERV to disable getservbyname.
112248         (getnameinfo): New function, only supports
112249         NI_NUMERICHOST|NI_NUMERICSERV for now.
112251         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
112252         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
112253         getnameinfo.
112255 2006-06-28  Eric Blake  <ebb9@byu.net>
112257         * modules/wcwidth: New file.
112258         * modules/mbchar (Depends-on): Add wcwidth.
112259         * modules/mbswidth (Depends-on): Add wcwidth.
112260         * MODULES.html.sh: Add wcwidth.
112262 2006-06-28  Eric Blake  <ebb9@byu.net>
112264         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
112265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
112267 2006-06-28  Eric Blake  <ebb9@byu.net>
112269         * lib/xvasprintf.h: Fix comments.
112271 2006-06-28  Eric Blake  <ebb9@byu.net>
112273         * lib/mbchar.h (wcwidth): Include wcwidth.h.
112274         * lib/mbswidth.c (wcwidth): Move from here...
112275         * lib/wcwidth.h: ...to this new file.
112277 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112279         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
112281         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
112282         it's obsolete.
112283         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
112285 2006-06-28  Derek R. Price  <derek@ximbiot.com>
112287         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
112288         Autoconf 2.60 says this stuff was obsolete.
112290 2006-06-28  Bruno Haible  <bruno@clisp.org>
112292         * modules/wcwidth (Files): Add m4/wchar_t.m4.
112294 2006-06-28  Bruno Haible  <bruno@clisp.org>
112296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
112297         gt_TYPE_WCHAR_T.
112299 2006-06-28  Bruno Haible  <bruno@clisp.org>
112301         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
112302         declaration for wcwidth.
112303         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
112305 2006-06-28  Bruno Haible  <bruno@clisp.org>
112307         * lib/mkdtemp.c [MINGW]: Include <io.h>.
112308         (mkdir): Define using _mkdir.
112310 2006-06-28  Bruno Haible  <bruno@clisp.org>
112312         * lib/getaddrinfo.h: Fix POSIX URL.
112313         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
112314         _WIN32.
112315         (use_win32_p): Make static.
112316         (getaddrinfo): Reject service name if it is empty or does not consist
112317         solely of decimal digits, or if its value is > 65535.
112318         (getnameinfo): Remove useless casts.
112320 2006-06-27  Simon Josefsson  <jas@extundo.com>
112322         * modules/sys_select: New file, suggested by Bruno Haible, Paul
112323         Eggert and Martin Lambers.
112325 2006-06-27  Simon Josefsson  <jas@extundo.com>
112327         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
112328         Eggert and Martin Lambers.
112330 2006-06-27  Bruno Haible  <bruno@clisp.org>
112332         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
112333         result to 0, not to empty.
112334         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
112336 2006-06-27  Bruno Haible  <bruno@clisp.org>
112338         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
112340 2006-06-26  Simon Josefsson  <jas@extundo.com>
112342         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
112343         present.
112345 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
112347         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
112348         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
112349         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
112351 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
112353         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
112355 2006-06-26  Bruno Haible  <bruno@clisp.org>
112357         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
112359 2006-06-26  Bruno Haible  <bruno@clisp.org>
112361         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
112363 2006-06-26  Bruno Haible  <bruno@clisp.org>
112365         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
112366         SGI C compiler in pre-C99 mode.
112367         Suggested by Mark D. Baushke and Larry Jones.
112369 2006-06-26  Bruno Haible  <bruno@clisp.org>
112371         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
112372         WCHAR_MAX.
112373         Reported by Mark D. Baushke and Larry Jones.
112375 2006-06-26  Bruno Haible  <bruno@clisp.org>
112377         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
112378         in pre-C99 mode.
112379         Suggested by Mark D. Baushke and Larry Jones.
112381 2006-06-23  Simon Josefsson  <jas@extundo.com>
112382             Bruno Haible  <bruno@clisp.org>
112384         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
112385         Emit mostlyclean-local rule.
112386         (func_emit_tests_Makefile_am): Likewise.
112387         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
112389 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
112391         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
112393 2006-06-23  Bruno Haible  <bruno@clisp.org>
112395         * tests/test-stdint.c: Update to match ISO C 99 Technical
112396         Corrigendum 1.
112398 2006-06-23  Bruno Haible  <bruno@clisp.org>
112400         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
112402 2006-06-23  Bruno Haible  <bruno@clisp.org>
112404         * lib/stdint_.h: Treat IRIX like OpenBSD.
112406 2006-06-23  Bruno Haible  <bruno@clisp.org>
112408         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
112409         ISO C 99 Technical Corrigendum 1.
112411 2006-06-22  Simon Josefsson  <jas@extundo.com>
112413         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
112414         MinGW.
112416 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
112418         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
112419         needed.  Some compiler complained about some of them.  Problem reported
112420         by Larry Jones in
112421         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
112423 2006-06-21  Simon Josefsson  <jas@extundo.com>
112425         * tests/test-getaddrinfo.c: New file.
112427         * modules/getaddrinfo-tests: New file.
112429         * MODULES.html.sh: Add inet_pton.
112431         * modules/inet_pton: New file.
112433 2006-06-21  Simon Josefsson  <jas@extundo.com>
112435         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
112436         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
112437         of using the (limited) gnulib implementation on Windows XP.
112439         * m4/inet_pton.m4: New file.
112441 2006-06-21  Simon Josefsson  <jas@extundo.com>
112443         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
112444         variable.
112446         * lib/socket_.h: Don't define WINVER.
112448         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
112449         slightly modified to work in gnulib.
112451 2006-06-21  Simon Josefsson  <jas@extundo.com>
112453         * doc/gnulib.texi (Windows sockets): Add.
112455 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
112457         * lib/read-file.c (fread_file): Start with buffer allocation of
112458         0 bytes rather than 1 byte; this simplifies the code.
112459         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
112460         code to free buffer and save/restore errno.
112461         (internal_read_file): Remove unused local.
112463 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
112465         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
112466         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
112467         Problem reported by Denis Excoffier in
112468         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
112470 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112472         * modules/sys_socket, modules/socklen: Include sys/types since
112473         FreeBSD 4.x's sys/socket.h needs it.
112475 2006-06-19  Simon Josefsson  <jas@extundo.com>
112477         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
112479 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112481         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
112483 2006-06-19  Bruno Haible  <bruno@clisp.org>
112485         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
112486         and FULL_PATH_INTTYPES_H in angle brackets.
112487         Reported by Mark D. Baushke <mdb@gnu.org>.
112489 2006-06-17  Eric Blake  <ebb9@byu.net>
112491         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
112492         errno.
112494 2006-06-17  Bruno Haible  <bruno@clisp.org>
112496         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
112497         <sys/inttypes.h>.
112499 2006-06-17  Bruno Haible  <bruno@clisp.org>
112501         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
112502         whether errno is declared. Assume <errno.h> declares errno.
112504 2006-06-17  Bruno Haible  <bruno@clisp.org>
112506         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
112508 2006-06-17  Bruno Haible  <bruno@clisp.org>
112510         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
112511         problem on Solaris 2.5.1.
112513 2006-06-16  Eric Blake  <ebb9@byu.net>
112515         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
112516         * lib/unicodeio.c [!defined errno]: Likewise.
112517         * lib/strtol.c [!defined errno]: Likewise.
112518         * lib/strtod.c [!defined errno]: Likewise.
112520 2006-06-15  Eric Blake  <ebb9@byu.net>
112522         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
112524 2006-06-15  Eric Blake  <ebb9@byu.net>
112526         * config/srclist.txt (ssize_t.m4): Lose sync.
112528 2006-06-15  Bruno Haible  <bruno@clisp.org>
112530         * modules/stdint (Files): Include m4/full-header-path.m4,
112531         m4/size_max.m4, m4/wchar_t.m4.
112532         (Makefile.am): Many more substitutions.
112533         * modules/stdint-tests: New file.
112534         * tests/test-stdint.c: New file.
112536 2006-06-15  Bruno Haible  <bruno@clisp.org>
112538         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
112539         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
112540         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
112541         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
112542         gl_CHECK_TYPE_SAME): New macros.
112544 2006-06-15  Bruno Haible  <bruno@clisp.org>
112546         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
112548 2006-06-15  Bruno Haible  <bruno@clisp.org>
112550         * lib/stdint_.h: Rewritten to be fully auto-configured.
112551         Fixes bug on HP-UX/IA64.
112553 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
112555         * lib/getdate.y (__attribute__): Don't define if already defined.
112556         Problem reported by Larry Jones.
112557         * lib/utimens.c (__attribute__): Likewise.
112559 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
112561         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
112562         reported by Andreas Schwab.
112564 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112565             Bruno Haible  <bruno@clisp.org>
112567         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
112568         check for the declaration of strnlen and a run test that exposes the
112569         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
112570         rpl_strndup.
112572 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112573             Bruno Haible  <bruno@clisp.org>
112575         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
112577 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112579         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
112580         compile test, for Tru64 4.0D.
112582 2006-05-28  Karl Berry  <karl@gnu.org>
112584         * config/srclist.txt (printf-args.c): lose sync.
112586 2006-05-26  Martin Lambers  <marlam@marlam.de>
112588         * lib/getpass.c: Updates the test for the native W32 API, and adds
112589         missing includes, thus fixing compilation warnings.
112591 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
112593         * lib/exclude.c (exclude_fnmatch): New function.
112594         (excluded_file_name): Call exclude_fnmatch.
112595         * lib/exclude.h (excluded_file_name): New prototype
112597 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
112599         * lib/tempname.c (small_open, large_open): New macros.
112600         (__open, __open64) [!_LIBC]: Remove.
112601         (__gen_tempname): Use small_open and large_open instead of __open
112602         and __open64.  This fixes a portability bug on HP-UX 11.11i
112603         reported by Simon Wing-Tang in
112604         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
112606 2006-05-24  Bruno Haible  <bruno@clisp.org>
112608         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
112609         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
112610         Reported by Thorsten Maerz <torte@netztorte.de> via
112611         Aaron Stone <aaron@serendipity.cx>.
112613 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
112616         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
112617         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
112618         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
112619         not really conditional on the cache.
112620         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
112622 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
112624         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
112625         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
112626         (my_usleep): Don't mishandle maximum value.
112628 2006-05-19  Jim Meyering  <jim@meyering.net>
112630         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
112632 2006-05-17  Bruno Haible  <bruno@clisp.org>
112634         Cygwin portability.
112635         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
112637 2006-05-17  Bruno Haible  <bruno@clisp.org>
112639         * lib/stdint_.h: Fix recognition of Cygwin.
112641 2006-05-15  Bruno Haible  <bruno@clisp.org>
112643         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
112644         on libtool patch by Ralf Wildenhues.
112646 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
112648         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
112649         test for C99 conformance; (bool) 0.5 is an integer constant
112650         expression, but (bool) -0.5 is not.  Problem reported by Fedor
112651         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
112653 2006-05-11  Simon Josefsson  <jas@extundo.com>
112655         * m4/xvasprintf.m4: Fix obvious typo.
112657 2006-05-11  Jim Meyering  <jim@meyering.net>
112659         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
112660         James Lemley.
112662 2006-05-10  Simon Josefsson  <jas@extundo.com>
112664         * lib/md4.c: Typo fix, update copyright years.
112665         (K1, K2): Don't use L because it turn computations into 64-bit on
112666         64-bit platforms.
112668 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
112670         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
112671         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
112672         unwanted sign propagation, e.g., on hosts with 64-bit int.
112673         There still are some problems with reeelly weird theoretical hosts
112674         (e.g., 33-bit int) but it's not worth worrying about now.
112675         * lib/sha1.c (rol): Likewise.
112676         (K1, K2, K3, K4): Remove unnecessary L suffix.
112678 2006-05-10  Bruno Haible  <bruno@clisp.org>
112680         * lib/des.c: Cast to avoid warnings.
112682 2006-05-09  Bruno Haible  <bruno@clisp.org>
112684         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
112685         (Depends-on): Depend also on xsize, stdarg.
112686         (configure.ac): Add gl_XVASPRINTF.
112688 2006-05-09  Bruno Haible  <bruno@clisp.org>
112690         * m4/xvasprintf.m4: New file.
112692 2006-05-09  Bruno Haible  <bruno@clisp.org>
112694         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
112695         (EOVERFLOW): Define fallback value.
112696         (xstrcat): New function.
112697         (xvasprintf): Recognize the special case of a string concatenation.
112699 2006-05-08  Eric Blake  <ebb9@byu.net>
112701         * gnulib-tool (func_version): Base copyright year on CVS date.
112702         (func_emit_copyright_notice): New function.
112703         (func_emit_lib_Makefile_am): Use it.
112704         (func_emit_tests_Makefile_am): Likewise.
112705         (func_import): Likewise.
112707 2006-05-08  Bruno Haible  <bruno@clisp.org>
112709         * modules/stdarg: New file.
112710         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
112712 2006-05-08  Bruno Haible  <bruno@clisp.org>
112714         * m4/stdarg.m4: New file, from GNU gettext.
112716 2006-05-08  Bruno Haible  <bruno@clisp.org>
112718         * config/srclist.txt (build-aux/config.rpath): different from latest
112719         release.
112721 2006-05-08  Bruno Haible  <bruno@clisp.org>
112723         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
112725 2006-05-05  Jim Meyering  <jim@meyering.net>
112727         * m4/warning.m4: New file, derived from bison's file by the same name.
112729 2006-05-03  Bruno Haible  <bruno@clisp.org>
112731         * lib/stdint_.h: Shorter URL.
112732         * lib/inttypes.h: Likewise.
112734 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112736         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
112738 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112740         * lib/verify.h: Document the internals better.  Most of this change
112741         was written by Bruno Haible.
112743 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
112745         * doc/verify.texi: New file, partly based on a proposal by
112746         Bruno Haible.
112748 2006-05-02  Bruno Haible  <bruno@clisp.org>
112750         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
112751         test from here...
112752         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
112754 2006-04-29  Bruno Haible  <bruno@clisp.org>
112756         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
112757         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
112759 2006-04-29  Bruno Haible  <bruno@clisp.org>
112761         * gnulib-tool: Make --update option actually work.
112763 2006-04-29  Bruno Haible  <bruno@clisp.org>
112765         * doc/gcd.texi: New file.
112766         * doc/gnulib.texi: Include it.
112768 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
112770         * lib/getdate.y (get_date): When adding relative date, start with the
112771         initial time, not with the result of the first mktime call.
112773 2006-04-25  Bruno Haible  <bruno@clisp.org>
112775         * gnulib-tool (func_import): Output the include directives in three
112776         blocks, sorted separately.
112777         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112779 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112781         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
112782         to define main with arguments, for C++.  Reported by Eric Blake.
112783         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
112784         Prefer 'int main ()' to 'int main (void)', for C++.
112785         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
112786         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
112787         for 'main', for C99 and C++.
112789 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
112791         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
112792         Don't assume that exit status -1 is valid.
112793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
112794         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
112795         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
112796         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
112797         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
112798         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
112799         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
112800         functions can be used without declaring them, or that you can
112801         exit with status -1.
112802         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
112804 2006-04-24  Karl Berry  <karl@gnu.org>
112806         * config/srclist.txt (longdouble.m4): sync lost.
112808 2006-04-24  Eric Blake  <ebb9@byu.net>
112810         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
112812 2006-04-24  Bruno Haible  <bruno@clisp.org>
112814         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
112815         poll() implementation in AIX.
112816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112818 2006-04-24  Bruno Haible  <bruno@clisp.org>
112820         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
112821         assigned exactly once.
112823 2006-04-23  Claudio Fontana  <claudio@gnu.org>
112824             Bruno Haible  <bruno@clisp.org>
112826         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
112827         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
112828         for AM_CPPFLAGS.
112830 2006-04-23  Bruno Haible  <bruno@clisp.org>
112832         * modules/copy-file: Depend on unistd.
112833         * modules/execute: Likewise.
112834         * modules/fatal-signal: Likewise.
112835         * modules/findprog: Likewise.
112836         * modules/mkdtemp : Likewise.
112837         * modules/pipe: Likewise.
112838         * modules/wait-process: Likewise.
112840 2006-04-23  Bruno Haible  <bruno@clisp.org>
112842         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
112843         condition was already detected.
112844         Reported by Ben Pfaff <blp@cs.stanford.edu>.
112846 2006-04-23  Bruno Haible  <bruno@clisp.org>
112848         * lib/copy-file.c: Include <unistd.h> unconditionally.
112849         * lib/execute.c: Likewise.
112850         * lib/fatal-signal.c: Likewise.
112851         * lib/findprog.c: Likewise.
112852         * lib/mkdtemp.c: Likewise.
112853         * lib/pipe.h: Likewise.
112854         * lib/pipe.c: Likewise.
112855         * lib/wait-process.h: Likewise.
112857 2006-04-23  Bruno Haible  <bruno@clisp.org>
112859         * gnulib-tool (func_usage): Fix --import description. Document
112860         --update.
112861         (func_import): Create temporary file in a temporary directory, if
112862         --dry-run is specified. Silence errors from 'grep' when there are no
112863         m4 files in $m4dir.
112864         (func_create_testdir): Silence errors from 'grep' when there are no
112865         m4 files in $m4dir.
112866         Reported by Karl Berry <karl@freefriends.org>.
112868 2006-04-20  Bruno Haible  <bruno@clisp.org>
112870         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
112871         one argument, so that the code will be portable to Autoconf 2.60.
112872         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
112873         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112874         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
112876 2006-04-19  Derek Price  <derek@ximbiot.com>
112877             Eric Blake  <ebb9@byu.net>
112879         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
112880         rather than "/full/path.h".  Update comment to match.  Shorten &
112881         generalize m4_translit call via AS_TR_CPP.
112883 2006-04-19  Derek Price  <derek@ximbiot.com>
112884             Eric Blake  <ebb9@byu.net>
112886         * lib/inttypes.h: Correct grammar in comment.
112888 2006-04-18  Derek Price  <derek@ximbiot.com>
112889             Paul Eggert  <eggert@cs.ucla.edu>
112891         * modules/inttypes: New file.
112892         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
112894 2006-04-18  Derek Price  <derek@ximbiot.com>
112895             Paul Eggert  <eggert@cs.ucla.edu>
112897         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
112898         New files.
112900 2006-04-18  Derek Price  <derek@ximbiot.com>
112901             Paul Eggert  <eggert@cs.ucla.edu>
112903         * lib/inttypes.h: New file.
112904         * lib/strtoimax.c: Assume <inttypes.h>.
112906 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
112908         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
112909         isn't mounted.  Problem reported by Kir Kolyshkin.
112911 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
112913         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
112914         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
112915         Derek R. Price.
112916         * lib/regex.h (RE_DUP_MAX): Update comment to match current
112917         implementation.
112919 2006-04-12  Eric Blake  <ebb9@byu.net>
112921         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
112922         is now done automatically by the corresponding Autoconf macro.
112924 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
112926         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
112927         time_r.h.
112929 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
112931         Merge regex changes from libc, removing some of our
112932         POSIX-conformance changes that were rejected and redoing them in a
112933         less-intrusive way.
112935         * lib/regcomp.c (re_compile_internal, init_dfa):
112936         Length arg is now size_t, not Idx.  All uses changed.
112937         (peek_token): Forward decl now says internal_function.
112938         (__re_error_msgid, __re_error_msgid_idx):
112939         Now static rather than extern with attribute_hidden.
112940         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
112941         For some reason libc prefers K&R style defns for external functions.
112942         (regerror) [!defined _LIBC]: Likewise.
112943         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
112944         (seek_collating_symbol_entry, lookup_collation_sequence_value):
112945         (build_range_exp, build_collating_symbol):
112946         Use K&R-style defn.
112947         (re_compile_fastmap): Use '\0' to memset, not 0.
112948         (utf8_sb_map): Make the calculations more obvious.
112949         (init_dfa, parse_bracket_exp, build_charclass_op):
112950         Call calloc and cast result, as glibc does.
112951         (init_word_char, fetch_token, peek_token, peek_token_bracket):
112952         (build_range_exp, build_collating_symbol):
112953         Now internal functions.
112955         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
112957         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
112958         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
112959         Don't depend on VMS; depend on __VMS instead, for POSIX
112960         namespace cleanness.
112961         (regoff_t): Define to ssize_t, not long int.
112963         Remove the REG_ macros named below.  Instead, make the old names
112964         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
112965         __USE_GNU_REGEX.
112966         (REG_BACKSLASH_ESCAPE_IN_LISTS):
112967         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
112968         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
112969         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
112970         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
112971         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
112972         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
112973         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
112974         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
112975         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
112976         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
112977         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
112978         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
112979         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
112980         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
112981         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
112982         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
112983         (REG_NREGS):
112984         Remove.  All uses replaced by the old RE_* names.
112985         (RE_BACKSLASH_ESCAPE_IN_LISTS):
112986         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
112987         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
112988         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
112989         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
112990         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
112991         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
112992         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
112993         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
112994         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
112995         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
112996         Don't bother having these macros be independent of each others'
112997         values, since they no longer exist in the POSIX name space.
112999         Rename the following member names back to their old names,
113000         unless !__USE_GNU_REGEX.  All uses changed back.
113001         (buffer): Renamed from re_buffer.
113002         (allocated): Renamed from re_allocated.
113003         (used): Renamed from re_used.
113004         (syntax): Renamed from re_syntax.
113005         (fastmap): Renamed from re_fastmap.
113006         (translate): Renamed from re_translate.
113007         (can_be_null): Renamed from re_can_be_null.
113008         (regs_allocated): Renamed from re_regs_allocated.
113009         (fastmap_accurate): Renamed from re_fastmap_accurate.
113010         (no_sub): Renamed from re_no_sub.
113011         (not_bol): Renamed from re_not_bol.
113012         (not_eol): Renamed from re_not_eol.
113013         (newline_anchor): Renamed from re_newline_anchor.
113014         (num_regs): Renamed from rm_num_regs.
113015         (start): Renamed from rm_start.
113016         (end): Renamed from rm_end.
113018         (free_state): Move up a bit.
113020         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
113021         #define to be empty.
113022         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
113023         when that is what is intended.
113024         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
113025         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
113026         (MAX): New macro.
113027         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
113028         All uses changed back to re_malloc, etc.  It's now the caller's
113029         responsibility to check for overflow; all callers changed.
113030         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
113031         (re_x2nrealloc): Remove.
113032         (free_state): Remove decl.
113034         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
113035         (re_set_registers, re_exec):
113036         Use K&R-style defn.
113038         2006-01-31  Roland McGrath  <roland@redhat.com>
113040         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
113041         Reported by Mike Frysinger <vapier@gentoo.org>.
113043         2006-01-15  Andreas Jaeger  <aj@suse.de>
113045         [BZ #1950]
113046         * lib/regex_internal.c (re_string_reconstruct): Adjust for
113047         build_wcs_upper_buffer change.
113048         (build_wcs_upper_buffer): Change return type.
113050         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
113052         * lib/regex_internal.h: Include <stdint.h> if available.
113054         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
113056         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
113058         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
113060         * lib/regcomp.c: Adjust for changed secondary hash function.
113062         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
113064         * lib/regex.h: Pretty printing.
113065         Clean up namespace a bit.
113067         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
113069         * lib/regexec.c (update_cur_sifted_state, check_arrival,
113070         check_arrival_add_next_nodes): Avoid using uninitialized variable.
113072         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
113073                     Ulrich Drepper  <drepper@redhat.com>
113075         [BZ #1302]
113076         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
113077         changed.
113078         (bitset_word_t): Renamed from bitset_word.  All uses changed.
113080         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
113082         [BZ #281]
113083         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
113084         * lib/regcomp.c: Remove unnecessary uses of
113085         unsigned RE_TRANSLATE_TYPE.
113086         * lib/regex_internal.h: Likewise.
113087         * lib/regex_internal.c: Likewise.
113088         * lib/regexec.c: Likewise.
113089         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
113091         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
113093         * lib/regexec.c (find_recover_state): Remove unnecessary
113094         initialization.
113095         (transit_state_bkref): Make DFA a const pointer.
113096         (get_subexp): Likewise.
113097         (check_arrival): Likewise.
113098         (update_cur_sifted_state): Likewise.
113099         (re_search_internal): Likewise.
113100         (prune_impossible_nodes): Likewise.
113101         (acquire_init_state_context): Likewise.
113102         (proceed_next_node): Likewise.
113103         (set_regs): Likewise.
113104         (free_fail_stack_return): Likewise.
113105         (check_arrival_expand_ecl): Mark DFA parameter as const.
113106         (check_arrival_expand_ecl_sub): Likewise.
113107         (check_subexp_limits): Likewise.
113108         (sub_epsilon_src_nodes):  Likewise.
113109         (add_epsilon_src_nodes):  Likewise.
113110         (merge_state_array): Likewise.
113111         (update_regs): Likewise.
113112         (build_trtable): Likewise.
113113         (sift_states_backward): Mark MCTX parameter as const.
113114         (build_sifted_states): Likewise.
113115         (update_cur_sifted_state): Likewise.
113116         (sift_states_mkref): Likewise.
113117         (check_arrival_expand_ecl): Mark eclosure as const.
113118         (check_dst_limits_calc_pos_1): Likewise.
113119         * lib/regex_internal.h (re_match_context_t): Make dfa a const
113120         pointer.
113122         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
113124         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
113125         (transit_state_sb): Likewise.
113126         (transit_state_mb): Likewise.
113127         (sift_states_iter_mb): Likewise.
113128         (check_arrival_add_next_nodes): Likewise.
113129         (check_node_accept_bytes): Change first parameter to pointer-to-const.
113130         [_LIBC] (re_search_2_stub): Use mempcpy.
113132         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
113133         mbrtowc for very simple UTF-8 case.
113135         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
113136         a pointer-to-const.
113137         (re_acquire_state_context): Likewise.
113138         * lib/regex_internal.h: Adjust prototypes.
113140         * lib/regex.c: Prevent using C++ compilers.
113142         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
113143         (re_acquire_state_context): Likewise.
113145 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113147         * modules/regex (Depends-on): Add ssize_t.
113149 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113151         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
113152         translation table.
113154 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113156         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
113158 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
113159             Bruno Haible  <bruno@clisp.org>
113161         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
113162         <sys/types.h> and <inttypes.h>.
113164 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113166         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
113167         `__error_t_defined', so argp.h will not typedef the former.
113169 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
113171         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
113172         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
113173         glibc names.  Even if glibc is changed to conform to POSIX, the
113174         traditional names will be available anyway, since regex depends on
113175         the extensions module.  Also, fix a longstanding typo in the
113176         implementation of Spencer ERE test #75 from grep 2.3.  Problems
113177         reported by Emanuele Giaquinta.  Also, change sense of cached
113178         variable, so that the message makes sense.
113180 2006-03-24  Simon Josefsson  <jas@extundo.com>
113182         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
113183         including some doc fixes.
113184         (base64_encode_alloc): Fix +1 bug on allocation failures.
113186 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113188         * lib/base64.c (base64_encode): Do not read past end of array with
113189         unsanitized input on systems with CHAR_BIT > 8.
113191 2006-03-24  Eric Blake  <ebb9@byu.net>
113193         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
113195 2006-03-22  Karl Berry  <karl@gnu.org>
113197         * config/srclist.txt (*setenv.[ch]): get from coreutils.
113198         * config/srclistvars.sh (COREUTILS): new var.
113200 2006-03-17  Jim Meyering  <jim@meyering.net>
113202         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
113203         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
113205 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113207         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
113208         no longer needs it.  Instead, check that regoff_t is as least
113209         as wide as ptrdiff_t.
113211         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
113212         so that our regex.h stays compatible with the installed regex.
113213         This is helpful for installers who configure --without-included-regex.
113214         Problem reported by Emanuele Giaquinta.
113216 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
113218         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
113219         Typedef to long int, not to off_, as POSIX will likely change
113220         in that direction.
113222 2006-03-15  Eric Blake  <ebb9@byu.net>
113224         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
113226 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113228         * lib/argp-help.c (validate_uparams): Fix typo
113229         * lib/argp-parse.c (argp_default_options): Consistently begin help
113230         messages with a lowercase letter.
113232 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
113234         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
113235         overrun buffers and shouldn't be used (much as gets shouldn't be
113236         used).
113237         * lib/time_r.c (asctime_r, ctime_r): Likewise.
113239 2006-03-08  Simon Josefsson  <jas@extundo.com>
113241         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
113242         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113244 2006-03-08  Simon Josefsson  <jas@extundo.com>
113246         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
113247         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113249 2006-03-08  Simon Josefsson  <jas@extundo.com>
113251         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
113252         signal that configure disabled the device.
113254 2006-03-08  Simon Josefsson  <jas@extundo.com>
113256         * build-aux/maint.mk: Fix refresh-po, to handle no translated
113257         languages.
113259 2006-03-07  Simon Josefsson  <jas@extundo.com>
113261         * modules/getopt (Depends-on): Add unistd.
113263         * modules/unistd: New file.
113265 2006-03-07  Simon Josefsson  <jas@extundo.com>
113267         * modules/gc-random: New file.
113269 2006-03-07  Simon Josefsson  <jas@extundo.com>
113271         * m4/unistd_h.m4: New file.
113273 2006-03-07  Simon Josefsson  <jas@extundo.com>
113275         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
113276         test to be side-effect free by storing the result in the cache
113277         variable gl_cv_lib_readline, and moving the assignment of
113278         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
113279         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113281 2006-03-07  Simon Josefsson  <jas@extundo.com>
113283         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
113284         error on missing devices (the functions will return an error).
113286         * m4/gc.m4: Move random stuff to gc-random.m4
113288 2006-03-07  Simon Josefsson  <jas@extundo.com>
113290         * lib/unistd_.h: New file.
113292 2006-03-07  Simon Josefsson  <jas@extundo.com>
113294         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
113296 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113298         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
113299         Problem reported by Juan Manuel Guerrero.
113301 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113303         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
113304         the unistd module.
113305         * lib/getlogin_r.c: Likewise.
113306         * lib/getlogin_r.h: Likewise.
113307         * lib/glob.c: Likewise.
113308         * lib/pagealign_alloc.c: Likewise.
113309         * lib/unistd_.h: Remove; no longer needed.
113311 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
113313         * MODULES.html.sh (Support for systems lacking POSIX:2001):
113314         Add unistd.
113315         * modules/c-stack (Depends-on): Add unistd.
113316         * modules/getlogin_r: Likewise.
113317         * modules/glob: Likewise.
113318         * modules/pagealign_alloc: Likewise.
113319         * modules/unistd (Files): Remove lib/unistd_.h.
113320         (EXTRA_DIST): Remove.
113321         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
113322         need unistd_.h.
113323         (MOSTLYCLEANFILES): Remove unistd.h-t.
113325 2006-03-03  Simon Josefsson  <jas@extundo.com>
113327         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
113329 2006-03-03  Simon Josefsson  <jas@extundo.com>
113331         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
113332         libidn and bison.
113334 2006-03-03  Simon Josefsson  <jas@extundo.com>
113336         * build-aux/maint.mk: Add indent target.
113338 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
113340         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
113341         our replacement poll.h in any case, to avoid a differing
113342         declaration from a system header.  Seen on AIX.
113344 2006-03-01  Simon Josefsson  <jas@extundo.com>
113346         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
113347         <kasal@ucw.cz>.
113349 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113351         * modules/gettime (Depends-on): Add extensions module.
113352         * modules/nanosleep (Depends-on): Likewise.
113353         * modules/settime (Depends-on): Likewise.
113355 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
113357         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
113358         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
113359         pedantically.
113360         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113361         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
113363         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
113364         not "==".  Reported by Ralf Wildenhues.
113366 2006-03-01  Karl Berry  <karl@gnu.org>
113368         * doc/Copyright/request-*: new files, synced from gnuorg.
113370 2006-03-01  Karl Berry  <karl@gnu.org>
113372         * config/srclist.txt (Copyright/*): new entries.
113374 2006-02-28  Simon Josefsson  <jas@extundo.com>
113376         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
113378 2006-02-27  Simon Josefsson  <jas@extundo.com>
113380         * lib/base64.h: Indent #define's.  From Jim Meyering
113381         <jim@meyering.net>.
113383 2006-02-27  Jim Meyering  <jim@meyering.net>
113385         Revert the change of 2006-02-24, so these files can continue
113386         to be sync'd from gettext.
113387         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
113388         of `config.h'.
113390 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
113392         * modules/intprops: New file.
113393         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
113394         Add intprops.
113395         * modules/getloadavg (Files): Remove lib/intprops.h.
113396         (Depends-on): Add intprops.
113397         * modules/human: Likewise.
113398         * modules/inttostr: Likewise.
113399         * modules/openat: Likewise.
113400         * modules/sig2str: Likewise.
113401         * modules/userspec: Likewise.
113402         * modules/utimecmp: Likewise.
113403         * modules/xnanosleep: Likewise.
113404         * modules/xstrtol: Likewise.
113406 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
113408         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
113409         * modules/lock-tests (TESTS): Use $(EXEEXT).
113410         * modules/tls-tests: Likewise.
113411         * modules/argp-tests: Likewise.
113412         (check_PROGRAMS): New var, replacing...
113413         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
113415 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113417         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
113418         `config.h'.
113420 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
113422         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
113424 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113426         Sync from coreutils.
113427         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
113428         gl_CHDIR_SAFER.
113430 2006-02-22  Jim Meyering  <jim@meyering.net>
113432         Sync from coreutils.
113433         * m4/chdir-safer.m4: New file.
113435 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
113437         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
113438         AT_FDCWD exceeds INT_MAX.
113439         * lib/openat.h (AT_FDCWD): Likewise.
113441 2006-02-17  Eric Blake  <address@hidden>
113443         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
113445 2006-02-16  Simon Josefsson  <jas@extundo.com>
113447         * modules/getaddrinfo (Depends-on): Add sys_socket.
113449 2006-02-15  Simon Josefsson  <jas@extundo.com>
113451         * build-aux/maint.mk: Add dsyntax-check rule.
113453 2006-02-15  Eric Blake  <ebb9@byu.net>
113455         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
113456         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
113457         'present but cannot compile' warnings on cygwin.
113458         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
113459         use ws2tcpip.h if sys/socket.h works.
113460         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
113461         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
113463 2006-02-14  Simon Josefsson  <jas@extundo.com>
113465         * modules/maintainer-makefile (Files): Rename.
113467         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
113468         and (the local) Makefile.cfg to maint-cfg.mk.
113470         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
113471         to the latter.
113473         * modules/maintainer-makefile: New module.
113475         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
113476         severaly stripped to make it possible to build it up from scratch
113477         with reliable tests.
113479         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
113480         fixes to permit overriding the default actions when configure and
113481         makefile are not available.
113483 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
113485         Sync from coreutils.
113486         * modules/lstat (Depends-on): Don't depend on xalloc.
113487         (License): Change from GPL to LGPL, since this is now simply a
113488         replacement for a libc function.
113490 2006-02-14  Jim Meyering  <jim@meyering.net>
113492         Sync from coreutils.
113494         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
113495         failure on deficient systems, and simplify gnulib lgpl dependencies.
113496         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
113497         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
113499         * lib/xalloc-die.c: Remove unused definition of N_.
113501 2006-02-14  Jim Meyering  <jim@meyering.net>
113503         Sync from coreutils.
113504         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
113505         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
113506         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
113507         double-quote uses of that variable, to accommodate the rare case in
113508         which getmntent is available in none of the libraries checked.  This
113509         happens at least on FreeBSD 5.0.
113511 2006-02-13  Simon Josefsson  <jas@extundo.com>
113513         * gnulib-tool (Usage): Fix --import, from
113514         karl@freefriends.org (Karl Berry).
113516 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
113518         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
113520 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
113522         * lib/argp-namefrob.h: Restore changes accidentally lost during the
113523         "autoupdate" on 2005-12-12.
113525 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113527         * modules/closeout (Depends-on): Remove atexit.
113529 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
113531         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
113532         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
113534 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
113536         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
113537         __EXTENSIONS__ if this causes compilation to fail.  Problem
113538         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
113539         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
113541 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
113543         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
113544         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
113545         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
113546         All uses changed.
113548 2006-01-26  Simon Josefsson  <jas@extundo.com>
113550         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
113551         prototype is visible on mingw32.
113553         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
113554         for mingw32.
113556         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
113557         mingw32).
113559 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
113561         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
113562         attempt to open for write; this always fails, at least on POSIX
113563         hosts.  This reinstates the 2006-01-09 change, which was
113564         inadvertently removed.
113566 2006-01-26  Bruno Haible  <bruno@clisp.org>
113568         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
113569         Reported by Paul Eggert.
113571 2006-01-26  Bruno Haible  <bruno@clisp.org>
113572             Paul Eggert  <eggert@cs.ucla.edu>
113574         * lib/stdbool_.h (_Bool)
113575         [(! (defined __cplusplus || defined __BEOS__)
113576           && !defined __GNUC__
113577           && !(defined __HP_cc || defined __xlc__
113578                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
113579                || defined __sgi))]:
113580         #define to signed char in these cases too; this simplifies
113581         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
113582         etc., separately) and makes it more conservative.
113584 2006-01-25  Simon Josefsson  <jas@extundo.com>
113586         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
113587         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
113588         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
113590 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113592         * lib/argp-namefrob.h: Bugfix. Remove stray #
113594 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
113596         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
113597         so that we test the test.
113598         Check for yet another HP-UX cc bug involving *bool |= bool.
113600 2006-01-25  Karl Berry  <karl@gnu.org>
113602         * config/srclist.txt (vasnprintf.c): sync lost.
113604 2006-01-25  Jim Meyering  <jim@meyering.net>
113606         Sync from the stable (b5) branch of coreutils:
113608         * lib/fts.c (fts_children): Don't let close() clobber errno from
113609         failed fchdir().
113611         * lib/fts.c (fts_stat): When following a symlink-to-directory,
113612         don't necessarily interpret stat-fails+lstat-succeeds as indicating
113613         a dangling symlink.  That can also happen at least for ELOOP.
113614         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
113615         FYI, this bug predates the inclusion of fts.c in coreutils.
113617         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
113618         in their own block, so pre-c99 compilers don't object.
113620         Avoid the double-free (first in fts_read, second in fts_close) that
113621         would occur when an `active' directory is made inaccessible (e.g.,
113622         via chmod a-x) during a traversal.
113623         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113624         before returning.  Reproduce this failure by
113625         mkdir -p a/b; cd a; chmod a-x . b
113626         Reported by Stavros Passas.
113628 2006-01-25  Jim Meyering  <jim@meyering.net>
113630         * lib/fileblocks.c: Remove more useless parentheses.
113631         * lib/readutmp.h: Likewise.
113633 2006-01-25  Bruno Haible  <bruno@clisp.org>
113635         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
113636         warnings.
113637         Reported by Paul Eggert.
113639 2006-01-25  Bruno Haible  <bruno@clisp.org>
113641         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
113642         rid of a trap command. For Solaris sh.
113643         Reported by Mark D. Baushke <mdb@gnu.org>.
113645 2006-01-24  Simon Josefsson  <jas@extundo.com>
113647         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
113648         Bruno.
113650 2006-01-24  Karl Berry  <karl@gnu.org>
113652         * config/srclist.txt (argp-namefrob.h): sync lost.
113654 2006-01-24  Jim Meyering  <jim@meyering.net>
113656         * modules/openat (Files): Add lib/intprops.h.
113657         From Mark D. Baushke.
113659 2006-01-24  Jim Meyering  <jim@meyering.net>
113661         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
113662         Reported by Mark D. Baushke.
113664 2006-01-24  Jim Meyering  <jim@meyering.net>
113666         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
113668 2006-01-24  Bruno Haible  <bruno@clisp.org>
113670         * modules/strnlen (Maintainer): Change from glibc to all.
113672 2006-01-24  Bruno Haible  <bruno@clisp.org>
113674         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
113675         Patch by Paul Eggert.
113677 2006-01-24  Bruno Haible  <bruno@clisp.org>
113679         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
113680         already has it.
113681         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
113682         2005-11-26.
113684         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
113685         'signed char' to avoid problems with the built-in _Bool type.
113686         Reported by Paul Eggert on 2005-11-26.
113688 2006-01-24  Bruno Haible  <bruno@clisp.org>
113690         * gnulib-tool (func_import): Avoid constructing complicated sed
113691         expressions inside backquote.
113692         Report and solution by Mark D. Baushke <mdb@gnu.org>.
113694 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
113696         These changes imported from libc.
113697         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
113698         test and two separate function calls.
113699         * lib/strndup.c (__strndup): Add libc_hidden_def.
113701 2006-01-23  Simon Josefsson  <jas@extundo.com>
113703         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
113704         Remove the test_*_SOURCES variable: automake infers it by default.
113705         * modules/tls-tests: Likewise.
113707 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113709         Work around porting bugs reported by Dieter in
113710         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
113711         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
113712         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
113713         Include "getopt.h" first, to check interface.
113714         (getenv): Declare only if defined HAVE_DECL_GETENV &&
113715         !HAVE_DECL_GETENV.
113716         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
113717         (__strndup): Revert to K&R-style function dfns, the glibc style.
113718         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
113719         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
113720         Include strnlen.h first, to get prototype properly.
113721         (strnlen): Renamed from __strnlen.
113722         Remove weak alias.
113724 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113726         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
113728 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113730         * config/srclist.txt: Adjust to reflect glibc reorganization.
113731         This affects only comments.
113733 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
113735          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
113736          Reported by Bruce Korb <bkorb@gnu.org>.
113738 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
113740         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
113741         to pacify gcc -Wswitch-default.
113743 2006-01-22  Bruno Haible  <bruno@clisp.org>
113745         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
113746         temporary buffer for sprintf, take into account the precision also
113747         for 'd', 'i', 'u', 'o', 'x', 'X'.
113749 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113751         * modules/argp-tests: New module
113752         * tests/test-argp.c: New file
113753         * tests/test-argp-2.sh: New file
113755 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
113757         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
113758         (__argp_base_name): Removed
113759         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
113760         typo.
113761         (__argp_base_name): Provide macro definition or extern declaration
113762         depending on the configuration
113764 2006-01-20  Simon Josefsson  <jas@extundo.com>
113766         * modules/inet_ntop (Depends-on): Depend on sys_socket.
113768 2006-01-20  Simon Josefsson  <jas@extundo.com>
113770         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
113772 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113774         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
113775         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
113776         Suggested by Bruno Haible.
113778 2006-01-20  Karl Berry  <karl@gnu.org>
113780         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
113781         until changes propagate, I guess.
113783 2006-01-19  Simon Josefsson  <jas@extundo.com>
113785         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
113787 2006-01-19  Simon Josefsson  <jas@extundo.com>
113789         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
113791 2006-01-19  Simon Josefsson  <jas@extundo.com>
113793         * gnulib-tool: Set check_PROGRAMS.
113795         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113796         modules/des-tests, modules/gc-arcfour-tests,
113797         modules/gc-arctwo-tests, modules/gc-des-tests,
113798         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113799         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113800         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113801         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113802         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113803         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
113804         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
113805         test_*_SOURCES.
113807 2006-01-18  Simon Josefsson  <jas@extundo.com>
113809         * modules/socklen (Depends-on): Depend on sys_socket.
113811 2006-01-18  Simon Josefsson  <jas@extundo.com>
113813         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
113814         modules/des-tests, modules/gc-arcfour-tests,
113815         modules/gc-arctwo-tests, modules/gc-des-tests,
113816         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
113817         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
113818         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
113819         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
113820         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
113821         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
113822         $(EXEEXT) to automake TESTS variable, for mingw32.
113824 2006-01-17  Simon Josefsson  <jas@extundo.com>
113826         * modules/socklen (Include): Need sys/socket.h.
113828 2006-01-17  Bruno Haible  <bruno@clisp.org>
113830         * modules/ssize_t (Include): Add <sys/types.h>.
113832 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
113834         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
113835         it's not portable and it doesn't work with cross-compiles.
113836         Problem reported by Bruno Haible.  Fix missing-$ typo in
113837         'test "gl_cv_ignore_unused_libraries" ...' that prevented
113838         -zignore from being used with Sun's C compiler.
113840 2006-01-12  Simon Josefsson  <jas@extundo.com>
113842         * lib/base64.c: Fix warning, reported by Bruno Haible
113843         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
113845 2006-01-12  Bruno Haible  <bruno@clisp.org>
113847         * modules/ldd: New file.
113848         * build-aux/ldd.sh.in: New file.
113849         * MODULES.html.sh (Support for building libraries and executables): Add
113850         ldd.
113852 2006-01-12  Bruno Haible  <bruno@clisp.org>
113854         * m4/ldd.m4: New file.
113856 2006-01-12  Bruno Haible  <bruno@clisp.org>
113858         * gnulib-tool (func_import, func_create_testdir): Don't go into an
113859         endless loop while replacing $auxdir with build-aux.
113861 2006-01-11  Simon Josefsson  <jas@extundo.com>
113863         * lib/stdint_.h (SIZE_MAX): Add missing (.
113865 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
113867         Sync from coreutils.
113868         * lib/md5.c: Fix commentary typos.
113869         (alignof, UNALIGNED_P): No need for a GCC-specific version.
113870         * lib/md5.h (__attribute__): Remove; unused.
113871         * lib/sha1.c: Fix commentary to match md5 better.
113872         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
113873         so that we don't need to worry about alignment.  All uses changed.
113874         This merges the 2005-10-28 md5 change into sha1.
113876 2006-01-11  Jim Meyering  <jim@meyering.net>
113878         Sync from coreutils.
113879         * lib/md5.c (OP): Fix spacing.
113881 2006-01-11  Bruno Haible  <bruno@clisp.org>
113883         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113884         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
113885         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
113887 2006-01-11  Bruno Haible  <bruno@clisp.org>
113889         Ensure automatic ordering between gl_LOCK and gl_ARGP.
113890         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
113891         the "early" section as well.
113893 2006-01-11  Bruno Haible  <bruno@clisp.org>
113895         Avoid "ar: no archive members specified" error on MacOS X.
113896         * gnulib-tool (func_modules_add_dummy): New function.
113897         (func_import, func_create_testdir): Invoke it.
113899 2006-01-11  Bruno Haible  <bruno@clisp.org>
113901         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
113902         with $auxdir in AC_CONFIG_FILES statements.
113904 2006-01-11  Bruno Haible  <bruno@clisp.org>
113906         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113907         Initialize also noinst_HEADERS to empty.
113909 2006-01-11  Bruno Haible  <bruno@clisp.org>
113911         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
113912         variables.
113913         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
113914         autoreconf.
113916 2006-01-11  Bruno Haible  <bruno@clisp.org>
113918         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
113919         overridable by the user.
113920         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113922 2006-01-10  Simon Josefsson  <jas@extundo.com>
113924         * modules/sys_socket: New file.
113926 2006-01-10  Simon Josefsson  <jas@extundo.com>
113928         * m4/sys_socket_h.m4: New file.
113930 2006-01-10  Simon Josefsson  <jas@extundo.com>
113932         * lib/socket_.h: New file.
113934 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113936         * modules/readutmp (Maintainer): Add myself.
113938 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113940         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
113941         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
113942         People who are still concerned with buggy memcmp implementations
113943         can invoke gl_FUNC_MEMCMP themselves.
113945 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
113947         * lib/regex_internal.h (BITSET_WORD_BITS):
113948         Work around a bug in 64-bit PGC (before version 6.1-2), where the
113949         preprocessor mishandles large unsigned values as if they were signed.
113950         Problem reported by Claudio Fontana in
113951         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
113953 2006-01-10  Jim Meyering  <jim@meyering.net>
113955         Avoid the double-free (first in fts_read, second in fts_close) that
113956         would occur when an `active' directory is made inaccessible (e.g.,
113957         via chmod a-x) during a traversal.
113958         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
113959         before returning.  Reproduce this failure by
113960         mkdir -p a/b; cd a; chmod a-x . b
113961         Reported by Stavros Passas.
113963         Sync from coreutils.
113964         * lib/sha1.c: Tweak grammar in a comment.
113966 2006-01-10  Jim Meyering  <jim@meyering.net>
113968         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
113969         Patch by Joerg Sonnenberger.
113971 2006-01-10  Bruno Haible  <bruno@clisp.org>
113973         * modules/readutmp: Depend on module free.
113974         * modules/strtok_r: Depend on module restrict.
113976 2006-01-10  Bruno Haible  <bruno@clisp.org>
113978         * modules/gettext (configure.ac): Add an invocation of
113979         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
113981 2006-01-10  Bruno Haible  <bruno@clisp.org>
113983         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
113984         Reported by Werner Lemberg <wl@gnu.org>.
113986 2006-01-10  Bruno Haible  <bruno@clisp.org>
113988         * lib/localcharset.c: Update from GNU gettext.
113990 2006-01-10  Bruno Haible  <bruno@clisp.org>
113992         * lib/argp.h (__const): Remove macro. Use const instead.
113993         * lib/argp-fmtstream.h (__const): Likewise.
113994         * lib/glob_.h (__const): Remove macro.
113995         * lib/glob-libc.h: Use const instead of __const.
113997 2006-01-10  Bruno Haible  <bruno@clisp.org>
113999         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
114000         variable.
114001         Needed to avoid an automake error regarding the 'gettext' module.
114003 2006-01-09  Simon Josefsson  <jas@extundo.com>
114005         * modules/inet_ntop (Depends-on): Add restrict.
114007 2006-01-09  Simon Josefsson  <jas@extundo.com>
114009         * modules/gc-rijndael-tests (License): Put under LGPL.
114011         * modules/gc-des-tests (License): Likewise.
114013         * modules/gc-arcfour-tests (License): Likewise.
114015         * modules/gc-arctwo-tests (License): Likewise.
114017         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
114019         * modules/gc-hmac-sha1-tests (Files): Likewise.
114021         * modules/gc-hmac-md5-tests (License): Likewise.
114023         * modules/gc-sha1-tests (License): Likewise.
114025         * modules/gc-md5-tests (License): Likewise.
114027         * modules/gc-md4-tests (License): Likewise.
114029         * modules/gc-md2-tests (License): Likewise.
114031         * modules/gc-tests (License): Likewise.
114033         * modules/des-tests (License): Likewise.
114035         * modules/md4-tests (License): Likewise.
114037         * modules/md2-tests (License): Likewise.
114039 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114041         Sync from coreutils:
114043         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
114044         * modules/lib-ignore: New file.
114045         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
114046         chdir-safer.m4, lchmod.m4.
114047         * modules/openat: Add mkdirat.c, openat-priv.h.
114049 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114051         Sync from coreutils.
114052         * m4/lib-ignore.m4: New file.
114053         * m4/lchmod.m4: New file.
114055 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114057         Sync from coreutils.
114058         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
114059         for write access: POSIX says that must fail.
114060         * lib/fts.c (diropen): Likewise.
114061         * lib/save-cwd.c (save_cwd): Likewise.
114062         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
114063         well, for minor improvements on hosts that lack O_DIRECTORY.
114064         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
114065         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
114066         Fall back on chown if open failed with EACCES.
114068         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
114069         Report an error at compile-time if only a 1-second nominal clock
114070         resolution is found.
114072         * lib/lchmod.h: New file.
114073         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
114074         (make_dir_parents): Use lchown rather than chown, and
114075         lchmod rather than chmod.
114077         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
114078         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
114079         "proc" reported by n0dalus.
114081         * lib/mountlist.c: Include <limits.h>.
114082         (dev_from_mount_options)
114083         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
114084         New function.  It no longer assumes "dev=" has the System V meaning
114085         on Linux (since it doesn't).  It also parses "dev=" more carefully.
114086         (read_file_system_list)
114087         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
114088         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
114089         dev= in that case.
114091         * lib/posixtm.h (PDS_PRE_2000): New macro.
114092         * lib/posixtm.c (year): Arg is now syntax_bits rather than
114093         allow_century.  All usages changed.  Reject dates outside the range
114094         1969-1999 if PDS_PRE_2000 is used.
114096 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
114098         Sync from coreutils.
114099         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
114100         (Time of day items): Mention the possibility of leap seconds.
114101         Problem reported by Dr. David Alan Gilbert.
114103 2006-01-09  Jim Meyering  <jim@meyering.net>
114105         Sync from coreutils.
114107         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
114109         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
114111         * lib/modechange.c (mode_compile): Reject an invalid mode string
114112         that starts with an octal digit.  From Andreas Gruenbacher.
114114         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
114115         and dup to open_safer and dup_safer, respectively.
114116         (openat_permissive): Fix typo in comment.
114118         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
114119         "gettext.h"; either no longer needed or are guaranteed by openat.h.
114120         (_): Remove; no longer needed.
114121         (openat): Renamed from rpl_openat; no need for rpl_openat
114122         since openat.h renames openat for us.
114123         Replace most of the body with a call to openat_permissive,
114124         to avoid duplicate code.
114125         Port to (probably hypothetical) environments were mode_t is
114126         wider than int.
114127         (openat_permissive): Require mode arg, so that we can check
114128         types better.  Put it just after flags.  Change cwd failure
114129         indicator from pointer-to-bool to pointer-to-errno-value.
114130         All callers changed.
114131         Invoke openat_save_fail and/or openat_restore_fail if
114132         cwd_errno is null, so that openat can call us.
114133         (openat_permissive, fdopendir, fstatat, unlinkat):
114134         Simplify errno handling to avoid some duplicate code,
114135         as it's OK to set errno on success.
114136         * lib/openat.h: Revamp code so that function macros depend on
114137         __OPENAT_PREFIX only, not also on AT_FDCWD.
114138         (openat_ro): Remove.  Caller changed to use openat_permissive.
114139         (openat_permissive): Now a macro, if not a function.
114140         (openat_restore_fail, openat_save_fail): Now always functions,
114141         since mkdirat needs them even if __OPENAT_PREFIX is defined.
114143         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
114144         and openat.c.
114145         * lib/mkdirat.c: Include openat-priv.h.
114146         Remove definitions of macros defined therein.
114147         * lib/openat.c: Likewise.
114149         * lib/mkdirat.c (mkdirat): New file and function.
114150         * lib/openat.h (mkdirat): Declare.
114152         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
114154         * lib/openat.h (openat_permissive): Declare.
114155         (openat_ro): Define.
114157         * lib/openat.c (EXPECTED_ERRNO): New macro.
114158         (openat_permissive): New function -- used in remove.c rewrite.
114159         (all functions): Set errno just before returning, only if there
114160         was an actual failure.
114161         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
114163         Emulate openat-family functions using Linux's procfs, if possible.
114164         Idea and some code based on Ulrich Drepper's glibc changes.
114166         * lib/openat.c: (BUILD_PROC_NAME): New macro.
114167         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
114168         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
114169         before falling back on save_cwd and restore_cwd.
114170         (fdopendir, fstatat, unlinkat): Likewise.
114172         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
114173         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
114175         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
114176         as second argument to va_arg.  Otherwise, some versions of gcc
114177         warn that `if this code is reached, the program will abort'.
114179 2006-01-09  Jim Meyering  <jim@meyering.net>
114181         Sync from coreutils.
114182         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
114183         Require openat-priv.h.
114185 2006-01-09  Bruno Haible  <bruno@clisp.org>
114187         * modules/strnlen (Include): Use strnlen.h.
114189 2006-01-09  Bruno Haible  <bruno@clisp.org>
114191         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
114193 2006-01-09  Bruno Haible  <bruno@clisp.org>
114195         * lib/sysexit_.h (EX_OK): New macro.
114196         Suggested by Martin Lambers <marlam@marlam.de>.
114198 2006-01-09  Bruno Haible  <bruno@clisp.org>
114200         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
114201         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
114203 2006-01-09  Bruno Haible  <bruno@clisp.org>
114205         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
114206         numbers.
114208 2006-01-09  Bruno Haible  <bruno@clisp.org>
114210         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
114211         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
114212         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
114213         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
114215 2006-01-09  Bruno Haible  <bruno@clisp.org>
114217         * build-aux/javacomp.sh.in: New file, moved from lib/.
114218         * modules/javacomp-script (Files): Update.
114219         (configure.ac): Add AC_CONFIG_FILES invocation.
114220         (EXTRA_DIST): Remove variable.
114222         * build-aux/javaexec.sh.in: New file, moved from lib/.
114223         * modules/javaexec (Files): Update.
114224         (configure.ac): Add AC_CONFIG_FILES invocation.
114225         (EXTRA_DIST): Remove javaexec.sh.in.
114227         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
114228         * modules/csharpcomp-script (Files): Update.
114229         (configure.ac): Add AC_CONFIG_FILES invocation.
114230         (EXTRA_DIST): Remove variable.
114232         * build-aux/csharpexec.sh.in: New file, moved from lib/.
114233         * modules/csharpexec (Files): Update.
114234         (configure.ac): Add AC_CONFIG_FILES invocation.
114235         (EXTRA_DIST): Remove csharpexec.sh.in.
114237 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114239         Sync from coreutils.
114241         Add POSIX ACL support
114242         * lib/acl.h (copy_acl, set_acl): Add declarations.
114243         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
114244         systems other than Linux.
114245         (chmod_or_fchmod): New function: use fchmod when possible,
114246         and chmod otherwise.
114247         (file_has_acl): Add a POSIX ACL implementation, with a
114248         Linux-specific subcase.
114249         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
114250         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
114251         acls are unsupported.
114252         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
114253         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
114254         are unsupported.
114256 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
114258         Sync from coreutils.
114259         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
114261 2006-01-07  Bruno Haible  <bruno@clisp.org>
114263         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
114264         gl_EARLY.
114266 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114268         * lib/strftime.c (tzname): Don't declare if it is already #defined.
114269         Problem reported for Mingw by Mark Junker.
114271 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
114273         * README: Gnulib normally doesn't generate a tarball.
114275 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
114277         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
114278         long int, not int, for nanosecond counts, so that people who are
114279         used to POSIX struct timespec won't be surprised.  Reported by Jim
114280         Meyering.
114282 2005-12-28  Bruno Haible  <bruno@clisp.org>
114284         * build-aux/config.rpath: Update from GNU gettext.
114286 2005-12-16  Jim Meyering  <jim@meyering.net>
114288         * modules/fprintftime: New module.
114289         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
114291 2005-12-16  Jim Meyering  <jim@meyering.net>
114293         * m4/fprintftime.m4: New file.
114295 2005-12-16  Jim Meyering  <jim@meyering.net>
114297         * lib/fprintftime.c, lib/fprintftime.h: New files.
114299 2005-12-15  Simon Josefsson  <jas@extundo.com>
114301         * modules/socklen (configure.ac): Fix M4 macro name, to align with
114302         new m4/socklen.m4.
114304 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114306         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
114307         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
114309 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
114311         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
114312         * lib/argp-help.c (fill_in_uparams): Check if the constructed
114313         struct uparams is valid. Fall back to the default values if it is
114314         not.
114316 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114318         * modules/argp (Files): Add argp-pin.c
114319         (Depends-on): dirname
114320         (lib_SOURCES): Add argp-pin.c
114322 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114324         * m4/argp.m4:  Check if program_invocation_name and
114325         program_invocation_short_name are declared and define appropriate
114326         macros if they are not.
114328 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
114330         * lib/argp-help.c (__argp_base_name): New function
114331         (__argp_short_program_name): Rewrite using __argp_base_name
114332         * lib/argp-namefrob.h: Define program_invocation_name and
114333         program_invocation_short_name if requested
114334         (__argp_base_name): Add prototype
114335         * lib/argp-parse.c (argp_def): Use gettext wrappers
114336         (argp_default_parser): Use __argp_base_name
114337         * lib/argp-pin.c: New file. Defines program_invocation_name and
114338         program_invocation_short_name on systems that lack them.
114340 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114342         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
114343         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114344         porting problem reported by Georg Schwarz in
114345         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114347 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
114349         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
114350         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
114351         porting problem reported by Georg Schwarz in
114352         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
114354 2005-12-05  Bruno Haible  <bruno@clisp.org>
114356         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
114357         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
114358         Reported by Mark Junker <mjscod@gmx.de>.
114360 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
114362         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
114363         Use implementation from Albert Chin, with some
114364         comments/corrections by Stepan Kasal and myself.
114366 2005-12-02  Bruno Haible  <bruno@clisp.org>
114368         * gnulib-tool (func_import): Accept GPLed build tool modules when
114369         --lgpl is given.
114370         * modules/csharpcomp-script: New file.
114371         * modules/csharpcomp: Depend on it.
114372         * modules/javacomp-script: New file.
114373         * modules/javacomp: Depend on it.
114374         Suggested by Simon Josefsson.
114376 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
114378         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
114379         statement, to work around an HP-UX 10.20 compiler bug reported by
114380         Peter O'Gorman.
114382 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114384         * modules/savedir (Depends-on): Add openat.
114386 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
114388         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
114389         (uintmax_t) [defined uintmax_t]: Do not declare.
114390         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
114391         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
114392         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
114393         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
114394         sake of portability to weird hosts that C allows (though we don't
114395         know of any practical examples).
114397         * lib/savedir.h (fdsavedir): New decl.
114398         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
114399         contains most of the former guts of savedir.
114400         (savedir): Use savedirstream.
114401         Include "openat.h".
114403 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
114405         * modules/obstack (Files): Add m4/ulonglong.m4.
114406         Problem reported by Davide Angelocola.
114408 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
114410         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
114411         coreutils no longer futzes with rounding modes.
114413 2005-11-14  Jim Meyering  <jim@meyering.net>
114415         * lib/mkstemp-safer.c: Include <config.h>, required for possible
114416         replacement of mkstemp.
114418 2005-11-10  Simon Josefsson  <jas@extundo.com>
114420         * lib/readline.c: Remove EOL.
114422 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114424         * modules/gethrxtime (Depends-on): Add gettime.
114426 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114428         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
114429         or gettimeofday; no longer needed.
114431 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
114433         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
114434         time business.
114435         (gethrxtime) [! (HAVE_NANOUPTIME
114436         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
114437         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
114438         our own approximation.
114440 2005-11-08  Eric Blake  <ebb9@byu.net>
114442         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114444 2005-11-08  Eric Blake  <ebb9@byu.net>
114446         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
114448 2005-11-04  Bruno Haible  <bruno@clisp.org>
114450         * gnulib-tool: Implement --update mode.
114452 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114454         Fix porting problem reported by Theodoros V. Kalamatianos.
114455         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
114456         Don't assume that futimes failing means we must fail.
114458 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
114460         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
114461         variables to suggest the intended function of the PATH_MAX check.
114463 2005-10-30  Kean Johnston  <jkj@sco.com>
114465         Trivial changes to support SCO systems.
114466         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
114467         as PATH_MAX.
114468         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
114469         where __ptr is null when no I/O is pending.
114471 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
114473         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
114474         leave errno alone.  Problem reported by Dmitry V. Levin.
114476 2005-10-28  Simon Josefsson  <jas@extundo.com>
114478         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
114479         Test more.
114481         * tests/test-gc-md2.c, tests/test-md2.c: New files.
114483         * modules/md2, modules/md2-tests: New files.
114485 2005-10-28  Simon Josefsson  <jas@extundo.com>
114487         * m4/inet_ntop.m4: More tests.
114489         * m4/gc-md2.m4, md2.m4: New file.
114491 2005-10-28  Simon Josefsson  <jas@extundo.com>
114493         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
114494         "restrict" keywords, as per POSIX.  Protect the function
114495         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
114496         Don't use K&R prototypes.  Check the sprintf return values.
114497         Re-define EAFNOSUPPORT if not present.  Indent.
114499         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
114500         suggested by Bruno Haible <bruno@clisp.org>.
114502         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
114504         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
114506         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
114507         libgcrypt).
114509         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
114511         * lib/md2.h, lib/md2.c: New files.
114513 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
114515         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
114516         errno alone.  Problem reported by Frederic Jolliton.
114518 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
114520         * modules/verify (License): Change from GPL to LGPL.  This is a
114521         tiny module and there are apparently near-equivalents that are
114522         under the BSD license.
114524 2005-10-24  Simon Josefsson  <jas@extundo.com>
114526         * modules/sha1: Relicense to LGPL.
114528 2005-10-24  Simon Josefsson  <jas@extundo.com>
114530         * lib/md4.h: Shrink buffer size, now that we changed the type.
114532 2005-10-23  Simon Josefsson  <jas@extundo.com>
114534         * gnulib-tool (func_import): Fix --tests-base.
114536 2005-10-22  Simon Josefsson  <jas@extundo.com>
114538         * modules/arcfour (Depends-on): Need stdint.
114540 2005-10-22  Simon Josefsson  <jas@extundo.com>
114542         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
114543         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
114545 2005-10-22  Simon Josefsson  <jas@extundo.com>
114547         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
114548         suggested by Bruno Haible <bruno@clisp.org>.
114550 2005-10-22  Simon Josefsson  <jas@extundo.com>
114552         * lib/crc.h: Include stddef.h, for size_t.
114554 2005-10-22  Simon Josefsson  <jas@extundo.com>
114556         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
114557         arcfour_context struct (simplify test vector testing in GNU
114558         Shishi).
114560 2005-10-21  Simon Josefsson  <jas@extundo.com>
114562         * modules/des, modules/des-tests: New files.
114564         * modules/gc-des, modules/gc-des-tests: New files.
114566         * tests/test-des.c, tests/test-gc-des.c: New file.
114568 2005-10-21  Simon Josefsson  <jas@extundo.com>
114570         * modules/arctwo, modules/arctwo-tests: New files.
114572         * tests/test-arctwo.c: New file.
114574         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
114576         * tests/test-gc-arctwo.c: New file.
114578 2005-10-21  Simon Josefsson  <jas@extundo.com>
114580         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
114581         Bruno Haible <bruno@clisp.org>.
114583         * m4/gc-des.m4: New file.
114585 2005-10-21  Simon Josefsson  <jas@extundo.com>
114587         * m4/arctwo.m4: New file.
114589         * m4/gc-arctwo.m4: New file.
114591 2005-10-21  Simon Josefsson  <jas@extundo.com>
114593         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
114594         block.
114596 2005-10-21  Simon Josefsson  <jas@extundo.com>
114598         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
114599         <bruno@clisp.org>.
114601         * lib/hmac-sha1.c (hmac_sha1): Likewise.
114603         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
114604         Bruno Haible <bruno@clisp.org>.
114606         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
114607         <bruno@clisp.org>.
114609 2005-10-21  Simon Josefsson  <jas@extundo.com>
114611         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
114613 2005-10-21  Simon Josefsson  <jas@extundo.com>
114615         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
114617 2005-10-21  Simon Josefsson  <jas@extundo.com>
114619         * lib/des.h, lib/des.c: New files.
114621         * lib/gc-gnulib.c: Support DES.c
114623 2005-10-21  Simon Josefsson  <jas@extundo.com>
114625         * lib/arctwo.h, lib/arctwo.c: New files.
114627         * lib/gc-gnulib.c: Support ARCTWO.
114629 2005-10-21  Simon Josefsson  <jas@extundo.com>
114631         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
114632         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114634 2005-10-21  Simon Josefsson  <jas@extundo.com>
114636         * gnulib-tool (func_import, func_create_testdir): Define automake
114637         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
114638         Makefile.am snippet),
114639         suggested by Bruno Haible <bruno@clisp.org>.
114641         * modules/gc (Makefile.am): Use it.
114643 2005-10-21  Bruno Haible  <bruno@clisp.org>
114645         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
114646         patch.
114648 2005-10-19  Simon Josefsson  <jas@extundo.com>
114650         * tests/test-gc-rijndael.c: New file.
114652         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
114654 2005-10-19  Simon Josefsson  <jas@extundo.com>
114656         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
114657         interface too.
114659 2005-10-19  Simon Josefsson  <jas@extundo.com>
114661         * tests/test-gc-arcfour.c: New file.
114663         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
114665 2005-10-19  Simon Josefsson  <jas@extundo.com>
114667         * modules/gc-md4, modules/gc-md4-tests: New file.
114669         * tests/test-gc-md4.c: New file.
114671 2005-10-19  Simon Josefsson  <jas@extundo.com>
114673         * m4/gc-md4.m4: New file.
114675 2005-10-19  Simon Josefsson  <jas@extundo.com>
114677         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
114678         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
114679         <kasal@ucw.cz>.
114681 2005-10-19  Simon Josefsson  <jas@extundo.com>
114683         * m4/gc-arcfour.m4: New file.
114685         * m4/gc-rijndael.m4: New file.
114687 2005-10-19  Simon Josefsson  <jas@extundo.com>
114689         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
114691 2005-10-19  Simon Josefsson  <jas@extundo.com>
114693         * lib/gc-gnulib.c: Support ARCFOUR.
114695 2005-10-19  Simon Josefsson  <jas@extundo.com>
114697         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
114698         support.
114700         * lib/gc.h: Add ECB enum type.
114702         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
114704 2005-10-18  Simon Josefsson  <jas@extundo.com>
114706         * tests/test-md5.c: New file.
114708         * modules/md5-tests: New file.
114710 2005-10-18  Simon Josefsson  <jas@extundo.com>
114712         * tests/test-md4.c: New file.
114714         * modules/md4, modules/md4-tests: New files.
114716 2005-10-18  Simon Josefsson  <jas@extundo.com>
114718         * m4/md4.m4: New file.
114720 2005-10-18  Simon Josefsson  <jas@extundo.com>
114722         * lib/md4.h, lib/md4.c: New files, based on md5.?.
114724 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
114726         * gnulib-tool (func_create_testdir): Omit the second check whether
114727         BUILT_SOURCES in nonempty.
114729 2005-10-17  Simon Josefsson  <jas@extundo.com>
114731         * tests/test-rijndael.c: New file.
114733 2005-10-17  Simon Josefsson  <jas@extundo.com>
114735         * modules/sha1: Depend on stdint instead of md5.
114737         * modules/md5: Depend on stdint, remove uint32_t.
114739 2005-10-17  Simon Josefsson  <jas@extundo.com>
114741         * modules/gc-sha1-tests: New file.
114743         * tests/test-gc-sha1.c: New file.
114745 2005-10-17  Simon Josefsson  <jas@extundo.com>
114747         * m4/md5.m4: Remove call to uint32_t.m4.
114749 2005-10-17  Simon Josefsson  <jas@extundo.com>
114751         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
114753         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
114754         md5.h.
114756         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
114758         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
114760 2005-10-17  Simon Josefsson  <jas@extundo.com>
114762         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
114764 2005-10-17  Simon Josefsson  <jas@extundo.com>
114766         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
114768 2005-10-17  Simon Josefsson  <jas@extundo.com>
114770         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
114772         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
114774 2005-10-17  Bruno Haible  <bruno@clisp.org>
114776         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
114777         that it can also be used in a test.
114779 2005-10-16  Bruno Haible  <bruno@clisp.org>
114781         * gnulib-tool (func_emit_tests_Makefile_am): Also define
114782         TESTS_ENVIRONMENT, so that individual tests can augment it.
114784         * gnulib-tool (func_create_testdir): Use an intermediate target for
114785         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
114786         macros, like $(ALLOCA_H), which cannot be passed through the command
114787         line.
114789 2005-10-15  Simon Josefsson  <jas@extundo.com>
114791         * modules/rijndael-tests: New file.
114793         * modules/rijndael: New file.
114795 2005-10-15  Simon Josefsson  <jas@extundo.com>
114797         * m4/rijndael.m4: New file.
114799 2005-10-15  Simon Josefsson  <jas@extundo.com>
114801         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
114803         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
114805 2005-10-14  Simon Josefsson  <jas@extundo.com>
114807         * tests/test-arcfour.c: New file.
114809         * modules/arcfour, modules/arcfour-tests: New files.
114811 2005-10-14  Simon Josefsson  <jas@extundo.com>
114813         * m4/arcfour.m4: New file.
114815 2005-10-14  Simon Josefsson  <jas@extundo.com>
114817         * lib/arcfour.h, lib/arcfour.c: New files.
114819 2005-10-14  Roland McGrath  <roland@redhat.com>
114821         Import from libc.  [BZ #1331]
114822         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
114823         macro argument.
114824         Reported by Matej Vela <vela@debian.org>.
114826 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114828         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
114829         include <wchar.h>; no longer needed.
114831 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
114833         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
114835 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
114836         and  Ulrich Drepper  <drepper@redhat.com>
114838         Import from libc.
114839         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
114840         instead of inline stream orientation test and two separate
114841         function calls.  Pay no attention to USE_IN_LIBIO.
114843 2005-10-13  Simon Josefsson  <jas@extundo.com>
114845         * modules/gc-hmac-md5-tests: New file.
114847         * tests/test-gc-hmac-sha1.c: New file.
114849         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
114851         * modules/gc-hmac-md5-tests: New file.
114853         * tests/test-gc-md5.c: New file.
114855         * modules/gc-md5-tests: New file.
114857 2005-10-13  Simon Josefsson  <jas@extundo.com>
114859         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
114860         Move memory allocation outside of loop.
114862 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
114864         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
114865         intermediate directory is in a read-only file system.  Problem
114866         reported by Eric Blake.
114868 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
114870         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
114872 2005-10-12  Simon Josefsson  <jas@extundo.com>
114874         * tests/test-hmac-sha1.c: New file.
114876         * modules/hmac-sha1-tests: New file.
114878         * modules/hmac-sha1: New file.
114880 2005-10-12  Simon Josefsson  <jas@extundo.com>
114882         * modules/gc-sha1: New file.
114884 2005-10-12  Simon Josefsson  <jas@extundo.com>
114886         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
114888         * tests/test-gc-pbkdf2-sha1.c: New file.
114890 2005-10-12  Simon Josefsson  <jas@extundo.com>
114892         * modules/gc-md5, modules/gc-hmac-md5: New files.
114894         * modules/gc (Files): Remove md5, memxor and hmac files.
114896 2005-10-12  Simon Josefsson  <jas@extundo.com>
114898         * m4/gc-pbkdf2-sha1.m4: New file.
114900         * m4/gc-hmac-sha1.m4: New file.
114902         * m4/gc-sha1: New file.
114904         * m4/hmac-sha1.m4: New file.
114906 2005-10-12  Simon Josefsson  <jas@extundo.com>
114908         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
114910         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
114912 2005-10-12  Simon Josefsson  <jas@extundo.com>
114914         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
114915         suggested by Bruno Haible <bruno@clisp.org>.
114917 2005-10-12  Simon Josefsson  <jas@extundo.com>
114919         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
114921 2005-10-12  Simon Josefsson  <jas@extundo.com>
114923         * lib/gc-pbkdf2-sha1.c: New file.
114925         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
114927 2005-10-12  Simon Josefsson  <jas@extundo.com>
114929         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
114931         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
114933 2005-10-12  Simon Josefsson  <jas@extundo.com>
114935         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
114936         GC_USE_HMAC_MD5, respectively.
114938         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
114939         (gc_md5): Fix typo.
114941         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
114943         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
114945         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
114947 2005-10-12  Bruno Haible  <bruno@clisp.org>
114949         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
114950         Reported by Stepan Kasal <kasal@ucw.cz>.
114952 2005-10-11  Simon Josefsson  <jas@extundo.com>
114954         * tests/test-crc.c: New file.
114956         * modules/crc, modules/crc-tests: New files.
114958 2005-10-11  Simon Josefsson  <jas@extundo.com>
114960         * m4/crc.m4: New file.
114962 2005-10-11  Simon Josefsson  <jas@extundo.com>
114964         * lib/gc.h: Add gc_hash and gc_hash_buffer.
114966         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
114968         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
114970 2005-10-11  Simon Josefsson  <jas@extundo.com>
114972         * lib/crc.h, lib/crc.c: New files.
114974         * lib/gc.h (gc_hash_buffer): Add doc.
114976 2005-10-11  Bruno Haible  <bruno@clisp.org>
114978         * modules/c-strcasestr: New file.
114979         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
114981 2005-10-11  Bruno Haible  <bruno@clisp.org>
114983         * modules/c-strcase: New file.
114984         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
114986 2005-10-11  Bruno Haible  <bruno@clisp.org>
114988         * lib/strcasecmp.c: Include limits.h.
114989         (strcasecmp): Avoid integer overflow on exotic platforms.
114990         * lib/strncasecmp.c: Include limits.h.
114991         (strncasecmp): Avoid integer overflow on exotic platforms.
114992         Reported by Paul Eggert.
114994 2005-10-11  Bruno Haible  <bruno@clisp.org>
114996         * lib/c-strcasestr.h: New file, from GNU gettext.
114997         * lib/c-strcasestr.c: New file, from GNU gettext.
114999 2005-10-11  Bruno Haible  <bruno@clisp.org>
115001         * lib/c-strcase.h: New file, from GNU gettext.
115002         * lib/c-strcasecmp.c: New file, from GNU gettext.
115003         * lib/c-strncasecmp.c: New file, from GNU gettext.
115005 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
115007         * modules/mempcpy (License): GPL -> LGPL.
115008         * modules/strchrnul (License): Likewise.
115009         * modules/sysexits (License): Likewise.
115011 2005-10-08  Simon Josefsson  <jas@extundo.com>
115013         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
115015 2005-10-07  Simon Josefsson  <jas@extundo.com>
115017         * m4/memxor.m4: Remove gl_C_RESTRICT call.
115019 2005-10-06  Simon Josefsson  <jas@extundo.com>
115021         * tests/test-hmac-md5.c: New file.
115023         * modules/hmac-md5-tests: New file.
115025         * modules/hmac-md5: New file.
115027 2005-10-06  Simon Josefsson  <jas@extundo.com>
115029         * m4/hmac-md5.m4: New file.
115031         * m4/memxor.m4: Require gl_C_RESTRICT.
115033 2005-10-06  Simon Josefsson  <jas@extundo.com>
115035         * lib/memxor.c (memxor): Avoid casts and warnings.
115037 2005-10-06  Simon Josefsson  <jas@extundo.com>
115039         * lib/hmac-md5.c: New file.
115041         * lib/hmac.h: New file.
115043 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
115045         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
115046         promotes to int, not unsigned int, to catch the AIX 5.3
115047         compiler bug.
115049 2005-10-05  Simon Josefsson  <jas@extundo.com>
115051         * modules/memxor: New file.
115053         * modules/iconv (Files): Move config.rpath to havelib, it is used
115054         there.
115056         * modules/havelib (Files): Add config.rpath.
115058 2005-10-05  Simon Josefsson  <jas@extundo.com>
115060         * m4/memxor.m4: New file.
115062 2005-10-05  Simon Josefsson  <jas@extundo.com>
115064         * lib/memxor.c (memxor): Fix compiler error.
115066         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
115067         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
115069         * lib/memxor.h, lib/memxor.c: New files.
115071         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
115072         we assume all systems have it, suggested by Jim Meyering
115073         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
115074         any systems lack sys/socket.h; mingw32 is known to lack it, but we
115075         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
115076         same reasons.
115078 2005-10-05  Simon Josefsson  <jas@extundo.com>
115080         * config/srclist.txt: Add glibc bug 1423 for md5.h.
115082 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
115084         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
115085         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
115086         needed, since the source code now assumes these .h files.
115088 2005-10-05  Derek Price  <derek@ximbiot.com>
115090         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
115092 2005-10-05  Bruno Haible  <bruno@clisp.org>
115094         * modules/stdint (License): Change to LGPL.
115096 2005-10-04  Simon Josefsson  <jas@extundo.com>
115098         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
115099         D. Baushke" <mdb@gnu.org>.
115101 2005-10-04  Bruno Haible  <bruno@clisp.org>
115103         * lib/verify.h (verify_true): Provide alternative definition for C++.
115105 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
115107         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
115108         (SSIZE_MAX): New macro, if not already defined.
115109         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
115110         than 2 GiB.
115112 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115114         Sync from coreutils.
115115         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
115116         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
115117         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
115118         ULLONG_MAX doesn't work with 2.7.2.1.
115120 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115122         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
115123         From Ben Pfaff.
115125         * modules/exclude (Depends-on): Depend on verify.
115126         * modules/strtoimax (Depends-on): Likewise.
115127         * modules/utimecmp (Depends-on): Likewise.
115129 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
115131         * lib/exclude.c: Include verify.h.
115132         (verify): Remove.  All callers changed to use verify.h's version.
115133         * lib/strtoimax.c: Likewise.
115134         * lib/utimecmp.c: Likewis.e
115136         Sync from coreutils.
115137         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
115138         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
115139         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
115140         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
115141         bother returning ENOSYS if settimeofday or stime fails; just let
115142         them return whatever errno they want to return.
115143         * lib/utimens.c: Include unistd.h, for dup2.
115144         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
115145         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
115147 2005-10-02  Jim Meyering  <jim@meyering.net>
115149         Sync from coreutils.
115150         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
115151         from glibc-2.2.5 that fails for read-only files.
115153 2005-10-02  Jim Meyering  <jim@meyering.net>
115155         Sync from coreutils.
115156         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
115157         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
115158         `#if HAVE_CONFIG_H'.
115159         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
115160         Remove AT_FDCWD test.
115161         Do not consume the fd unless successful.
115162         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
115163         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
115164         block, so that we don't even try to compile it if settimeofday is
115165         available.  This works around a compilation failure on OSF1 V5.1,
115166         due to stime requiring a `long int*' while tv_sec is `int'.
115168 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
115170         Sync from coreutils.
115171         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
115172         against `yes', rather than just testing for nonempty.
115174 2005-10-01  Simon Josefsson  <jas@extundo.com>
115176         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
115177         and Darwin.
115179         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
115180         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
115181         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
115182         freeaddrinfo and gai_strerror are declared by the POSIX headers.
115183         Check if struct addrinfo is declared.
115185 2005-10-01  Simon Josefsson  <jas@extundo.com>
115187         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
115188         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
115189         AI_* and EAI_* definitions.  Protect function declarations.
115191 2005-10-01  Jim Meyering  <jim@meyering.net>
115193         Sync from coreutils.
115195         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
115196         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
115197         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
115198         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115199         in the inet and nsl libraries.  Required on Solaris 5.7.
115201 2005-10-01  Jim Meyering  <jim@meyering.net>
115203         Sync from coreutils.
115204         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
115205         in the inet and nsl libraries.  Required on Solaris 5.7.
115207 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
115209         * lib/getdelim.c (getdelim): Remove unused variables.
115211 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
115213         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
115214         so that the code works even with ancient cpp.  Portability problem
115215         with GCC 2.7.2.1 reported by Thomas M.Ott.
115217 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
115219         * modules/regex (Depends-on): Add strcase.
115221         * modules/gethostname (Licence): Change from GPL to LGPL, since
115222         gethostname.c is a trivial implementation of a standard library
115223         function.
115224         * modules/poll (License): Change from GPL to LGPL, since it's
115225         derived from LGPL code.
115227 2005-09-27  Jim Meyering  <jim@meyering.net>
115229         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
115230         HAVE_CONFIG_H.
115232         * lib/intprops.h (signed_type_or_expr__): Define.
115233         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
115234         for unsigned types.
115236 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
115238         * lib/verify.h (verify_expr): Remove, replacing with:
115239         (verify_true): New macro that returns true instead of void.
115240         (verify_type__): Remove.
115241         (verify): Use verify_true rather than verify_type__.
115243 2005-09-26  Bruno Haible  <bruno@clisp.org>
115245         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
115246         is necessary.
115247         (lib_SOURCES): Remove mbchar.c.
115248         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
115249         (Files): Add m4/mbrtowc.m4.
115250         * modules/mbiter: Likewise.
115251         * modules/mbuiter: Likewise.
115253 2005-09-26  Bruno Haible  <bruno@clisp.org>
115255         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
115256         compile mbchar.c if they are not both present.
115257         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
115258         * m4/mbiter.m4 (gl_MBITER): Likewise.
115259         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
115260         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
115261         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
115263 2005-09-25  Jim Meyering  <jim@meyering.net>
115265         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
115266         also uses socklen_t.
115268 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
115270         * lib/utimens.c (ENOSYS): Define if not already defined.
115271         (futimens): Support having a null PATH if the file descriptor
115272         is nonnegative.
115274         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
115275         Remove.
115276         (__attribute): Define to empty unless GCC 3.1 or later.
115277         This works around a core dump on OpenBSD 3.4, which has GCC
115278         2.95.3, which dumps core when given __attribute__(()).  It also
115279         simplifies other tests, since we really don't want to bother with
115280         worrying about which ancient version of GCC supported what.
115281         Original problem reported by Yoann Vandoorselaere, with part of
115282         the fix suggested by Derek Price.
115284 2005-09-24  Jim Meyering  <jim@meyering.net>
115286         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
115287         so we can once again use a positive bitfield width of 1 -- now we
115288         don't have to explain why we were using a bitfield width of 2.
115290 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115292         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
115293         and similarly for the other external symbols.  Problem reported
115294         by James Gallager.
115296         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
115297         bug reported by Jim Meyering.
115299         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
115300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
115301         not needed, since socklen is a prerequisite module.
115303 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
115305         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
115306         Problem reported by Eric Blake.
115307         (getaddrinfo): Initialize se so that it's not garbage.
115308         Redo internal storage allocation so that it doesn't make unportable
115309         assumptions about alignment.
115310         Fix a memory leak.
115312         * lib/utimens.c (futimens): Use futimesat if available.
115313         Prefer it to futimes since it doesn't have the futimes bug.
115315         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
115316         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
115317         Instead, declare a function that returns a pointer to an array,
115318         and use verify_type__ to declare the size of the array.
115319         Problem and germ of a solution reported by Bruno Haible.
115320         (verify_type__): Use 2, not 1, for bitfield size, to avoid
115321         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
115323 2005-09-23  Jim Meyering  <jim@meyering.net>
115325         Sync from coreutils.
115326         Correct build failure (socklen_t not defined) on at least
115327         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
115328         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
115330 2005-09-23  Jim Meyering  <jim@meyering.net>
115332         * modules/getaddrinfo (Depends-on): Add socklen.
115334 2005-09-23  Bruno Haible  <bruno@clisp.org>
115336         * tests/test-verify.c: New file.
115338 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115340         Sync from coreutils.
115342         * modules/argmatch (Depends-on): Add verify.
115343         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
115344         unistd-safer.
115345         * modules/save-cwd (Depends-on): Likewise.
115347         * modules/openat (Files): Add lib/openat-die.c.
115348         (Depends-on): Remove error, exitfail.
115349         Add dirname.
115351         * modules/verify: New file.
115352         * MODULES.html.sh (Diagnostics <assert.h>): New section,
115353         with "verify" module.
115355 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115357         Sync from coreutils.
115359         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
115360         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
115361         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
115362         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
115363         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
115364         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
115365         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
115366         Don't bother checking for string.h, stdlib.h, unistd.h.
115367         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
115368         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
115369         module's job.
115370         * m4/jm-macros.m4 (gl_MACROS): Likewise.
115371         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
115373         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
115374         (gl_GETDATE): Use it.
115376         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
115378 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115380         Sync from coreutils.
115382         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
115383         stat-time.h.
115384         * lib/argmatch.h: Include verify.h
115385         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
115386         (ARGMATCH_ASSERT): Remove; unused.
115387         * lib/canonicalize.c: Assume STDC_HEADERS.
115388         * lib/exclude.c: Include "strcase.h".
115389         * lib/regex_internal.h [!defined _LIBC]: Likewise.
115390         * lib/getusershell.c: Include stdio--.h rather than stdio.h
115391         and stdio-safer.h.
115392         (getusershell): Call fopen, not fopen_safer.
115393         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
115394         Do not include unistd-safer.h.
115395         (save_cwd): Don't call fd_safer; no longer needed
115396         now that we include fcntl--.h.
115398         * lib/getdate.y (relative_time): New type.
115399         (RELATIVE_TIME_0): New constant.
115400         (parser_control): Use relative_time instead of doing it ourselves.
115401         (%union): Add new relative_time rel member.
115402         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
115403         Now typeless.
115404         (relunit, relunit_snumber): Now of type rel.
115405         (zone, rel, relunit, get_date): Adjust to above changes.
115407         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
115408         Do not include unistd-safer.h.
115409         (getloadavg): Don't call fd_safer; no longer needed
115410         now that we include fcntl--.h.
115412         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
115413         (make_dir_parents): Treat ENOSYS like EEXIST.
115415         Improve quality of diagnostics on restore_cwd failure.
115416         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
115417         (make_dir_parents): Last arg is now int * (for errno), not bool *.
115418         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
115419         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
115420         each time through the loop.  Do not diagnose restore_cwd failure;
115421         that is the caller's job (and perhaps the caller does not care).
115423         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
115424         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
115425         If the file already exists but is not a directory, don't bother
115426         to try to make its parents.
115427         Close potential file descriptor leak if we can't chdir("/") (!).
115428         Don't always return true if chdir($PWD) fails; return true only
115429         if the requested action was done successfully (except for the
115430         chdir($PWD)).
115431         Don't log final directory unless we actually made it.
115432         Refactor to avoid duplicate code to fix up permissions.
115433         Don't attempt to fix up parent permissions if chdir($PWD) fails.
115435         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
115436         to make it a bit faster and (I hope) clearer.
115437         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
115438         Fix bug in formats like %2N.
115440         * lib/verify.h: New file.
115442 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
115444         Sync from coreutils.
115445         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
115447 2005-09-22  Jim Meyering  <jim@meyering.net>
115449         Sync from coreutils.
115451         * m4/lstat.m4 (gl_FUNC_LSTAT):
115452         Use AC_LIBSOURCES to require lstat.c and lstat.h.
115453         Remove obsolete comment.
115454         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
115455         * m4/xstrtod.m4: Likewise.
115457         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
115459 2005-09-22  Jim Meyering  <jim@meyering.net>
115461         Sync from coreutils.
115463         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
115465         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
115466         the .tm_year member, since otherwise gcc-4.0 would now warn about
115467         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
115469         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
115470         order to avoid an unsuppressible warning from gcc on 64-bit systems.
115472         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
115473         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
115474         when run in a time zone for which daylight savings time is in effect
115475         for the starting date.
115477         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
115478         stop us from restricting permissions of just-created absolute-named
115479         directories.
115480         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
115481         to restore initial working directory.
115482         * lib/mkdir-p.c (make_dir_parents): New parameter:
115483         different_working_dir, to tell caller if/when we change the working
115484         directory and are unable to return to the initial one.
115485         * lib/mkdir-p.h (make_dir_parents): Update prototype.
115486         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
115487         `return false'.  This fixes a bug introduced on 2004-07-30.
115489         * lib/openat.c (fdopendir): Be sure to close the supplied
115490         file descriptor before returning.  This makes our replacement
115491         implementation a little closer to Solaris's, where fdopendir
115492         ties the file descriptor to the returned DIR* pointer.
115493         * lib/openat.c (unlinkat): New function.
115494         * lib/openat.h (unlinkat): Add prototype.
115495         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
115496         (openat_restore_fail): Rename from openat_restore_die.
115497         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
115499         Provide an alternative to exiting immediately upon save_cwd or
115500         restore_cwd failure.  Now, an application can arrange e.g.,
115501         to perform a longjump in that case.
115502         * lib/openat.c: Include dirname.h.
115503         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
115504         (rpl_openat, fdopendir, fstatat): Call openat_save_die
115505         and openat_restore_die rather than calling error directly.
115506         Don't include "error.h" or "exitfail.h"; they're no longer needed.
115508         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
115509         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
115510         define.
115512         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
115513         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
115514                             int utc, int nanoseconds);
115515         Background:
115516         date should not have to allocate a megabyte of virtual memory to
115517         handle a format argument like +%1048575T.  When implemented with
115518         strftime, it must allocate such a buffer, use strftime to fill it
115519         in, print it, then free it.
115520         With fprintftime, it simply prints everything and exits.
115521         With no need for memory allocation, that's one fewer way to fail.
115522         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
115523         optional field width, not before, so we accept %9:z, not %:9z.
115524         (my_strftime): Be sure to use L_('x') for literals.
115526         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
115527         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
115528         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
115529         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
115530         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
115531         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
115532         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
115533         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
115534         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
115535         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
115536         * lib/xgethostname.c, lib/xreadlink.c:
115537         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
115539         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
115540         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
115541         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
115542         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
115543         and don't include <sys/file.h>).
115545 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
115547         Sync from coreutils.
115549         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
115550         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
115551         [!LDAV_DONE]: Avoid unused variable warning.
115553 2005-09-21  Bruno Haible  <bruno@clisp.org>
115555         * lib/unicodeio.h (unicode_to_mb): New declaration.
115557 2005-09-20  Derek Price  <derek@ximbiot.com>
115559         * lib/getaddrinfo.c: Don't include <netdb.h> included from
115560         getaddrinfo.h.
115562 2005-09-20  Bruno Haible  <bruno@clisp.org>
115564         * gnulib-tool: Remove trailing slashes from the values specified for
115565         --source-base, --m4-base, --tests-base, --aux-dir.
115566         Suggested by Simon Josefsson <jas@extundo.com>.
115568 2005-09-20  Bruno Haible  <bruno@clisp.org>
115570         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
115571         func_modules_to_filelist, func_import, func_create_testdir): Make all
115572         sorting results locale-independent, so that gnulib-cache.m4 doesn't
115573         change when gnulib-tool is invoked in a different locale.
115575 2005-09-19  Simon Josefsson  <jas@extundo.com>
115577         * m4/socklen.m4: Fix typo.
115579 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115581         Use a consistent style for including <config.h>.
115582         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
115583         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
115584         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
115585         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
115586         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
115587         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
115588         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
115589         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
115590         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
115591         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
115592         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
115593         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
115594         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
115595         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
115596         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
115597         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
115598         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
115599         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
115600         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
115601         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
115602         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
115603         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
115604         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
115605         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
115606         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
115607         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
115608         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
115609         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
115610         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
115611         lib/xstrtoumax.c, lib/yesno.c:
115612         Standardize inclusion of config.h.
115613         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
115614         lib/inttostr.h:  Removed inclusion of config.h from header files.
115615         * lib/inttostr.c:  Adjusted in-tree users.
115616         * lib/timespec.h: Remove superfluous warning to include config.h.
115617         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
115618         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
115619         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
115620         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
115621         config.h with HAVE_CONFIG_H.
115623 2005-09-19  Jim Meyering  <jim@meyering.net>
115625         * modules/pathmax (License): Change to LGPL.
115627 2005-09-19  Derek Price  <derek@ximbiot.com>
115629         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
115631 2005-09-19  Bruno Haible  <bruno@clisp.org>
115633         * gnulib-tool (import): Provide default for --tests-base.
115635 2005-09-19  Bruno Haible  <bruno@clisp.org>
115637         * doc/quote.texi: New file, extracted from gnulib.texi.
115638         * doc/ctime.texi: New file, extracted from gnulib.texi.
115639         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
115640         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
115641         * doc/gnulib.texi: Include them.
115643 2005-09-18  Bruno Haible  <bruno@clisp.org>
115645         Portability fix.
115646         * gnulib-tool (func_readlink): New function.
115647         (func_ln_if_changed): Use it.
115649 2005-09-18  Bruno Haible  <bruno@clisp.org>
115651         * gnulib-tool: Support --with-tests also with --import.
115652         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
115653         (func_import): Use variables $testsbase and $inctests. Emit a
115654         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
115655         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
115656         SUBDIRS += $testsdir.
115657         (func_create_testdir): Update.
115659 2005-09-18  Bruno Haible  <bruno@clisp.org>
115661         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
115662         instead of $dry_run.
115663         (func_cp_if_changed, func_mv_if_changed): Remove functions.
115664         (func_ln_if_changed): Don't handle dry-run here.
115665         (func_import): In dry-run mode, detect more precisely which actions
115666         would be performed, and don't use "...ing" verbs.
115668 2005-09-18  Bruno Haible  <bruno@clisp.org>
115670         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
115671         (func_import): Use join on two temporary files instead of three nested
115672         loops, in order to determine which files are new or old.
115674 2005-09-18  Bruno Haible  <bruno@clisp.org>
115676         * gnulib-tool (func_import): Comment out code that spits out the
115677         new files with --dry-run.
115679 2005-09-18  Bruno Haible  <bruno@clisp.org>
115681         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
115683 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115685         * lib/stat-time.h: New file.
115686         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
115687         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
115688         in a different way.
115689         (timespec_cmp): New function.
115690         * lib/utimecmp.c: Include stat-time.h.
115691         (SYSCALL_RESOLUTION): Depend on whether various struct stat
115692         members exist, not on the obsolescent ST_MTIM_NSEC.
115693         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
115695 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115697         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
115699 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
115701         * MODULES.html.sh (File system functions): Add stat-time.
115702         * modules/stat-time: New file.
115703         * modules/timespec (Files): Remove m4/st_mtim.m4; this
115704         is now done in a different way, by the stat-time module.
115705         * modules/utimecmp (Depends-on): Add stat-time.
115707 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
115709         * m4/st_mtim.m4: Remove.  Superseded by...
115710         * m4/stat-time.m4: New file.
115711         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
115712         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
115714 2005-09-15  Derek Price  <derek@ximbiot.com>
115716         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
115718 2005-09-15  Derek Price  <derek@ximbiot.com>
115720         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
115721         * lib/regex_internal.c: Ditto, using this...
115722         (__GNUC_PREREQ): ...new macro.
115723         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
115724         using...
115725         (__GNUC_PREREQ): ...this new macro.
115727         * lib/strstr.h: Include string.h. Define strstr as a macro here.
115729 2005-09-15  Derek Price  <derek@ximbiot.com>
115730             Paul Eggert  <eggert@cs.ucla.edu>
115732         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
115733         changes, consolidating in...
115734         * lib/regex_internal.h: ...this file.
115736 2005-09-13  Jim Meyering  <jim@meyering.net>
115738         * lib/canon-host.c: Filter through gnu indent and reword comments
115739         slightly.
115740         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
115742 2005-09-13  Derek Price  <derek@ximbiot.com>
115744         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
115745         failure.
115746         Reported by Jim Meyering  <jim@meyering.net>.
115748 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115750         * lib/base64.c: Typo.
115751         (base64_encode): Put b64str in initialized data section.
115753 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
115755         Merge glibc and coreutils changes into gnulib, plus a few
115756         extra fixes.
115757         * lib/md5.c: Use #error rather than a string.
115758         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
115759         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
115760         (__attribute__): Define to empty for non recent-GCC.
115761         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
115762         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
115763         Renamed from their non-__ counterparts, with new macros replacing
115764         them if not _LIBC.  Add __THROW attribute.
115765         (rol): Remove.
115766         (struct md5_ctx): Align buffer if using GCC.
115767         * lib/sha1.h (struct sha1_ctx): Likewise.
115768         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
115769         The old name was backwards.
115770         (NOTSWAP): Remove; not used.
115771         (rol): New macro, moved here from md5.h.
115772         (sha1_process_block): Remove a FIXME that doesn't make sense.
115774 2005-09-12  Derek Price  <derek@ximbiot.com>
115776         Return usable errors from canon-host.
115777         * lib/canon-host.h: New file.
115778         * lib/canon-host.c (canon_host): Wrap...
115779         (canon_host_r): ...this new function, which now relies exclusively on
115780         getaddrinfo.
115781         (ch_strerror): New function.
115782         (last_cherror): New global.
115783         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
115784         interface.
115785         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
115786         void *.
115787         (freeaddrinfo): Free ai->ai_canonname when set.
115789 2005-09-12  Derek Price  <derek@ximbiot.com>
115791         Make canon-host require getaddrinfo.
115792         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
115793         AC_LIBSOURCE canon-host.h.  Call...
115794         (gl_PREREQ_CANON_HOST): ...this new function, which requires
115795         gl_GETADDRINFO.
115796         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
115798 2005-09-12  Derek Price  <derek@ximbiot.com>
115800         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
115801         LGPL.
115802         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
115804 2005-09-12  Derek Price  <derek@ximbiot.com>
115806         * lib/gai_strerror.c: Include config.h when available.  Include
115807         getaddrinfo.h before other headers to test interface.
115808         Reported by Larry Jones <lawrence.jones@ugs.com>.
115810 2005-09-12  Derek Price  <derek@ximbiot.com>
115811             Paul Eggert  <eggert@cs.ucla.edu>
115813         * modules/glob (Files): Add glob-libc.h.
115815 2005-09-12  Derek Price  <derek@ximbiot.com>
115816             Paul Eggert  <eggert@cs.ucla.edu>
115818         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
115819         glob_.h, glob-libc.h.
115820         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
115822 2005-09-12  Derek Price  <derek@ximbiot.com>
115823             Paul Eggert  <eggert@cs.ucla.edu>
115825         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
115826         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
115827         protecting things that should be done only in gnulib contexts.
115828         * lib/glob_.h: New file, containing only the glob things needed for
115829         gnulib.
115830         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
115831         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
115832         (glob, globfree, glob_pattern_p): Now defined simply in terms of
115833         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
115834         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
115835         and to respect the namespace rules better.
115837 2005-09-08  Simon Josefsson  <jas@extundo.com>
115839         * modules/socklen: New file.
115841 2005-09-08  Simon Josefsson  <jas@extundo.com>
115843         * m4/socklen.m4: New file.
115845 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115847         * modules/utimens (Files): Add m4/utimbuf.m4, since
115848         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
115849         Reported by Sergey Poznyakoff.
115851 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115853         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
115854         definitions, since that's the preferred style in glibc.
115855         Fix a minor spacing issue, and update copyright notice to match
115856         glibc's.
115858 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
115860         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
115862 2005-09-06  Simon Josefsson  <jas@extundo.com>
115864         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
115865         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
115867 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115869         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
115870         warning.
115872 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
115874         * config/srclist.txt: Add glibc bug 1302.
115876 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
115878         Change bitset word type from unsigned int to unsigned long int,
115879         as this has better performance on typical 64-bit hosts.
115880         Port bitset code to hosts with unusual word sizes.
115881         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
115882         (build_collating_symbol):
115883         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
115884         argument is a bitset.  This is merely a style issue, but it makes
115885         it clearer that an entire array is expected.
115886         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
115887         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
115888         Port to the case where bitset_word is not the same as unsigned int.
115889         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
115890         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
115891         Likewise.
115892         * lib/regexec.c (check_dst_limits_calc_pos_1,
115893         check_subexp_matching_top):
115894         (build_trtable, group_nodes_into_DFAstates):
115895         Likewise.
115896         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
115897         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
115898         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
115899         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
115900         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
115901         * lib/regcomp.c (optimize_subexps, lower_subexp):
115902         Work even if bitset_word has holes in its bitwise representation.
115903         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
115904         * lib/regexec.c (check_dst_limits_calc_pos_1,
115905         check_subexp_matching_top):
115906         Likewise.
115907         * lib/regex_internal.c (re_string_reconstruct):
115908         Don't assume UCHAR_MAX == 255.
115909         * lib/regex_internal.h (bitset_set_all): Likewise.
115910         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
115911         All uses changed.
115912         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
115913         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
115914         All uses changed.
115915         (BITSET_WORD_MAX): New macro.
115916         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
115917         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
115918         (bitset_empty, bitset_copy):
115919         Prefer sizeof (bitset) to multiplying it out ourselves.
115920         (bitset_not_merge): Remove; unused.
115921         (bitset_contain): Return bool, not unsigned int with one bit on.
115922         All callers changed.
115923         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
115924         alignment than re_node_set; do this by defining a new internal
115925         type struct dests_alloc and using it to allocate memory.
115927 2005-09-05  Bruno Haible  <bruno@clisp.org>
115929         * gnulib-tool (func_import): Fix comparison in handling of symbolic
115930         links.
115932 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
115934         * modules/size_max (Makefile.am): Add size_max.h
115936 2005-09-04  Derek Price  <derek@ximbiot.com>
115938         * gnulib-tool (func_import): Fix reversed $symbolic logic.
115940 2005-09-03  Simon Josefsson  <jas@extundo.com>
115942         * gnulib-tool: Fix typo.
115944 2005-09-03  Simon Josefsson  <jas@extundo.com>
115946         * config/srclist.txt: Add glibc bug 1293.
115948 2005-09-03  Derek Price  <derek@ximbiot.com>
115950         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
115951         From Larry Jones <lawrence.jones@ugs.com>.
115953 2005-09-02  Simon Josefsson  <jas@extundo.com>
115955         * modules/socklen: New file.
115957 2005-09-02  Simon Josefsson  <jas@extundo.com>
115959         * modules/havelib: New module.
115961         * modules/gettext, modules/iconv, modules/lock, modules/readline:
115962         Use havelib.
115964 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
115966         Check for arithmetic overflow when calculating sizes, to prevent
115967         some buffer-overflow issues.  These patches are conservative, in the
115968         sense that when I couldn't determine whether an overflow was possible,
115969         I inserted a run-time check.
115970         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
115971         macros.
115972         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
115973         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
115974         (re_xnrealloc, re_x2nrealloc): New inline functions.
115975         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
115976         parse_bracket_exp):
115977         (build_equiv_class, build_charclass): Check for arithmetic overflow
115978         in size expression calculations.
115979         * lib/regex_internal.c (re_string_realloc_buffers):
115980         (build_wcs_upper_buffer, re_node_set_add_intersect):
115981         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
115982         (re_dfa_add_node, register_state): Likewise.
115983         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
115984         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
115985         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
115986         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
115988 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
115990         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
115991         m4/ulonglong.m4.  Problem reported by Martin Lambers.
115993 2005-09-02  Bruno Haible  <bruno@clisp.org>
115995         Support for lib vs. lib64 distinction on biarch platforms.
115996         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
115997         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
115998         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
116000 2005-09-02  Bruno Haible  <bruno@clisp.org>
116002         * gnulib-tool (import): In the other first-use case, provide defaults
116003         as well.
116005 2005-09-02  Bruno Haible  <bruno@clisp.org>
116007         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
116008         patches not yet found in the latest gettext release.
116010 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116012         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
116013         to avoid a collision with bits/local_lim.h in glibc.
116014         All uses changed.  Problem reported by Dmitry V. Levin in
116015         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
116017         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
116018         bugs in int versus size_t comparisons.
116019         (re_string_context_at): Fix bug where the code assumed that
116020         Idx is signed.
116022         Use bool where appropriate.
116023         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
116024         All callers changed.
116025         (calc_eclosure_iter): Likewise, for ROOT arg.
116026         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
116027         (build_charclass_op): Likewise, for NON_MATCH arg.
116028         * lib/regex_internal.c (re_string_allocate, re_string_construct):
116029         (re_string_construct_common): Likewise, for ICASE arg.
116030         * lib/regexec.c (re_search_2_stub, re_search_stub):
116031         Likewise, for RET_LEN arg.
116032         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
116033         (set_regs): Likewise, for FL_BACKTRACK arg.
116034         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
116035         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
116036         (calc_eclosure_iter, parse_bracket_exp):
116037         Use bool for internal variables that are booleans.
116038         * lib/regexec.c (re_search_internal, check_matching,
116039         proceed_next_node):
116040         (set_regs, build_sifted_states, sift_states_bkref):
116041         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
116042         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116043         (find_collation_sequence_value):
116044         Likewise.
116045         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
116046         (re_node_set_compare):
116047         Return bool, not int. All callers changed.
116048         * lib/regexec.c (check_halt_node_context, check_dst_limits):
116049         (build_trtable, check_node_accept): Likewise.
116050         * lib/regex_internal.h: Include stdbool.h.
116052         Fix bugs uncovered when converting to bool.
116053         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
116054         failure instead of charging ahead blindly.
116055         * lib/regex_internal.c (register_state): Likewise.
116056         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
116057         for freeing internal storage.
116058         (group_nodes_into_DFA_states): Use unsigned int, not int, for
116059         bitset pieces used as boolean, to avoid undefined behavior
116060         on hosts that do int overflow checking.
116062 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
116064         * config/srclist.txt: Add glibc bugs 1285-1287.
116066 2005-09-01  Jim Meyering  <jim@meyering.net>
116068         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
116069         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
116070         Require gl_STAT_MACROS, too.
116072 2005-09-01  Bruno Haible  <bruno@clisp.org>
116074         * gnulib-tool (import): In the first-use case, provide defaults.
116076 2005-09-01  Bruno Haible  <bruno@clisp.org>
116078         * gnulib-tool (func_import): Remove the .tmp files.
116080 2005-09-01  Bruno Haible  <bruno@clisp.org>
116082         * gnulib-tool (func_import): Fix handling of symbolic links.
116084 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116086         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
116087         old glibc regex code mishandles strings longer than 2**31 bytes.
116088         This patch fixes this when the regex code is used in gnulib
116089         (i.e., outside glibc).
116091         This patch should not affect the use of the regex code inside
116092         glibc.  No doubt this problem also needs to be handled for glibc
116093         as well, but the result will be an incompatible change to the
116094         glibc ABI, and the old ABI will have to be supported too.  That
116095         can be the subject for another patch.
116097         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
116098         governing whether the rest of this patch is active.  By default,
116099         the macro is disabled and the patch has no effect.
116100         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
116101         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
116102         (struct re_pattern_buffer, re_search, re_search_2, re_match):
116103         (re_match_2, re_set_registers): Use the new types.
116104         * lib/regex_internal.h (Idx, re_hashval_t): New types.
116105         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
116106         New macros.
116107         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
116108         (re_string_context_at, bin_tree_t, re_dfastate_t):
116109         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
116110         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
116111         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
116112         (re_string_char_size_at, re_string_wchar_at):
116113         (re_string_elem_size_at):
116114         Use the new types and macros to port to 64-bit hosts.
116115         Use unsigned types for internal values, so that the code
116116         mostly works even for arrays larger than SSIZE_MAX.
116117         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
116118         (search_duplicated_node, calc_eclosure_iter, fetch_number):
116119         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
116120         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
116121         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
116122         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
116123         (calc_inveclosure, parse_dup_op, build_range_exp):
116124         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
116125         (fetch_number, create_token_tree, mark_opt_subexp):
116126         Likewise.
116127         * lib/regex_internal.c (re_string_construct_common,
116128         create_ci_newstate):
116129         (create_cd_newstate, re_string_allocate, re_string_construct):
116130         (re_string_realloc_buffers, build_wcs_upper_buffer):
116131         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116132         (re_string_reconstruct, re_string_peek_byte_case):
116133         (re_string_fetch_byte_case, re_string_context_at):
116134         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116135         (re_node_set_init_copy, re_node_set_add_intersect):
116136         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116137         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116138         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116139         (re_acquire_state, re_acquire_state_context, register_state):
116140         Likewise.
116141         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
116142         search_cur_bkref_entry):
116143         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
116144         (re_search_internal, re_search_2_stub, re_search_stub)
116145         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
116146         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
116147         (update_cur_sifted_state, check_dst_limits):
116148         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116149         (check_subexp_limits, sift_states_bkref, merge_state_array):
116150         (check_subexp_matching_top, get_subexp, get_subexp_sub):
116151         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
116152         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116153         (expand_bkref_cache, check_node_accept_bytes):
116154         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
116155         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
116156         (acquire_init_state_context, check_halt_node_context):
116157         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
116158         (sift_states_backward, clean_state_log_if_needed):
116159         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
116160         (find_recover_state, transit_state_sb, transit_state_mb):
116161         (transit_state_bkref, build_trtable, match_ctx_clean):
116162         Likewise.
116163         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
116164         to work around an assumption that REG_MISSING is negative.
116166         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
116167         (seek_collating_symbol_entry) [defined _LIBC]:
116168         (lookup_collation_sequence_value) [defined _LIBC]:
116169         (build_range_exp, build_collating_symbol) [defined _LIBC]:
116170         Use prototypes rather than old-style function definitions.
116171         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
116172         (transit_state_sb) [0]:
116173         (find_collation_sequence_value) [defined _LIBC]: Likewise.
116175         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
116176         rm_eo.
116178         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
116179         (optimize_subexps, lower_subexp):
116180         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
116181         since the signed shift might overflow.  Use 1u<<31 instead.
116182         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116183         Likewise.
116184         * lib/regexec.c (check_dst_limits_calc_pos_1,
116185         check_subexp_matching_top): Likewise.
116187         * lib/regcomp.c (optimize_subexps, lower_subexp):
116188         Use CHAR_BIT rather than 8, for clarity.
116189         * lib/regexec.c (check_dst_limits_calc_pos_1):
116190         (check_subexp_matching_top): Likewise.
116191         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
116192         have to worry about portability issues when shifting it left.
116193         Remove no-longer-needed test for table_size > 0.
116194         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
116195         in a word, as the resulting behavior is undefined.
116196         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
116197         in one case, a <= should have been an <, and in another case the
116198         whole test was missing.
116199         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
116200         the standard name CHAR_BIT.
116201         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
116202         this is not true on one's complement and signed-magnitude hosts.
116204         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
116205         next_last_offset.
116206         (struct re_dfa_t): Remove unused member states_alloc.
116207         * lib/regcomp.c (init_dfa): Don't initialize unused members.
116209 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116211         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
116212         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
116213         and large-file glibc and in 32-bit large-file Solaris.
116215 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116217         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
116218         lengths fit in regoff_t; this isn't true if regoff_t is the same
116219         width as size_t.
116220         * lib/regex.c (re_search_internal): 5th arg is LAST_START
116221         (= START + RANGE) instead of RANGE.  This avoids overflow
116222         problems when regoff_t is the same width as size_t.
116223         All callers changed.
116224         (re_search_2_stub): Check for overflow when adding the
116225         sizes of the two strings.
116226         (re_search_stub): Check for overflow when adding START
116227         to RANGE; if it occurs, substitute the extreme value.
116229 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
116231         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
116233 2005-08-31  Jim Meyering  <jim@meyering.net>
116235         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
116236         a pointer-to-const.
116237         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
116238         (register_state): Likewise.
116239         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
116240         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
116241         (group_nodes_into_DFAstates): Likewise.
116243 2005-08-31  Jim Meyering  <jim@meyering.net>
116245         * check-module: Add a FIXME comment.
116247 2005-08-31  Eric Blake  <ebb9@byu.net>
116249         * modules/unistd-safer (Files): Add unistd--.h.
116250         * modules/stdio-safer (Files): Add stdio--.h.
116252 2005-08-31  Derek Price  <derek@ximbiot.com>
116254         * lib/getdelim.c (getdelim): Return EOF on EOF.
116255         Reported by Larry Jones <lawrence.jones@ugs.com>.
116257 2005-08-31  Bruno Haible  <bruno@clisp.org>
116259         Avoid unnecessary diffs in the generated lib/Makefile.am.
116260         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
116261         the generated files.
116262         (func_import): Don't set cmd.
116264 2005-08-31  Bruno Haible  <bruno@clisp.org>
116266         * lib/strstr.c: Include <stddef.h>, for NULL.
116267         * lib/strcasestr.c: Likewise.
116268         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
116270 2005-08-31  Bruno Haible  <bruno@clisp.org>
116272         * gnulib-tool: New option --macro-prefix.
116273         (func_import): Use macro_prefix.
116274         (import): Handle option --macro-prefix.
116276 2005-08-31  Bruno Haible  <bruno@clisp.org>
116278         * gnulib-tool (import): Rename most ac_* variables to cached_*.
116279         Also use new variables cached_lgpl, cached_libtool.
116281 2005-08-31  Bruno Haible  <bruno@clisp.org>
116283         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
116284         always instantiating them.
116286 2005-08-31  Bruno Haible  <bruno@clisp.org>
116288         * gnulib-tool (func_import): Read the previous cached settings
116289         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
116290         earlier added by gnulib but are now dropped. Warn when a gnulib file
116291         overwrites a non-gnulib file.
116293 2005-08-31  Bruno Haible  <bruno@clisp.org>
116295         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
116296         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
116297         projects that don't keep autogenerated files in CVS. Put into
116298         actioncmd only the specified modules, not the transitive closure.
116300 2005-08-31  Bruno Haible  <bruno@clisp.org>
116302         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
116303         Create directories that shall be filled.
116304         (import): Don't look for gl_* macros in configure.ac. Recurse across
116305         all directories containing a gnulib-cache.m4 files, if meaningful.
116307 2005-08-31  Bruno Haible  <bruno@clisp.org>
116309         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
116310         (import): Set seen_libtool when we see gl_LIBTOOL.
116312 2005-08-31  Bruno Haible  <bruno@clisp.org>
116314         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
116315         declaration macro definitions from generated gnulib.m4.
116317 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
116319         * lib/iconvme.h: Add prototype for iconv_alloc.
116321 2005-08-29  Simon Josefsson  <jas@extundo.com>
116323         * lib/iconvme.c: Fix errno.
116325 2005-08-29  Bruno Haible  <bruno@clisp.org>
116327         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
116328         that it works when the directory contains spaces.
116330 2005-08-29  Bruno Haible  <bruno@clisp.org>
116332         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
116334 2005-08-29  Bruno Haible  <bruno@clisp.org>
116336         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
116337         Emit more advice.
116339 2005-08-29  Bruno Haible  <bruno@clisp.org>
116340         and Stepan Kasal  <kasal@ucw.cz>
116342         * check-module: If more parameters are given, check each of them
116343         separately; add more exceptions, as noted by Jim Meyering.
116344         (check_module): New procedure.
116345         (%exempt_header): Now contains all exceptions.
116347 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
116349         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
116351 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
116353         * lib/iconvme.c: Split iconv_string into iconv_alloc.
116355 2005-08-28  Bruno Haible  <bruno@clisp.org>
116357         * m4/gnulib-tool.m4: New file.
116359 2005-08-27  Jim Meyering  <jim@meyering.net>
116361         * modules/unistd-safer (Files): Add pipe-safer.c.
116362         * modules/fcntl-safer (Files): Add creat-safer.c.
116364 2005-08-27  Jim Meyering  <jim@meyering.net>
116366         * m4/stdlib-safer.m4: New file.  From coreutils.
116367         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
116368         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
116369         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
116370         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
116371         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
116373 2005-08-27  Jim Meyering  <jim@meyering.net>
116375         * lib/fopen-safer.c: Merge minor changes from coreutils.
116376         * lib/dup-safer.c: Likewise.
116377         * lib/fd-safer.c: Likewise.
116379         Merge from coreutils.
116380         * lib/stdio--.h: New file.
116381         * lib/stdlib--.h: New file.
116382         * lib/mkstemp-safer.c: New file.
116384         GNU tar needs these.
116385         * lib/pipe-safer.c: New file.
116386         * lib/creat-safer.c: New file.
116387         * lib/fcntl--.h (creat): Define to creat_safer.
116388         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
116389         * lib/unistd--.h (pipe): Define to pipe_safer.
116390         * lib/unistd-safer.h: Declare pipe_safer.
116392 2005-08-26  Simon Josefsson  <jas@extundo.com>
116394         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
116395         Haible <bruno@clisp.org>.
116397 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
116399         * lib/regex_internal.h: Remove all references to
116400         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
116401         or better.
116402         (bitset_not, bitset_merge, bitset_not_merge):
116403         (bitset_mask, re_string_allocate, re_string_construct):
116404         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
116405         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
116406         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
116407         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
116408         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116409         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116410         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
116411         (re_acquire_state_context):
116412         Remove unnecessary forward decls.
116413         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
116414         Put __attribute at function definition,
116415         now that the function decl has been removed.
116416         * lib/regex_internal.c (re_string_peek_byte_case):
116417         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
116418         Likewise.
116420 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
116422         * m4/regex.m4: Add AC_PREREQ(2.50).
116423         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
116425 2005-08-25  Simon Josefsson  <jas@extundo.com>
116427         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
116428         __fsetlocking.
116430 2005-08-25  Simon Josefsson  <jas@extundo.com>
116432         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
116433         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
116434         GLIBC specific code.
116436 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116438         Make regex safe for g++.  This fixes one real bug (an "err"
116439         that should have been "*err").  g++ problem reported by
116440         Sam Steingold.
116441         * lib/regex_internal.h (re_calloc): New macro, consistent with
116442         re_malloc etc.  All callers of calloc changed to use re_calloc.
116443         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
116444         not int.  All callers changed.
116445         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
116446         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
116447         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
116448         (find_recover_state): Change "err" to "*err"; this fixes what
116449         appears to be a real bug.
116450         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
116451         versus int.
116453 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116455         * modules/regex (Depends-on): Add malloc, since the code
116456         assumes that !malloc(0) means failure.
116458 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116460         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
116462         alloca modernization/simplification for regex.
116463         * lib/regex.c: Remove portability cruft for alloca.  This no longer
116464         needs to be at the start of the file, and can be moved into
116465         regex_internal.h and simplified.
116466         * lib/regex_internal.h: Include <alloca.h>.
116467         (__libc_use_alloca) [!defined _LIBC]: New macro.
116468         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
116469         now works outside glibc.
116471 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
116473         * config/srclist.txt: Add glibc bugs 1241, 1245.
116475 2005-08-25  Jim Meyering  <jim@meyering.net>
116477         * lib/open-safer.c: Include <config.h>.
116478         Otherwise, we'd lose LARGEFILE support in any file using
116479         e.g. "fcntl--.h"
116481 2005-08-25  Bruno Haible  <bruno@clisp.org>
116483         * m4/minmax.m4: Require autoconf 2.52.
116484         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
116485         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
116486         alternatives of translit over the alphabet.
116487         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
116489 2005-08-24  Simon Josefsson  <jas@extundo.com>
116491         * tests/test-getpass.c: New file.
116493 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116495         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
116496         for GNU regex features.
116498 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116500         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
116501         * lib/regex.h (regerror): Likewise.
116503         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
116504         requires this.  (The code never needed it.)
116506         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
116507         All uses of recently-renamed identifiers changed to use the new,
116508         POSIX-compliant names.  The code will build and run just fine
116509         without these changes, but it's better to eat our own dog food
116510         and use the standard-conforming names.
116512         * lib/regex.h: Fix a multitude of POSIX name space violations.
116513         These changes have an effect only for programs that define
116514         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
116515         do not change anything for programs compiled in the normal way.
116516         Also, there is no effect on the ABI.
116518         (_REGEX_SOURCE): New macro.
116519         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
116520         defined and _GNU_SOURCE is not; this fixes a name space violation.
116522         Rename the following macros to obey POSIX requirements.
116523         The old names are still visible as macros if _REGEX_SOURCE is defined.
116524         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
116525         RE_BACKSLASH_ESCAPE_IN_LISTS.
116526         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
116527         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
116528         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
116529         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
116530         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
116531         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
116532         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
116533         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
116534         (REG_INTERVALS): renamed from RE_INTERVALS.
116535         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
116536         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
116537         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
116538         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
116539         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
116540         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
116541         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
116542         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
116543         RE_UNMATCHED_RIGHT_PAREN_ORD.
116544         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
116545         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
116546         (REG_DEBUG): renamed from RE_DEBUG.
116547         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
116548         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
116549         unusual, since we can't clash with the POSIX REG_ICASE.
116550         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
116551         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
116552         (REG_NO_SUB): renamed from RE_NO_SUB.
116553         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
116554         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
116555         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
116556         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
116557         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
116558         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
116559         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
116560         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
116561         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
116562         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
116563         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
116564         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
116565         RE_SYNTAX_POSIX_MINIMAL_BASIC.
116566         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
116567         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
116568         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
116569         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
116570         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
116571         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
116572         (REG_FIXED): Renamed from REGS_FIXED.
116573         (REG_NREGS): Renamed from RE_NREGS.
116575         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
116576         of other REG_* macros, since POSIX says the user is allowed to
116577         #undef these macros selectively.
116579         (reg_errcode_t): Update comment stating what other tables need
116580         to be consistent.
116582         Rename the following enum values to obey POSIX requirements.
116583         The old names are still visible as macros.
116584         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
116585         is not defined, since GNU is supposed to be a superset of POSIX as
116586         much as possible, and since we want reg_errcode_t to be a signed
116587         type for implementation consistency.
116588         (_REG_NOERROR): Renamed from REG_NOERROR.
116589         (_REG_NOMATCH): Renamed from REG_NOMATCH.
116590         (_REG_BADPAT): Renamed from REG_BADPAT.
116591         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
116592         (_REG_ECTYPE): Renamed from REG_ECTYPE.
116593         (_REG_EESCAPE): Renamed from REG_EESCAPE.
116594         (_REG_ESUBREG): Renamed from REG_ESUBREG.
116595         (_REG_EBRACK): Renamed from REG_EBRACK.
116596         (_REG_EPAREN): Renamed from REG_EPAREN.
116597         (_REG_EBRACE): Renamed from REG_EBRACE.
116598         (_REG_BADBR): Renamed from REG_BADBR.
116599         (_REG_ERANGE): Renamed from REG_ERANGE.
116600         (_REG_ESPACE): Renamed from REG_ESPACE.
116601         (_REG_BADRPT): Renamed from REG_BADRPT.
116602         (_REG_EEND): Renamed from REG_EEND.
116603         (_REG_ESIZE): Renamed from REG_ESIZE.
116604         (_REG_ERPAREN): Renamed from REG_ERPAREN.
116605         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
116606         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
116607         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
116608         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
116610         (_REG_RE_NAME, _REG_RM_NAME): New macros.
116611         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
116612         changed.  But support the old name if the new one is not defined
116613         and if _REGEX_SOURCE.
116615         Change the following member names in struct re_pattern_buffer.
116616         The old names are still supported if !_REGEX_SOURCE.
116617         The new names are always supported, regardless of _REGEX_SOURCE.
116618         (re_buffer): Renamed from buffer.
116619         (re_allocated): Renamed from allocated.
116620         (re_used): Renamed from used.
116621         (re_syntax): Renamed from syntax.
116622         (re_fastmap): Renamed from fastmap.
116623         (re_translate): Renamed from translate.
116624         (re_can_be_null): Renamed from can_be_null.
116625         (re_regs_allocated): Renamed from regs_allocated.
116626         (re_fastmap_accurate): Renamed from fastmap_accurate.
116627         (re_no_sub): Renamed from no_sub.
116628         (re_not_bol): Renamed from not_bol.
116629         (re_not_eol): Renamed from not_eol.
116630         (re_newline_anchor): Renamed from newline_anchor.
116632         Change the following member names in struct re_registers.
116633         The old names are still supported if !_REGEX_SOURCE.
116634         The new names are always supported, regardless of _REGEX_SOURCE.
116635         (rm_num_regs): Renamed from num_regs.
116636         (rm_start): Renamed from start.
116637         (rm_end): Renamed from end.
116639         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
116640         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
116641         Prepend __ to parameter names.
116643         Undo yesterday's changes.
116645 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
116647         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
116648         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
116649         lib/regex.c.
116651 2005-08-24  Jim Meyering  <jim@meyering.net>
116653         Sync from coreutils.
116654         * m4/fcntl-safer.m4: New file.
116656         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
116657         and object files for this module.
116659 2005-08-24  Jim Meyering  <jim@meyering.net>
116661         Sync from coreutils.
116662         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
116664 2005-08-24  Jim Meyering  <jim@meyering.net>
116666         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
116667         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
116669 2005-08-24  Jim Meyering  <jim@meyering.net>
116671         * modules/fcntl-safer: New module.
116672         * modules/fts (Depends-on): Add fcntl-safer.
116673         * MODULES.html.sh (File descriptor based Input/Output):
116674         Add fcntl-safer.
116676 2005-08-24  Bruno Haible  <bruno@clisp.org>
116678         Support for unit test modules.
116679         * modules/README: Mention tests modules.
116680         * modules/TEMPLATE-TESTS: New file.
116681         * gnulib-tool: New options --extract-tests-module, --with-tests and
116682         --tests-base (unused for the moment).
116683         (testsbase, inctests): New variables.
116684         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
116685         (func_verify_module): Exclude TEMPLATE-TESTS.
116686         (func_verify_nontests_module, func_verify_tests_module): New functions.
116687         (func_get_dependencies): Add implicit dependency for tests modules.
116688         (func_get_tests_module): New function.
116689         (func_modules_transitive_closure): When --with-tests was specified,
116690         include the unit tests as well, unless explicitly avoided.
116691         (func_emit_lib_Makefile_am): Ignore the tests modules here.
116692         (func_emit_tests_Makefile_am): New function.
116693         (func_create_testdir): When --with-tests was specified, emit a
116694         tests/ directory.
116695         * MODULES.html.sh (Future developments): Update.
116697 2005-08-24  Bruno Haible  <bruno@clisp.org>
116699         * modules/tls-tests: New file.
116700         * tests/test-tls.c: New file, from GNU gettext.
116702 2005-08-24  Bruno Haible  <bruno@clisp.org>
116704         * modules/lock-tests: New file.
116705         * tests/test-lock.c: New file, from GNU gettext.
116707 2005-08-24  Bruno Haible  <bruno@clisp.org>
116709         * lib/lock.h: Add multiple inclusion guard.
116710         * lib/tls.h: Add multiple inclusion guard.
116712 2005-08-24  Bruno Haible  <bruno@clisp.org>
116714         * gnulib-tool: Add support for the --aux-dir option to
116715         --create-testdir, --create-megatestdir, --test, --megatest.
116716         (func_create_testdir, func_create_megatestdir): Optionally emit a
116717         AC_CONFIG_AUX_DIR directive.
116718         (create-testdir, create-megatestdir, test, megatest): Provide a
116719         default value for $auxdir.
116721 2005-08-24  Bruno Haible  <bruno@clisp.org>
116723         * gnulib-tool (import): Use compound statement instead of subshell
116724         where possible.
116726 2005-08-24  Bruno Haible  <bruno@clisp.org>
116728         * gnulib-tool (import): Change --aux-dir default to "build-aux".
116730 2005-08-24  Bruno Haible  <bruno@clisp.org>
116732         * gnulib-tool (func_version): Update.
116734 2005-08-24  Bruno Haible  <bruno@clisp.org>
116736         * gnulib-tool (func_import, func_create_testdir,
116737         func_create_megatestdir): Quote all autoconf macro arguments.
116739 2005-08-24  Bruno Haible  <bruno@clisp.org>
116741         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
116742         option --force, because --force causes the aclocal.m4 of each
116743         subdirectory to be newer than the corresponding config.h.in.
116745 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116747         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
116748         All contents moved to gl_REGEX.
116749         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
116750         assume that it does.
116752 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116754         * lib/regex.h (REG_NOSYS)
116755         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
116756         Define, since POSIX requires it as of 2001.
116757         (_REG_ENOSYS)
116758         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
116759         New private symbol, used to keep the enum signed in all cases.
116760         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
116761         Youngman in
116762         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
116764         * lib/regex_internal.c (re_string_skip_chars, register_state):
116765         (calc_state_hash):
116766         Remove forward decls; no longer needed now that we use prototypes.
116767         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
116768         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
116769         (clean_state_log_if_needed): Likewise.
116771 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
116773         * config/srclist.txt: Add glibc bugs 1231-1233.
116775 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116777         Fix problems reported by Sam Steingold in
116778         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
116779         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
116780         assumed that reg_errcode_t is a signed type, which is not
116781         necessarily true if _XOPEN_SOURCE is not defined.
116782         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
116783         since some compilers warn about it otherwise.
116785 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116787         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
116788         (init_word_char, create_initial_state, duplicate_node_closure):
116789         (fetch_token, peek_token_bracket, build_range_exp):
116790         (build_collating_symbol): Remove forward decls; no longer needed
116791         now that we use prototypes.
116793         * lib/regcomp.c:
116794         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
116795         (re_compile_fastmap_iter, regcomp, regerror, regfree):
116796         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
116797         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
116798         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
116799         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
116800         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
116801         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
116802         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
116803         (build_range_exp, build_collating_symbol, parse_bracket_exp):
116804         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
116805         (build_charclass, build_charclass_op, fetch_number, create_tree):
116806         (create_token_tree, mark_opt_subexp, duplicate_tree):
116807         Use prototypes rather than old-style definitions.
116809         * lib/regex_internal.c:
116810         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
116811         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
116812         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
116813         (re_string_reconstruct, re_string_peek_byte_case):
116814         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
116815         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
116816         (re_node_set_init_copy, re_node_set_add_intersect):
116817         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
116818         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
116819         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
116820         (re_acquire_state, re_acquire_state_context, register_state):
116821         (create_ci_newstate, create_cd_newstate, free_state):
116822         Likewise.
116823         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
116824         re_search_2):
116825         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
116826         (re_search_internal, prune_impossible_nodes):
116827         (acquire_init_state_context, check_matching, static):
116828         (check_halt_node_context, check_halt_state_context, proceed_next_node):
116829         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
116830         (update_regs, sift_states_backward, build_sifted_states):
116831         (clean_state_log_if_needed, merge_state_array):
116832         (update_cur_sifted_state, add_epsilon_src_nodes):
116833         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
116834         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
116835         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
116836         (find_recover_state, check_subexp_matching_top, transit_state_mb):
116837         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
116838         (check_arrival, check_arrival_add_next_nodes):
116839         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
116840         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
116841         (check_node_accept_bytes, check_node_accept, extend_buffers):
116842         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
116843         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
116844         (sift_ctx_init):
116845         Likewise.
116847         * lib/regex_internal.h:
116848         (re_string_allocate, re_string_construct, re_string_reconstruct):
116849         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
116850         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
116851         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
116852         (re_string_context_at, re_string_peek_byte_case):
116853         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
116854         is defined, since we now use prototypes always.
116856         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
116857         C89 or better.  All uses removed.
116859 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
116861         * config/srclist.txt: Add glibc bugs 1220-1227.
116863 2005-08-20  Jim Meyering  <jim@meyering.net>
116865         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
116866         of unused local, dfa.
116868 2005-08-20  Bruno Haible  <bruno@clisp.org>
116870         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
116872 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116874         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
116875         (re_node_set_insert_last, re_dfa_add_node):
116876         Rename local variables to avoid GCC shadowing warnings.
116878 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116880         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
116881         [defined lint]: Suppress bogus uninitialized-variable warnings.
116883         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
116884         and let the caller return REG_ESPACE if out of space.  This
116885         removes an uninitialied-variable warning with GCC 4.0.1, and also
116886         avoids taking the address of a local variable.  All callers
116887         changed.
116889 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
116891         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
116892         $LIBCSRC/posix/regexec.c.
116893         Add glibc bug 1217 for regcomp.c.
116895 2005-08-19  Jim Meyering  <jim@meyering.net>
116897         * lib/regexec.c (proceed_next_node): Redo local variables to
116898         avoid GCC shadowing warnings.
116900 2005-08-18  Bruno Haible  <bruno@clisp.org>
116902         * lib/strstr.c (strstr): Fix return value in multibyte case.
116903         * lib/strcasestr.c (strcasestr): Likewise.
116905 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
116907         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
116909 2005-08-17  Jim Meyering  <jim@meyering.net>
116911         Make the %s format (seconds since the epoch) work for a negative
116912         number and when used with a zero-padded field width, e.g. %015s.
116914         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
116915         label so that it precedes the code to set `digits'.  Otherwise,
116916         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
116917         print `00-22'.  Now, it prints `-0022', as it should.
116919 2005-08-17  Bruno Haible  <bruno@clisp.org>
116921         * modules/strstr (Files): Add m4/mbrtowc.m4.
116922         (Depends-on): Add mbuiter.
116924 2005-08-17  Bruno Haible  <bruno@clisp.org>
116926         * modules/strcasestr: New file.
116927         * MODULES.html.sh (String handling, based on ANSI C 89): Add
116928         strcasestr.
116930 2005-08-17  Bruno Haible  <bruno@clisp.org>
116932         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
116934 2005-08-17  Bruno Haible  <bruno@clisp.org>
116936         * modules/mbuiter: New file.
116937         * MODULES.html.sh (Extended multibyte and wide character utilities):
116938         Add mbuiter.
116940 2005-08-17  Bruno Haible  <bruno@clisp.org>
116942         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
116943         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
116945 2005-08-17  Bruno Haible  <bruno@clisp.org>
116947         * m4/strcasestr.m4: New file.
116949 2005-08-17  Bruno Haible  <bruno@clisp.org>
116951         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
116952         * lib/strstr.c: Completely rewritten, with multibyte locale support.
116954 2005-08-17  Bruno Haible  <bruno@clisp.org>
116956         * lib/strcasestr.h: New file.
116957         * lib/strcasestr.c: New file.
116959 2005-08-17  Bruno Haible  <bruno@clisp.org>
116961         * lib/strcasecmp.c: Use mbuiter.h.
116963 2005-08-17  Bruno Haible  <bruno@clisp.org>
116965         * lib/mbuiter.h: New file.
116967 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
116969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
116970         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
116971         and gl_GETOPT are both invoked via different paths (as happens
116972         with GNU tar CVS because it uses both argp and getopt), the former
116973         wins.
116975 2005-08-16  Bruno Haible  <bruno@clisp.org>
116977         * modules/tls: New file.
116978         * MODULES.html.sh (Multithreading): Add tls.
116980 2005-08-16  Bruno Haible  <bruno@clisp.org>
116982         * modules/strnlen1: New file.
116983         * MODULES.html.sh (String handling): Add strnlen1.
116985 2005-08-16  Bruno Haible  <bruno@clisp.org>
116987         * modules/strcase (Files): Add m4/mbrtowc.m4.
116988         (Depends-on): Add strnlen1, mbchar.
116990 2005-08-16  Bruno Haible  <bruno@clisp.org>
116992         * modules/mbiter: New file.
116993         * MODULES.html.sh (Extended multibyte and wide character utilities):
116994         Add mbiter.
116996 2005-08-16  Bruno Haible  <bruno@clisp.org>
116998         * modules/mbfile: New file.
116999         * MODULES.html.sh (Extended multibyte and wide character utilities):
117000         Add mbfile.
117002 2005-08-16  Bruno Haible  <bruno@clisp.org>
117004         * modules/mbchar: New file.
117005         * MODULES.html.sh (Extended multibyte and wide character utilities):
117006         New section.
117008 2005-08-16  Bruno Haible  <bruno@clisp.org>
117010         * m4/tls.m4: New file, from GNU gettext.
117012 2005-08-16  Bruno Haible  <bruno@clisp.org>
117014         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
117015         always.
117016         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
117018 2005-08-16  Bruno Haible  <bruno@clisp.org>
117020         * m4/mbiter.m4: New file.
117022 2005-08-16  Bruno Haible  <bruno@clisp.org>
117024         * m4/mbfile.m4: New file.
117026 2005-08-16  Bruno Haible  <bruno@clisp.org>
117028         * m4/mbchar.m4: New file.
117030 2005-08-16  Bruno Haible  <bruno@clisp.org>
117032         * lib/tls.h: New file, from GNU gettext.
117033         * lib/tls.c: New file, from GNU gettext.
117035 2005-08-16  Bruno Haible  <bruno@clisp.org>
117037         * lib/strnlen1.h: New file.
117038         * lib/strnlen1.c: New file.
117040 2005-08-16  Bruno Haible  <bruno@clisp.org>
117042         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
117043         (mbi_init): Update.
117044         (mbi_avail, mbi_advance): Let the iteration end before the terminating
117045         NUL byte, not after it.
117047 2005-08-16  Bruno Haible  <bruno@clisp.org>
117049         * lib/strcase.h (strcasecmp): Add note in comments.
117050         * lib/strncasecmp.c: Use code from strcasecmp.c.
117051         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
117052         (strcasecmp): Work correctly in multibyte locales.
117054 2005-08-16  Bruno Haible  <bruno@clisp.org>
117056         * lib/mbiter.h: New file.
117058 2005-08-16  Bruno Haible  <bruno@clisp.org>
117060         * lib/mbfile.h: New file.
117062 2005-08-16  Bruno Haible  <bruno@clisp.org>
117064         * lib/mbchar.h: New file.
117065         * lib/mbchar.c: New file.
117067 2005-08-16  Bruno Haible  <bruno@clisp.org>
117069         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
117070         the valid ones. Makes the comparison operations transitive:
117071         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
117072         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
117074 2005-08-15  Simon Josefsson  <jas@extundo.com>
117076         * modules/ssize_t (License): Change to 'unlimited'.
117078         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
117080 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
117082         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
117083         Add comments for each pending glibc patch.
117085 2005-08-15  Bruno Haible  <bruno@clisp.org>
117087         * lib/regex.h (__restrict_arr): Don't define to __restrict if
117088         __cplusplus is defined.
117090 2005-08-14  Jim Meyering  <jim@meyering.net>
117092         Sync from coreutils.
117094         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
117095         Use the hash-table-based cycle-detection code not just when
117096         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
117097         Reported by James Youngman in
117098         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
117099         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
117100         FTS_TIGHT_CYCLE_CHECK.
117101         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
117102         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
117103         once again.
117104         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
117105         * lib/fts.c (fd_safer): Remove decl.
117106         Include fcntl--.h rather than unistd-safer.h
117107         (fts_safe_changedir): Don't call fd_safer; no longer needed
117108         now that we include fcntl--.h.
117110 2005-08-12  Simon Josefsson  <jas@extundo.com>
117112         * modules/getndelim2: Use ssize_t module.
117113         * modules/getnline: Likewise.
117114         * modules/safe-read: Likewise.
117115         * modules/xreadlink: Likewise.
117117         * modules/ssize_t: New file.
117119 2005-08-12  Simon Josefsson  <jas@extundo.com>
117121         * m4/readline.m4: Look for termcap, curses or ncurses if required.
117123 2005-08-12  Simon Josefsson  <jas@extundo.com>
117125         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
117126         ssize_t.
117128 2005-08-12  Simon Josefsson  <jas@extundo.com>
117130         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
117131         readline, getdelim and check_version.
117132         (Support for systems lacking ISO C 99: Sizes of integer types):
117133         Add size_max.
117135 2005-08-12  Bruno Haible  <bruno@clisp.org>
117137         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
117139 2005-08-11  Simon Josefsson  <jas@extundo.com>
117141         * modules/readline: New file.
117143         * modules/strnlen (Files): Add strnlen.h.
117145 2005-08-11  Simon Josefsson  <jas@extundo.com>
117147         * m4/readline.m4: New file.
117149 2005-08-11  Simon Josefsson  <jas@extundo.com>
117151         * lib/readline.h, readline.c: New file.
117153 2005-08-11  Simon Josefsson  <jas@extundo.com>
117155         * doc/gnulib.texi (Initial import, Finishing touches): Mention
117156         gl_AVOID.
117158 2005-08-11  Bruno Haible  <bruno@clisp.org>
117160         * lib/strnlen.h (strnlen): Change parameter name to match comment.
117162 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
117164         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
117166 2005-08-10  Simon Josefsson  <jas@extundo.com>
117168         * tests/test-iconvme.c: New file.
117170 2005-08-10  Simon Josefsson  <jas@extundo.com>
117172         * m4/strnlen.m4: New file.
117174         * m4/strndup.m4: Don't check for strnlen declaration, done in
117175         strnlen.m4.
117177 2005-08-10  Simon Josefsson  <jas@extundo.com>
117179         * lib/strndup.c: Use strnlen.h.
117181         * lib/strnlen.h: New file.
117183 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
117185         * README: Typos.
117187 2005-08-02  Simon Josefsson  <jas@extundo.com>
117189         * modules/readline: New file.
117191 2005-08-02  Simon Josefsson  <jas@extundo.com>
117193         * modules/getdelim: New file.
117195         * modules/getline: Rewrite, don't use getndelim2.
117197 2005-08-02  Simon Josefsson  <jas@extundo.com>
117199         * m4/getline.m4: Separate out getdelim stuff into separate module.
117201         * m4/getdelim.m4: New file.
117203 2005-08-02  Simon Josefsson  <jas@extundo.com>
117205         * lib/getline.h, getline.c: Rewrite.
117207         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
117209 2005-07-31  Bruno Haible  <bruno@clisp.org>
117211         * lib/lock.h (gl_lock_initializer): New macro.
117212         (gl_lock_define_initialized): Use it.
117213         (gl_rwlock_initializer): New macro.
117214         (gl_rwlock_define_initialized): Use it.
117215         (gl_recursive_lock_initializer): New macro.
117216         (gl_recursive_lock_define_initialized): Use it.
117218 2005-07-30  Karl Berry  <karl@gnu.org>
117220         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
117221         Report from Ben Pfaff, regarding getopt.
117223 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
117225         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
117226         normal way.
117227         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
117228         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
117229         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
117230         (gl_GETOPT): Use the new macros.  Most of the implementation
117231         is moved to the new macros.  This is for programs like Emacs
117232         that don't want all the functionality of gl_GETOPT.
117234 2005-07-26  Bruno Haible  <bruno@clisp.org>
117236         * m4/lock.m4: Update from GNU gettext.
117238 2005-07-26  Bruno Haible  <bruno@clisp.org>
117240         * lib/lock.h: Update from GNU gettext.
117241         * lib/lock.c: Update from GNU gettext.
117243 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
117245         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
117246         obsolescent AC_TRY_RUN.  Include the default includes files, for
117247         'exit'.
117249 2005-07-24  Bruno Haible  <bruno@clisp.org>
117251         * modules/visibility: New file.
117252         * MODULES.html.sh (Misc): Add visibility.
117254 2005-07-24  Bruno Haible  <bruno@clisp.org>
117256         * m4/visibility.m4: New file.
117258 2005-07-24  Bruno Haible  <bruno@clisp.org>
117260         * doc/visibility.texi: New file.
117262 2005-07-22  Bruno Haible  <bruno@clisp.org>
117264         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
117265         $(ALLOCA_H), redundant through BUILT_SOURCES.
117266         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
117267         redundant through BUILT_SOURCES.
117268         * modules/byteswap (Makefile.am): Remove explicit dependency on
117269         $(BYTESWAP_H), redundant through BUILT_SOURCES.
117270         * modules/fnmatch (Makefile.am): Remove explicit dependency on
117271         $(FNMATCH_H), redundant through BUILT_SOURCES.
117272         * modules/getopt (Makefile.am): Remove explicit dependency on
117273         $(GETOPT_H), redundant through BUILT_SOURCES.
117274         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
117275         redundant through BUILT_SOURCES.
117276         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
117277         redundant through BUILT_SOURCES.
117278         * modules/stdbool (Makefile.am): Remove explicit dependency on
117279         $(STDBOOL_H), redundant through BUILT_SOURCES.
117280         * modules/stdint (Makefile.am): Remove explicit dependency on
117281         $(STDINT_H), redundant through BUILT_SOURCES.
117282         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
117283         Remove explicit dependency on $(SYSEXITS_H).
117284         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
117286 2005-07-18  Simon Josefsson  <jas@extundo.com>
117288         * lib/check-version.c (check_version): Accept identical versions too.
117290 2005-07-18  Bruno Haible  <bruno@clisp.org>
117292         * modules/lock: New file.
117293         * MODULES.html.sh (Multithreading): New section.
117295 2005-07-18  Bruno Haible  <bruno@clisp.org>
117297         * m4/lock.m4: New file, from GNU gettext.
117299 2005-07-18  Bruno Haible  <bruno@clisp.org>
117301         * lib/lock.h: New file, from GNU gettext.
117302         * lib/lock.c: New file, from GNU gettext.
117304 2005-07-18  Bruno Haible  <bruno@clisp.org>
117306         * lib/lock.h (gl_once_t): New type.
117307         (gl_once_define, gl_once): New macros.
117308         * lib/lock.c (fresh_once): New variable.
117309         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
117310         functions.
117312 2005-07-16  Simon Josefsson  <jas@extundo.com>
117314         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
117315         workaround, suggested by Bruno.
117317 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117319         * modules/xalloc (Depends-on): Add xalloc-die.
117320         * modules/xvasprintf (Depends-on): Add xalloc-die.
117322 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
117324         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
117325         with a minor change.
117327 2005-07-15  Bruno Haible  <bruno@clisp.org>
117329         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
117330         When using lib/poll.c, define poll as rpl_poll.
117332 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
117334         * modules/argp (Depends-on): Remove unlocked-io.
117336 2005-07-14  Derek Price  <derek@ximbiot.com>
117338         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
117339         for glob symlink bug.
117341 2005-07-14  Bruno Haible  <bruno@clisp.org>
117343         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
117344         Instead, test for *_unlocked function declarations directly.
117346 2005-07-11  Simon Josefsson  <jas@extundo.com>
117348         * modules/size_max: New file.
117350         * modules/xsize: Depend on size_max module for size_max.m4.
117352 2005-07-11  Simon Josefsson  <jas@extundo.com>
117354         * lib/size_max.h: New file.
117356 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
117358         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
117359         copyright symbol and the year.
117360         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
117361         (version_etc_va): Use parameterized copyright notice.
117362         Reword to conform to the current GNU coding standards.
117364 2005-07-11  Karl Berry  <karl@gnu.org>
117366         * doc/gnulib.texi (Quoting): new node.
117367         (Initial import): more info, from Patrice.
117369 2005-07-11  Bruno Haible  <bruno@clisp.org>
117371         * gnulib-tool (func_usage): Document option --avoid.
117372         (Command line options): Handle --avoid.
117373         (func_acceptable): New function.
117374         (func_modules_transitive_closure): Use it.
117376 2005-07-11  Bruno Haible  <bruno@clisp.org>
117378         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
117379         Reported by Jim Meyering.
117381 2005-07-10  Bruno Haible  <bruno@clisp.org>
117383         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
117384         Needed when size_t is smaller than 'unsigned int'.
117385         Reported by Paul Eggert.
117387 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117389         * modules/argp (Depends-on): Add unlocked-io
117391 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117393         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
117394         block of defines.
117396 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
117398         * config/srclist.txt: Comment out regcomp.c, since we have a porting
117399         fix now.
117401 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
117402         and Paul Eggert  <eggert@cs.ucla.edu>
117404         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
117405         in wint_t, not wchar_t.  Remove now-unnecessary cast.
117407 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117409         * modules/regex (Files): Add lib/regex_internal.c,
117410         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
117411         (Depends-on): Add extensions.
117412         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
117414 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117416         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
117417         pathconf.
117418         * m4/same.m4 (gl_SAME): Likewise.
117419         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
117421         * m4/regex.m4: Adjust to new libc regex implementation.
117422         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
117423         all the .c and .h parts of (the new) regex.
117424         Quote the m4 stuff better.
117425         Check for RE_ICASE bug of old gnulib.
117426         Check for REG_STARTEND of recent libc.
117427         Rename local variables from jm_* to gl_*.
117428         Quote operand of "test -f".
117429         Say "recent enough" version of libc, not "version 2".
117430         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
117431         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
117432         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
117433         Remove check for btowc, isascii.
117434         Require AM_LANGINFO_CODESET.
117436 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117438         * lib/regex.c, regex.h: Sync from libc.
117439         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
117440         * lib/regexec.c:
117441         New files, synced from libc, except that regex_internal.h
117442         currently has a small porting fix.
117444 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
117446         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
117447         regex_internal.c, regexec.c.
117448         Add regex_internal.h too, but as a comment, since the libc version
117449         is currently broken in gnulib mode.
117451 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
117453         Support programs like Emacs that use gnulib but not gettext.
117454         * MODULES.html.sh (Internationalization functions): Add gettext-h.
117455         * modules/gettext-h: New file.
117456         * modules/gettext (Files): Remove lib/gettext.h.
117457         (Depends-on): Add gettext-h.
117458         (Makefile.am): Remove lib_SOURCES.
117459         * modules/argmatch, modules/c-stack, modules/closeout:
117460         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
117461         * modules/execute, modules/file-type, modules/getaddrinfo:
117462         * modules/getopt, modules/human, modules/javacomp:
117463         * modules/javaexec, modules/mkdir-p, modules/obstack:
117464         * modules/openat, modules/pagealign_alloc, modules/pipe:
117465         * modules/quotearg, modules/regex, modules/rpmatch:
117466         * modules/unicodeio, modules/userspec, modules/version-etc:
117467         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
117468         * modules/xsetenv:
117469         Depend on gettext-h, not gettext.
117471 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
117473         * gnulib-tool (func_import): Add support for 'public domain' license.
117474         * modules/alloca, modules/atexit, modules/memmove:
117475         Now public domain, not GPL.
117476         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
117477         * modules/realloc, modules/strerror, modules/strtod:
117478         Now LGPL, not GPL.
117480 2005-07-05  Bruno Haible  <bruno@clisp.org>
117482         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
117483         autoconf CVS. Needed for mingw.
117485 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117487         Remove the dependency of the strftime module on the tzset module.
117488         * modules/strftime (Depends-on): Remove dependency on tzset.
117490 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117492         Remove the dependency of the strftime module on the tzset module.
117493         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
117494         gl_FUNC_TZSET_CLOBBER.
117496 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
117498         Remove the dependency of the strftime module on the tzset module.
117499         * lib/strftime.c (my_strftime)
117500         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
117501         Copy the input structure, to work around some of the bug with
117502         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
117503         Solaris releases, you should also use the tzset module, but we won't
117504         require it as a dependency any more since we don't want LGPLed code
117505         to depend on GPLed code.
117507 2005-07-02  Jim Meyering  <jim@meyering.net>
117509         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
117510         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
117511         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
117512         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
117514 2005-07-02  Jim Meyering  <jim@meyering.net>
117516         * lib/backupfile.c (backup_args): Change a `0' to NULL.
117518 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
117520         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
117521         declares only 'struct timespec;' (!).
117523 2005-07-01  Jim Meyering  <jim@meyering.net>
117525         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
117526         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
117527         * lib/save-cwd.c, tempname.c:
117528         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
117529         and don't include <sys/file.h>).
117531 2005-06-29  Jim Meyering  <jim@meyering.net>
117533         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
117534         type name.  Use the variable name instead.
117535         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
117536         Likewise.
117538 2005-06-28  Simon Josefsson  <jas@extundo.com>
117540         * modules/check-version (Files): Add check-version.m4.
117542 2005-06-28  Simon Josefsson  <jas@extundo.com>
117544         * m4/check-version.m4: New file, suggested by Jim Meyering
117545         <jim@meyering.net>.
117547 2005-06-28  Simon Josefsson  <jas@extundo.com>
117549         * lib/check-version.h, lib/check-version.c: New files.
117551 2005-06-28  Simon Josefsson  <jas@extundo.com>
117553         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
117554         collision with global variable.  Better indentation.  Don't
117555         increment buffer pointer beyond buffer end.  Based on comments
117556         from Paul Eggert <eggert@cs.ucla.edu>.
117558         * lib/base64.h: Indent.
117560 2005-06-28  Simon Josefsson  <jas@extundo.com>
117562         * doc/gnulib.texi (Library version handling): New section.
117564 2005-06-28  Jim Meyering  <jim@meyering.net>
117566         * check-module (find_included_lib_files): Hard-code another
117567         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
117568         but modules/fts-lgpl (correctly) does not list those files.
117570         * modules/canonicalize (Files): Add lib/pathmax.h.
117572 2005-06-25  Simon Josefsson  <jas@extundo.com>
117574         * modules/check-version: New file.
117576 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
117578         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
117579         initializer of struct addrinfo, as an indication that we don't
117580         care how many members the structure has.
117582 2005-06-24  Derek Price  <derek@ximbiot.com>
117583         and Bruno Haible  <bruno@clisp.org>
117585         Remove stat module & update lstat.
117586         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
117587         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117588         * m4/stat.m4: Remove this file.
117590 2005-06-24  Derek Price  <derek@ximbiot.com>
117591         and Bruno Haible  <bruno@clisp.org>
117593         Remove stat module & update lstat.
117594         * lib/stat.c: Remove this file...
117595         (slash_aware_lstat): ...moving this content and its support...
117596         * lib/lstat.c (rpl_lstat): ...into here.
117597         * lib/lstat.h: New file.
117599 2005-06-24  Derek Price  <derek@ximbiot.com>
117600         and Bruno Haible  <bruno@clisp.org>
117602         Remove stat module & update lstat.
117603         * config/srclist.txt (libc sources): Remove stat.
117605 2005-06-24  Derek Price  <derek@ximbiot.com>
117606         and Bruno Haible  <bruno@clisp.org>
117608         Remove stat module & update lstat.
117609         * MODULES.html.sh (stat): Remove.
117610         * MODULES.html: Regenerated.
117611         * modules/lstat (Description): Correct function name.
117612         (Files): Add "lstat.h".
117613         (Depends-on): Remove stat, add xalloc, stat-macros.
117614         * modules/stat: Remove this file.
117615         (Include): Add "lstat.h", remove <sys/stat.h>.
117617 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
117619         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
117620         (ranged_convert): Don't save conversion in a temporary struct.
117621         This causes a warning with GCC 4.0.0, and anyway in the typical
117622         case it's not worth the extra 100 bytes or so of code.
117623         (ranged_convert, __mktime_internal): When calling a function via a
117624         pointer P, use P () rather than (*P) (), as we now assume C89 or
117625         better.
117627 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
117629         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
117630         "who -r" failed to give output.  Problem reported by Tim Waugh.
117632         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
117633         (xcalloc): Use it to avoid needless tests.
117634         Problem reported by Jim Meyering.
117636 2005-06-20  Derek Price  <derek@ximbiot.com>
117638         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
117639         unnecessary for Autoconfs > 2.59c.
117641 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
117643         * lib/argp.h (__option_is_short): Check upper limit of
117644         __key. Isprint() requires its argument to have the value
117645         of an unsigned char or EOF.
117647 2005-06-16  Jim Meyering  <jim@meyering.net>
117649         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
117650         when either N or S is zero.
117652 2005-06-16  Derek Price  <derek@ximbiot.com>
117654         * m4/bison.m4: Declare YACC & YFLAGS precious.
117656 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
117658         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
117659         multibyte string or pattern, fall back on unibyte matching.
117660         Problem reported by James Youngman.
117662 2005-06-08  Bruno Haible  <bruno@clisp.org>
117664         * modules/csharpcomp: New file.
117665         * MODULES.html.sh (C#): Add csharpcomp.
117667 2005-06-08  Bruno Haible  <bruno@clisp.org>
117669         * m4/csharpcomp.m4: New file, from GNU gettext.
117671 2005-06-08  Bruno Haible  <bruno@clisp.org>
117673         * lib/csharpcomp.h: New file, from GNU gettext.
117674         * lib/csharpcomp.c: New file, from GNU gettext.
117675         * lib/csharpcomp.sh.in: New file, from GNU gettext.
117677 2005-06-08  Bruno Haible  <bruno@clisp.org>
117679         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
117680         warning on mingw.
117682 2005-06-07  Derek Price  <derek@ximbiot.com>
117684         Sync from CVS.
117685         * lib/glob_.h: Indent nested #ifdef.
117687 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117689         Sync from coreutils.
117690         Use "file name" when talking about file names, instead of "filename"
117691         or "path", as per the GNU coding standards.
117692         * lib/mkdir-p.c: Renamed from makepath.c.
117693         (make_dir_parents): Renamed from make_path.  All callers changed.
117694         * lib/mkdir-p.h: Likewise.  All includers changed.
117695         * lib/filenamecat.c: Renamed from path-concat.c.
117696         (file_name_concat): Renamed from path_concat.  All callers changed.
117697         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
117698         * lib/filenamecat.h: Likewise.  All includers changed.
117699         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
117700         in comments or local variable names.
117701         * lib/basename.c: Likewise.
117702         * lib/canonicalize.c, canonicalize.h: Likewise.
117703         * lib/dirname.c, dirname.h: Likewise.
117704         * lib/euidaccess.c: Likewise.
117705         * lib/exclude.c: Likewise
117706         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
117707         * lib/fsusage.c, fsuage.h: Likewise.
117708         * lib/fts.c, fts_.h: Likewise.
117709         * lib/getcwd.c: Likewise.
117710         * lib/getloadavg.c: Likewise.
117711         * lib/mkstemp.c: Likewise.
117712         * lib/mountlist.c, mountlist.h: Likewise.
117713         * lib/openat.c, openat.h: Likewise.
117714         * lib/readlink-stub.c: Likewise.
117715         * lib/readutmp.c, readutmp.h: Likewise.
117716         * lib/rename.c: Likewise.
117717         * lib/rmdir.c: Likewise.
117718         * lib/same.c: Likewise.
117719         * lib/savedir.c: Likewise.
117720         * lib/stripslash.c: Likewise.
117721         * lib/tempname.c: Likewise.
117722         * lib/xreadlink.c: Likewise.
117723         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
117724         All uses changed.
117725         * lib/exclude.h: Likewise.
117727         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
117728         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117729         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
117730         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117731         * lib/pathmax.h: Include <limits.h> unconditionally, since other
117732         files have been getting away with it for years (MORE/BSD 4.3
117733         is extinct now).
117734         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
117735         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
117737         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
117738         Define to 256, not 255, as per modern POSIX.
117740 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117742         Sync from coreutils.
117743         Use "file name" when talking about file names, instead of "filename"
117744         or "path", as per the GNU coding standards.
117745         * MODULES.html.sh: mkdir-p renamed from makepath.
117746         filenamecat renamed from path-concat.
117747         * modules/filenamecat: Renamed from modules/path-concat.
117748         (Files): filenamecat.h and filenamecat.c renamed from
117749         path-concat.h and path-concat.c.
117750         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
117751         (Include): filenamecat.h, not path-concat.h.
117752         * modules/mkdir-p: Renamed from modules/makepath.
117753         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
117754         makepath.c.
117755         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
117756         (Include): mkdir-p.h, not makepath.h.
117758 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
117760         Sync from coreutils.
117761         * m4/mkdir-p.m4: Renamed from makepath.m4.
117762         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
117763         Rename files from makepath.c to mkdir-p.c, and from
117764         makepath.h to mkdir-p.h.
117765         * m4/filenamecat.m4: Renamed from path-concat.m4.
117766         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
117767         Rename files from path-concat.c to filenamecat.c,
117768         and from path-concat.h to filenamecat.h.
117769         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
117770         "file name" in local variables or comments.
117771         * m4/rename.m4: Likewise.
117773 2005-06-01  Bruno Haible  <bruno@clisp.org>
117775         * modules/csharpexec: New file.
117776         * MODULES.html.sh (C#): New section.
117778 2005-06-01  Bruno Haible  <bruno@clisp.org>
117780         * m4/csharp.m4: New file, from GNU gettext.
117781         * m4/csharpexec.m4: New file, from GNU gettext.
117783 2005-06-01  Bruno Haible  <bruno@clisp.org>
117785         * lib/csharpexec.h: New file, from GNU gettext.
117786         * lib/csharpexec.c: New file, from GNU gettext.
117787         * lib/csharpexec.sh.in: New file, from GNU gettext.
117789 2005-05-31  Derek Price  <derek@ximbiot.com>
117790             Paul Eggert  <eggert@cs.ucla.edu>
117792         Sync from cvs.
117793         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117795 2005-05-31  Derek Price  <derek@ximbiot.com>
117796             Paul Eggert  <eggert@cs.ucla.edu>
117798         Sync from cvs.
117799         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
117801 2005-05-29  Derek Price  <derek@ximbiot.com>
117803         * config/srclist.txt (glob_.h, glob.c): Add these files.
117805 2005-05-29  Derek Price  <derek@ximbiot.com>
117807         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
117808         * modules/glob: New file.
117809         * modules/getlogin_r: Add link to POSIX spec in description.
117811 2005-05-29  Derek Price  <derek@ximbiot.com>
117812             Paul Eggert  <eggert@cs.ucla.edu>
117814         * m4/glob.m4: New file.
117816 2005-05-29  Derek Price  <derek@ximbiot.com>
117817             Paul Eggert  <eggert@cs.ucla.edu>
117819         * lib/glob_.h, lib/glob.c: New files.
117821 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117823         * modules/fts (Files): Remove m4/inttypes-pri.m4.
117824         * modules/fts-lgpl (Depends-on): Remove gettext.
117826 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117828         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
117829         and don't require gt_INTTYPES_PRI.
117831 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117833         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
117835         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
117836         the configuration hassle isn't worth it.
117837         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
117838         (LONGEST_MODIFIER, PRIuMAX): Remove.
117840 2005-05-27  Bruno Haible  <bruno@clisp.org>
117842         * lib/getlogin_r.h: Remove second include of <stddef.h>.
117844 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
117846         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
117847         _POSIX_PTHREAD_SEMANTICS for Solaris.
117849 2005-05-25  Derek Price  <derek@ximbiot.com>
117851         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
117853 2005-05-25  Derek Price  <derek@ximbiot.com>
117854             Paul Eggert  <eggert@cs.ucla.edu>
117856         * modules/getlogin_r, m4/getlogin_r.m4: New files.
117857         * lib/getlogin_r.c, getlogin_r.h: New files.
117859 2005-05-25  Bruno Haible  <bruno@clisp.org>
117860             Derek Price  <derek@ximbiot.com>
117862         * lib/getlogin_r.h: Simplify API documentation.
117864 2005-05-23  Derek Price  <derek@ximbiot.com>
117866         * modules/minmax (Files): Add m4/minmax.m4.
117867         (configure.ac): Add gl_MINMAX.
117869 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
117871         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
117872         so that unistd-safer.h (GPL'ed code) need not be included.
117874 2005-05-22  Bruno Haible  <bruno@clisp.org>
117876         * m4/minmax.m4: New file.
117877         Based on a patch by Derek Price <derek@ximbiot.com>.
117879 2005-05-22  Bruno Haible  <bruno@clisp.org>
117881         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
117882         (INT64_MIN): Fix definition.
117883         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
117885         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
117886         NEED_SIGNED_INT_TYPES.
117888         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
117889         HAVE_SYSTEM_INTTYPES.
117891 2005-05-22  Bruno Haible  <bruno@clisp.org>
117893         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
117894         Also include <sys/param.h> if it defines MIN, MAX.
117895         Based on a patch by Derek Price <derek@ximbiot.com>.
117897 2005-05-21  Jim Meyering  <jim@meyering.net>
117899         * modules/fts (Files): Add m4/inttypes-pri.m4.
117900         (Depends-on): Add lstat and remove gettext.  Alphabetize.
117902 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117904         New fts module.
117905         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
117906         (setup_dir, free_dir): New functions.
117907         (enter_dir, leave_dir): Define trivial
117908         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
117909         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
117910         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
117911         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
117912         Move to fts-cycle.c.
117913         (fts_open): Use setup_dir.
117914         (fts_close): Use free_dir.
117915         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
117916         This adds a label and some gotos, but the alternatives were messier.
117917         Check for memory allocation failure when entering a dir.
117918         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
117919         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
117920         (FTS): New member fts_cycle, that is a union that contains the
117921         old active_dir_ht and cycle_state.  All uses changed to mention
117922         fts_cycle.ht and fts_cycle.state.
117923         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
117924         fts.c, with the following changes:
117925         (setup_dir, free_dir): New functions.
117926         (enter_dir): Now returns bool.  Return true if successful, false
117927         if memory exhausted.  All callers changed.
117928         Do not bother partly cleaning up on
117929         memory allocation failure; that is free_dir's job.
117930         However, free ad if hash_insert fails, to avoid memory leak.
117931         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
117932         fts->fts_options to see which union member to use.
117934 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117936         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
117937         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
117939 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
117941         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
117943 2005-05-20  Jim Meyering  <jim@meyering.net>
117945         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
117946         Now a macro, to pacify GCC.
117948 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
117950         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
117951         of -1.
117953 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
117955         * lib/chown.c (rpl_chown): Return -1 on failure.
117957 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
117960         Don't check for stddef.h.
117961         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
117962         don't use its results.
117963         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
117964         since we include them unconditionally.  Don't require
117965         AM_STDBOOL_H, since stdbool is a prerequisite.
117966         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
117967         since we assume C89 or better.
117968         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
117969         as we don't use their results.
117970         Don't check for fchdir, memmove, memset, strrchr, as we use
117971         them unconditionally.
117972         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
117973         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
117975 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
117977         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
117978         Include <stddef.h> unconditionally, since we assume C89 now.
117979         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
117980         * lib/fts.c: Include fts_.h first, to check interface.
117981         Do not include intprops.h; no longer needed.
117982         Include cycle-check.h and hash.h, since fts_.h no longer does.
117983         Remove unnecessary casts of closedir to void.
117984         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
117985         decide whether to decrement nlinks.
117986         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
117987         (FTS): Use struct hash_table * instead of Hash_table, so that
117988         we no longer need to include hash.h here.
117990 2005-05-18  Jim Meyering  <jim@meyering.net>
117992         * modules/dirfd (License): Change to LGPL.  Most of the code
117993         is already in the public domain.
117995 2005-05-18  Jim Meyering  <jim@meyering.net>
117997         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
117998         Reported by Yoann Vandoorselaere.
118000 2005-05-17  Jim Meyering  <jim@meyering.net>
118002         * m4/fts.m4: New file, from coreutils.
118004 2005-05-17  Jim Meyering  <jim@meyering.net>
118006         * lib/fts.c, lib/fts_.h: New files, from coreutils.
118008 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118010         Sync from coreutils.
118011         * m4/unlinkdir.m4: New file.
118013 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118015         Sync from coreutils.
118016         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
118017         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
118018         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
118019         White space changes only.
118020         * lib/makepath.c (make_path): Port to hosts where leading "//" is
118021         special.
118022         * lib/yesno.c: Include getline.h, not ctype.h.
118023         (yesno): Don't remove leading white space; POSIX doesn't allow it.
118024         Use getline to remove arbitrary restriction on response length.
118026 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
118028         * config/srclist-update: Spell out "Street" in FSF postal
118029         mail address; this is the style the FSF seems to prefer.
118031         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
118032         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
118033         this updates FSF postal mail address.
118035         Sync from coreutils.
118036         * modules/unlinkdir: New file.
118037         * modules/yesno (Depends-on): Add getline.
118038         * MODULES.html.sh (File system functions): Add unlinkdir.
118040 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118042         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
118043         lib/strsep.h:
118044         Change the initial comment to refer to GPL, not LGPL.
118045         gnulib-tool will change it to LGPL as needed.
118047         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
118048         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
118049         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
118050         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
118051         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
118052         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
118053         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
118054         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
118055         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
118056         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
118057         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
118058         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
118059         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
118060         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
118061         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
118062         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
118063         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
118064         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
118065         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
118066         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
118067         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
118068         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
118069         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
118070         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
118071         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
118072         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
118073         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
118074         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
118075         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
118076         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
118077         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
118078         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
118079         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
118080         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
118081         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
118082         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
118083         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
118084         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
118085         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
118086         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
118087         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
118088         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
118089         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
118090         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
118091         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
118092         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
118093         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
118094         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
118095         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
118096         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
118097         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
118098         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
118099         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
118100         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
118101         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
118102         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
118103         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
118104         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
118105         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
118106         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
118107         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
118108         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
118109         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
118110         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
118111         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
118112         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
118113         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
118114         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
118115         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
118116         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
118117         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
118118         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
118119         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
118120         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
118121         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
118122         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
118123         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
118124         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
118125         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
118126         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
118127         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
118128         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
118129         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
118130         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
118131         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
118132         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
118133         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
118134         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
118135         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
118136         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
118137         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
118138         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
118139         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
118140         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
118141         lib/yesno.c, lib/yesno.h:
118142         Update FSF postal mail address.
118144 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
118146         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
118147         tests/test-memmem.c, tests/test-stpncpy.c:
118148         Update FSF postal mail address.
118150 2005-05-13  Bruno Haible  <bruno@clisp.org>
118152         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
118153         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
118154         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
118155         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
118156         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
118157         Add support for 64-bit integers in the MSVC compiler.
118159 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118161         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
118163 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
118165         * gnulib-tool (func_import): Sort and uniquify recommended includes.
118167 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
118169         * doc/getdate.texi (General date syntax): Don't say that date
118170         date --iso-8601=ns generates acceptable dates; it doesn't yet.
118171         Problem reported by Nic Ferrier.
118173 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118175         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
118176         specified in ai_socktype. Fix invalid ai_protocol
118177         check. ai_protocol is usually set to 0 or depending on
118178         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
118179         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
118180         ai_socktype / ai_protocol in the returned addrinfo structure.
118182 2005-05-10  Simon Josefsson  <jas@extundo.com>
118184         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
118185         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
118187 2005-05-10  Karl Berry  <karl@gnu.org>
118189         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
118190         (from http://www.gnu.org/licenses).
118191         * doc/COPYING.LIB: also rename to COPYING.LESSER.
118192         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
118193         fdl.texi suffices.
118195 2005-05-10  Karl Berry  <karl@gnu.org>
118197         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
118198         (COPYING.DOC): remove.
118200         * config/srclist-update: new FSF address.
118202 2005-05-10  Derek Price  <derek@ximbiot.com>
118204         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
118205         possible.
118207 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118208             Bruno Haible  <bruno@clisp.org>
118210         * modules/inet_ntop: New file.
118211         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118212         inet_ntop.
118214 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118215             Bruno Haible  <bruno@clisp.org>
118217         * m4/inet_ntop.m4: New file.
118219 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
118220             Bruno Haible  <bruno@clisp.org>
118222         * lib/inet_ntop.h: New file.
118223         * lib/inet_ntop.c: New file, from glibc with modifications.
118225 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
118227         * modules/time_r (License): Change to LGPL.
118228         * modules/extensions (License): Change to LGPL.  Actually,
118229         the license is more permissive than that, but currently gnulib-tool
118230         doesn't know how to handle more-permissive licenses.
118232         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
118233         Problem reported by Dave Love.
118235 2005-05-08  Jim Meyering  <jim@meyering.net>
118237         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
118238         blank.
118240 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
118242         * modules/argmatch (Depends-on): Add stdbool.
118243         * modules/backupfile (Depends-on): Likewise.
118244         * modules/chdir-long (Depends-on): Likewise.
118245         * modules/closeout (Depends-on): Likewise.
118246         * modules/cycle-check (Depends-on): Likewise.
118247         * modules/dirname (Depends-on): Likewise.
118248         * modules/fnmatch (Depends-on): Likewise.
118249         * modules/fsusage (Depends-on): Likewise.
118250         * modules/fwriteerror (Depends-on): Likewise.
118251         * modules/getcwd (Depends-on): Likewise.
118252         * modules/getloadavg (Depends-on): Likewise.
118253         * modules/hard-locale (Depends-on): Likewise.
118254         * modules/makepath (Depends-on): Likewise.
118255         * modules/mountlist (Depends-on): Likewise.
118256         * modules/nanosleep (Depends-on): Likewise.
118257         * modules/posixtm (Depends-on): Likewise.
118258         * modules/quotearg (Depends-on): Likewise.
118259         * modules/readtokens (Depends-on): Likewise.
118260         * modules/readtokens0 (Depends-on): Likewise.
118261         * modules/readutmp (Depends-on): Likewise.
118262         * modules/save-cwd (Depends-on): Likewise.
118263         * modules/strftime (Depends-on): Likewise.
118264         * modules/userspec (Depends-on): Likewise.
118265         * modules/utimecmp (Depends-on): Likewise.
118266         * modules/xgetcwd (Depends-on): Likewise.
118267         * modules/xnanosleep (Depends-on): Likewise.
118268         * modules/xstrtod (Depends-on): Likewise.
118269         * modules/yesno (Depends-on): Likewise.
118271 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
118273         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
118274         needless checks.
118276 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118278         Merge from coreutils.  Among other things,
118279         add bulletproofing for cases where stdin, stdout, or stderr are closed.
118280         * lib/fd-safer.c: New file.
118281         * lib/fcntl-safer.h, open-safer.c: Remove.
118282         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
118283         * lib/dup-safer.c: Include unistd-safer.h first.
118284         Don't include errno.h.
118285         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
118286         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
118287         * lib/file-type.c: Rely on file-type.h change.
118288         * lib/getloadavg.c: Include unistd-safer.h.
118289         (getloadavg): Use safer open.
118290         * lib/getusershell.c: Include "stdio-safer.h".
118291         (getusershell): Use safer fopen.
118292         * lib/long-options.c (long_options): Use NULL rather than 0.
118293         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
118294         'free'.
118295         * lib/modechange.c: Likewise.
118296         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
118297         (MODE_DONE): New constant.
118298         (struct mode_change): Remove 'next' member.
118299         (make_node_op_equals): New function; like the old one of the
118300         same name, except it allocates an array.
118301         (mode_compile, mode_create_from_ref): Use it.
118302         (mode_compile): Allocate result as an array, not a linked list.
118303         Parse octal string ourself, so that we catch mistakes like "+0".
118304         (mode_adjust): Arg is an array, not a linked list.
118305         * lib/modechange.c: Include stat-macros.h, xalloc.h.
118306         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
118307         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
118308         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
118309         Remove.  This is now stat-macros.h's job.
118310         (talloc): Remove.  All callers replaced by xalloc, so that
118311         our invokers don't have to worry about reporting memory failures.
118312         (make_node_op_equals): Remove.
118313         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118314         New constants.
118315         (struct mode_change): Moved here from modechange.h.
118316         (mode_append_entry): Remove.
118317         (mode_compile): Remove MASKED_OPS arg, since it encouraged
118318         apps to have incorrect behavior.  Use simpler algorithm for head
118319         and tail.  Don't futz with umask; that's now the job of mode_adjust.
118320         Detect more invalid usages rather than having somewhat-random behavior.
118321         Don't insert an "a=" action, as that leads to incorrect behavior.
118322         (mode_compile, mode_create_from_ref): Return NULL on error instead
118323         of an enum, since now there's only one way to have an error.  All
118324         callers changed.
118325         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
118326         at the correct time.  Simplify calculation of "+u" and its ilk.
118327         Don't mishandle "+X".
118328         (mode_free): Remove "register" and localize decls.
118329         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
118330         (struct mode_change): Move to modechange.c; callers don't
118331         need to see this stuff.
118332         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
118333         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
118334         (mode_change, mode_adjust): Reflect the new signatures noted above.
118335         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
118336         that might redefine system include files.
118337         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
118338         (my_usleep): Use NULL rather than (void *) 0.
118339         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
118340         Use siginterrupt to specify that system calls should be interrupted.
118341         (rpl_nanosleep): Move initialization of suspended closer to call of
118342         my_usleep.
118343         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
118344         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
118345         (desirable_utmp_entry): New function.
118346         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
118347         using x2nrealloc, to simplify logic.
118348         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
118349         size calculation.  Do not assume utmp file is a regular file.
118350         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
118351         (READ_UTMP_CHECK_PIDS): New constant.
118352         * lib/save-cwd.c: Include unistd-safer.h.
118353         (save_cwd): Use fd_safer.
118354         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
118355         [!_LIBC] Include "stat-macros.h" instead.
118356         * lib/unistd-safer.h (fd_safer): New decl.
118358 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118360         * modules/getloadavg (Depends-on): Add unistd-safer.
118361         * modules/getusershell (Depends-on): Add stdio-safer.
118362         * modules/lstat (Depends-on): Remove xalloc.
118363         * modules/mkstemp (Depends-on): Add stat-macros.
118364         * modules/modechange (Depends-on): Remove xstrtol.
118365         Add stat-macros, xalloc.
118366         * modules/save-cwd (Depends-on): Add unistd-safer.
118367         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
118368         * modules/unistd-safer (Files): Add lib/fd-safer.c
118369         (Makefile.am): Remove lib_SOURCES.
118371         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
118372         Remove fcntl-safer; unistd-safer supersedes it.
118374 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118376         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
118377         AC_HEADER_STAT.
118378         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
118379         (gl_PREREQ_CHOWN): Remove.
118380         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
118381         it.  Don't require AC_HEADER_STAT.
118382         (gl_PREREQ_LSTAT): Remove.
118383         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
118384         Don't require AC_HEADER_STAT.
118385         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
118386         (gl_PREREQ_RMDIR): Remove.
118387         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
118388         mention stat-macros.h or AC_HEADER_STAT, since we'll make
118389         the stat-macros module a prerequisite.
118390         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
118391         * m4/filemode.m4 (gl_FILEMODE): Likewise.
118392         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
118393         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
118394         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
118395         variable names.
118396         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
118397         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
118398         variable prefixes.
118399         * m4/fcntl-safer.m4: Remove.
118400         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
118401         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
118402         Invoke gl_PREREQ_FD_SAFER.
118403         (gl_PREREQ_FD_SAFER): New macro.
118404         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
118405         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
118406         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
118407         Remove duplicate call to AC_LIBOBJ(readutmp).
118408         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
118410         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
118411         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
118413 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
118415         * MODULES.html.sh (Misc): Add byteswap.
118417 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118419         * modules/getcwd (Depends-on): Add extensions.
118420         * modules/openat (Depends-on): Likewise.
118422 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118424         * modules/byteswap: New file.
118426 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118428         * m4/byteswap.m4: New file.
118430 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
118432         * lib/byteswap_.h: New file.
118434 2005-04-25  Karl Berry  <karl@gnu.org>
118436         * m4/gettext.m4: Update from GNU gettext 0.14.4.
118438 2005-04-25  Albert Chin  <china@thewrittenword.com>
118440         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
118441         Toolkit C bug.
118443 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
118445         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
118446         (func_ln_if_changed): Remove forcibly for no error message
118447         in case file does not exist.
118449 2005-04-19  Simon Josefsson  <jas@extundo.com>
118451         * gnulib-tool (Options): Make --symlink mean --symbolic.
118453 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
118455         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
118457 2005-04-16  Simon Josefsson  <jas@extundo.com>
118459         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
118461 2005-04-15  Simon Josefsson  <jas@extundo.com>
118463         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
118465 2005-04-15  Simon Josefsson  <jas@extundo.com>
118467         * gnulib-tool: Rename --symlink to --symbolic.
118469 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
118471         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
118472         symbolic links to files instead of copying/moving.  Add --aux-dir,
118473         specifying directory relative --dir where auxiliary build tools
118474         are placed.
118476 2005-04-14  Bruno Haible  <bruno@clisp.org>
118478         * modules/allocsa (License): Change to LGPL.
118479         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
118481 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
118483         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
118484         that "UTC +1 second" continues to work.  Problem reported
118485         by Dmitry V. Levin.
118486         (relunit_snumber): New rule.
118487         (relunit): Use it.
118489 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
118491         * lib/getdate.y (universal_time_zone_table): New constant.
118492         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
118493         universal_time_zone_table.
118494         (lookup_zone): Prefer universal_time_zone_table to
118495         local_time_zone_table, so that "GMT" time stamps are allowed in
118496         London during the summer.  Problem reported by Ian Abbott.
118498 2005-04-12  Jim Meyering  <jim@meyering.net>
118500         * lib/human.c (humblock): Set *options even when returning due to
118501         xstrtoumax conversion failure.  Thanks to a used-uninitialized
118502         warning from gcc-4.
118504 2005-04-09  Jim Meyering  <jim@meyering.net>
118506         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
118507         -Wuninitialized: initialize tm0.tm_year.
118509 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
118511         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
118512         count, since there's no maximum.  All uses changed.
118513         Add member dsts_seen.
118514         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
118515         not being INT_MAX.
118516         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
118517         Use pc_rels_seen to decide whether a date is absolute.
118519         * lib/getdate.y (number): Don't overwrite year.
118520         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
118521         check.
118523 2005-04-02  Simon Josefsson  <jas@extundo.com>
118525         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
118526         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
118528 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
118530         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
118531         where no absolute path name can be longer than PATH_MAX.
118533 2005-03-27  Jim Meyering  <jim@meyering.net>
118535         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
118537 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
118539         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
118540         "one's complement" -> "ones' complement" in comment, as per Knuth.
118541         "value of type" -> "type or expression" in comment.
118542         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
118544 2005-03-26  Jim Meyering  <jim@meyering.net>
118546         Comment nits.
118547         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
118548         Correct typos: s/or/of/.
118550 2005-03-26  Jim Meyering  <jim@meyering.net>
118552         * modules/check-include-files: Move to ../ and rename to...
118553         * check-module: ...this.
118555 2005-03-25  Jim Meyering  <jim@meyering.net>
118557         * modules/xvasprintf (Files): Add xalloc.h.
118559 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
118561         * modules/gettext (Files): config/config.rpath ->
118562         build-aux/config.rpath
118563         * modules/iconv (Files): Likewise.
118564         Problem reported by Oskar Liljeblad.
118566 2005-03-23  Jim Meyering  <jim@meyering.net>
118568         * modules/check-include-files: New script to check for
118569         missing dependencies, multiple includes, etc.
118571         * modules/c-strtold (Depends-on): Add xalloc.
118572         * modules/c-strtod (Depends-on): Add xalloc.
118573         * modules/hash (Depends-on): Add xalloc.
118574         (Files): Remove lib/xalloc.h.
118576         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
118577         * modules/userspec (Files): Add lib/inttostr.h.
118579 2005-03-23  Jim Meyering  <jim@meyering.net>
118581         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
118583 2005-03-22  Jim Meyering  <jim@meyering.net>
118585         * modules/stat-macros: New module.
118586         * modules/canonicalize, modules/euidaccess, modules/file-type,
118587         * modules/filemode, modules/lchown, modules/makepath,
118588         * modules/rmdir, modules/stat: Depend on new stat-macros module
118589         rather than listing lib/stat-macros.h manually.
118590         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
118592 2005-03-22  Jim Meyering  <jim@meyering.net>
118594         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
118596 2005-03-22  Bruno Haible  <bruno@clisp.org>
118598         * config/srclist.txt: Replace target directory 'config' with
118599         'build-aux'.
118600         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
118601         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
118602         ../build-aux/.
118604 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
118606         * modules/chdir-long (Depends-on): Add mempcpy.
118608         * modules/acl, modules/backupfile, modules/c-strtod,
118609         modules/c-strtold, modules/canon-host, modules/canonicalize,
118610         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
118611         modules/exclude, modules/exitfail, modules/file-type,
118612         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
118613         modules/getdate, modules/getline, modules/getpagesize,
118614         modules/getpass, modules/getugroups, modules/group-member,
118615         modules/hard-locale, modules/hash, modules/human, modules/idcache,
118616         modules/inttostr, modules/long-options, modules/makepath,
118617         modules/md5, modules/memcasecmp, modules/memcoll,
118618         modules/modechange, modules/mountlist, modules/path-concat,
118619         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
118620         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
118621         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
118622         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
118623         modules/strftime, modules/strndup, modules/strverscmp,
118624         modules/timespec, modules/unlocked-io, modules/userspec,
118625         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
118626         modules/yesno:
118627         Remove lib_SOURCES line from Makefile.am section, as this is now
118628         done automatically by the corresponding Autoconf macro.
118630 2005-03-21  Jim Meyering  <jim@meyering.net>
118632         Changes imported from coreutils.
118634         * lib/cycle-check.c: Don't include xalloc.h.
118636         * lib/path-concat.c: Don't include assert.h.
118637         (path_concat): Remove assertion that would have triggered
118638         for ABASE starting with more than one slash.
118639         Reported by Andreas Schwab.
118641         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
118642         properly when ABASE is an absolute file name.
118643         Correct the description of this function.
118644         Include <assert.h>.
118645         Add an assertion and a test driver.
118646         This fixes a bug introduced on 2004-07-02.
118647         Andreas Schwab reported the resulting failure of cp --parents:
118648         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
118650 2005-03-21  Jim Meyering  <jim@meyering.net>
118652         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
118653         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
118655 2005-03-21  Jim Meyering  <jim@meyering.net>
118656         and  Paul Eggert  <eggert@cs.ucla.edu>
118658         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
118659         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
118660         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
118661         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
118662         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
118663         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
118664         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
118665         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
118666         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
118667         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
118668         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
118669         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
118670         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
118671         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
118672         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
118673         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
118674         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
118675         for these modules.
118677 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
118679         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
118680         (which shouldn't happen), generate nothing instead of returning 0
118681         immediately, so that nstrftime (NULL, ...) doesn't return 0.
118683 2005-03-16  Bruno Haible  <bruno@clisp.org>
118685         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
118686         HAVE_LONGLONG_64BIT.
118688 2005-03-16  Bruno Haible  <bruno@clisp.org>
118690         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
118691         HAVE_LONGLONG_64BIT.
118693 2005-03-16  Bruno Haible  <bruno@clisp.org>
118695         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
118696         HAVE_LONGLONG_64BIT.
118698 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118700         * lib/strftime.c (my_strftime): Prepend space to format so that we can
118701         reliably distinguish strftime failure from empty output on POSIX
118702         hosts.
118704 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
118706         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
118707         (iconv_string): Don't guess a size-zero buffer, as that might cause
118708         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
118709         result would be 'too large', where 'too large' is (heuristically)
118710         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
118711         overflow concerns.  This will prevent some unwanted malloc failures
118712         when the inputs are very large.
118714 2005-03-15  Karl Berry  <karl@gnu.org>
118716         * config/srclist.txt (config.rpath): from gettext.
118717         * config/config.rpath: update.
118719 2005-03-15  Bruno Haible  <bruno@clisp.org>
118721         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
118722         to 'negate'.
118724         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
118725         variable.
118727         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
118728         results.
118730 2005-03-14  Simon Josefsson  <jas@extundo.com>
118732         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
118733         <fx@gnu.org>.
118735 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
118737         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
118738         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
118739         intprops.h.
118740         * lib/strtol.c: Likewise.
118742 2005-03-14  Jim Meyering  <jim@meyering.net>
118744         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
118745         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
118746         to be nonzero so that we (and caller) can detect the difference
118747         between a valid zero-length expansion and an error return, even
118748         when the underlying strftime fails before writing anything into
118749         that location.
118751 2005-03-14  Bruno Haible  <bruno@clisp.org>
118753         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
118754         Update from GNU gettext 0.14.3.
118756 2005-03-10  Jim Meyering  <jim@meyering.net>
118758         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
118760 2005-03-10  Jim Meyering  <jim@meyering.net>
118762         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
118763         so that this module works on systems without fchdir.
118765 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
118767         Factor int-properties macros into a single file, except for
118768         glibc-related files.
118769         * lib/intprops.h: New file.
118770         * lib/getloadavg.c: Include it instead of limits.h.
118771         (INT_STRLEN_BOUND): Remove.
118772         * lib/human.c: Include intprops.h.
118773         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
118774         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
118775         302/1000.
118776         * lib/inttostr.h: Include intprops.h instead of limits.h.
118777         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
118778         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
118779         for consistency with intprops.h.
118780         (time_t_is_integer, twos_complement_arithmetic): Use them.
118781         * lib/sig2str.h: Include <signal.h>, intprops.h.
118782         (INT_STRLEN_BOUND): Remove.
118783         * lib/strftime.c (TYPE_SIGNED): Remove.
118784         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
118785         * lib/strtol.c: Adjust comments to match intprops.h.
118786         * lib/userspec.c: Include intprops.h.
118787         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
118788         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
118789         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
118790         instead of rolling our own expressions.
118791         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
118793         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
118794         instead of int.
118795         (my_strftime): Do not mishandle years close to INT_MAX, by doing
118796         the right thing even if adding 1900 would overflow.  Similarly
118797         for tm_mon + 1 and tm_yday + 1.
118798         Make %Y always equivalent to %C%y, and similarly for %G and %g.
118799         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
118800         (DO_SIGNED_NUMBER): New macro.
118801         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
118803 2005-03-07  Bruno Haible  <bruno@clisp.org>
118805         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
118807 2005-03-07  Bruno Haible  <bruno@clisp.org>
118809         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
118811 2005-03-04  Derek R. Price  <derek@ximbiot.com>
118813         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
118814         (func_import): Only replace files via --import when they have actually
118815         changed.
118817 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118819         * m4/mmap-anon.m4: New file.
118820         * m4/pagealign_alloc.m4: New file.
118822 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118823             Bruno Haible  <bruno@clisp.org>
118825         * modules/pagealign_alloc: New file.
118826         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
118828 2005-03-03  Derek R. Price  <derek@ximbiot.com>
118829             Bruno Haible  <bruno@clisp.org>
118831         * lib/pagealign_alloc.h: New file.
118832         * lib/pagealign_alloc.c: New file.
118834 2005-03-03  Bruno Haible  <bruno@clisp.org>
118836         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
118837         Use an all-permissive copyright notice, recommended by RMS.
118839 2005-03-02  Bruno Haible  <bruno@clisp.org>
118841         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
118842         of AIX, the replacement has to be done only after <string.h> is
118843         included, therefore not in config.h. stpncpy.h does the replacement,
118844         and stpncpy.c uses it.
118846 2005-03-02  Bruno Haible  <bruno@clisp.org>
118848         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
118849         stpncpy.c uses it.
118851 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118853         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
118854         The workaround isn't strictly needed for POSIX conformance, and
118855         it's too much of a pain to configure and maintain.  We'll ask
118856         people to fix their kernels instead.
118857         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
118858         (NANOSLEEP_BUG_WORKAROUND): Remove.
118859         (xnanosleep): Remove the workaround.
118861 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118863         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
118864         Reported by Derek Price.
118865         (Include): Add "timespec.h".
118867         * modules/xnanosleep (Depends-on): Remove gethrxtime.
118869 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
118871         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
118872         to detect nanosleep bug.
118874 2005-03-01  Bruno Haible  <bruno@clisp.org>
118876         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
118878 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
118880         * modules/gethrxtime: New file.
118881         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
118882         (Depends-on): Add gethrxtime.
118883         (configure.ac): Add gl_XNANOSLEEP.
118884         (Makefile.am): Remove lib_SOURCES line.
118886 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118888         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
118889         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
118891 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
118893         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
118894         * lib/timespec.h (gettime): Return void, since it always
118895         succeeds now.  All uses changed.
118896         * lib/gettime.c (gettime): Likewise.
118897         [HAVE_NANOTIME]: Prefer nanotime.
118898         Assume gettimeofday succeeds, as POSIX requires.
118899         Assime time () succeeds, since other code already does.
118900         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
118901         (timespec_subtract): Remove.
118902         (NANOSLEEP_BUG_WORKAROUND): New constant.
118903         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
118904         things considerably.  Use it only on GNU/Linux hosts, since the
118905         workaround shouldn't be needed elsewhere.
118907 2005-02-24  Bruno Haible  <bruno@clisp.org>
118909         * modules/gettext (Files): Add m4/glibc2.m4.
118911 2005-02-24  Bruno Haible  <bruno@clisp.org>
118913         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
118914         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
118915         * m4/progtest.m4:
118916         Update from GNU gettext 0.14.2.
118917         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
118919 2005-02-24  Bruno Haible  <bruno@clisp.org>
118921         * lib/localcharset.c: Update from GNU gettext 0.14.2.
118922         * lib/config.charset: Update from GNU gettext 0.14.2.
118924 2005-02-24  Bruno Haible  <bruno@clisp.org>
118926         * lib/gettext.h: Update from GNU gettext 0.14.2.
118928 2005-02-23  Simon Josefsson  <jas@extundo.com>
118930         * m4/iconvme.m4: New file.
118932 2005-02-23  Jim Meyering  <jim@meyering.net>
118934         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
118935         change.
118936         Thanks to Bruno Haible for catching it.
118938 2005-02-22  Simon Josefsson  <jas@extundo.com>
118940         * modules/iconvme: New file.
118942         * MODULES.html.sh: Add iconvme.
118944 2005-02-22  Simon Josefsson  <jas@extundo.com>
118946         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
118948 2005-02-22  Simon Josefsson  <jas@extundo.com>
118950         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
118952 2005-02-22  Jim Meyering  <jim@meyering.net>
118954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
118955         s/ifndef/ifdef/.
118957 2005-02-20  Neil Conway  <neilc@samurai.com>
118959         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
118960         returned by OSX/Darwin if the specified buffer is not large
118961         enough for the hostname.
118963 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118965         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
118966         pass it to _help, otherwise the latter coredumps trying to
118967         dereference state.root_argp.
118969 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118971         * modules/chdir-long (Depends-on): Add memrchr.
118972         * modules/memrchr (Files): Add lib/memrchr.h.
118973         (Include): "memrchr.h".
118975 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118977         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
118979 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118981         * lib/memrchr.h: New file.
118982         * lib/chdir-long.c: Include it.
118983         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
118984         Don't bother including stddef.h.
118986 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
118988         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
118989         inclusion.
118990         Include <sys/types.h>, for dev_t.
118991         (ME_DUMMY, ME_REMOTE): Move from here....
118992         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
118993         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
118994         Dmitry V. Levin.
118995         Include mountlist.h first, to test the interface.
118997 2005-01-29  Bruno Haible  <bruno@clisp.org>
118999         * lib/progname.c (program_name): Initialize.
119000         Needed when linking statically on MacOS X.
119002 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119004         Sync from coreutils.
119005         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
119006         (Depends-on): Add c-strtod.
119007         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
119009 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
119011         Sync from coreutils.
119012         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
119014         Remove files that are specific to coreutils.
119015         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
119017 2005-01-28  Bruno Haible  <bruno@clisp.org>
119019         * modules/javacomp: New file.
119020         * MODULES.html.sh (Java): Add javacomp.
119022 2005-01-28  Bruno Haible  <bruno@clisp.org>
119024         * m4/javacomp.m4: New file, from GNU gettext.
119026 2005-01-28  Bruno Haible  <bruno@clisp.org>
119028         * lib/javacomp.sh.in: New file, from GNU gettext.
119029         * lib/javacomp.h: New file, from GNU gettext.
119030         * lib/javacomp.c: New file, from GNU gettext.
119032 2005-01-26  Simon Josefsson  <jas@extundo.com>
119034         * lib/gai_strerror.c: Use GPL in header.
119036 2005-01-26  Bruno Haible  <bruno@clisp.org>
119038         * modules/javaexec: New file.
119039         * MODULES.html.sh (Java): Add javaexec.
119041 2005-01-26  Bruno Haible  <bruno@clisp.org>
119043         * m4/javaexec.m4: New file, from GNU gettext.
119045 2005-01-26  Bruno Haible  <bruno@clisp.org>
119047         * lib/javaexec.sh.in: New file, from GNU gettext.
119048         * lib/javaexec.h: New file, from GNU gettext.
119049         * lib/javaexec.c: New file, from GNU gettext.
119051 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119053         * modules/lchown (Depends-on): Remove lchown.h
119055 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119057         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
119058         must be defined if the header file was not found, in order
119059         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
119061 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119063         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
119064         initializers for struct pentry_state.
119065         (__argp_error): Check return value of __asprintf
119066         (__argp_failure): Translate error message
119068         * lib/argp-parse.c: Removed braces around the expansion of N_()
119070 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
119072         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
119073         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
119074         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
119075         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
119076         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
119077         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
119078         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
119079         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
119080         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
119081         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
119082         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
119083         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
119084         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
119085         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
119086         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
119087         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
119088         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
119089         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
119090         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
119091         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
119092         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
119093         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
119094         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
119095         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
119096         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
119097         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
119098         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
119099         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
119100         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
119101         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
119102         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
119103         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
119104         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
119105         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
119106         xstrtol.m4, xstrtoumax.m4, yesno.m4:
119107         Use an all-permissive copyright notice, recommended by RMS.
119109 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
119111         * modules/chdir-long (Depends-on): Remove mempcpy.
119113 2005-01-21  Jim Meyering  <jim@meyering.net>
119115         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
119116         same value as for Solaris 9.
119118         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
119119         component length.  This included changing the parameter to be
119120         of type `char *' rather than `char const *'.
119121         * lib/chdir-long.h (chdir_long): Update prototype.
119123         * lib/openat.c (fdopendir, fstatat): New functions.
119124         * lib/openat.h: Include headers required for use of DIR and struct
119125         stat.
119126         [AT_SYMLINK_NOFOLLOW]: Define.
119127         (fdopendir, fstatat): Add prototypes.
119129 2005-01-21  Bruno Haible  <bruno@clisp.org>
119131         * modules/classpath: New file.
119132         * MODULES.html.sh (Java): Add classpath.
119134 2005-01-21  Bruno Haible  <bruno@clisp.org>
119136         * lib/classpath.h: New file, from GNU gettext.
119137         * lib/classpath.c: New file, from GNU gettext.
119139 2005-01-20  Simon Josefsson  <jas@extundo.com>
119141         * modules/version-etc-fsf: New file.
119143 2005-01-20  Simon Josefsson  <jas@extundo.com>
119145         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
119146         * lib/version-etc.c: Remove version_etc_copyright.
119147         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
119148         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
119150 2005-01-20  Simon Josefsson  <jas@extundo.com>
119152         * lib/base64.h (isbase64): Add.
119154         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
119155         using a unsigned prototype, don't inline.
119156         (base64_decode): Use it.
119158 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119160         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
119161         it.
119163 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119165         * lib/save-cwd.c (save_cwd): Remove code to support the case
119166         where fchdir is missing or flaky.
119168 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
119170         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
119172 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
119174         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
119175         AC_LIBSOURCES now does this.
119176         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
119177         with new ullong_max module.
119179 2005-01-19  Bruno Haible  <bruno@clisp.org>
119181         * modules/sh-quote: New file.
119182         * MODULES.html.sh (Executing programs): Add sh-quote.
119184 2005-01-19  Bruno Haible  <bruno@clisp.org>
119186         * lib/sh-quote.h: New file, from GNU gettext.
119187         * lib/sh-quote.c: New file, from GNU gettext.
119189 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119191         Merge from coreutils.
119192         * m4/ullong_max.m4: New file.
119193         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
119194         (gl_MACROS): Assume localeconv exists.
119196 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119198         Merge changes from coreutils, as described below in several
119199         changelogs dated today.
119201         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
119202         (O_DIRECTORY): Remove; not needed here, since "." must be
119203         a directory.  All uses removed.
119204         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
119205         universal on Suns, and we also need to test for IRIX.
119206         Revamp code to use 'if' rather than '#if'.
119207         Avoid unnecessary comparison of cwd->desc to 0.
119209         * lib/utimens.c (futimens): Robustify the previous patch, by checking
119210         for known valid error numbers rather than observed invalid ones.
119212 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
119214         * modules/ullong_max: New file.
119216         * modules/chdir-long, modules/openat: New files.
119217         * modules/save-cwd (Depends-on): Depend on chdir-long.
119218         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
119220 2005-01-18  Jim Meyering  <jim@meyering.net>
119222         Merge from coreutils.
119223         * m4/chdir-long.m4, m4/openat.m4: New files.
119224         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
119225         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
119226         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
119227         is sane and DOES follow symlinks.  Besides, testing 20 different
119228         systems found no broken chown implementations.
119229         Prompted by a change in rsync's copy of this macro.
119230         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
119232         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
119234         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
119235         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
119236         NULL-means-set-to-current-time semantics.
119237         Remove temporary file immediately, rather than waiting
119238         for configure's at-exit trap code to do it.
119240 2005-01-18  Jim Meyering  <jim@meyering.net>
119242         * lib/version-etc.c (version_etc_copyright): Update copyright date.
119244         * lib/utimens.c (futimens): Account for the fact that futimes
119245         can also fail with errno == ENOSYS or errno == ENOENT.
119246         Patch from Dmitry V. Levin.
119248         Change the name of the robust chdir function from chdir to chdir_long.
119249         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
119250         (restore_cwd): Use chdir_long, not chdir.
119251         * lib/chdir-long.c: Renamed from chdir.c.
119252         * lib/chdir-long.h: Renamed from chdir.h.
119253         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
119254         Hurd.
119256 2005-01-18  Bruno Haible  <bruno@clisp.org>
119258         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
119259         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
119260         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
119261         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
119262         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
119263         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
119264         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
119265         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
119266         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
119267         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
119268         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
119269         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
119270         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
119271         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
119272         Use an all-permissive copyright notice, recommended by RMS.
119274 2005-01-18  Bob Proulx  <bob@proulx.com>
119276         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
119277         simplify offsetof() macro construct to avoid compile failure with
119278         native HP-UX 11.0 ANSI C compiler.
119280 2005-01-17  Bruno Haible  <bruno@clisp.org>
119282         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
119283         redundant because stpncpy.m4 takes care of it.
119285 2005-01-17  Bruno Haible  <bruno@clisp.org>
119287         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
119289 2005-01-17  Bruno Haible  <bruno@clisp.org>
119291         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
119292         used.
119294 2005-01-17  Bruno Haible  <bruno@clisp.org>
119296         * lib/fwriteerror.h (fwriteerror): Change specification to include
119297         fclose.
119298         * lib/fwriteerror.c: Include <stdbool.h>.
119299         (fwriteerror): At the end, close the file stream. Record whether
119300         stdout was already closed.
119302 2005-01-17  Bruno Haible  <bruno@clisp.org>
119304         * lib/execute.c (environ): Declare if needed.
119305         * lib/pipe.c (environ): Likewise.
119306         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
119308 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119310         * modules/argp: Depend on vsnprintf
119312 2005-01-10  Jim Meyering  <jim@meyering.net>
119314         * modules/closeout (Depends-on): Add atexit.
119316 2005-01-06  Bruno Haible  <bruno@clisp.org>
119318         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
119320 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
119322         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
119323         definitions to be after all include files, to avoid collisions.
119324         Problem reported by Bob Proulx.
119326 2005-01-04  Jim Meyering  <jim@meyering.net>
119328         Changes imported from coreutils.
119329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
119330         as the mkstemp template, use a temporary directory and an
119331         8.3-friendly template to avoid trouble on systems like DJGPP.
119332         Reported by Juan M. Guerrero via Stepan Kasal.
119333         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
119334         close. Remove the temporary directory right away, rather than waiting
119335         for configure's at-exit trap code to do it.
119336         Suggestion from Stepan Kasal.
119338 2005-01-01  Simon Josefsson  <jas@extundo.com>
119340         * gnulib-tool: Print #include directives when --import'ing.
119342 2004-12-28  Simon Josefsson  <jas@extundo.com>
119344         * tests/test-base64.c: Include required header files.  Remove
119345         unused variables.
119347 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119349         * modules/error (Depends-on): Remove gettext.
119351 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
119353         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
119354         not needed.  This removes a dependency on the gettext module.
119355         [defined _LIBC]: Do not include <libintl.h>; not needed.
119357 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119359         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
119360         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
119362 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
119364         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
119365         HAVE_DECL_STRTOLD.
119367 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119369         * modules/getdate (Depends-on): Remove alloca-opt.
119371 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119373         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
119375 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
119377         * lib/argp-parse.c: Include <stddef.h>.
119378         (alignof, alignto): New macros.
119379         (parser_init): Don't assume that void * is aligned sufficiently
119380         for struct option.
119382         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
119383         need to extend the stack.
119384         (YYINITDEPTH): New macro, so that the initial stack isn't overly
119385         large.
119387 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119389         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
119391 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119393         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
119394         (2004-10-24) change.  Apparently this was a false alarm.
119396         * modules/getdate: Depend on alloca-opt, not alloca.
119398 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
119400         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
119401         Remove now-obsolete comment about AIX.
119402         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
119403         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
119404         (YYMAXDEPTH): New macro.
119406 2004-12-18  Simon Josefsson  <jas@extundo.com>
119408         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
119410 2004-12-18  Bruno Haible  <bruno@clisp.org>
119412         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
119414 2004-12-18  Bruno Haible  <bruno@clisp.org>
119416         * lib/fatal-signal.c (fatal_signals): Make non-const.
119417         (init_fatal_signals): New function.
119418         (uninstall_handlers, install_handlers): Ignore signals that were set to
119419         SIG_IGN.
119420         (at_fatal_signal): Call init_fatal_signals.
119421         (init_fatal_signal_set): Likewise. Ignore signals that were set to
119422         SIG_IGN.
119423         Reported by Paul Eggert.
119425 2004-12-18  Bruno Haible  <bruno@clisp.org>
119427         * doc/alloca.texi: New file.
119428         * doc/alloca-opt.texi: New file.
119430 2004-12-17  Jim Meyering  <jim@meyering.net>
119432         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
119433         Otherwise, install-sh could exit with improper exit status when
119434         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
119436 2004-12-16  Simon Josefsson  <jas@extundo.com>
119438         * tests/test-base64.c: Add license.
119440 2004-12-15  Stepan Kasal  <address@hidden>
119442         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
119444 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
119446         * modules/getcwd (Files): Add m4/d-ino.m4.
119447         Suggested by Mark D. Baushke.
119449 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119451         * lib/getdate.y (textint): New member "negative".
119452         (time_zone_hhmm): New function.
119453         Expect 14 shift-reduce conflicts, not 13.
119454         (o_colon_minutes): New rule.
119455         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
119456         (yylex): Set the "negative" member of signed numbers.
119458 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
119460         * doc/getdate.texi (Time of day items, Time zone items):
119461         Describe new formats +00:00, UTC+00:00.
119463 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
119465         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
119466         spurious "-l"s.  Problem reported by Stepan Kasal.
119468 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
119470         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
119471         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
119473 2004-12-04  Simon Josefsson  <jas@extundo.com>
119475         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
119476         Vandoorselaere <yoann@prelude-ids.org>.
119478 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119480         Changes imported from coreutils.
119481         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
119482         exist.
119483         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
119485 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119487         Changes imported from coreutils.
119488         * lib/hard-locale.c: Assume <locale.h> exists.
119489         Include "strdup.h".
119490         (GLIBC_VERSION): New macro.
119491         (hard_locale): Assume setlocale exists.
119492         Rewrite to avoid #ifdef.
119493         Use strdup rather than malloc + strcpy.
119494         * lib/human.c: Assume <locale.h> exists.
119495         (human_readable): Assume localeconv exists.
119497 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
119499         * modules/hard-locale (Depends-on): Add strdup.
119501 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
119503         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
119504         convert T2, not T.  (Imported from libc.)
119506 2004-11-30  Simon Josefsson  <jas@extundo.com>
119508         * modules/restrict (License): Change to LGPL.
119510 2004-11-30  Simon Josefsson  <jas@extundo.com>
119512         * m4/restrict.m4: Add copyright and copying conditions.
119514 2004-11-30  Simon Josefsson  <jas@extundo.com>
119516         * m4/base64.m4: New file.
119518 2004-11-30  Simon Josefsson  <jas@extundo.com>
119520         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
119521         base64.
119523         * tests/test-base64.c: New file.
119525         * modules/base64: New file.
119527 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119529         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
119530         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
119532         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
119534 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
119536         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
119537         (__getcwd.c): Don't restore errno; glibc doesn't.
119538         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
119539         first, falling back to our code only if its results look suspicious.
119540         Ensure that the resulting buffer is only as large as necessary.
119542         * lib/readutmp.c: Include readutmp.h first.
119543         Include <errno.h>, since readutmp.h no longer does that.
119544         * lib/readutmp.h: Don't include <errno.h>,
119545         <sys/param.h>, <time.h>; not needed to establish interface.
119546         (errno): Remove decl.
119547         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
119548         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
119549         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
119551 2004-11-28  Simon Josefsson  <jas@extundo.com>
119553         * lib/base64.h, base64.c: New file.
119555 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
119557         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
119559 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
119561         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
119562         (Depends-on): Remove pathmax, same.  Add mempcpy.
119563         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
119564         (Makefile.am): Append getcwd.h to lib_SOURCES.
119565         (Include): Add getcwd.h.
119566         (Maintainer): Change from Jim Meyering to "all, glibc",
119567         since getdate now uses intended-for-glibc code.
119568         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
119569         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
119571 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119573         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
119574         HP's ANSI C compiler.
119575         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
119576         Declaring int functions causes warnings on some modern systems and
119577         shouldn't be needed to compile on ancient ones.
119578         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
119579         defined.
119581         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
119582         with the following changes.
119583         (__set_errno): Parenthesize properly.
119584         Include <stdbool.h>.
119585         (MIN, MAX, MATCHING_INO): New macros.
119586         (__getcwd): Define with prototype, not K&R form.
119587         Use heuristics to allocate default buffer on stack if possible.
119588         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
119589         behavior, and to avoid the PATH_MAX limit when computing
119590         ../../../../...
119591         Use MATCHING_INO to compare inode number to file.
119592         Check for arithmetic overflow in size calculations.
119593         Fix bug in reallocation of dot array that caused getcwd to fail
119594         on directories nested deeper than 75.
119595         Be more careful about saving errno on error.
119596         Do not use realloc; use only free+malloc, as this is a bit
119597         more flexible and avoids a needless copy operation.
119598         Do not inspect st_dev and st_ino for symbolic links; POSIX
119599         doesn't specify the latter.
119600         Check for closedir errors.
119601         Avoid needless casts.
119602         Use "#ifdef weak_alias" around weak_alias, to be like other
119603         glibc code.
119604         The following changes to getcwd.c have effect only when used in
119605         gnulib; they have no effect inside glibc proper.
119606         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
119607         as alloca isn't used.
119608         (alloca, __alloca): Likewise.
119609         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
119610         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
119611         unconditionally, as gnulib assumes C89 or better.
119612         Do not include <sys/param.h>.
119613         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
119614         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
119615         better.
119616         (NULL) [!defined NULL]: Remove; we assume C89 or better.
119617         Include <dirent.h> in a way that is compatible with modern Autoconf.
119618         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
119619         New macros, if not already defined.
119620         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
119621         Use "_LIBC", not "defined _LIBC", for consistency.
119622         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
119623         a mempcpy module.
119624         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
119625         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
119626         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
119627         credit only to Jim Meyering and adjust the copyright dates.
119628         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
119629         <stdlib.h>, <unistd.h>, "pathmax.h".
119630         Instead, include "xgetcwd.h" (first) and "getcwd.h".
119631         (INITIAL_BUFFER_SIZE): Remove.
119632         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
119634 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
119636         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
119637         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
119638         Use the _ONCE methods, for efficiency.
119639         Check for fcntl.h.  In test program, include <errno.h>
119640         and <fcntl.h> if available.  Remove old K&R cruft from
119641         test program.  Check for common errors in GNU/Linux,
119642         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
119643         don't do AC_LIBOBJ, as that's getcwd.m4's job.
119644         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
119645         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
119646         name accordingly.
119647         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
119648         accommodate new getcwd.c.
119649         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
119650         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
119651         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
119652         that's all we need now.
119654 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119656         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
119657         argp-parse.c depends on getopt internals, that means we should
119658         always use our getopt, to be on the safe side.
119659         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
119660         order not to spoil the result of an eventual previous invocation
119661         of gl_GETOPT_SUBSTITUTE.
119663 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119665         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
119666         redefinition warnings. To avoid them, include the defines
119667         in `#if !defined __need_getopt ... #endif'. The only place
119668         where __getopt_argv_const is used is in definitions
119669         of getopt_long and getopt_long_only below, which are as well
119670         protected by `#ifndef __need_getopt'.
119671         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
119672         __need_getopt after including <stdio.h> and <unistd.h> These
119673         headers might have defined it.
119675 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119677         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
119679 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
119681         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
119682         (futimens): New function, which uses futimes if available.
119683         (futimens, utimens): Support timespec==NULL, with same semantics
119684         as utime and utimens.
119685         * lib/utimens.h (futimens): New decl.
119687 2004-11-23  Jim Meyering  <jim@meyering.net>
119689         * lib/getopt_.h: Remove trailing blanks.
119691 2004-11-23  Jim Meyering  <jim@meyering.net>
119693         * lib/__fpending.c: Add comment.
119695 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
119697         * modules/canonicalize (Depends-on): Add xreadlink.
119698         Problem reported by James Youngman.
119700 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
119702         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
119703         New macros.
119704         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
119705         optopt): Use them instead of invoking ## directly; otherwise, the
119706         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
119708 2004-11-19  Bruno Haible  <bruno@clisp.org>
119710         * lib/strtok_r.c: Move comments from here...
119711         * lib/strtok_r.h: ... to here.
119713 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119715         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
119716         implementations that mishandle size_t overflow.
119718 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
119720         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
119721         might fail.  Problem reported by Yoann Vandoorselaere.
119722         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
119723         implementations that mishandle size_t overflow.
119725 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119727         * modules/canon-host (Depends-on): Add strdup.
119729 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119731         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
119733 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119735         * lib/canon-host.c: Include "strdup.h".
119736         (canon_host): Use getaddrinfo if available, so that IPv6 works.
119737         Use strdup instead of malloc/strcpy to duplicate strings.
119739         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
119740         (human_space_before_unit): New constant.
119741         * lib/human.c (human_readable): Support it.
119743         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
119744         (xgetcwd): Set errno correctly when failing.
119745         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
119746         the failure is actually due to a PATH_MAX problem.
119748         Further getopt changes to make it more likely that glibc will
119749         buy the changes back.
119750         * lib/getopt.c (POSIXLY_CORRECT): New constant.
119751         (getopt): Use it, so to preserve glibc semantic
119752         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
119753         when compiling for libc.
119754         * lib/getopt_.h (__getopt_argv_const): Bring it back.
119755         (getopt_long, getopt_long_only): Use it.
119757         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119758         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
119759         (getopt): Argv is now char * const *, as per standard.
119760         (_getopt_internal_r, _getopt_internal): Argv is now char **,
119761         not char *__getopt_argv_const *.
119762         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119763         _getopt_long_only_r): Likewise.
119764         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
119765         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119766         _getopt_long_r, _getopt_long_only_r): Likewise.
119767         * lib/getopt_.h (__getopt_argv_const): Remove.
119768         (getopt): Argv is now char * const *, as per standard.
119770         * lib/getdate.y (tORDINAL): New token.
119771         (day, relunit): Allow it for relative times.
119772         (relative_time_table): Use tORDINAL for ordinals.
119774 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
119776         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
119777         Document that "second" isn't allowed as an ordinal number.
119779 2004-11-16  Jim Meyering  <jim@meyering.net>
119781         * modules/closeout (Depends-on): Add fpending.
119783 2004-11-15  Jim Meyering  <jim@meyering.net>
119785         * lib/closeout.c: Include "__fpending.h" once again.
119786         Include <stdbool.h>.
119787         (close_stdout): Don't fail just because stdout was closed initially,
119788         since some programs don't write to stdout in the normal course of
119789         operation (other than --version and --help), and we don't want this
119790         function to make e.g. `touch file >&-' fail.
119791         But do fail if it was closed and someone has tried to write to it.
119792         E.g., `printf foo >&-' must fail.
119794 2004-11-13  Jim Meyering  <jim@meyering.net>
119796         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
119798 2004-11-12  Simon Josefsson  <jas@extundo.com>
119800         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
119801         small doc fix is still pending.
119803 2004-11-11  Simon Josefsson  <jas@extundo.com>
119805         * modules/strtok_r: New file.
119807         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119808         strtok_r.
119810 2004-11-11  Simon Josefsson  <jas@extundo.com>
119812         * m4/strtok_r.m4: New file.
119814         * m4/getopt.m4: Replace opterr.
119816 2004-11-11  Simon Josefsson  <jas@extundo.com>
119818         * lib/strtok_r.h, strtok_r.c: New file.
119820 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119822         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
119823         of replacing opterr, getopt, etc.  This should handle the
119824         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
119826 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
119828         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
119829         we can stop lying to compilers about the constness of argv when we
119830         are compiled outside glibc.
119831         (getopt, getopt_long, getopt_long_only): Use it.
119832         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
119833         _getopt_internal, getopt): Likewise.
119834         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
119835         _getopt_long_only_r): Likewise.
119836         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
119837         _getopt_long_r, _getopt_long_only_r): Likewise.
119839         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
119840         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
119841         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
119842         the other external symbols.
119843         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
119844         declaration, since the above renaming now works around collisions.
119846 2004-11-11  Jim Meyering  <jim@meyering.net>
119848         * lib/linebreak.c: Remove trailing blanks.
119849         * lib/alloca_.h: Likewise.
119850         * lib/acosl.c: Likewise.
119851         * lib/euidaccess.c: Likewise.
119852         * lib/allocsa.h: Likewise.
119854 2004-11-10  Simon Josefsson  <jas@extundo.com>
119856         * m4/getaddrinfo.m4: New file.
119858 2004-11-10  Simon Josefsson  <jas@extundo.com>
119860         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
119862 2004-11-10  Simon Josefsson  <jas@extundo.com>
119864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119865         getaddrinfo.
119867         * modules/getaddrinfo: New file.
119869 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119871         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
119873 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
119875         * lib/mktime.c (SHR): New macro, which is a portable
119876         substitute for >> that should work even on Crays.
119877         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
119878         Problem reported by Mark D. Baushke in
119879         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
119880         * lib/getdate.y (SHR): Likewise.
119881         (tm_diff): Use it.
119882         * lib/strftime.c (SHR): Likewise.
119883         (tm_diff): Use it.
119884         * lib/quotearg.c (struct quoting_options): Use unsigned int for
119885         quote_these_too, so that right shifts are well defined.  All uses
119886         changed.
119888 2004-11-10  Jim Meyering  <jim@meyering.net>
119890         Ensure that no close failure goes unreported.
119891         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
119892         return early when it seems there's nothing to flush.
119893         Don't include __fpending.h.
119895 2004-11-10  Jim Meyering  <jim@meyering.net>
119897         * modules/closeout (Depends-on): Remove fpending.
119899 2004-11-10  Jim Meyering  <jim@meyering.net>
119901         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
119903 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
119905         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
119906         gl_FUNC_STRFTIME.
119907         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
119908         and AC_REQUIRE when possible, to avoid duplicate checks.
119909         Check for <wchar.h>.
119911 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
119913         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
119915 2004-11-09  Bruno Haible  <bruno@clisp.org>
119917         * m4/sockpfaf.m4: New file.
119919 2004-11-05  Bruno Haible  <bruno@clisp.org>
119921         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
119922         Reported by Mark D. Baushke <mdb@cvshome.org>.
119924 2004-11-04  Bruno Haible  <bruno@clisp.org>
119926         2004-09-11  Bruno Haible  <bruno@clisp.org>
119927                 * allocsa.valgrind: New file.
119928         2004-02-06  Bruno Haible  <bruno@clisp.org>
119929                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
119930                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
119931                 Reported by Christopher Seip <chris.seip@hp.com>.
119933 2004-11-04  Bruno Haible  <bruno@clisp.org>
119935         * modules/allocsa (Files): Add lib/allocsa.valgrind.
119936         (Makefile.am): Distribute it.
119938 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
119940         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
119941         with errno == ERANGE if the buffer is too small.
119942         Problem reported by Mark D. Baushke.
119944 2004-11-03  Albert Chin  <china@thewrittenword.com>
119945             Paul Eggert  <eggert@cs.ucla.edu>
119947         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
119948         equivalent, substitute $ac_type for equivalent type rather than
119949         blindly using uint32_t *always* which won't work if uint32_t is not
119950         available.  Define _UINT32_T to work around typedef of uint32_t if
119951         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
119952         2.5.1.
119954 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119956         * m4/jm-macros.m4: Sync from coreutils.
119957         (gl_MACROS): Check for mbrlen, for pathchk.
119958         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
119960 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119962         * lib/xreadlink.c (MAXSIZE): New macro.
119963         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
119964         size does not exceed MAXSIZE.  Avoid cast.
119965         As suggested by Mark D. Baushke in
119966         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
119967         if readlink fails with buffer size just under MAXSIZE, try again
119968         with MAXSIZE.
119970 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
119972         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
119974 2004-11-02  Derek R. Price  <derek@ximbiot.com>
119975         and  Paul Eggert  <eggert@cs.ucla.edu>
119977         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
119978         (get_date): Overparenthesize to avoid GCC warning.
119980 2004-11-02  Bruno Haible  <bruno@clisp.org>
119982         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
119983         returns void.
119985 2004-11-02  Bruno Haible  <bruno@clisp.org>
119987         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
119988         function returns void.
119990 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
119992         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
119993         fflush_unlocked, flockfile, funlockfile, funlockfile,
119994         fputs_unlocked, putc_unlocked.
119996 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
119998         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
119999         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
120000         already declared.
120002 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120004         * modules/getdate (Files): Add doc/getdate.texi.
120005         (Depends-on): Add setenv, xalloc.
120007 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120009         * lib/getdate.y: Add support for TZ="foo" within a date string.
120010         Fix some bugs near time_t boundaries.  Reject dates with
120011         out-of-range components, e.g., "Sept 31".
120012         Include <stdlib.h>, "setenv.h", "xalloc.h".
120013         (ISDIGIT_LOCALE): Remove; unused.
120014         Note that the TZ and time functions used here are not reentrant.
120015         (mktime_ok, get_tz): New functions.
120016         (TZBUFSIZE): New constant.
120017         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
120018         This requires that we sometimes generate our own TZ="XXX..." setting.
120020 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
120022         * doc/getdate.texi: New file, from coreutils with modifications for
120023         the new TZ parsing.
120025 2004-10-27  Derek R. Price  <derek@ximbiot.com>
120027         * lib/mktime.c (not_equal_tm): Remove redundant check.
120029 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120031         * modules/regex (lib_SOURCES): Add regex.c.
120032         Reported by James Youngman in
120033         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
120035 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
120037         * lib/getdate.y: Use Bison 1.875 features, and some minor
120038         code cleanups.  This change does not affect semantics.
120039         Don't include <stdlib.h>; no longer needed.
120040         Don't include unlocked-io.h; only the "#if TEST" code uses
120041         stdio, and performance isn't crucial there.
120042         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
120043         Bison 1.875 features as described below.
120044         All uses of "PC." replaced by "pc->".
120045         (YYSTYPE): Add a forward declaration.
120046         (yylex, yyerror): Use full prototypes in forward decls.
120047         Use "%pure-parser" rather than obsolescent "%pure_parser".
120048         Use %parse-param and %lex-param instead of obsolescent
120049         YYPARSE_PARAM and YYLEX_PARAM.
120050         (meridian_table, month_and_day_table, time_units_table,
120051         relative_time_table, time_zone_table, military_table,
120052         lookup_zone, lookup_word, get_date):
120053         Use NULL instead of 0 where appropriate.
120054         (to_hour): Avoid abort (), to avoid a dependency on
120055         stdlib.h.
120056         (yyerror, yylex): Now accepts parser_control * arg.
120057         (main) [TEST]: Use '\0' rather than 0 for char.
120059 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120061         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
120063 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
120065         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
120066         It's now the caller's responsibility to handle the case where
120067         !HAVE_GETPAGESIZE && !defined getpagesize.
120069         * lib/mktime.c (leapyear): Arg is long int, not int.
120071 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
120073         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
120075 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
120077         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
120078         missing.  Problem reported by James Youngman.
120080 2004-10-16  Simon Josefsson  <jas@extundo.com>
120082         * gnulib-tool: Fix comments.  Fix parse problem.
120083         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
120085 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
120087         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
120088         implementation of getopt_long.  Problem reported by Alexander Taler in:
120089         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
120091 2004-10-15  Bruno Haible  <bruno@clisp.org>
120093         * gnulib-tool: Untabify. Initialize supplied_libname.
120094         (func_usage): More homogenous output.
120095         (func_modules_transitive_closure, func_modules_to_filelist,
120096         func_emit_lib_Makefile_am): New functions.
120097         (func_import): New function, extracted from big case statement. Use
120098         func_get_license, func_modules_transitive_closure,
120099         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
120100         opt_lgpl. Don't use test -a, as it's not portable.
120101         (func_create_testdir): Use func_modules_transitive_closure,
120102         func_modules_to_filelist, func_emit_lib_Makefile_am.
120104 2004-10-15  Bruno Haible  <bruno@clisp.org>
120106         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
120108 2004-10-15  Bruno Haible  <bruno@clisp.org>
120110         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
120111         the portions belonging to each module.
120112         Suggested by Derek Robert Price <derek@ximbiot.com>.
120114 2004-10-12  Simon Josefsson  <jas@extundo.com>
120116         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
120117         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
120118         to real functions.
120120 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120122         * modules/vsnprintf: New file.
120124 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120126         * m4/vsnprintf.m4: New file.
120128 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120130         * lib/vsnprintf.h: New file.
120131         * lib/vsnprintf.c: New file.
120133 2004-10-11  Bruno Haible  <bruno@clisp.org>
120135         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
120136         vsnprintf.
120138 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
120140         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
120142 2004-10-07  Bruno Haible  <bruno@clisp.org>
120144         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
120145         fits into the provided buffer.
120147 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
120149         * lib/diacrit.c, diacrit.h: Add GPL notice.
120151         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
120152         notice.
120153         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
120154         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
120155         This avoids a potential constant-folding bug.
120157 2004-10-05  Bruno Haible  <bruno@clisp.org>
120159         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
120160         for the declaration of strsep.
120162 2004-10-05  Bruno Haible  <bruno@clisp.org>
120164         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
120166 2004-10-04  Simon Josefsson  <jas@extundo.com>
120168         * modules/memmem: New file.
120169         * tests/test-memmem.c: New file.
120170         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
120172 2004-10-04  Simon Josefsson  <jas@extundo.com>
120174         * m4/memmem.m4: New file.
120176 2004-10-04  Simon Josefsson  <jas@extundo.com>
120178         * lib/memmem.h: New file.
120179         * lib/memmem.c: New file, taken from glibc.
120181 2004-10-04  Simon Josefsson  <jas@extundo.com>
120183         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
120184         '#ifdef USE_UNLOCKED_IO'.
120186 2004-10-04  Simon Josefsson  <jas@extundo.com>
120188         * config/srclist.txt: Add memmem from glibc.
120190 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120192         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
120194         * modules/argmatch, modules/argp, modules/closeout, modules/error,
120195         modules/exclude, modules/getdate, modules/getline,
120196         modules/getndelim2, modules/getpass, modules/getpass-gnu,
120197         modules/getusershell, modules/linebuffer, modules/md5,
120198         modules/mountlist, modules/posixtm, modules/readtokens,
120199         modules/readutmp, modules/regex, modules/sha1,
120200         modules/version-etc, modules/yesno:
120201         Remove dependency on unlocked-io.
120203 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120205         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
120207         * m4/unlocked-io.m4: Add copyright notice.
120208         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
120210 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120212         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
120213         * lib/xmalloc.c (xmemdup): Likewise.
120214         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
120215         XFREE): Remove these long-obsolescent macros.
120216         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
120217         * lib/xstrdup.c: Remove.
120219         * lib/regex.c (re_comp): Cast gettext return value to char *,
120220         Problem reported by Martin Neitzel via Mark D. Baushke.
120222 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
120224         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
120225         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
120226         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
120227         regex.c, sha1.c, version-etc.c, yesno.c:
120228         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
120229         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
120230         the includer's responsibility.
120232         Sync from coreutils.
120234         * lib/modechange.c (mode_compile): Don't decrement a pointer that
120235         points to the start of a string, as the C Standard says the
120236         resulting behavior is undefined.
120238         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
120239         simple -> simple_backups, numbered_existing ->
120240         numbered_existing_backups, numbered -> numbered_backups
120241         to avoid shadowing problems.  All uses changed.
120242         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
120243         * lib/backupfile.c (check_extension, numbered_backup):
120244         Rename locals to avoid shadowing 'basename'.
120245         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
120246         once.
120248         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
120249         * lib/.cvsignore: Add getopt.h.
120251 2004-10-04  Bruno Haible  <bruno@clisp.org>
120253         * modules/README: New file.
120254         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
120255         not a module.
120257 2004-10-02  Jim Meyering  <jim@meyering.net>
120259         * lib/dirfd.h, getpagesize.h: Add copyright notice.
120261 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120263         * modules/strsep: New file.
120265 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120267         * m4/strsep.m4: New file.
120269 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
120271         * lib/strsep.h: New file.
120272         * lib/strsep.c: New file.
120274 2004-10-01  Simon Josefsson  <jas@extundo.com>
120276         * lib/snprintf.c (snprintf): Handle size==0.
120278 2004-10-01  Simon Josefsson  <jas@extundo.com>
120279             Bruno Haible  <bruno@clisp.org>
120281         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
120282         (snprintf): Declare 'args'.
120284 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
120286         * lib/snprintf.c: Remove comments as to why each header is needed.
120288 2004-10-01  Bruno Haible  <bruno@clisp.org>
120290         * MODULES.html.sh: Add strsep.
120292 2004-09-30  Simon Josefsson  <jas@extundo.com>
120294         * modules/snprintf: New file.
120296 2004-09-30  Simon Josefsson  <jas@extundo.com>
120298         * m4/snprintf.m4: New file.
120300 2004-09-30  Simon Josefsson  <jas@extundo.com>
120302         * lib/snprintf.h, lib/snprintf.c: New files.
120304 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120306         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
120307         (hol_entry_help): Never translate an empty string.
120308         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
120309         * lib/argp.h (OPTION_NO_TRANS): New option.
120311 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120313         * modules/argp (Maintainer): Replace Simon Josefsson
120314         by Sergey Poznyakoff.
120316 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120318         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
120319         changes merged back into glibc.
120321 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
120323         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
120325 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120327         * lib/xvasprintf.c: Include xalloc.h.
120328         (xvasprintf): Use xalloc_die, not xmalloc_die.
120330 2004-09-29  Bruno Haible  <bruno@clisp.org>
120332         * modules/alloca-opt: New file, derived from modules/alloca.
120333         * modules/allocsa: Depend on alloca-opt instead of alloca.
120334         * modules/setenv: Likewise.
120335         * modules/vasnprintf: Likewise.
120336         * MODULES.html.sh: Add alloca-opt.
120338 2004-09-28  Simon Josefsson  <jas@extundo.com>
120340         * gnulib-tool: New parameter --lgpl, to asseert that modules are
120341         LGPL, and to replace license template from GPL to LGPL.
120343 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120345         * modules/dummy: Change license to LGPL.
120347 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
120349         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
120351 2004-09-24  Simon Josefsson  <jas@extundo.com>
120353         * modules/minmax (License): Change from GPL to LGPL.
120355 2004-09-23  Simon Josefsson  <jas@extundo.com>
120357         * gnulib-tool (--import): Typo.
120359 2004-09-23  Simon Josefsson  <jas@extundo.com>
120361         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
120363 2004-09-22  Bruno Haible  <bruno@clisp.org>
120365         * modules/*: Add 'License' field.
120366         * gnulib-tool: Accept --extract-license option.
120367         (func_get_license): New function.
120369 2004-09-21  Bruno Haible  <bruno@clisp.org>
120371         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
120372         Reported by Simon Josefsson.
120374 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120376         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
120377         gl_AC_TYPE_LONG_LONG.
120379 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
120381         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
120383 2004-09-18  Simon Josefsson  <jas@extundo.com>
120384         and  Paul Eggert  <eggert@cs.ucla.edu>
120386         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
120387         calls with autoreconf.  Define GL_LIB.
120389 2004-09-14  Karl Berry  <karl@gnu.org>
120391         * config/srclist.txt: unsync setenv.c, sigh.
120393 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120395         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
120396         Problem reported by Bruno Haible in:
120397         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
120399 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
120401         * config/srclist.txt: Comment out argp-pvh.c.
120403 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
120405         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
120406         in case some system header has #define'd it.  Problem reported by
120407         Soeren D. Schulze in
120408         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
120410 2004-09-09  Karl Berry  <karl@gnu.org>
120412         * regex.[ch]: delete from the root.  These were supposed to be
120413                 synced with emacs cvs, but this has not happened for about
120414                 a year, and anyway nothing else uses emacs regex.[ch].
120415                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
120416                 lib/regex[.ch] is untouched.
120418 2004-09-09  Bruno Haible  <bruno@clisp.org>
120420         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
120422 2004-09-09  Bruno Haible  <bruno@clisp.org>
120424         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
120425         modifications.
120426         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
120428 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120430         * modules/xvasprintf: New file.
120431         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
120433 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
120435         * lib/xvasprintf.h: New file.
120436         * lib/xvasprintf.c: New file.
120437         * lib/xasprintf.c: New file.
120439 2004-09-08  Bruno Haible  <bruno@clisp.org>
120441         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
120443 2004-09-08  Bruno Haible  <bruno@clisp.org>
120445         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
120446         length is > INT_MAX.
120447         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
120448         more.
120450 2004-09-08  Bruno Haible  <bruno@clisp.org>
120452         * lib/stdint_.h: New file, taken from GNU clisp.
120454 2004-09-08  Bruno Haible  <bruno@clisp.org>
120455             Oskar Liljeblad  <oskar@osk.mine.nu>
120457         * modules/stdint: New file.
120458         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
120460 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120462         Import from coreutils.
120463         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
120464         strings on unbounded length.  alloca's performance benefits aren't
120465         that important here.
120466         (V_STRDUP): Remove.
120467         (parse_with_separator): New function, with most of the internals
120468         of the old parse_user_spec.  Allow user to omit both user and group,
120469         for compatibility with FreeBSD.
120470         Clone only the user name, not the entire spec.
120471         Do not set *uid, *gid unless entirely successful.
120472         Avoid memory leak in some failing cases.
120473         Fix regression for USER.GROUP reported by Dmitry V. Levin in
120474         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
120475         (parse_user_spec): Rewrite to use parse_with_separator.
120477 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120479         * modules/userspec: Don't depend on alloca.
120481 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
120483         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
120485 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120487         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
120488         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
120489         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
120491 2004-08-16  Simon Josefsson  <jas@extundo.com>
120493         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
120494         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
120495         Add --dry-run for --import.
120496         Let user provided command line parameters override configure.ac
120497         settings.
120499 2004-08-12  Simon Josefsson  <jas@extundo.com>
120501         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
120502         as discussed with Paul Eggert in threads rooted at
120503         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
120504         and
120505         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
120506         Before, the test was empty, and relied on ELIDE_CODE in source
120507         code.)
120508         (gl_PREREQ_GETOPT): New macro.
120509         (gl_GETOPT): Use them.
120511 2004-08-12  Simon Josefsson  <jas@extundo.com>
120513         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
120514         * lib/getopt_.h: Renamed from getopt.h.
120516 2004-08-12  Simon Josefsson  <jas@extundo.com>
120518         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
120519         Change default library name from libfoo to libgnu.
120520         Now, if you have a configure.ac that says:
120521                 gl_SOURCE_BASE(gl)
120522                 gl_M4_BASE(gl/m4)
120523                 gl_MODULES(error getopt etcetera)
120524                 gl_INIT
120525         you can import all you need by running:
120526                 ../gnulib/gnulib-tool --import
120528         * modules/getopt (Files): Rename getopt.h to getopt_.h.
120529         (Makefile.am): Rewrite, use logic from argz.
120530         (Include): Use <getopt.h> instead of "getopt.h".
120532 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120534         * modules/argp (Files): Add m4/unlocked-io.m4.
120535         (Depends-on): Add extensions.
120537 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120539         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
120540         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
120541         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
120542         Check for program_invocation_name, program_invocation_short_name,
120543         flockfile, funlockfile, features.h, _getopt_long_only_r.
120545 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120547         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
120548         its complicated substitute.
120549         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
120550         and program_invocation_name.
120551         (__argp_basename) [!_LIBC]: Remove; the only use was
120552         replaced by its body.
120553         (__argp_short_program_name): Change condition from
120554         !defined __argp_short_program_name to
120555         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
120556         to match argp-namefrob.h.
120557         (__argp_failure): Don't assume strerror_r returns char *.
120558         * lib/argp-parse.c (N_): Define unconditionally.
120559         (argp_default_options): Fill out initializers with 0 to avoid
120560         gcc warnings.
120562 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
120564         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
120565         getopt1.c.
120567 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120569         Merge from coreutils.
120571         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
120573         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
120574         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
120576 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120578         Merge from coreutils.
120580         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
120581         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
120582         for Reliant Unix 5.43.
120584         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
120585         (union fooround): Use uintmax_t, not long int.
120586         The rest is a merge from libc:
120587         [defined _LIBC]: Include <shlib-compat.h>.
120588         (_obstack) [defined _LIBC]: Remove after 2.3.4.
120590         * lib/settime.c (settime): Recode to avoid warning with
120591         Sun Forte C 6U2.
120593         * lib/strverscmp.c: Convert to UTF-8.
120595 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
120597         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120598         m4/uintmax_t.m4.
120600 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120602         * modules/xalloc-die: New file.
120603         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
120605         * modules/md5 (Files): Add m4/uint32_t.m4.
120606         * modules/sha1: Renamed from modules/sha.
120607         (Files):
120608         Rename lib/sha.h to lib/sha1.h.
120609         Rename lib/sha.c to lib/sha1.c.
120610         Rename m4/sha.m4 to m4/sha1.m4.
120611         (lib_SOURCES): Likewise.
120612         (configure.ac): Rename gl_SHA to gl_SHA1.
120613         (Include): sha.h -> sha1.h.
120615 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120617         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
120618         * m4/sha1.m4: Renamed from sha.m4.
120619         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
120621 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
120623         * lib/obstack.h (obstack_empty_p):
120624         Don't assume that chunk->contents is suitably aligned.
120625         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
120626         Likewise. Problem reported by Benno in
120627         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
120629         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
120630         readable.  This could be improved further but it'd take some work.
120632 2004-08-08  Simon Josefsson  <jas@extundo.com>
120634         * modules/xgethostname (Depends-on): Remove exit and error (not
120635         used).
120637         * modules/getpass-gnu: Add getpass.h.
120638         (Depends-on): Add stdbool.
120639         * modules/getpass: Add getpass.h.
120641 2004-08-08  Simon Josefsson  <jas@extundo.com>
120643         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
120644         Check getpass declaration.
120646 2004-08-08  Simon Josefsson  <jas@extundo.com>
120648         * lib/xgethostname.c: Don't include error.h (not used).
120650         * lib/getpass.h: Add.
120651         * lib/getpass.c: Include getpass.h first.
120653 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
120655         * lib/xalloc-die.c: New file.
120656         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
120657         All uses removed.
120658         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
120659         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
120660         xalloc-die.c.
120661         (_, N_, xalloc_die): Move to xalloc-die.c.
120662         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
120663         so that we needn't mess with xalloc_msg_memory_exhausted.
120665         * lib/sha1.h: Renamed from sha.h.
120666         (SHA1_H): Renamed from _SHA_H.
120667         (sha1_ctx): Renamed from sha_ctx.
120668         (sha1_init_ctx): Renamed from sha_init_ctx.
120669         (sha1_process_block): Renamed from sha_process_block.
120670         (sha1_process_bytes): Renamed from sha_process_bytes.
120671         (sha1_finish_ctx): Renamed from sha_finish_ctx.
120672         (sha1_read_ctx): Renamed from sha_read_ctx.
120673         (sha1_stream): Renamed from sha_stream.
120674         (sha1_buffer): Renamed from sha_buffer.
120675         * lib/sha1.c: Likewise; renamed from sha.c.
120676         Do not include <sys/types.h>.
120677         Include <stddef.h> rather than <stdlib.h>.
120679 2004-08-08  Bruno Haible  <bruno@clisp.org>
120681         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
120682         FILESYSTEM_PREFIX_LEN.
120683         * lib/progreloc.c: Likewise.
120684         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
120686 2004-08-06  Simon Josefsson  <jas@extundo.com>
120688         * modules/progname (Depends-on): Don't depend on stdbool.
120690 2004-08-06  Simon Josefsson  <jas@extundo.com>
120692         * modules/getsubopt: New file.
120693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120694         getsubopt.
120696 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120698         More merge from coreutils.
120700         * m4/utimens.m4, m4/utimecmp.m4: New files.
120701         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
120702         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
120703         prereq.m4, sha.m4: Import changes from coreutils.
120705 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120707         More merge from coreutils.
120708         * modules/raise, modules/readtokens0, modules/utimens:
120709         * modules/utimecmp, module/xnanosleep: New files.
120710         * modules/strftime: Add lib/strftime.h.
120711         Change include from <time.h> to "strftime.h".
120712         * modules/yesno: Add lib/yesno.h.
120713         * modules/backupfile: Remove lib/addext.c.
120714         * modules/euidaccess: Add stat-macros.h.
120715         * modules/canonicalize, modules/euidaccess,
120716         modules/filemode, modules/lchown, modules/makepath,
120717         modules/rmdir, modules/stat: Likewise.
120719 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
120721         Merge from tar.
120722         * lib/argp-help.c (make_hol, hol_append): Don't assume that
120723         SIZE_MAX is a valid preprocessor constant.
120724         (__argp_basename): Change from "#ifndef _LIBC"
120725         to "#ifndef __argp_short_program_name", so that
120726         we don't compile these functions for tar.
120728         More merges from coreutils.
120729         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
120730         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
120731         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
120732         * lib/addext.c: Remove; no longer needed.
120733         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
120734         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
120735         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
120736         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
120737         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
120738         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
120739         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
120740         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
120741         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
120742         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
120743         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
120744         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
120745         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
120746         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
120747         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
120748         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
120749         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
120750         Import changes from coreutils.
120752 2004-08-05  Simon Josefsson  <jas@extundo.com>
120754         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
120756 2004-08-05  Simon Josefsson  <jas@extundo.com>
120758         * m4/getsubopt.m4: New file.
120760 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120762         Merge from coreutils.
120764         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
120765         * m4/getcwd-path-max.m4: New files.
120767         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
120768         FILESYSTEM_PREFIX_LEN ->
120769         FILE_SYSTEM_PREFIX_LEN.
120770         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
120771         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
120772         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
120773         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
120775         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
120776         prerequisite modules now handle the DOS stuff.
120777         Don't check for unistd.h.
120779 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120781         Merge from coreutils.
120783         * lib/.gdb-history: Remove; this doesn't belong here.
120785         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
120786         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
120787         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
120788         * lib/getcwd.c: New files.
120790         * lib/dirname.h: Include <stdbool.h>.
120791         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
120792         for consistency with POSIX terminology.  All uses changed.
120793         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
120794         (strip_trailing_slashes): Use bool for booleans.
120795         * lib/stripslash.c (strip_trailing_slashes): Likewise.
120797         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
120798         sometimes returns a positive errno value even when it succeeds.
120799         (print_errno_message) [!LIBC]: Fall back on strerror if
120800         __strerror_r fails.
120802         * lib/path-concat.c (mempcpy): Don't define if a system header defines
120803         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
120804         (longest_relative_suffix): New function.
120805         (path_concat): Use it.  Assume first argument is not NULL.
120806         Port to DOS.  Omit redundant separators.
120807         Report an error instead of returning NULL.
120808         Use mempcpy instead of memcpy.
120809         (xpath_concat): Remove: not declared or used.
120811         * lib/same.h: Include <stdbool.h>
120812         (same_name): Return bool, not int.
120813         * lib/same.c (same_name): Likewise.
120814         (errno): Don't declare; we assume C89 or better now.
120816         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
120817         if not already defined.
120819         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
120820         * lib/dup-safer.c (errno): Likewise.
120822 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
120824         Merge from coreutils.
120825         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
120826         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
120827         * modules/path-concat: Don't depend on strdup.
120829 2004-08-03  Simon Josefsson  <jas@extundo.com>
120831         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
120832         * lib/progname.h: Don't include stdbool.h.
120834 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120836         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
120837         * MODULES.html.sh (func_all_modules): Remove fatal.
120839 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120841         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
120843 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
120845         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
120846         working.
120848 2004-08-02  Simon Josefsson  <jas@extundo.com>
120850         * lib/getsubopt.h: New file, with comments from Bruno Haible.
120851         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
120852         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
120854 2004-08-01  Simon Josefsson  <jas@extundo.com>
120856         * lib/xgetdomainname.c: Include stdlib.h, for free().
120858 2004-07-19  Bruno Haible  <bruno@clisp.org>
120860         * MODULES.html.sh (func_all_modules): Add dummy.
120862 2004-07-16  Simon Josefsson  <jas@extundo.com>
120864         * modules/dummy: New file.
120866 2004-07-16  Simon Josefsson  <jas@extundo.com>
120868         * lib/dummy.c: New file.
120870 2004-07-16  Bruno Haible  <bruno@clisp.org>
120872         * lib/backupfile.h: Add extern "C" for C++.
120873         * lib/closeout.h: Likewise.
120874         * lib/copy-file.h: Likewise.
120875         * lib/findprog.h: Likewise.
120876         * lib/full-write.h: Likewise.
120877         * lib/pathname.h: Likewise.
120878         * lib/progname.h: Likewise.
120879         * lib/stpcpy.h: Likewise.
120880         * lib/stpncpy.h: Likewise.
120881         * lib/strcase.h: Likewise.
120882         * lib/strstr.h: Likewise.
120883         * lib/xalloc.h: Likewise.
120885         * lib/mbswidth.h: Add extern "C" for C++.
120886         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
120888 2004-07-13  Robert Millan  <robertmh@gnu.org>
120890         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
120892 2004-07-09  Simon Josefsson  <jas@extundo.com>
120894         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
120895         failed without this.)
120897 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
120899         * modules/chown (Files): Add lib/fchown-stub.c, since
120900         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
120902 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
120904         * lib/fchown-stub.c: New file.
120906 2004-06-24  Jim Meyering  <jim@meyering.net>
120908         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
120910 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120912         * modules/argz: Omit "#include".
120914         * MODULES.html.sh (func_all_modules): Add calloc, to match
120915         2004-06-01 addition of calloc module.
120917 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120919         * m4/argz.m4: New file, which is autoupdated from libtool.
120921 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120923         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
120924         libtool.
120926 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120928         * config/srclist-update: Don't insist on "USA." before the
120929         close-comment, as libtool omits the period and puts the */ on a
120930         separate line.
120931         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
120932         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
120934 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
120936         * modules/argz: New file.
120937         * MODULES.html.sh (func_all_modules): Add argz.
120939 2004-06-12  Jim Meyering  <jim@meyering.net>
120940         and  Paul Eggert  <eggert@cs.ucla.edu>
120942         * modules/hash (Files): Add lib/xalloc.h.
120943         * modules/pipe (Depends-on): Add wait-process.
120944         * modules/stat (Depends-on): Add xalloc.
120945         * modules/userspec (Files): Add lib/userspec.h.
120946         * modules/xstrto
120948         Upgrade from gettext-0.13.
120949         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
120950         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
120951         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
120953 2004-06-10  Jim Meyering  <jim@meyering.net>
120955         * lib/calloc.c: New file.
120957 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
120959         * lib/getdate.y (yylex): Allow space between sign and number.
120960         Problem reported by Dan Jacobson.
120962 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
120964         Merge from coreutils CVS.
120966         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
120967         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
120968         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
120969         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
120970         xstrtol.m4: Fix copyright date and/or serial number.
120972         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
120973         See if we need an fchown replacement.
120974         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
120975         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
120976         and use the replacement function if we detect either defect.
120978         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
120979         gl_UTIMECMP.
120981 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
120982         and  Jim Meyering  <jim@meyering.net>
120984         Merge from coreutils CVS.
120986         * lib/stat-macros.h: New file, with contents from file-type.h
120987         and coreutils' system.h.
120988         * lib/file-type.c: Include "stat-macros.h".
120989         * lib/file-type.h (file_type): Move all macro definitions to new file,
120990         stat-macros.h.
120992         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
120993         Wrap old code with this conditional.
120994         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
120995         function that does not dereference symlinks.
120996         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
120998         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
120999         dependency problems.
121000         (xreadlink): Accept new arg SIZE, for efficiency.
121001         All decls and uses changed.
121002         * lib/xreadlink.h: Include <stddef.h>, for size_t.
121004         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
121005         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
121007         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
121008         sysexits.h.
121010 2004-06-01  Jim Meyering  <jim@meyering.net>
121012         * m4/calloc.m4: New file.
121014 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
121016         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
121017         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
121018         Also, fix a typo in a diagnostic.
121020 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121022         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
121023         or AC_FUNC_REALLOC.
121025 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
121027         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
121028         macros to be defined.
121029         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
121030         the allocator returns NULL because the requested size is zero.
121032 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121034         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
121035         var.  Add comment explaining why libc still defines it.  This
121036         merges the following patch from glibc:
121037         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
121039 2004-05-20  Andreas Schwab  <schwab@suse.de>
121041         * m4/free.m4: Replace free if it not known to work, not the other
121042         way round.
121044 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
121046         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
121047         present in glibc since revision 1.1 of this file.
121048         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
121049         obstack_alignment_mask, obstack_alloc, obstack_base,
121050         obstack_blank, obstack_blank_fast, obstack_chunk_size,
121051         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
121052         obstack_grow0, obstack_init, obstack_int_grow,
121053         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
121054         obstack_next_free, obstack_object_size, obstack_ptr_grow,
121055         obstack_ptr_grow_fast, obstack_room): Remove declarations of
121056         nonexistent functions.
121058 2004-05-18  Karl Berry  <karl@gnu.org>
121060         * config/srclist.txt: break link for vasnprintf.c.
121062 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121064         Port obstack to the AS/400, where pointers are 16 bytes wide and
121065         you cannot cast an integer to a valid pointer.  This patch is
121066         currently waiting to be integrated into glibc; see
121067         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
121069         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
121070         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
121071         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
121072         (struct obstack): temp member is now a union of a pointer and
121073         an integer, instead of an integer.  All integer uses changed.
121074         This does not affect the physical layout of struct obstack,
121075         except on hosts (like the AS/400) where the size or alignment of
121076         void * is greater than that of ptrdiff_t.
121077         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
121078         __STDC__)]: Store temporary in pointer member of union, not
121079         integer member.
121080         * lib/obstack.c: Include <stddef.h>, for offsetof.
121081         (struct fooalign): Remove; it doesn't need a name.
121082         (union fooround): Change double to long double, and add void *.
121083         (DEFAULT_ALIGNMENT): Use offsetof to compute.
121084         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
121085         not a macro.  Hence the values are always int; so remove all
121086         casts-to-int in uses.
121088 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
121090         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
121091         we can get this patch merged into glibc.
121093 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121094             Paul Eggert  <eggert@cs.ucla.edu>
121096         * m4/argp: Depend on alloca.
121098 2004-05-17  Derek R. Price  <derek@ximbiot.com>
121099             Paul Eggert  <eggert@cs.ucla.edu>
121101         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
121102         freecoding.
121104 2004-05-17  Bruno Haible  <bruno@clisp.org>
121106         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
121107         precision that consists of a '.' followed by an empty digit string.
121108         Patch by Tor Lillqvist <tml@iki.fi>.
121110 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121112         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
121113         for backward compatibility with older code.  We need our own
121114         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
121115         it under some other name, and our alloca.h will define it.
121117 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
121118             Derek Price  <derek@ximbiot.com>
121120         * lib/alloca.c: Include <alloca.h>, to get our interface.
121121         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
121122         include <alloca.h> first.  Use C89 prototype for alloca; this
121123         requires including <stddef.h> for size_t.  Use extern "C" if C++.
121124         Use #elif for simplicity, since we can assume C89 now.
121125         Don't try to source the system alloca.h since it will not be found
121126         and to prevent recursively including its replacement.
121127         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
121128         * lib/regex.c: Likewise.
121130 2004-05-16  Derek Price  <derek@ximbiot.com>
121131             Paul Eggert  <eggert@cs.ucla.edu>
121133         getline cleanup.  This changes the getndelim2 API: both order of
121134         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
121135         no delimiter).
121137         * lib/getline.c: Don't include stddef.h or stdio.h, since our
121138         interface does that.
121139         (getline): Always use getdelim, so that we don't have two
121140         copies of this code.
121141         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
121142         if available.
121143         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
121144         (GETNDELIM2_MAXIMUM): New macro.
121145         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
121146         instead of the old practice of delim2==0.  All callers changed.
121147         Return -1 on overflow, instead of returning junk.
121148         Do not set *linesize unless allocation succeeds.
121149         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
121150         that we include sys/types.h.
121151         * lib/getnline.h: Likewise.
121152         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
121153         (getndelim2): Reorder arguments.
121154         * lib/getnline.c (getnline, getndelim):
121155         Don't discard the NMAX argument.
121156         (getnline): Invoke getndelim, to avoid code duplication.
121157         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
121158         of (size_t) -1 by callers of the getnline family.
121160 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121162         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
121163         Check for gettimeofday.
121164         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
121165         Check for settimeofday, stime.
121167 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121169         * lib/nanosleep.c (suspended): Change its type from int to
121170         sig_atomic_t volatile.
121171         (first_call): Make it private to rpl_nanosleep, and have it
121172         be zero initially as that's a bit faster.
121173         (my_usleep): Round up fractional times instead of truncating them,
121174         as this is the usual meaning for 'sleep'.
121176         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
121177         doesn't work.
121178         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
121179         (ENOSYS): Define if not defined.
121180         (settime): Fall back on stime if it exists and settimeofday fails.
121181         But don't bother with fallbacks if a method fails with errno == EPERM.
121183 2004-05-11  Jim Meyering  <jim@meyering.net>
121185         Prior to this change, the save_cwd caller required read access to the
121186         current directory on most systems (ones with the fchdir function).
121188         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
121189         fails, try write-only, and finally, resort to using xgetcwd.
121191 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121193         * lib/obstack.c, obstack.h: Import changes from libc.
121195 2004-04-28  Bruno Haible  <bruno@clisp.org>
121197         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
121198         also implicitly appends .exe to executables.
121199         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
121200         accepts Windows pathnames.
121201         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121202         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121203         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
121204         Treat Cygwin like Windows, since it now accepts Windows pathnames.
121205         Reported by Derek Robert Price <derek@ximbiot.com>.
121207 2004-04-21  Karl Berry  <karl@gnu.org>
121209         * config/srclist.txt (localcharset.c): break sync.
121211 2004-04-20  Paul Eggert  <eggert@twinsun.com>
121213         * m4/host-os.m4: Add a copyright notice.
121215 2004-04-20  Jim Meyering  <jim@meyering.net>
121217         Change UTILS_ to gl_ in AC_DEFINE'd names.
121218         Change utils_- and jm_-prefixed variables, too.
121219         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
121220         UTILS_FUNC_MKDIR_TRAILING_SLASH.
121221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
121223         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
121224         Don't emit trailing blanks.
121225         Also rename jm_-prefixed variables to have gl_ prefix.
121227         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
121228         Also rename jm_-prefixed variables to have gl_ prefix.
121230         * m4/jm-macros.m4: Reflect the renamings.
121231         * m4/prereq.m4: Likewise.
121233 2004-04-20  Jim Meyering  <jim@meyering.net>
121235         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
121236         memory.
121238 2004-04-20  Jim Meyering  <jim@meyering.net>
121239             Bruno Haible  <bruno@clisp.org>
121241         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
121242         memory when realloc fails.
121244 2004-04-19  Jim Meyering  <jim@meyering.net>
121246         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
121247         now that readutmp.c may call `free (0)'.
121249 2004-04-19  Bruno Haible  <bruno@clisp.org>
121251         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
121252         * m4/inttypes_h.m4: Likewise.
121253         * m4/stdint_h.m4: Likewise.
121254         * m4/intmax_t.m4: Likewise.
121255         * m4/uintmax_t.m4: Likewise.
121257 2004-04-18  Jim Meyering  <jim@meyering.net>
121259         * m4/prereq.m4: Don't forbid jm_ prefix.
121261         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
121262         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
121263         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
121264         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
121265         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
121266         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
121267         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
121268         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
121269         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
121270         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
121271         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
121272         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
121273         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
121274         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
121275         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
121276         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
121277         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
121278         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
121279         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
121281 2004-04-18  Jim Meyering  <jim@meyering.net>
121283         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
121284         failure, don't leak memory and do call END_UTMP_ENT.
121286 2004-04-16  Jim Meyering  <jim@meyering.net>
121288         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
121289         coreutils' stat program.
121290         (gl_PREREQ): Don't require jm_PREREQ_STAT.
121292 2004-04-11  Paul Eggert  <eggert@twinsun.com>
121294         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
121295         C89.
121296         (CHAR_BIT): Remove, since we assume C89.
121297         Include <stdint.h> if available, as per current Autoconf CVS advice.
121299 2004-03-31  Jim Meyering  <jim@meyering.net>
121301         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
121302         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
121303         * m4/xalloc.m4: Likewise.
121305 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121307         Merge from coreutils.
121309         * m4/inttostr.m4: New file.
121310         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
121311         Require AM_STDBOOL_H and gl_TIMESPEC instead.
121312         Require gl_CLOCK_TIME.
121313         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
121315 2004-03-30  Paul Eggert  <eggert@twinsun.com>
121317         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
121318         not bool, to be more consistent with Unix conventions.
121319         Suggested by Bruno Haible.
121321         Merge from coreutils.
121323         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
121324         * lib/umaxtostr.c: New files.
121326         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
121327         the usual <time.h> dance.
121328         (get_date): Change signature to support fractional time stamps.
121329         All callers changed.
121330         * lib/getdate.y: Include "getdate.h" first, as we can now
121331         assume C89 and don't need to worry about 'const'.
121332         Similarly, include "unlocked-io.h" near start, not in middle.
121333         Include <limits.h>.
121334         (textint.value): Use long int rather than int.
121335         (textint.digits): Use size_t rather than int.
121336         (BILLION, LOG10_BILLION): New constants.
121337         (parser_control): New member rel_ns.  Members day_ordinal,
121338         time_zone, month, day, hour, minutes, rel_year, rel_month,
121339         rel_day, rel_hour, rel_minutes, rel_seconds
121340         are now long int, not int.  Member seconds is now struct timespec,
121341         not int.  New member timespec_seen.  Members dates_seen, days_seen,
121342         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
121343         not int.
121344         (%union.intval): Now long int, not int.
121345         New member timespec.
121346         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
121347         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
121348         (spec): Now is a timespec or an item list.
121349         (timespec, items): New nonterminals.
121350         (time, rel, relunit, number, get_date):
121351         Add support for fractional seconds.
121352         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
121353         (gmtime, localtime, mktime): Remove decls; not needed with C89.
121354         (to_hour): First arg is now long int, not int.
121355         (to_year): Returns long int, not int.
121356         Don't treat year -70 like 70.
121357         (tm_diff): Returns long int, not int.
121358         (lookup_word): Use bool instead of int when appropriate.
121359         (yylex): Use size_t for count, not int.
121360         Detect overflow when parsing large integer constants.
121361         Add support for fractions.
121362         (get_date): Make pointers 'const' if possible.
121363         Use more-portable code to detect integer overflow.
121364         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
121365         Don't use ctime; it's not reliable if the year has >4 digits.
121367         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
121368         This is for compatibility with BSD.
121370         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
121371         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
121372         From coreutils' system.h.
121374         * lib/userspec.c: Don't include "posixver.h".
121375         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
121376         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
121377         compatible extension.  Simplify code by removing a boolean int
121378         that was always nonzero if a string was nonnull.
121380 2004-03-30  Jim Meyering  <jim@meyering.net>
121382         Merge from coreutils.
121384         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
121385         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
121386         on some systems one must include <grp.h> before it.
121387         Reported by Christian Krackowizer.
121389 2004-03-30  Jim Meyering  <jim@meyering.net>
121391         Merge from coreutils.
121393         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
121395         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
121396         an empty input stream.
121398         * lib/readtokens.c: Include <stdbool.h>.
121399         (readtoken): Use `size_t' rather than int/long.
121400         All callers adjusted.
121401         Use `bool' rather than `int' where appropriate.
121402         Use memset rather than an explicit loop.
121403         Use x2nrealloc rather than xrealloc.
121404         Allow the use of `\0' as a delimiter.
121405         (readtokens): Likewise.
121406         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
121408 2004-03-30  Jim Meyering  <jim@meyering.net>
121410         * m4/realloc.m4: Remove file, since now it does no more than
121411         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
121412         the `configure.ac' section of module/realloc.
121413         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
121415 2004-03-30  Bruno Haible  <bruno@clisp.org>
121417         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
121418         nonnull.
121420 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121422         Merge changes to getloadavg.c from coreutils and Emacs.
121424         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
121425         Define to an expression, not to the empty string.
121426         Include cloexec.h and xalloc.h.
121427         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
121428         Use set_cloexec_flag rather than rolling our own.
121429         * lib/cloexec.c, lib/cloexec.h: New files.
121431 2004-03-29  Paul Eggert  <eggert@twinsun.com>
121433         * m4/cloexec.m4: New file.
121435 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121437         * lib/getopt.h: Sync with libc CVS.
121439 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121440             Bruno Haible  <bruno@clisp.org>
121442         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
121443         mbswidth.
121445 2004-03-18  Paul Eggert  <eggert@twinsun.com>
121446             Bruno Haible  <bruno@clisp.org>
121448         * lib/mbswidth.h: Include <wchar.h> only if
121449         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
121450         <wchar.h>.
121451         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
121453 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121455         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
121456         Sync with libc CVS.
121457         * lib/getopt_int.h: New file, also synced from libc.
121459 2004-03-09  Paul Eggert  <eggert@twinsun.com>
121461         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
121462         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
121463         Bring back getopt.c, getopt.h, getopt1.c.
121465 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121467         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
121468         All uses changed.  Check for sa_sigaction member; this fixes
121469         a bug first reported by Jason Andrade in
121470         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121472 2004-03-07  Paul Eggert  <eggert@twinsun.com>
121474         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
121475         '#if' expressions.  Unlike the code it replaces, it does not
121476         depend on (defined _SC_PAGESIZE).  However, it does depend on
121477         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
121478         first reported by Jason Andrade in
121479         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
121481 2004-02-25  Simon Josefsson  <jas@extundo.com>
121483         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
121485 2004-02-25  Simon Josefsson  <jas@extundo.com>
121487         * lib/strdup.h: New file.
121488         * lib/strdup.c: Include it.
121489         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
121490         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
121492 2004-02-23  Karl Berry  <karl@gnu.org>
121494         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
121495         (from fencepost.gnu.org:/gd/gnuorg).
121497 2004-02-23  Karl Berry  <karl@gnu.org>
121499         * config/srclistvars.sh (GNUORG) [karl]: redefine.
121500         * config/srclist.txt: add maintain/standards documents.
121502 2004-02-18  Bruno Haible  <bruno@clisp.org>
121504         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
121505         Reported by Derek Robert Price <derek@ximbiot.com>.
121507 2004-02-16  Karl Berry  <karl@gnu.org>
121509         * config/mkinstalldirs, install-sh: update from automake.
121511 2004-02-06  Karl Berry  <karl@gnu.org>
121513         * m4/po.m4: update from gettext 0.14.1.
121515 2004-02-06  Karl Berry  <karl@gnu.org>
121517         * lib/config.charset: update from gettext 0.14.1.
121519 2004-02-05  Paul Eggert  <eggert@twinsun.com>
121521         Add comments and code, prompted by suggestions from Bruno Haible
121522         for sh-quote.
121523         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
121524         describing the enum quoting_style values.
121525         * lib/quotearg.c (quotearg_alloc): New function.
121526         (quotearg_buffer_restyled): Treat lone { and } as special.
121527         Treat = as special.  Work around bug with older shells
121528         that "see" a '\' that is really the 2nd byte of a multibyte char.
121529         Quote empty string with shell_quoting_style.
121531 2004-02-03  Bruno Haible  <bruno@clisp.org>
121533         * m4/pipe.m4: New file, from GNU gettext.
121535 2004-02-03  Bruno Haible  <bruno@clisp.org>
121537         * lib/pipe.h: New file, from GNU gettext.
121538         * lib/pipe.c: New file, from GNU gettext.
121540 2004-01-27  Bruno Haible  <bruno@clisp.org>
121542         * m4/execute.m4: New file, from GNU gettext.
121544 2004-01-27  Bruno Haible  <bruno@clisp.org>
121546         * lib/execute.h: New file, from GNU gettext.
121547         * lib/execute.c: New file, from GNU gettext.
121548         * lib/w32spawn.h: New file, from GNU gettext.
121550 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121552         Merge from diffutils.
121554         * lib/file-type.c (file_type): Add typed memory objects.
121555         * lib/file-type.h (S_TYPEISTMO): New macro.
121557         * lib/c-stack.h (c_stack_action): Remove argv argument.
121558         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
121559         (die): Don't calculate message unless segv_action returns.
121560         (get_stack_location, min_address_from_argv, max_address_from_argv,
121561         volatile stack_base, volatile_stack_size): Remove.
121562         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
121563         that every segmentation violation is a stack overflow.  (Ouch!)
121564         See Debian bug 136249 (still outstanding) for more info about why
121565         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
121567 2004-01-24  Paul Eggert  <eggert@twinsun.com>
121569         Exit-status fix from coreutils.
121571         Use exit_failure consistently in place of EXIT_FAILURE,
121572         so that program exit statuses are consistent on failure.
121574         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
121575         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
121576         * lib/argmatch.h: Comment fix to match the above.
121577         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
121578         Now a macro referring to exit_failure, instead of a separate
121579         variable.  Include "exitfail.h" to get it.
121580         * lib/xstrtol.h: Include "exitfail.h".
121581         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
121583         * lib/long-options.c (parse_long_options): Use prototype
121584         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
121585         for clarity.
121587 2004-01-21  Jim Meyering  <jim@meyering.net>
121589         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
121590         so as not to conflict with a different-sized __mktime_internal
121591         function in GNU libc.
121592         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
121593         Problem building statically-linked `ls' reported by Michael Brunnbauer.
121595 2004-01-20  Karl Berry  <karl@gnu.org>
121597         * config/config.guess: update from config.
121599         * config/srclistvars.sh: GNUWWWLICENSES for karl.
121601 2004-01-20  Bruno Haible  <bruno@clisp.org>
121603         Safer stack allocation.
121604         * lib/setenv.c: Include allocsa.h.
121605         (alloca): Remove fallback definition.
121606         (freea): Remove macro.
121607         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
121608         instead of freea.
121610 2004-01-20  Bruno Haible  <bruno@clisp.org>
121612         * m4/eealloc.m4: New file, from GNU gettext.
121614 2004-01-20  Bruno Haible  <bruno@clisp.org>
121616         * m4/allocsa.m4: New file, from GNU gettext.
121618 2004-01-20  Bruno Haible  <bruno@clisp.org>
121620         * lib/xallocsa.h: New file, from GNU gettext.
121621         * lib/xallocsa.c: New file, from GNU gettext.
121623 2004-01-20  Bruno Haible  <bruno@clisp.org>
121625         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
121627 2004-01-20  Bruno Haible  <bruno@clisp.org>
121629         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
121630         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
121631         specially.
121633 2004-01-20  Bruno Haible  <bruno@clisp.org>
121635         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
121636         patch.
121638 2004-01-20  Bruno Haible  <bruno@clisp.org>
121640         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
121642 2004-01-20  Bruno Haible  <bruno@clisp.org>
121644         * lib/eealloc.h: New file.
121646 2004-01-20  Bruno Haible  <bruno@clisp.org>
121648         * lib/binary-io.h: Avoid warnings on Cygwin.
121650 2004-01-20  Bruno Haible  <bruno@clisp.org>
121652         * lib/allocsa.h: New file, from GNU gettext.
121653         * lib/allocsa.c: New file, from GNU gettext.
121655 2004-01-18  Karl Berry  <karl@gnu.org>
121657         * doc/gpl.texi, doc/lgpl.texi: new files.
121659 2004-01-18  Karl Berry  <karl@gnu.org>
121661         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
121662         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
121664 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121666         Merge from coreutils.
121668         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
121669         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
121670         (gl_DEFAULT_POSIX2_VERSION): Move
121671         the documentation from 'configure' into 'config.hin',
121672         so that 'configure --help' isn't burdened by it and
121673         we don't have to worry about its formatting there.
121674         Reword the documentation so that it's more succinct
121675         and can be run together into a single paragraph.
121676         * m4/same.m4 (gl_SAME): Check for pathconf.
121678 2004-01-15  Paul Eggert  <eggert@twinsun.com>
121680         Merge from coreutils.
121682         * lib/posixver.c: Include posixver.h.
121684         * lib/same.c: Include <stdbool.h>, <limits.h>.
121685         (_POSIX_NAME_MAX): Define if not defined.
121686         (MIN): New macro.
121687         (same_name): If file names are silently truncated, report
121688         that the file names are the same if they are the same after
121689         the silent truncation.
121691         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
121692         conversion function.
121693         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
121694         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
121695         longer needed.
121697 2004-01-15  Jim Meyering  <jim@meyering.net>
121699         Merge from coreutils.
121701         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
121702         if no library is required.
121703         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
121704         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
121705         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
121706         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
121707         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
121708         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
121709         value, $ac_cv_search_crypt, if it's "none required".
121710         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
121711         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
121712         not gl_FUNC_GETLOADAVG.
121713         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
121714         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
121716 2004-01-15  Jim Meyering  <jim@meyering.net>
121718         Merge from coreutils.
121720         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
121721         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
121722         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
121724         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
121725         optional configure-time default.
121727         * lib/version-etc.c (version_etc_copyright): Update copyright date.
121729         * lib/xreadlink.c (xreadlink): Correct outdated comment.
121731 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
121733         Merge from coreutils.
121735         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
121736         value, $ac_cv_search_nanosleep, if it's "none required".
121738 2004-01-14  Paul Eggert  <eggert@twinsun.com>
121740         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
121741         with like-named macro in fnmatch.c.
121742         (EXT): Use an internal constant instead.
121744         Merge fnmatch patches from glibc.
121745         * lib/fnmatch.c (mbsinit): Remove define.
121746         Add libc_hidden_ver (__fnmatch, fnmatch).
121747         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
121748         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
121750 2004-01-14  Karl Berry  <karl@gnu.org>
121752         * config/install-sh: update from automake.
121754 2004-01-13  Karl Berry  <karl@gnu.org>
121756         * config/install-sh: update from automake.
121758 2004-01-09  Karl Berry  <karl@gnu.org>
121760         * config/install-sh: update from automake.
121762 2004-01-05  Karl Berry  <karl@gnu.org>
121764         * config/config.{sub,guess}: update from config.
121766 2003-12-31  Karl Berry  <karl@gnu.org>
121768         * config/depcomp: update from automake.
121770 2003-12-14  Karl Berry  <karl@gnu.org>
121772         * lib/config.charset: update from gettext-runtime.
121774 2003-12-03  Paul Eggert  <eggert@twinsun.com>
121776         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
121777         Bug reported by Alfred M. Szmidt.
121779 2003-12-03  Bruno Haible  <bruno@clisp.org>
121781         * m4/gettext.m4: Upgrade from gettext-0.13.
121782         * m4/po.m4: Upgrade from gettext-0.13.
121783         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
121784         * m4/intmax.m4: New file, from gettext-0.13.
121785         * m4/printf-posix.m4: New file, from gettext-0.13.
121787 2003-11-29  Karl Berry  <karl@gnu.org>
121789         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
121791 2003-11-25  Paul Eggert  <eggert@twinsun.com>
121792             Bruno Haible  <bruno@clisp.org>
121794         * lib/printf-parse.h: Don't include sys/types.h.
121795         (ARG_NONE): New macro.
121796         (char_directive): Change type of *arg_index fields to size_t.
121797         * lib/printf-parse.c: Don't include sys/types.h.
121798         (SSIZE_MAX): Remove macro.
121799         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
121800         Remove unnecessary overflow check.
121801         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
121802         fields.
121804 2003-11-25  Bruno Haible  <bruno@clisp.org>
121806         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
121808 2003-11-25  Bruno Haible  <bruno@clisp.org>
121810         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
121811         gt_TYPE_SSIZE_T.
121813 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121815         * modules/alloca: Remove dependency on xalloc.
121817 2003-11-24  Paul Eggert  <eggert@twinsun.com>
121819         * lib/alloca.c: Remove dependency on xalloc module.
121820         (xalloc_die): Remove.
121821         (memory_full) [!defined emacs]: New macro.
121822         [!defined emacs]: Don't include xalloc.h.
121823         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
121824         address arithmetic overflows.  Change datatypes a bit to avoid
121825         unnecessary casts.
121827 2003-11-22  Jim Meyering  <jim@meyering.net>
121829         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
121830         s/size/size_t/.
121832 2003-11-21  Karl Berry  <karl@gnu.org>
121834         * config/config.{sub,guess}: update from config.
121836 2003-11-18  Karl Berry  <karl@gnu.org>
121838         * config/config.{sub,guess}: update from config.
121840         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
121842 2003-11-17  Paul Eggert  <eggert@twinsun.com>
121844         * README: Mention that S+T cannot overflow if S is the size of
121845         an existing object and T is sufficiently small.
121847 2003-11-17  Jim Meyering  <jim@meyering.net>
121849         On systems without utime and without a utimes function capable of
121850         dealing with a NULL struct utimbuf* argument, this utime replacement
121851         could -- in unusual circumstances -- leak a file descriptor.
121852         * lib/utime.c: Include <unistd.h> and <errno.h>.
121853         (utime_null): Be sure to close `fd' and to preserve errno.
121854         Reported by Geoff Collyer via Arnold Robbins.
121856 2003-11-17  Bruno Haible  <bruno@clisp.org>
121858         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
121859         (Depends-on): Add xsize.
121861 2003-11-17  Bruno Haible  <bruno@clisp.org>
121863         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
121865 2003-11-17  Bruno Haible  <bruno@clisp.org>
121867         * lib/vasnprintf.c (alloca): Remove fallback definition.
121868         (freea): Remove definition.
121869         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
121870         Reported by Paul Eggert.
121872 2003-11-16  Paul Eggert  <eggert@twinsun.com>
121873             Bruno Haible  <bruno@clisp.org>
121875         Protect against address arithmetic overflow.
121876         * lib/printf-args.h: Include stddef.h.
121877         (arguments): Change type of field 'count' to size_t.
121878         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
121879         'unsigned int' where appropriate.
121880         * lib/printf-parse.h: Include sys/types.h.
121881         (char_directive): Change type of *arg_index fields to ssize_t.
121882         (char_directives): Change type of fields 'count', max_*_length to
121883         size_t.
121884         * lib/printf-parse.c: Include sys/types.h and xsize.h.
121885         (SSIZE_MAX): Define fallback value.
121886         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
121887         instead of 'int' where appropriate. Check a_allocated, d_allocated
121888         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
121889         * lib/vasnprintf.c: Include xsize.h.
121890         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
121891         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
121892         overflow. Avoid wraparound when converting a width or precision from
121893         decimal to binary.
121895 2003-11-16  Bruno Haible  <bruno@clisp.org>
121897         Update from GNU gettext.
121898         * lib/printf-parse.c: Generalize to it can be compiled for wide
121899         strings.
121900         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
121901         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
121902         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
121903         SNPRINTF): New macros.
121904         Don't include <alloca.h> if the file is used inside libintl.
121905         (local_wcslen): New function, for Solaris 2.5.1.
121906         (VASNPRINTF): Use it instead of wcslen.
121908 2003-11-16  Bruno Haible  <bruno@clisp.org>
121910         * lib/xsize.h (xmax): New function.
121911         (xsum, xsum3, xsum4): Declare as "pure" functions.
121913 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121915         * modules/xalloc (Files): Undo latest change, since xalloc.h
121916         no longer needs SIZE_MAX or PTRDIFF_MAX.
121918 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121920         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
121921         gl_PTRDIFF_MAX.
121923 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121925         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
121926         "return", to pacify some unknown compiler.  Problem reported
121927         by Joerg Schilling.
121929 2003-11-12  Paul Eggert  <eggert@twinsun.com>
121931         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
121932         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
121933         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
121934         heuristic is just as accurate as far as we know, and it removes a
121935         dependency on size_max.m4 and ptrdiff_max.m4.
121937 2003-11-11  Bruno Haible  <bruno@clisp.org>
121939         * modules/xsize (Files): Add m4/size_max.m4.
121940         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
121942 2003-11-11  Bruno Haible  <bruno@clisp.org>
121944         * m4/size_max.m4: New file.
121945         * m4/ptrdiff_max.m4: New file.
121946         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
121947         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
121948         (gl_XALLOC): Invoke it.
121950 2003-11-11  Bruno Haible  <bruno@clisp.org>
121952         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
121953         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
121954         defined.
121956 2003-11-10  Paul Eggert  <eggert@twinsun.com>
121958         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
121959         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
121960         rejected some allocations of exactly SIZE_MAX - 2 bytes.
121961         From Bruno Haible.
121962         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
121963         not (size_t) -1, since it's defined here.
121965 2003-11-09  Karl Berry  <karl@gnu.org>
121967         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
121969 2003-11-06  Paul Eggert  <eggert@twinsun.com>
121971         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
121972         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
121973         Reject sizes of exactly SIZE_MAX bytes.
121974         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
121975         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
121977 2003-11-05  Bruno Haible  <bruno@clisp.org>
121979         * lib/xsize.h: Include limits.h, to avoid a possible collision with
121980         SIZE_MAX defined in <limits.h> on Solaris.
121982 2003-11-04  Jim Meyering  <jim@meyering.net>
121984         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
121985         variable names, rather than @VAR@.
121986         * modules/poll: Likewise.
121988 2003-11-04  Bruno Haible  <bruno@clisp.org>
121990         * modules/xsize: New file.
121991         * modules/linebreak: Depend on xsize.
121992         * MODULES.html.sh (func_all_modules): Add xsize.
121994 2003-11-04  Bruno Haible  <bruno@clisp.org>
121996         * m4/xsize.m4: New file.
121998 2003-11-04  Bruno Haible  <bruno@clisp.org>
122000         * lib/xsize.h: New file.
122001         * lib/linebreak.c: Include xsize.h.
122002         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
122003         argument for overflow.
122004         Suggested by Paul Eggert.
122006 2003-11-03  Karl Berry  <karl@gnu.org>
122008         * config/config.{guess,sub}: update from config.
122010 2003-11-03  Jim Meyering  <jim@meyering.net>
122012         * modules/userspec (lib_SOURCES): Add userspec.h.
122013         (Include): Add "userspec.h".
122014         Improve description.
122016 2003-11-03  Jim Meyering  <jim@meyering.net>
122018         * lib/userspec.c: Include "userspec.h".
122019         * lib/userspec.h: New file.
122021 2003-11-03  Bruno Haible  <bruno@clisp.org>
122023         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
122025 2003-11-03  Bruno Haible  <bruno@clisp.org>
122027         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
122028         available, to avoid (extremely rare) race condition.
122029         Suggested by Paul Eggert.
122031 2003-11-02  Karl Berry  <karl@gnu.org>
122033         * config/srclist.txt (vasprintf.c): sync broken, sigh.
122035 2003-10-31  Paul Eggert  <eggert@twinsun.com>
122037         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
122038         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
122039         (read_filesystem_list): Set and use me_type_malloced.
122040         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
122041         whatever the type happens to be), for brevity and consistency.
122042         Check for size calculation overflow on Alphas running OSF/1.
122044 2003-10-31  Jim Meyering  <jim@meyering.net>
122046         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
122048         * lib/linebuffer.c: Include <string.h> for declaration of memset.
122050 2003-10-30  Paul Eggert  <eggert@twinsun.com>
122051             Bruno Haible  <bruno@clisp.org>
122053         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
122054         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
122056 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
122058         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
122059         netbsd*-gnu*.  Suggested by Robert Millan.
122061 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122063         * modules/group-member: Depend on stdbool.
122065 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122067         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
122069 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122071         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
122072         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
122073         after the 'gnu' in these cases.  This fixes some bugs in the
122074         previous change, and is based on suggestions by Robert Millan.
122076 2003-10-29  Paul Eggert  <eggert@twinsun.com>
122078         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
122079         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
122080         no longer needed.
122081         * lib/quotearg.c (quotearg_n_options): Use it.
122082         * lib/group-member.c: Include <stdbool.h>.
122083         (free_group_info): Arg is now const *; don't free arg.
122084         (get_group_info): Now returns bool and accepts struct group_info *,
122085         rather than returning a malloc'ed struct group_info *.
122086         All uses changed.  Check for overflow in internal size calculation.
122088         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
122089         rather than xmalloc/xrealloc.
122090         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
122091         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
122092         conformance bug: the old code used a pointer after freeing the
122093         storage that it addressed.
122094         * lib/hash.c (hash_initialize): Simplify the code by using
122095         xalloc_oversized rather than doing it by hand.
122096         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
122097         the buffer preserved.  Use free and xmalloc instead.
122098         * lib/quotearg.c (quotearg_n_options): Likewise.
122099         Use a simpler test for size overflow.  Don't use xalloc_oversized
122100         because unsigned int might be wider than size_t (!); this suggests
122101         that we should switch from unsigned int to size_t for slot numbers.
122103 2003-10-28  Paul Eggert  <eggert@twinsun.com>
122105         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
122106         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
122107         NetBSD kernels.  Requested by Richard Stallman.
122109 2003-10-27  Paul Eggert  <eggert@twinsun.com>
122111         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
122112         to allocate the returned structure.  Do not allocate a subarray,
122113         as x2nrealloc will do that.
122114         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
122115         instead of xnrealloc.
122116         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
122118 2003-10-27  Bruno Haible  <bruno@clisp.org>
122120         * lib/stdbool_.h: Better support for BeOS.
122122 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122124         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
122125         now uses inline.
122127 2003-10-26  Paul Eggert  <eggert@twinsun.com>
122129         * lib/xalloc.h (xalloc_oversized): New static inline function, for
122130         callers that want to do their own size-overflow checking.  Include
122131         <stdbool.h>, since xalloc_oversized returns bool.
122132         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
122133         to use xalloc_oversized.
122135         Add two functions x2realloc, x2nrealloc, for programs that grow
122136         arrays dynamically by doubling their sizes.
122137         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
122138         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
122139         New functions.
122141         Port to C99 semantics for 'inline' of external functions.
122142         Bug reported by Bruno Haible.
122143         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
122144         with the old contents of xnmalloc.
122145         (xnmalloc, xmalloc): Use it.
122146         (xnrealloc_inline): New static inline function,
122147         with the old contents of xnrealloc.
122148         (xnrealloc, xrealloc): Use it.
122150         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
122151         that.
122153 2003-10-26  Karl Berry  <karl@gnu.org>
122155         * config/srclist.txt (COPYING.DOC): no longer available from
122156         /gd/gnuorg; don't know where the ultimate source is.
122158 2003-10-25  Paul Eggert  <eggert@twinsun.com>
122160         Fix several address-calculation bugs in the hash modules,
122161         plus some minor code cleanup.
122163         * lib/hash.h: Include <stdbool.h>, for bool.
122164         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
122165         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
122166         hash_get_n_entries, hash_get_max_bucket_length,
122167         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
122168         hash_rehash): Use size_t rather than unsigned.
122169         * lib/hash.c (struct hash_table, hash_get_n_buckets,
122170         hash_get_n_buckets_used, hash_get_n_entries,
122171         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
122172         hash_get_entries, hash_do_for_each, hash_string, is_prime,
122173         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
122174         Likewise.
122175         (SIZE_MAX): Define if not defined.
122176         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
122177         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
122178         hash_print):
122179         Use const * when possible.
122180         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
122181         (check_tuning): Fix bug: if tuning parameters were very close to
122182         0 or 1, rounding errors could have caused subscript violations.
122183         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
122184         (hash_initialize): Add 'fail:' label
122185         to free table and return NULL, and use it to simplify code.
122186         Use calloc rather than clearing the storage ourself.
122187         (hash_initialize, hash_rehash): Check for arithmetic overflow in
122188         buffer size calculations.
122189         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
122190         Include <stddef.h>, for size_t.
122191         * lib/hash-pjw.c (hash_pjw): Likewise.
122192         Switch to method described by Bruno Haible.
122193         Include <limits.h>, for CHAR_BIT.
122194         (SIZE_BITS): New macro.
122196 2003-10-23  Paul Eggert  <eggert@twinsun.com>
122198         * m4/getline.m4 (AM_FUNC_GETLINE):
122199         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
122200         hosts.  Problem reported by Derek Robert Price in
122201         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
122202         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
122203         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
122205 2003-10-21  Paul Eggert  <eggert@twinsun.com>
122207         * lib/getndelim2.c (getndelim2): When size calculation overflows,
122208         ceiling the allocation at NMAX bytes rather than silently
122209         discarding input bytes before NMAX is reached.  This makes
122210         a difference only if NMAX exceeds SIZE_MAX / 2.
122212         * lib/obstack.c: Merge from glibc.
122213         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
122214         Add libc_hidden_def (_obstack_newchunk).
122215         (_obstack_free) [! defined _LIBC]: Remove.
122216         [defined _LIBC]: Make a strong alias from obstack_free, rather than
122217         a clone of the function body.
122218         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
122219         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
122221         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
122222         glibc.
122223         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
122224         arg to memcpy.
122226         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
122227         (obstack_ptr_grow_fast, obstack_int_grow_fast):
122228         Don't use lvalue casts, as GCC plans to remove support for them
122229         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
122230         was also present in the non-GCC version, indicating that this
122231         code had always been buggy and had never been widely used.
122232         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
122233         Use the fast variant of each macro, rather than copying the
122234         definiens of the fast variant; that way, we'll be more likely to
122235         catch future bugs in the fast variants.
122237 2003-10-20  Bruno Haible  <bruno@clisp.org>
122239         * modules/wait-process: New file.
122240         * MODULES.html.sh (func_all_modules): Add wait-process.
122242 2003-10-20  Bruno Haible  <bruno@clisp.org>
122244         * m4/wait-process.m4: New file.
122246 2003-10-20  Bruno Haible  <bruno@clisp.org>
122248         * lib/wait-process.h: New file, from GNU gettext.
122249         * lib/wait-process.c: New file, from GNU gettext.
122251 2003-10-19  Jim Meyering  <jim@meyering.net>
122253         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
122254         HPUX 10.20.
122256 2003-10-18  Karl Berry  <karl@gnu.org>
122258         * config/config.guess: update from config.
122260 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122262         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
122263         (getgroups): First arg is int, not size_t.
122264         Don't let 'free' mangle errno.
122266 2003-10-16  Paul Eggert  <eggert@twinsun.com>
122268         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
122270 2003-10-16  Karl Berry  <karl@gnu.org>
122272         * config/config.{guess,sub}: update from config.
122274 2003-10-16  Jim Meyering  <jim@meyering.net>
122276         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
122277         memcpy.
122279 2003-10-15  Paul Eggert  <eggert@twinsun.com>
122281         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
122282         (SIZE_MAX): Remove.
122283         (new_exclude, add_exclude_file): Initial size no longer needs to
122284         be a power of 2.
122285         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
122286         our own address arithmetic overflow checking.
122288         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
122289         (fnmatch): Do not alloca more than 2000 wide characters;
122290         instead, use malloc for large buffers.
122291         Check for address arithmetic overflow, and return -1
122292         with errno set to ENOMEM in that case.
122293         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
122294         (NEW_PATTERN): Do not alloca more than 8000 bytes;
122295         instead, return -1.  Check for address arithmetic overflow.
122297 2003-10-14  Paul Eggert  <eggert@twinsun.com>
122299         Handle invalid suffixes and overflow independently, so that
122300         callers can treat them independently as needed.  Fix some bugs in
122301         suffix handling, e.g., "100k@" was not diagnosed as an invalid
122302         suffix for a human-readable blocksize.  The major caller-visible
122303         change is the addition of a new
122304         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
122305         that both overflow and suffix chars were found.
122307         * lib/human.c (humblock): Don't check separately for invalid suffix
122308         char; that is xstrtoumax's job (now that its bug is fixed).
122309         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
122310         INTMAX_MAX]: New macros.
122311         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
122312         TYPE_MAXIMUM): New macros.
122313         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
122314         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
122315         if overflow occurs, as it's what __strtol does and it's more useful
122316         in practice.
122317         (__xstrtol): If __strtol reports some error other than ERANGE,
122318         reflect it to the caller as LONGINT_INVALID.  If it reports
122319         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
122320         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
122321         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
122322         value.
122323         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
122324         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
122325         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
122326         [defined UINTMAX_MAX]: New macros.
122328 2003-10-14  Bruno Haible  <bruno@clisp.org>
122330         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
122332 2003-10-14  Bruno Haible  <bruno@clisp.org>
122334         * m4/sig_atomic_t: New file, from GNU gettext.
122335         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
122337 2003-10-14  Bruno Haible  <bruno@clisp.org>
122339         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
122340         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
122341         Also use volatile where needed.
122343 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122345         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
122346         Change maintainer from Bruno Haible to 'all'.
122348 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122350         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
122352 2003-10-12  Paul Eggert  <eggert@twinsun.com>
122354         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
122355         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
122356         and define in terms of the other primitives.
122357         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
122358         (SIZE_MAX): Define if not already defined.
122359         (array_size_overflow): New function.
122360         (xalloc_die): Abort instead of exiting if 'error' returns.
122361         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
122362         (xmalloc, xrealloc): Use them.
122363         (xcalloc): Check for address arithmetic overflow.
122364         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
122365         a bit faster than strcpy.
122367 2003-10-10  Simon Josefsson  <jas@extundo.com>
122369         * modules/argp (Depends-on): Add restrict and strcase.
122371 2003-10-10  Simon Josefsson  <jas@extundo.com>
122373         * m4/argp.m4: Add AC_C_INLINE.
122375 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122377         Merge getpass from libc, plus a few fixes.
122379         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
122380         Include <stdbool.h>.
122381         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
122382         __fsetlocking to empty.
122383         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
122384         do include <bits/libc-lock.h>.
122385         Do not include <fcntl.h>; not needed.
122386         [_LIBC]: Include <wchar.h>.
122387         (NOTCANCEL_MODE): New macro.
122388         (flockfile, funlockfile) [_LIBC]: New macros.
122389         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
122390         [!_LIBC]: New macros.
122391         (call_fclose): New function.
122392         (getpass): Use it.  Save tty stream separately; this simplifies the
122393         code and makes it more reliable if stdin happens to equal stdout.
122394         Invoke __fsetlocking on tty.
122395         Handle thread cancellation if needed.
122396         Namespace cleanup (use __tcgetattr, __getline).
122397         Use bool for Booleans.
122398         [USE_IN_LIBIO]: Handle wide streams.
122399         [!_LIBC]: Unconditionally do the fseek, since we don't know what
122400         stream might go where.
122402         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
122403         doesn't have to include <stdio.h> before us.
122404         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
122405         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
122406         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
122407         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
122408         if not declared, so that we can use getpass.c code from libc without
122409         rewriting it.
122410         (flockfile, ftrylockfile, funlockfile): New macros.
122412 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122414         * modules/getpass: Depend on stdbool.
122416 2003-10-08  Paul Eggert  <eggert@twinsun.com>
122418         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
122420 2003-10-07  Karl Berry  <karl@gnu.org>
122422         * config/config.{guess,sub}: update from config.
122424 2003-10-06  Jim Meyering  <jim@meyering.net>
122425             Bruno Haible  <bruno@clisp.org>
122427         This lets translators provide better translations for the
122428         "Written by ..." part of --version output.
122429         * lib/version-etc.h: Include stdarg.h.
122430         (version_etc_copyright): Declare as readonly.
122431         (version_etc): Make this function variadic with a NULL-terminated list
122432         of author name strings.
122433         (version_etc_va): New declaration.
122434         * lib/version-etc.c: Include stdarg.h, stdlib.h.
122435         (version_etc_copyright): Declare as readonly.
122436         (version_etc_va): New function. Provide a different translatable string
122437         for each possible number of authors < 10. Abbreviate when there are 10
122438         authors or more.
122439         (version_etc): Make this function variadic. Call version_etc_va.
122440         Suggestion from Gary V. Vaughan.
122442         * lib/long-options.h (parse_long_options): Change prototype: the
122443         authors string is moved to the end and becomes variadic.
122444         * lib/long-options.c: Include stdarg.h.
122445         (parse_long_options): Make this function variadic, too.
122446         Call version_etc_va, not version_etc.
122448 2003-10-06  Bruno Haible  <bruno@clisp.org>
122450         * modules/version-etc-2: Remove file.
122451         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
122453 2003-10-06  Bruno Haible  <bruno@clisp.org>
122455         * modules/fatal-signal: New file.
122456         * MODULES.html.sh (func_all_modules): Add fatal-signal.
122458 2003-10-06  Bruno Haible  <bruno@clisp.org>
122460         * m4/fatal-signal.m4: New file.
122461         * m4/signalblocking.m4: New file, from GNU gettext.
122463 2003-10-06  Bruno Haible  <bruno@clisp.org>
122465         * lib/version-etc-2.h: Remove file.
122466         * lib/version-etc-2.c: Remove file.
122468 2003-10-06  Bruno Haible  <bruno@clisp.org>
122470         * lib/fatal-signal.h: New file, from GNU gettext.
122471         * lib/fatal-signal.c: New file, from GNU gettext.
122473 2003-10-05  Paul Eggert  <eggert@twinsun.com>
122475         * README: Rework advice for preventing empty .o files.
122476         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
122477         not <sys/types.h>.
122479 2003-10-04  Karl Berry  <karl@gnu.org>
122481         * lib/argp*: update from libc.
122483 2003-10-04  Karl Berry  <karl@gnu.org>
122485         * config/config.{guess,sub}: update from config.
122487 2003-10-02  Bruno Haible  <bruno@clisp.org>
122489         * modules/lchown (Include): Add lchown.h.
122490         * modules/time_r (Include): Use "..." syntax.
122491         * modules/xgetdomainname (Include): Add xgetdomainname.h.
122493 2003-10-01  Simon Josefsson  <jas@extundo.com>
122495         * MODULES.html.sh (func_all_modules): Move gethostname from section
122496         'based on' to section 'lacking' POSIX:2001.
122498 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
122500         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
122501         to output mode on the same stream.
122503 2003-09-29  Paul Eggert  <eggert@twinsun.com>
122505         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
122506         Fix arg typo in previous patch.
122508 2003-09-28  Jim Meyering  <jim@meyering.net>
122510         * lib/error.c: Correct cpp indentation.
122512 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122514         * modules/free: New file.
122516 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122518         * m4/free.m4: New file.
122520 2003-09-27  Paul Eggert  <eggert@twinsun.com>
122522         * lib/minmax.h (MIN, MAX)
122523         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
122524         Omit the special code that used __typeof__, since we worry that
122525         it could be more trouble than it's worth.  See:
122526         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
122527         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
122529         * lib/free.c: New file.
122531 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
122533         Trivial fixes to Makefile.am parts of module listings.
122534         * modules/strstr: Append strstr.h to lib_SOURCES.
122535         * modules/strcase: Likewise, for strcase.h.
122537 2003-09-27  Karl Berry  <karl@gnu.org>
122539         * config/mkinstalldirs: update from automake.
122541 2003-09-26  Paul Eggert  <eggert@twinsun.com>
122543         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
122544         (error_tail): Do not loop, reallocating temporary buffer, since
122545         the output cannot contain more wide characters than the input
122546         contains bytes, the size must be big enough already.  This avoids
122547         one potential size overflow calculation.  Check for size overflow
122548         when calculating temporary buffer size.  Free temporary buffer
122549         when done, if it was allocated with malloc; this plugs a memory
122550         leak.  Remove casts from void * to pointers, that are no longer
122551         needed now that we're assuming C89 or better.
122553         Merge error changes from glibc.
122555         * lib/error.c, error.h: Update copyright notice header to match glibc.
122556         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
122557         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
122558         Disable cancellation while printing error.
122559         * lib/error.h: Prepend __ to parameter names.
122561 2003-09-26  Jim Meyering  <jim@meyering.net>
122563         * lib/error.c (error_tail): Move some declarations
122564         into inner scope where the local variables are used.
122566 2003-09-26  Bruno Haible  <bruno@clisp.org>
122568         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
122569         stpncpy().
122570         Don't define stpncpy through config.h; it's now done through stpncpy.h.
122572 2003-09-26  Bruno Haible  <bruno@clisp.org>
122574         * lib/stpncpy.h (gnu_stpncpy): New declaration.
122575         (stpncpy): Define as alias for gnu_stpncpy.
122576         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
122578 2003-09-25  Simon Josefsson  <jas@extundo.com>
122580         * lib/xgetdomainname.h: New file.
122581         * lib/xgetdomainname.c: New file.
122583 2003-09-25  Simon Josefsson  <jas@extundo.com>
122584             Bruno Haible  <bruno@clisp.org>
122586         * modules/getdomainname: New file.
122587         * modules/xgetdomainname: New file.
122588         * MODULES.html.sh (func_all_modules): Add getdomainname,
122589         xgetdomainname.
122591 2003-09-25  Simon Josefsson  <jas@extundo.com>
122592             Bruno Haible  <bruno@clisp.org>
122594         * m4/getdomainname.m4: New file.
122596 2003-09-25  Simon Josefsson  <jas@extundo.com>
122597             Bruno Haible  <bruno@clisp.org>
122599         * lib/getdomainname.h: New file.
122600         * lib/getdomainname.c: New file.
122602 2003-09-25  Karl Berry  <karl@gnu.org>
122604         * lib/argp-fmtstream.c, argp-help.c: update from libc.
122606 2003-09-25  Karl Berry  <karl@gnu.org>
122608         * config/install-sh: update from automake.
122610 2003-09-25  Bruno Haible  <bruno@clisp.org>
122612         * modules/version-etc-2: New file, from modules/version-etc with
122613         modifications.
122614         * MODULES.html.sh (func_all_modules): Add version-etc-2.
122616 2003-09-25  Bruno Haible  <bruno@clisp.org>
122618         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
122619         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
122621 2003-09-24  Simon Josefsson  <jas@extundo.com>
122623         * modules/xgethostname: Add xgethostname.h.
122625 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122627         * lib/linebuffer.c (freebuffer): Don't free the argument, just
122628         the buffer associated with the argument.  Bug reported by
122629         Simon Josefsson.
122631 2003-09-24  Paul Eggert  <eggert@twinsun.com>
122633         * README: Document assumptions that 'int' is at least 32 bits
122634         wide, that integer arithmetic is 2's complement without overflow,
122635         that there are no holes in integer values, that adding sizes of
122636         two nonoverlapping objects can't overflow, and that all-bits-zero
122637         yields scalar zero.  Fix spelling and capitalization typos.
122639 2003-09-19  Karl Berry  <karl@gnu.org>
122641         * lib/argp.h: update from libc.
122643 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122645         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
122646         to avoid spurious warnings like "AC_RUN_IFELSE was called before
122647         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
122649 2003-09-17  Paul Eggert  <eggert@twinsun.com>
122651         * gnulib-tool: Use "test -h", not "test -L", for portability
122652         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
122653         (tags_regexp): Remove, since \| doesn't conform to POSIX.
122654         (sed_extract_prog): Issue s commands one-by-one, rather than
122655         using \| in one s command.
122657 2003-09-16  Paul Eggert  <eggert@twinsun.com>
122659         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
122660         input error, instead of returning NULL the next time we are called
122661         (and therefore losing track of errno).
122663 2003-09-16  Bruno Haible  <bruno@clisp.org>
122665         * gnulib-tool (func_create_testdir): Warn about duplicated
122666         dependencies.
122668 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122670         * modules/argmatch, modules/fatal, modules/obstack,
122671         modules/xalloc, modules/xgethostname: Sort dependencies by
122672         importance, not alphabetically.
122674 2003-09-15  Paul Eggert  <eggert@twinsun.com>
122676         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
122677         fails, so that the caller gets the proper errno.
122679         * lib/readutmp.c (read_utmp): Likewise.
122680         Check for fstat error.  Close stream and free storage
122681         when failing.
122683 2003-09-14  Karl Berry  <karl@gnu.org>
122685         * config/srclist.txt (strdup.c): disable for c89 changes.
122687 2003-09-14  Jim Meyering  <jim@meyering.net>
122689         * lib/getloadavg.c: Correct cpp indentation.
122690         * lib/strdup.c: Likewise.
122691         * lib/vasnprintf.c: Likewise.
122693 2003-09-14  Bruno Haible  <bruno@clisp.org>
122695         * modules/fwriteerror: New file.
122696         * MODULES.html.sh (func_all_modules): Add fwriteerror.
122698 2003-09-14  Bruno Haible  <bruno@clisp.org>
122700         * lib/fwriteerror.h: New file.
122701         * lib/fwriteerror.c: New file.
122703 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122705         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
122706         modules/xgethostname, modules/xalloc: Depend on exit.
122708 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122710         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
122712         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
122713         and AC_MINIX, too, so that their extensions are available.
122715         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
122716         This macro has been superseded by gl_BACKUPFILE.
122718         More patches to assume C89 or better.
122720         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
122722         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
122723         unconditionally.
122724         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
122725         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
122726         Include <string.h>, <stdlib.h> unconditionally.
122727         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
122728         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
122729         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
122730         headers or for string.h.
122731         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
122732         or strtoul.
122734         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
122735         headers.
122736         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
122737         * m4/userspec.m4 (gl_USERSPEC): Likewise.
122738         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
122739         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
122740         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
122741         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
122742         memcpy, memset.
122743         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
122744         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
122745         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
122746         strtol.
122747         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
122748         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
122749         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
122750         strtoul.
122752 2003-09-12  Paul Eggert  <eggert@twinsun.com>
122754         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
122755         * lib/obstack.c [!defined _LIBC]: Likewise.
122756         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
122757         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
122758         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
122760         More changes to assume C89 or better.
122762         * lib/error.c (error_tail): Assume vprintf.
122764         * lib/argmatch.c (getenv): Remove decl.
122765         * lib/progreloc.c (get_full_program_name): Define via prototype.
122766         * lib/setenv.c (clearenv): Likewise.
122767         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
122768         needed.
122769         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
122770         (malloc, memcpy): Remove decls.
122771         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
122772         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
122773         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122774         (memcpy): Remove macro.
122775         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
122776         (__P): Remove.  All uses removed.
122777         (PTR): Remove.  All uses changed to void *.
122778         (CHAR_BIT, NULL): Remove.
122779         (spaces, zeros, memset_space, memset_zero)
122780         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
122781         Remove.
122782         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
122783         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
122784         Define with prototype.
122785         Remove now-unnecessary prototype decl.
122786         (extra_args_spec): Assume ANSI C.  All uses changed.
122787         (extra_args_spec_iso): Remove.
122788         (my_strftime, emacs_strftimeu): Define via prototype.
122789         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
122790         unconditionally.
122791         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
122792         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
122793         (strtoul, strtol): Remove decls.
122794         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
122795         LONG_MAX): Remove.
122796         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
122797         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
122798         (LOCALE_PARAM_PROTO): New macro.
122799         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
122800         (INTERNAL (strtol), strtol): Define with a prototype.
122801         (PARAMS): Remove.  All uses removed.
122802         * lib/tempname.c: Include <string.h> unconditionally.
122803         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
122804         * lib/xgethostname.c (main): Define with a prototype.
122805         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
122806         Include <stdlib.h> unconditionally.
122807         (calloc, malloc, realloc, free): Remove decls.
122808         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
122809         Include <stdlib.h> unconditionally.  Sort include file names.
122810         (strtod): Remove.
122811         (xstrtod): Define with a prototype.
122812         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
122813         (strtol, strtoul): Remove decls.
122815 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122817         More patches to assume C89 or better.
122818         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
122819         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
122820         string.h, memchr, STDC_HEADERS.
122822 2003-09-11  Paul Eggert  <eggert@twinsun.com>
122824         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
122825         Include <stdlib.h>, <string.h> unconditionally.
122826         Remove now-unnecessary cast to char *.
122827         * lib/strnlen.c: Include <string.h> unconditionally.
122828         * lib/yesno.c (yesno): Define with a prototype.
122830 2003-09-11  Bruno Haible  <bruno@clisp.org>
122832         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
122834 2003-09-10  Jim Meyering  <jim@meyering.net>
122836         * lib/error.c: Correct indentation of cpp directives.
122838 2003-09-10  Bruno Haible  <bruno@clisp.org>
122840         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
122841         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
122842         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
122843         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
122844         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
122845         <stdlib.h> and <string.h> checks.
122846         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
122847         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
122849 2003-09-10  Bruno Haible  <bruno@clisp.org>
122851         * lib/strcspn.c: Include <string.h> unconditionally.
122852         * lib/strpbrk.c: Include <string.h> unconditionally.
122853         * lib/strstr.c: Include <string.h> unconditionally.
122854         * lib/unicodeio.c: Include <string.h> unconditionally.
122855         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
122856         * lib/unsetenv.c: Likewise.
122857         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
122858         * lib/yesno.c: Include <stdlib.h> unconditionally.
122859         (rpmatch): Add prototype.
122861 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122863         More patches to assume C89 or better.
122864         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
122865         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
122866         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
122867         or for string.h.
122868         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
122869         stdlib.h.
122870         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
122871         C headers.
122872         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
122873         string.h.
122874         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
122875         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
122876         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
122877         or for string.h.
122878         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
122879         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
122880         C headers.
122881         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
122882         memcpy.
122883         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
122884         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
122885         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
122886         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
122887         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
122888         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
122889         string.h, free.
122890         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
122891         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
122892         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
122893         C headers, or for string.h.
122894         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
122895         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
122896         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
122897         headers, memory.h, stdlib.h, string.h, strings.h.
122898         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
122899         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
122900         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
122901         strchr.
122902         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
122903         headers, memory.h, string.h.
122904         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
122905         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
122906         free.
122907         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
122908         headers.
122909         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
122910         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
122911         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
122912         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
122913         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
122915 2003-09-09  Paul Eggert  <eggert@twinsun.com>
122917         More K&R removal.
122919         * lib/acosl.c (main): Use a prototype.
122920         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
122921         tanl.c: Likewise.
122923         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
122925         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
122926         (getopt, etopt_long, getopt_long_only, _getopt_internal)
122927         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
122928         with a prototype.
122929         * lib/getopt.c (const): Remove macro.
122930         Include <string.h> unconditionally.
122931         (my_index): Remove; all uses changed to strchr.
122932         (strlen): Remove decl.
122933         (exchange): Remove forward decl; no longer needed.
122934         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
122935         Define with prototype.
122936         * lib/getopt1.c (const): Remove macro.
122937         (getopt_long, getopt_long_only, main): Define with prototype.
122939         * lib/getugroups.c: Include <string.h> unconditionally.
122941         * lib/getusershell.c: Include <stdlib.h> unconditionally.
122942         (getusershell, setusershell, endusershell, readname, main):
122943         Define with prototypes.
122945         * lib/group-member.c: Include group-member.h first.
122946         Include <stdlib.h> unconditionally.
122948         * lib/hard-locale.c: Include hard-locale.h first.
122949         Include <stdlib.h>, <string.h> unconditionally.
122951         * lib/hash.c (free, malloc): Remove decls.
122952         Include <stdlib.h> unconditionally.
122954         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
122955         (getenv): Do not declare.
122957         * lib/idcache.c: Include <string.h> unconditionally.
122959         * lib/long-options.c: Include long-options.h first, to test interface.
122960         Include <stdlib.h> unconditionally.
122962         * lib/makepath.c: Include makepath.h first, to test interface.
122963         Include <stdlib.h> and <string.h> unconditionally.
122965         * lib/linebuffer.c: Include <stdlib.h>.
122966         (free): Remove decl.
122968         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
122969         stddef.h. rpl_malloc returns void *, not char *.
122970         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
122971         prototype.
122973         * lib/md5.h: Include <limits.h> unconditionally.
122974         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
122975         (__P): Remove; all uses removed.
122976         * lib/md5.c: Include "md5.h" first.
122977         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
122978         md5_buffer, md5_process_bytes, md5_process_block):
122979         Define with prototypes.
122980         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
122981         * lib/sha.c: Include "sha.h" first.
122982         Include <stdlib.h>, <string.h> unconditionally.
122984         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
122985         * lib/memcmp.c (__ptr_t): Likewise.
122986         * lib/memrchr.c (__ptr_t): Likewise.
122987         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
122988         Include <string.h> unconditionally.
122989         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
122990         * lib/memchr.c: Include <stdlib.h> unconditionally.
122991         * lib/memchr.c (LONG_MAX): Remove.
122992         * lib/memrchr.c (LONG_MAX): Likewise.
122993         * lib/memchr.c (__memchr): Define via a prototype.
122994         * lib/memrchr.c (__memrchr): Likewise.
122995         * lib/memcmp.c (__P): Remove, and remove all uses.
122996         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
122997         Remove forward decls; no longer needed.
122998         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
122999         Use types required by C89 in prototype.
123001         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
123002         * lib/savedir.c: Likewise.
123003         * lib/mkdir.c (free): Remove decl.
123004         * lib/rmdir.c (rmdir): Define with a prototype.
123005         * lib/savedir.c: Include savedir.h first, to test interface.
123007         * lib/mktime.c (STDC_HEADERS): Remove.
123008         Include <stdlib.h>, <string.h> unconditionally.
123010         * lib/modechange.c: Include <stdlib.h> unconditionally.
123011         (malloc): Remove decl.
123013         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
123014         (free): Remove decl.
123016         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
123017         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
123018         (This type really should be intptr_t, but that's a C99ism.)
123019         (_obstack_memcpy): Remove: all uses changed to memcpy.
123020         Include <string.h> unconditionally.
123021         (struct obstack): Assume __STDC__ for types of members
123022         chunkfun, freefun, extra_arg.
123023         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
123024         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
123025         obstack_begin, obstack_specify_allocation,
123026         obstack_specify_allocation_with_arg, obstack_chunkfun,
123027         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
123028         Remove unprototyped decls and the macros that use them.
123029         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
123030         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
123031         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
123032         (defined __STDC__ && __STDC__)]:
123033         Remove nonprototyped code.
123034         Include <stdlib.h> unconditionally.
123035         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
123036         _obstack_allocated_p, _obstack_free, obstack_free,
123037         _obstack_memory_used, print_and_abort):
123038         Define using prototypes.
123039         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
123040         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
123041         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
123042         obstack_next_free, obstack_object_size, obstack_room) [0]:
123043         Remove unused, unprototyped code.
123045         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
123047         * lib/physmem.c (physmem_total, physmem_available, main): Define
123048         with prototypes.
123050         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
123051         (main): Define with a prototype.
123053         * lib/posixver.c (getenv): Remove decl.
123055         * lib/putenv.c (malloc): Returns void *, not char *.
123056         Include <string.h> unconditionally.
123057         (strchr, memcpy, NULL): Do not define.
123059         * lib/readtokens.c: Include readtokens.h first, to test interface.
123060         Include <stdlib.h>, <string.h> unconditionally.
123061         (init_tokenbuffer): Define with a prototype.
123063         * lib/regex.c (PARAMS): Remove.  All uses removed.
123064         All uses of _RE_ARGS removed, too.
123065         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123066         unconditionally.
123067         (bzero): Assume memset exists.
123068         (memcmp, memcpy, NULL): Remove.
123069         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
123070         char, or assignments to local vars of type signed char.
123071         (init_syntax_once, PREFIX(extract_number_and_incr),
123072         PREFIX(print_partial_compiled_pattern),
123073         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
123074         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
123075         PREFIX(regex_grow_registers), PREFIX(regex_compile),
123076         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
123077         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
123078         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
123079         wcs_compile_range, byte_compile_range, truncate_wchar,
123080         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
123081         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
123082         count_mbs_length, wcs_re_match_2_internal,
123083         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
123084         PREFIX(alt_match_null_string_p),
123085         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
123086         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
123087         regfree, PREFIX(extract_number)): Define with prototype.  Remove
123088         now-unnecessary declaration, if any.
123089         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
123090         regcomp, regexec):
123091         Remove now-unnecessary casts among pointer types.
123092         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
123094         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
123095         (free): Remove decl.
123097         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
123099         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
123100         (free): Remove decl.
123102         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
123103         * lib/xgetcwd.c: Likewise.
123105         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
123106         (free): Remove decl.
123108         * lib/strchrnul.c (strchrnul): Define with a prototype.
123109         Fix bug: c_in was not converted to char before searching.
123111         The following changes are not K&R related:
123113         * lib/group-member.h: Include <sys/types.h>, so that this file is
123114         self-contained.
123115         * lib/makepath.h: Likewise.
123117         * lib/getusershell.c (readname, default_index, line_size, readname):
123118         Use size_t, not int, for sizes.
123119         (readname): If the size overflows, report an error instead of
123120         looping forever.
123122 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123124         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
123125         libc.
123127 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123129         * README: New section: portability guidelines.
123131 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123133         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
123134         C89 spec.
123136 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
123138         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
123140 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123142         Assume C89 or better; remove K&R cruft.
123143         A few of these changes were first proposed by Derek Robert Price
123144         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
123146         * lib/addext.c: Include <string.h> unconditionally.
123147         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
123148         Don't declare getenv or malloc.
123150         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
123151         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
123152         (NULL): Remove.
123153         (find_stack_direction, alloca): Use prototypes.
123155         * lib/atexit.c (atexit): Define using a prototype.
123157         * lib/basename.c, dirname.c, stripslash.c:
123158         Include <string.h> unconditionally.
123160         * lib/bcopy.c: Include <stddef.h>.
123161         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
123163         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
123165         * lib/error.h (error, error_at_line, error_print_progname)
123166         [! (defined (__STDC__) && __STDC__)]: Remove decls.
123167         * lib/error.c: Include error.h first, to check interface.
123168         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123169         (VA_START): Remove; all uses changeed to va_start.
123170         (exit, strerror): Remove decls.
123171         (error_print_progname): Prototype uncondionally.
123172         Don't include <errno.h>; no longer needed.
123173         (private_strerror): Remove.
123174         (error_tail): Always define.
123175         (error, error_at_line): Assume C89 or better; always use prototypes.
123176         * lib/fatal.c: Include "fatal.h" first, to test interface.
123177         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
123178         (VA_START): Remove; all uses changed to va_start.
123179         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
123180         this case.
123181         (exit): Remove decl.
123182         (fatal): Prototype unconditionally.  Assume va_start works.
123183         Abort at end, to pacify gcc.
123185         * lib/euidaccess.c (main): Define with a prototype.
123187         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
123189         * lib/exitfail.c: Include <stdlib.h> unconditionally.
123191         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
123192         prototypes.
123193         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
123194         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
123195         (getenv): Remove decl.
123196         (fnmatch): Define using a prototype.
123197         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
123198         (FCT): Define using a prototype.
123200         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
123202         * lib/gethostname.c: Include <stddef.h>.
123203         (gethostname): Define with prototype.  Length is size_t, not int.
123205 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123207         Assume C89 or better; remove K&R cruft.
123208         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
123209         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
123210         string.h, getenv, malloc.
123211         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
123212         headers.
123213         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
123214         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
123215         do not check for strerror.
123216         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
123217         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
123218         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
123219         do not check for doprnt or vprintf.
123220         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
123221         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
123223 2003-09-08  Paul Eggert  <eggert@twinsun.com>
123225         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
123226         getversion.c should have been removed then, but was accidentally
123227         preserved.
123229         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
123230         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
123232 2003-09-08  Karl Berry  <karl@gnu.org>
123234         * config/config.sub, config.guess, srclistvars.sh: update from savannah
123235                 config, forget about prep.
123237         * config/depcomp, missing: update from automake.
123239 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123241         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
123242         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123244 2003-09-07  Paul Eggert  <eggert@twinsun.com>
123246         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
123247         copy_tm_result.  Bug reported by Simon Josefsson in
123248         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
123250 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123252         * m4/time_r.m4: New file.
123253         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
123254         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
123255         is. Check for timegm declaration.
123256         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
123257         Do not check for gmtime_r.
123258         Replace mktime if __mktime_internal does not exist and if mktime
123259         hasn't been replaced already.
123261 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123263         * lib/time_r.c, lib/time_r.h: New files.
123265         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
123266         __localtime_r.
123267         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
123268         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
123270         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
123271         __gmtime_r.
123272         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
123273         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
123274         Include <time_r.h>.
123276         * lib/timegm.c: Switch to glibc implementation, with the following
123277         changes:
123278         [defined HAVE_CONFIG_H]: Include <config.h>.
123279         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
123280         (__mktime_internal) [!defined _LIBC]: New decl.
123281         (__gmtime_r) [!defined _LIBC]: New macro and function.
123282         (timegm): Use a prototype, since gnulib assumes C89.
123283         Do not bother declaring tmp to be const, as it's not really usefu.
123284         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
123285         (timegm): Declare only if HAVE_DECL_TIMEGM.
123287 2003-09-06  Paul Eggert  <eggert@twinsun.com>
123289         * MODULES.html.sh (func_all_modules): Add time_r.
123290         * modules/time_r: New file.
123291         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
123292         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
123294 2003-09-03  Paul Eggert  <eggert@twinsun.com>
123296         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
123297         Bug reported by Lute Kamstra in
123298         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
123300         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
123301         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
123302         course with correspondingly smaller numbers for tomorrow and
123303         yesterday.  From Tadayoshi Funaba.  Originally installed into
123304         sh-utils on 1999-08-07, but the patch got lost (I guess during the
123305         coreutils merge?).
123307 2003-08-31  Simon Josefsson  <jas@extundo.com>
123309         * modules/timegm: New file.
123310         * MODULES.html.sh (func_all_modules): Add timegm.
123312 2003-08-31  Simon Josefsson  <jas@extundo.com>
123314         * m4/timegm.m4: New file.
123316 2003-08-31  Simon Josefsson  <jas@extundo.com>
123318         * lib/timegm.h: New file.
123319         * lib/timegm.c: New file.  Based on
123320         wget-1.8.2/src/http.c:mktime_from_utc.
123322 2003-08-31  Karl Berry  <karl@gnu.org>
123324         * lib/argp.h: update from libc.
123326 2003-08-28  Bruno Haible  <bruno@clisp.org>
123328         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
123329         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
123330         followed by '#define fnmatch fnmatch_posix' gives an error.
123332 2003-08-28  Bruno Haible  <bruno@clisp.org>
123334         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
123335         warning on QNX, which defines O_BINARY to 000000.
123337 2003-08-27  Jim Meyering  <jim@meyering.net>
123339         * m4/mkstemp.m4: Require that the system mkstemp be able to create
123340         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
123341         would fail after 32.  Reported by Danny Levinson.  Details here:
123342         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
123344 2003-08-24  Bruno Haible  <bruno@clisp.org>
123346         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
123347         MSVC7 <stdio.h> is included later.
123349 2003-08-22  Simon Josefsson  <jas@extundo.com>
123351         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
123353 2003-08-20  Karl Berry  <karl@gnu.org>
123355         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
123357 2003-08-20  Bruno Haible  <bruno@clisp.org>
123359         * modules/progname: New file.
123360         * MODULES.html.sh (func_all_modules): Add progname.
123362 2003-08-20  Bruno Haible  <bruno@clisp.org>
123364         * lib/progname.h: New file, from GNU gettext.
123365         * lib/progname.c: New file, from GNU gettext.
123366         * lib/progreloc.c: New file, from GNU gettext.
123368 2003-08-19  Jim Meyering  <jim@meyering.net>
123370         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
123371         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
123373 2003-08-19  Bruno Haible  <bruno@clisp.org>
123375         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
123376         more.
123378 2003-08-19  Bruno Haible  <bruno@clisp.org>
123380         * lib/xstrdup.c: Assume <string.h> exists.
123382 2003-08-18  Paul Eggert  <eggert@twinsun.com>
123384         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
123385         in makefile rules.
123387 2003-08-18  Jim Meyering  <jim@meyering.net>
123389         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
123390         * m4/lib-ld.m4: Likewise.
123392 2003-08-18  Jim Meyering  <jim@meyering.net>
123394         * lib/setenv.h: Indent nested cpp directive.
123395         * lib/vasnprintf.c: Remove trailing blanks.
123397 2003-08-17  Simon Josefsson  <jas@extundo.com>
123399         * modules/xstrndup: New file.
123400         * MODULES.html.sh (func_all_modules): Add xstrndup.
123402 2003-08-17  Simon Josefsson  <jas@extundo.com>
123404         * modules/argp: Fix autoconf macro name. Add more dependencies.
123406 2003-08-17  Simon Josefsson  <jas@extundo.com>
123408         * m4/xstrndup.m4: New file.
123410 2003-08-17  Simon Josefsson  <jas@extundo.com>
123412         * m4/argp.m4: New file.
123414 2003-08-17  Simon Josefsson  <jas@extundo.com>
123415             Bruno Haible  <bruno@clisp.org>
123417         * lib/xstrndup.h: New file.
123418         * lib/xstrndup.c: New file.
123420 2003-08-17  Bruno Haible  <bruno@clisp.org>
123422         * modules/strndup (Files, Include): Add lib/strndup.h.
123424 2003-08-17  Bruno Haible  <bruno@clisp.org>
123426         * modules/euidaccess (Files): Add lib/euidaccess.h.
123428 2003-08-17  Bruno Haible  <bruno@clisp.org>
123430         * lib/strndup.h: New file.
123432 2003-08-17  Bruno Haible  <bruno@clisp.org>
123434         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
123435         like AC_GNU_SOURCE.
123436         * modules/extensions (configure.ac): Comment out the invocation of
123437         gl_USE_SYSTEM_EXTENSIONS.
123439 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123441         Merges from coreutils, etc.
123442         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
123443         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
123444         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
123445         fixing a typo.
123446         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
123447         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
123449 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123451         Document merge from coreutils.
123452         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
123453         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
123454         * modules/utime: Add m4/utimes-null.m4.
123456 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123458         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
123459         space, undoing this 2003-08-12 change:
123460         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123462 2003-08-16  Paul Eggert  <eggert@twinsun.com>
123464         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
123465         strtoul.c from libc, undoing this 2003-08-12 change:
123466         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
123468 2003-08-16  Jim Meyering  <jim@meyering.net>
123470         Merges from coreutils.
123471         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
123472         prefix.  Adjust cache variables similarly.  Create 500 rather than
123473         just 300 files, to exercise bug on Darwin6.5, too.
123474         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
123475         $missing_dir.
123476         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
123477         AM_SYS_POSIX_TERMIOS.
123478         Reported by mkc@mathdogs.com.
123479         Also change use of $am_cv_sys_posix_termios
123480         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
123481         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
123482         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
123483         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
123484         in /proc/mounts until it finds one with matching device number.  This
123485         is unnecessary when the FILE argument *is* a mount point.  No stat call
123486         is necessary in that case.  So, disable the statvfs-testing code on
123487         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
123488         as RedHat bug# 84846.
123489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123490         to 1MB, so as not to render systems with no stack size limit (e.g.,
123491         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123492         Include <unistd.h>.  On some systems,
123493         it is required for the definition of _SC_PAGESIZE.
123495 2003-08-16  Jim Meyering  <jim@meyering.net>
123497         Merge from coreutils.
123498         * lib/xstrtoimax.c: #else #if -> #elif.
123499         * lib/xstrtoumax.c: Likewise.
123501 2003-08-16  Jim Meyering  <jim@meyering.net>
123503         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
123504         * m4/utimes.m4: Removed.
123505         * m4/utimes-null.m4: Renamed from utimes.m4.
123507         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
123508         to 1MB, so as not to render systems with no stack size limit (e.g.,
123509         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
123510         Include <unistd.h>.  On some systems,
123511         it is required for the definition of _SC_PAGESIZE.
123513 2003-08-16  Jim Meyering  <jim@meyering.net>
123514         and Paul Eggert  <eggert@cs.ucla.edu>
123516         Merges from coreutils, etc.
123518         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
123519         using the latest version from cvs.  This avoids problems with #line
123520         directives using a vendor (Sun) compiler.
123521         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
123522         Don't set GETGROUPS_LIB here; now it's
123523         done via getgroups.m4's wrapper function.
123524         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
123525         rather than just in sh-util/configure.in, so that the
123526         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
123527         same.
123528         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
123529         AC_FUNC_GETLOADAVG where to find getloadavg.c.
123530         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
123531         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
123532         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
123533         Remove code that is now done by the newly-required macros.
123534         Append $(EXEEXT) to DF_PROG.
123535         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
123536         Do not invoke or require the following here,
123537         since prereq.m4 or some gnulib .m4 now does this for us:
123538         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
123539         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
123540         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
123541         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
123542         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
123543         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
123544         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
123545         AC_FUNC_OBSTACK.
123546         Do not replace the following functions, as this is now the job
123547         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
123548         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
123549         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
123550         atexit getpass, strdup, getpagesize.
123551         Replace 'raise'.
123552         Do not check for the following functions, as this is now the job
123553         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
123554         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
123555         setregid.
123556         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
123557         Check for sys/sysctl.h.
123558         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
123559         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
123560         of checking for ssize_t ourselves.
123562         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
123563         Require every macro that gnulib/modules/* suggests for us.
123564         (jm_PREREQ_ADDEXT): New macro.
123565         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
123566         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
123568         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
123569         (gl_PHYSMEM): Use it.
123570         Also check for `table' function.
123571         Check for new headers and functions.
123572         Add check for sys/sysmp.h.
123573         With suggestions from Kaveh Ghazi.
123574         Ignore headers that are present but cannot be compiled.  This
123575         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
123576         C 5.4.
123578 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123580         Document merge from coreutils.
123581         * modules/userspec: Depend on posixver.
123582         * modules/strftime: Depend on tzset.
123584 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123586         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
123587         rather than tab, after '#' in shell-script copyright notices.
123588         Suggested by Bruno Haible.
123590 2003-08-15  Paul Eggert  <eggert@twinsun.com>
123592         * config/srclist-update: Use three spaces, rather than tab, after '#'
123593         in shell-script copyright notices.  Suggested by Bruno Haible.
123594         Remove unnecessary parenthesization in regular expression.
123596 2003-08-15  Jim Meyering  <jim@meyering.net>
123598         Merge from coreutils.
123599         * lib/xgethostname.c: Include <stdlib.h>.
123600         (xghostname): Don't exit for anything other than memory-related
123601         failure; just return NULL.
123602         * lib/userspec.c: Include "posixver.h".
123603         (parse_user_spec): Accept `.' as a separator only
123604         in pre-POSIX-200112 mode.
123605         * lib/strtoimax.c: Use #elif rather than #else #if.
123606         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
123607         Remove function, now that we can rely on a working tzset function.
123608         [!_LIBC]: Ensure that the required autoconf test has been run.
123609         [!defined _NL_CURRENT && HAVE_STRFTIME]:
123610         Use underlying_strftime for %r.
123611         * lib/sha.c: Merge in some clean-up and optimization changes from
123612         glibc.
123613         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
123614         Ensure that it is a multiple of 64.
123615         Rearrange loop exit tests so as to avoid performing an
123616         additional fread after encountering an error or EOF.
123617         * lib/realloc.c: Update copyright date.
123619 2003-08-15  Jim Meyering  <jim@meyering.net>
123620         and Paul Eggert  <eggert@twinsun.com>
123622         Merge from coreutils.
123623         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
123624         member but strut utmpx does not.  Needed for AIX 4.3.3.
123625         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
123627 2003-08-15  Jim Meyering  <jim@meyering.net>
123628         and Paul Eggert  <eggert@cs.ucla.edu>
123630         Merges from coreutils, etc.
123631         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
123632         Require gl_FUNC_TZSET_CLOBBER.
123633         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
123634         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
123635         members.
123637 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123639         Help the merge from coreutils.
123640         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
123641         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
123642         * m4/tzset.m4: Use it too.
123644 2003-08-14  Paul Eggert  <eggert@twinsun.com>
123646         * modules/tzset: New file.
123648 2003-08-14  Jim Meyering  <jim@meyering.net>
123650         Merges from coreutils.
123651         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
123652         variable names, rather than @FNMATCH_H@.
123653         * modules/alloca: Likewise for $(ALLOCA_H).
123655         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
123656         the three copies of the literal target, `fnmatch.h'.
123657         * modules/alloca (alloca.h): Likewise.
123659 2003-08-14  Jim Meyering  <jim@meyering.net>
123661         Merge from coreutils.
123662         * m4/tzset.m4: New file.
123663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
123664         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
123665         otherwise, AIX 5.1 systems would end up using the latter.
123666         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
123667         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
123668         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
123669         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
123671 2003-08-14  Jim Meyering  <jim@meyering.net>
123673         Merge from coreutils.
123674         * lib/obstack.h: Whitespace changes.
123675         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
123676         and xcalloc return values.
123677         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
123678         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
123679         hang on OSF/1 5.1 for DIR on both local and remote file systems.
123680         Reported by (and fix confirmed by) Nelson H. F. Beebe.
123681         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
123682         error from mntctl.
123683         Use mntctl's return value to drive the entry-processing loop, since
123684         we can't rely on the value of the vmt_length member in the last
123685         entry.  On some systems doing so could result in exhausting
123686         virtual memory.  Based in part on a patch from Mike Jetzer.
123688 2003-08-14  Jim Meyering  <jim@meyering.net>
123689         and Paul Eggert  <eggert@twinsun.com>
123691         Merges from coreutils, plus other fixes.
123692         * lib/physmem.c: Merge in portability changes from gcc/libiberty
123693         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
123694         for credits and details.  Thanks to Kaveh Ghazi for helping
123695         to keep these files in sync.
123696         (ARRAY_SIZE): Define it.
123697         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
123698         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
123699         (memcasecmp): Don't assume size_t fits in unsigned int.
123700         Remove casts and duplicate code.
123701         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
123702         (memcpy): Remove definition.
123703         Merge in some clean-up and optimization changes from glibc.
123704         [BLOCKSIZE]: Move definition to top of file.
123705         Ensure that it is a multiple of 64.
123706         Rearrange loop exit tests so as to avoid performing an
123707         additional fread after encountering an error or EOF.
123708         * lib/md5.h (md5_uintptr): Define.
123709         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
123710         return to the initial working directory.  Preserve errno
123711         for caller.
123712         * lib/idcache.c: Include "xalloc.h".
123713         (xmalloc, xrealloc): Remove decls.
123714         (getuser): Remove casts no longer required in C89.
123715         * lib/human.c: Include stdio.h, for sprintf.
123716         * lib/group-member.c: Include "xalloc.h".
123717         (xmalloc, xrealloc): Remove decls.
123718         (get_group_info): Remove casts no longer required in C89.
123719         * lib/getusershell.c (readname): Remove casts no longer required in
123720         C89.
123721         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
123722         * lib/getline.c: Whitespace fix, from coreutils.
123724 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123726         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
123727         Check for isascii.
123729         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123730         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123731         Undo previous (whitespace-only) change.
123733 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123735         * lib/exclude.c: Include <ctype.h>
123736         (IN_CTYPE_DOMAIN): New macro.
123737         (is_space): New fn.
123738         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
123739         and empty lines.
123741         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123742         Undo previous (whitespace-only) change.
123744 2003-08-13  Paul Eggert  <eggert@twinsun.com>
123746         * config/srclist-update: Change update back to the old behavior,
123747         leaving whitespace alone.  Use one 'sed' command rather than a
123748         pipeline.
123749         (fixlicense): Now a variable, not a function.
123750         (remove_trailing_blanks): Remove.
123751         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
123752         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123753         Undo previous (whitespace-only) change.
123755 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123757         Merge from coreutils.
123758         * modules/euidaccess: Add lib_SOURCES, include for new
123759         file euidaccess.h
123761 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123763         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
123764         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
123765         Normalize leading white space and remove trailing white space.
123767         Merge from coreutils
123768         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
123770         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
123771         0.12.1.  These files are now being upgraded automatically by
123772         ../config/srclist-update.
123774 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123776         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
123777         Normalize leading white space and remove trailing white space.
123778         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
123779         notice, as per ../config/srclist-update.
123781         Merge from coreutils.
123782         * lib/euidaccess.h: New file.
123783         * lib/euidaccess.c: Include it.
123784         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
123785         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
123786         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
123788 2003-08-12  Paul Eggert  <eggert@twinsun.com>
123790         * config/srclist-update: Add copyright notice.
123791         (remove_id_lines, remove_trailing_blanks): New constants.
123792         (fixfile): Use them to normalize spacing a bit in copied files.
123793         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
123794         Normalize leading white space and remove trailing white space.
123796         * config/texinfo.tex: Sync with texinfo.
123798         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
123799         strtoul.c from libc, to merge coreutils whitespace changes.
123801         * config/srclist.txt: Get the following m4 files from gettext:
123802         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
123803         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
123804         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
123805         wint_t.m4.
123807 2003-08-12  Karl Berry  <karl@gnu.org>
123809         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
123810         been made.
123812 2003-08-11  Paul Eggert  <eggert@twinsun.com>
123814         * modules/gnu-source, m4/gnu-source.m4:
123815         Remove; we're assuming Autoconf 2.54 or later now.
123816         Suggested by Bruno Haible.
123817         * MODULES.html.sh (func_all_modules): Remove gnu-source.
123819 2003-08-11  Bruno Haible  <bruno@clisp.org>
123821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
123823 2003-08-11  Bruno Haible  <bruno@clisp.org>
123825         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
123826         (vasnprintf): Use it instead of wcslen.
123828 2003-08-11  Bruno Haible  <bruno@clisp.org>
123830         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
123831         value to ensure that _Bool promotes to int. Use #define for _Bool when
123832         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
123834 2003-08-10  Karl Berry  <karl@gnu.org>
123836         * lib/regex.h: update from libc (whitespace fix).
123838 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123840         Merge some files from coreutils.  These changes were
123841         originally made by Jim Meyering.
123842         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
123843         many older Unixes require this.
123844         * lib/alloca.c (alloca): Remove cast to argument of free;
123845         no longer needed in C89.
123846         * lib/alloca_.h, regex.h: Fix white space to match
123847         what GNU indent does.
123849 2003-08-09  Paul Eggert  <eggert@twinsun.com>
123851         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
123852         apparently Emacs's Unicode mode got confused before my 2003-08-05
123853         checkin.
123855 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123857         * m4/extensions.m4: New file.
123858         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
123859         Require gl_USE_SYSTEM_EXTENSIONS.
123860         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
123861         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
123863 2003-08-08  Paul Eggert  <eggert@twinsun.com>
123865         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
123866         * modules/extensions, modules/gnu-source: New files.
123867         * modules/timespec, modules/unlocked-io: Depend on extensions.
123869 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123871         * modules/restrict: New file.
123872         * MODULES.html.sh (func_all_modules): Add restrict.
123873         * modules/regex: Depend on restrict.
123875 2003-08-07  Paul Eggert  <eggert@twinsun.com>
123877         * m4/restrict.m4: New file.
123878         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
123880 2003-08-07  Bruno Haible  <bruno@clisp.org>
123882         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
123883         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
123885 2003-08-07  Bruno Haible  <bruno@clisp.org>
123887         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
123888         makes the module 'getndelim2' compatible with the module 'getline'.
123890 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123892         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
123893         byte with "\201" to avoid glitches when editing that source file
123894         with multi-gnome-terminal.
123896 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123898         * lib/bumpalloc.h: Remove.
123900 2003-08-05  Paul Eggert  <eggert@twinsun.com>
123902         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
123903         * modules/bumpalloc: Remove.
123905 2003-08-04  Paul Eggert  <eggert@twinsun.com>
123907         * lib/getloadavg.c: Change copyright notice and spacing to conform to
123908         GNU coding style.
123910         Merge from coreutils.
123911         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
123912         1. From glibc.
123913         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
123914         from Karl Berry, implemented by Jim Meyering.
123915         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
123916         from Dmitry V. Levin.
123917         Remove anachronistic cast of xrealloc.
123918         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
123919         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
123920         type. Otherwise, it wouldn't compile with at least /bin/cc on
123921         ymp-cray-unicos9.0.2.X.
123922         Combine two mostly-identical uses of alloca into one.
123923         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
123925 2003-08-04  Dave Love  <d.love@dl.ac.uk>
123927         [From Emacs.]
123929         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
123930         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
123931         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
123932         obsolete NLIST_NAME_UNION.
123933         [__GNU__]: Undef BSD and FSCALE.
123934         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
123936 2003-08-03  Paul Eggert  <eggert@twinsun.com>
123938         * lib/stdbool_.h (_Bool): Make it signed char, instead of
123939         an enum type, so that it's guaranteed to promote to int.  See:
123940         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
123942 2003-08-03  Karl Berry  <karl@gnu.org>
123944         * config/depcomp: update from automake.
123946 2003-07-31  Paul Eggert  <eggert@twinsun.com>
123948         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
123949         (strerror): Don't assume that a printable int fits in 14 bytes.
123951 2003-07-31  Bruno Haible  <bruno@clisp.org>
123953         * modules/getpass-gnu: New file.
123954         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
123956 2003-07-31  Bruno Haible  <bruno@clisp.org>
123958         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
123960 2003-07-24  Karl Berry  <karl@gnu.org>
123962         * config/missing: update from automake.
123964 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
123965             Bruno Haible  <bruno@clisp.org>
123967         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
123968         * lib/getline.c (getline, getdelim): Likewise.
123969         Remove _GNU_SOURCE define; now it's defined in config.h through
123970         m4/getline.m4.
123972 2003-07-23  Karl Berry  <karl@gnu.org>
123974         * config/config.sub: update from prep.
123976 2003-07-22  Paul Eggert  <eggert@twinsun.com>
123978         * modules/xalloc (Depends-on): Add exitfail.
123979         * modules/xmemcoll: Likewise.
123981 2003-07-22  Paul Eggert  <eggert@twinsun.com>
123983         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
123984         over-parenthesization in macros.
123986         Sync with coreutils.
123988         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
123989         required by C99.
123991         Use `exit_failure' for xalloc and xmemcoll instead of their own
123992         private exit-failure variables.
123993         * lib/xalloc.h (xalloc_exit_failure): Remove.
123994         * lib/xmalloc.c: Likewise.  Include exitfail.h.
123995         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
123996         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
123997         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
123998         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
124000 2003-07-20  Jim Meyering  <jim@meyering.net>
124002         * modules/closeout (Depends-on): Add exitfail.
124003         Suggestion from Bruno Haible.
124005 2003-07-19  Karl Berry  <karl@gnu.org>
124007         * config/config.sub: update from prep.
124009 2003-07-18  Paul Eggert  <eggert@twinsun.com>
124011         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
124012         Remove.
124013         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
124014         to test that it can stand by itself.  Include "exitfail.h".
124015         Clients should set exit_failure instead.
124016         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
124018 2003-07-18  Bruno Haible  <bruno@clisp.org>
124020         * modules/getndelim2: New file.
124021         * modules/getline: Share files with module getndelim2.
124022         * modules/getnline: Depend on getndelim2 instead of sharing files with
124023         it. Add getnline.c to lib_SOURCES.
124024         * MODULES.html.sh (func_all_modules): Add getndelim2.
124026 2003-07-18  Bruno Haible  <bruno@clisp.org>
124028         * m4/getndelim2.m4: New file.
124029         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
124030         invoke gl_PREREQ_GETNDELIM2.
124031         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
124032         gl_PREREQ_GETNDELIM2.
124033         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
124034         gl_GETNDELIM2.
124036 2003-07-18  Bruno Haible  <bruno@clisp.org>
124038         * lib/getndelim2.h: New file.
124039         * lib/getndelim2.c: Make into a module of its own. Include config.h,
124040         getndelim2.h.
124041         (getndelim2): Make non-static. Change return type to ssize_t.
124042         * lib/getline.h: Change argument names.
124043         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
124044         * lib/getnline.c: Include getndelim2.h.
124046 2003-07-18  Andreas Schwab  <schwab@suse.de>
124048         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
124050 2003-07-17  Karl Berry  <karl@gnu.org>
124052         * config/config.sub: update from prep.
124054 2003-07-17  Bruno Haible  <bruno@clisp.org>
124056         * modules/getnline: New file.
124057         * modules/getline: Add lib/getndelim2.c to source file list.
124058         * MODULES.html.sh (func_all_modules): Add getnline.
124060 2003-07-17  Bruno Haible  <bruno@clisp.org>
124062         * m4/getnline.m4: New file.
124064 2003-07-17  Bruno Haible  <bruno@clisp.org>
124066         * m4/Makefile.am.in: Remove file.
124067         * m4/Makefile.am: Remove file.
124068         * m4/Makefile.in: Remove file.
124070 2003-07-17  Bruno Haible  <bruno@clisp.org>
124072         * lib/getnline.h: New file.
124073         * lib/getnline.c: New file.
124074         * lib/getndelim2.c: New file, extracted from getline.c.
124075         (getndelim2): Renamed from getdelim2, with added nmax argument.
124076         * lib/getline.c: Include getndelim2.c.
124077         (getdelim2): Moved out to getndelim2.c.
124078         (getline, getdelim): Update.
124080 2003-07-17  Bruno Haible  <bruno@clisp.org>
124082         * lib/Makefile.am: Remove file.
124083         * lib/Makefile.in: Remove file.
124085 2003-07-17  Bruno Haible  <bruno@clisp.org>
124087         * configure.in: Remove file.
124088         * Makefile.in: Remove file.
124090 2003-07-17  Bruno Haible  <bruno@clisp.org>
124092         * MODULES.html.sh: Put the </BODY> right before </HTML>.
124094 2003-07-16  Karl Berry  <karl@gnu.org>
124096         * config/srclist-update: was running fixlicense twice, which caused
124097                 texinfo.tex to be nullified for some reason.  Simplify,
124098                 $gplsrc is no longer needed as far as I can see?
124100 2003-07-16  Jim Meyering  <jim@meyering.net>
124102         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
124104 2003-07-15  Paul Eggert  <eggert@twinsun.com>
124106         * config/srclist.txt: Get the following files from gettext-runtime/intl
124107         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
124108         ref-del.sin.  From Bruno Haible.
124109         * config/srclist-update (fixfile): Change grep pattern again, since the
124110         previous fix didn't work (there was another trailing $).  Use
124111         '[$]' to escape the $s.
124113 2003-07-15  Karl Berry  <karl@gnu.org>
124115         * lib/vasnprintf.c: update from gettext.
124117 2003-07-15  Karl Berry  <karl@gnu.org>
124119         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
124120         gets expanded when surrounded by '$'.
124122 2003-07-15  Jim Meyering  <jim@meyering.net>
124124         * modules/save-cwd: Don't depend on error.  From Derek Price.
124126 2003-07-15  Jim Meyering  <jim@meyering.net>
124128         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
124130 2003-07-14  Simon Josefsson  <jas@extundo.com>
124132         * modules/mempcpy: New file.
124133         * MODULES.html.sh (func_all_modules): Add mempcpy.
124135 2003-07-14  Simon Josefsson  <jas@extundo.com>
124137         * m4/mempcpy.m4: New file.
124139 2003-07-14  Simon Josefsson  <jas@extundo.com>
124141         * lib/mempcpy.h: New file.
124142         * lib/mempcpy.c: New file.
124144 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124146         * modules/getdate, modules/posixtm: Depend on mktime.
124148 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124150         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
124151         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
124152         unicodeio.c, unicodeio.h, unlocked-io.h:
124153         Switch from LGPL to GPL.
124155 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124157         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
124158         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
124159         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
124160         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
124161         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
124162         updated automatically by ../config/srclist-update.  This changes
124163         their license from LPGL to GPL.
124165 2003-07-14  Paul Eggert  <eggert@twinsun.com>
124167         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
124168         assumed to refer to the root of the most recent stable gettext version.
124169         * config/srclistvars.sh: Add defaults for eggert.
124170         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
124171         Match "This program" as well as "The program".  This is needed
124172         for gettext.
124174 2003-07-14  Jim Meyering  <jim@meyering.net>
124176         Don't emit diagnostics.  Let callers do that.
124177         * lib/save-cwd.c: Don't include "error.h".
124178         (save_cwd): Don't call error.  Ensure that errno is valid
124179         when returning nonzero.
124181         * lib/save-cwd.h (restore_cwd): Update prototype.
124182         * lib/save-cwd.c (restore_cwd): Remove two parameters.
124183         Simplify.  Don't call error upon failure.  Let callers do that.
124184         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
124185         when auditing is enabled.  But don't bother updating the #if.
124187 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
124189         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
124190         it breaks C++ compilation.
124191         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
124193 2003-07-10  Simon Josefsson  <jas@extundo.com>
124195         * modules/strchrnul (Makefile.am): Add strchrnul.h.
124197 2003-07-10  Jim Meyering  <jim@meyering.net>
124199         * m4/clock_time.m4: Remove trailing blank.
124200         * m4/intmax_t.m4: Likewise.
124202 2003-07-10  Jim Meyering  <jim@meyering.net>
124204         * lib/vasnprintf.c: Remove trailing blanks.
124205         Make cpp indentation consistent.
124207 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124209         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
124210         posixver.c, strftime.c, strnlen.c, strverscmp.c:
124211         Switch from LGPL to GPL.
124213 2003-07-09  Paul Eggert  <eggert@twinsun.com>
124215         * config/srclist.txt: Sort sublists.  Add
124216         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
124217         that differ from gnulib for one reason or another; we'd like this list
124218         to be smaller but for now let's document what we have.
124220 2003-07-08  Paul Eggert  <eggert@twinsun.com>
124222         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
124223         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
124224         and sweeter "eval x=$x".
124225         * config/srclist.txt: Get lib/argp* from glibc.
124227 2003-07-07  Paul Eggert  <eggert@twinsun.com>
124229         * lib/mktime.c: Fix some boundary cases and remove need for floating
124230         point.
124232         Issue a compile-time diagnostic if time_t is floating point, or if
124233         two's complement arithmetic is not in effect, or if arithmetic
124234         right shift does not propagate the sign.  These assumptions were
124235         all in the original code but they weren't checked.
124237         (TIME_T_MIDPOINT, verify): New macros.
124238         (__isleap): Remove; it has integer overflow problems.
124239         (leapyear): New function, without those problems.
124240         (ydhms_tm_diff): Remove; splitting into two parts.
124241         (ydhms_diff): New function, containing the arithmetic part of
124242         the old ydhms_tm_diff function.  Issue a compile-time
124243         diagnostic if we are not using C99 integer division.
124244         Avoid casts when possible.
124245         (guess_time_tm): New function, containing the checking part of
124246         the old ydhms_tm_diff function.  Return the new value, rather than
124247         the difference between it and the old.  Accept a new argument T
124248         so that *T specifies the old value.  Check for overflow in the result.
124250         (__mktime_internal): Use a time_t offset, not a long int offset.
124251         This undoes the 2003-06-04 change, which is no longer needed now
124252         that we have better overflow checking.
124253         (localtime_offset): Likewise.
124255         (__mktime_internal): Avoid harmful overflow on hosts where time_t
124256         and long are 64-bit but int is only 32-bit.
124257         (ydhms_diff): Use long int to store year1 and yday1.
124258         Issue a compile-time diagnostic if long int is not wide enough.
124260         (__mktime_internal): Use long int to store adjusted year and yday.
124261         Use plain C rather than preprocessor commands, if that doesn't
124262         affect efficiency.
124263         Check for overflow (and try to repair) after each probe
124264         rather than checking only at the very end.  This avoids some bugs
124265         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
124266         does not equal GMT offset at maximum time).
124267         Use integer to check for overflow rather than floating point; this
124268         is more portable to non-IEEE hosts, and is a tad faster.
124269         When we detect that we are oscillating between two values,
124270         don't check whether tm_isdst has the requested value, since
124271         we already know the answer.  When tm_isdst has the wrong value,
124272         use a different heuristic to find the right one, based on the
124273         extreme values actually observed in practice in tz2003a,
124274         rather than the (overly optimistic) "previous 3 calendar quarters".
124276         (not_equal_tm, print_tm, check_result): Use "const T" rather than
124277         "T const" to accommodate glibc style.
124278         (check_result): Use less-confusing report format.  "long" -> "long int.
124279         (main): Likewise.
124280         Don't loop if the iteration overflows time_t.
124281         Allow a negative step in the iteration.
124283 2003-07-06  Karl Berry  <karl@gnu.org>
124285         * config/depcomp: update from automake.
124286         * config/config.sub: update from prep.
124288 2003-07-03  Karl Berry  <karl@gnu.org>
124290         * config/config.guess: update from prep.
124292 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124294         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
124295         xreadlink.c now includes it unconditionally.
124297 2003-07-01  Paul Eggert  <eggert@twinsun.com>
124299         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
124300         having it depend on HAVE_SYS_TYPES_H.
124302 2003-07-01  Bruno Haible  <bruno@clisp.org>
124304         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
124305         <sys/types.h> should be sufficient.
124306         Reported by Paul Eggert.
124308 2003-06-26  Karl Berry  <karl@gnu.org>
124310         * config/depcomp: update from automake.
124312 2003-06-26  Bruno Haible  <bruno@clisp.org>
124314         * modules/human: Depend on module stdbool.
124316 2003-06-25  Bruno Haible  <bruno@clisp.org>
124318         * modules/readlink: New file.
124319         * modules/xreadlink: Depend on it.
124320         * MODULES.html.sh (func_all_modules): Add readlink.
124322 2003-06-25  Bruno Haible  <bruno@clisp.org>
124324         * m4/readlink.m4: New file.
124326 2003-06-25  Bruno Haible  <bruno@clisp.org>
124328         * lib/readlink.c: New file.
124330 2003-06-22  Karl Berry  <karl@gnu.org>
124332         * config/srclist.txt: update mkinstalldirs from automake.
124333         * config/mkinstalldirs: update.
124335 2003-06-22  Bruno Haible  <bruno@clisp.org>
124337         Portability to mingw32.
124338         * m4/ssize_t.m4: New file, from GNU gettext.
124339         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
124340         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
124342 2003-06-22  Bruno Haible  <bruno@clisp.org>
124344         * modules/safe-read: Add m4/ssize_t.m4.
124345         * modules/xreadlink: Add m4/ssize_t.m4.
124347 2003-06-20  Bruno Haible  <bruno@clisp.org>
124349         Assume C89, so PARAMS isn't needed.
124350         * lib/unicodeio.h (PARAMS): Remove.
124351         * lib/unicodeio.c: Don't use PARAMS.
124353 2003-06-18  Karl Berry  <karl@gnu.org>
124355         * config/config.{guess,sub}: update from prep.
124357 2003-06-18  Jim Meyering  <jim@meyering.net>
124359         Merge changes from coreutils.
124360         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
124361         Remove explicit declarations of xmalloc and realloc.
124362         Include xalloc.h.
124363         (read_utmp): Remove anachronistic cast of xmalloc.
124365 2003-06-17  Paul Eggert  <eggert@twinsun.com>
124367         Assume C89, so PARAMS isn't needed.
124368         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
124369         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
124370         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
124371         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
124372         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
124373         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
124374         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
124375         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
124376         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
124377         lib/xstrtod.h, lib/xstrtol.h: Likewise.
124378         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
124379         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
124380         no longer needed. Anyway, config.h should always be included before any
124381         other file.
124383 2003-06-11  Simon Josefsson  <jas@extundo.com>
124385         * modules/sysexits: New file.
124386         * MODULES.html.sh (func_all_modules): Add sysexits.
124388 2003-06-11  Simon Josefsson  <jas@extundo.com>
124390         * lib/sysexit_.h: New file.
124392 2003-06-11  Derek Price  <derek@ximbiot.com>
124394         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
124395         necessary.
124397 2003-06-11  Bruno Haible  <bruno@clisp.org>
124399         * m4/sysexits.m4: New file.
124401 2003-06-10  Simon Josefsson  <jas@extundo.com>
124403         * lib/argp.h: New file, from glibc.
124404         * lib/argp-ba.c: New file, from glibc.
124405         * lib/argp-eexst.c: New file, from glibc.
124406         * lib/argp-fmtstream.c: New file, from glibc.
124407         * lib/argp-fmtstream.h: New file, from glibc.
124408         * lib/argp-fs-xinl.c: New file, from glibc.
124409         * lib/argp-help.c: New file, from glibc.
124410         * lib/argp-namefrob.h: New file, from glibc.
124411         * lib/argp-parse.c: New file, from glibc.
124412         * lib/argp-pv.c: New file, from glibc.
124413         * lib/argp-pvh.c: New file, from glibc.
124414         * lib/argp-xinl.c: New file, from glibc.
124416 2003-06-10  Simon Josefsson  <jas@extundo.com>
124418         * modules/strchrnul: New file.
124420 2003-06-10  Simon Josefsson  <jas@extundo.com>
124422         * modules/argp: New file.
124424 2003-06-10  Simon Josefsson  <jas@extundo.com>
124426         * m4/strchrnul.m4: New file.
124428 2003-06-10  Simon Josefsson  <jas@extundo.com>
124430         * lib/strchrnul.h: New file.
124431         * lib/strchrnul.c: New file.
124433 2003-06-10  Bruno Haible  <bruno@clisp.org>
124435         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
124437 2003-06-07  Karl Berry  <karl@gnu.org>
124439         * config/config.{guess,sub}: update from prep.
124441 2003-06-07  Jim Meyering  <jim@meyering.net>
124443         * modules/strtod: Use $(...) notation, not @...@ for
124444         AC_REPLACE'd variables.
124445         * modules/localcharset: Likewise.
124447 2003-06-07  Jim Meyering  <jim@meyering.net>
124449         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
124450         in place of my name in the copyright comment.
124451         Remove definition and uses of __P.
124453         From coreutils.
124454         * lib/stat.c: Don't declare xmalloc explicitly.
124455         Instead, include "xalloc.h".
124456         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
124457         xrealloc, and xcalloc return values.
124458         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
124459         Improve comment.
124460         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
124462 2003-06-07  Bruno Haible  <bruno@clisp.org>
124464         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
124465         avoid AC_CONFIG_LINKS.
124466         * modules/fnmatch (Makefile.am): Use explicit creation rule for
124467         fnmatch.h, to avoid AC_CONFIG_LINKS.
124468         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
124470 2003-06-07  Bruno Haible  <bruno@clisp.org>
124472         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
124473         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
124474         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124475         directory.
124476         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
124477         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
124478         directory.
124480 2003-06-06  Jim Meyering  <jim@meyering.net>
124482         Merge from coreutils.
124483         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
124484         Consolidate declarations and initializations of *_base* locals.
124486         Merge from coreutils.
124487         This avoids a core dump on systems without GNU putenv,
124488         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
124489         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
124490         (unsetenv): New static function, from GNU libc.
124491         (rpl_putenv): Use it.
124493         * lib/modechange.c: Remove trailing blanks.
124495         Merge from coreutils.
124496         * lib/fsusage.c: Remove declaration of statfs.
124497         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
124499         * lib/posixtm.c: Include <stdbool.h> unconditionally.
124501 2003-06-06  Jim Meyering  <jim@meyering.net>
124503         * lib/stdbool_.h: Renamed from stdbool.h.in.
124505 2003-06-06  Jim Meyering  <jim@meyering.net>
124506             Bruno Haible  <bruno@clisp.org>
124508         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
124509         Adjust Makefile.am snippet not to redirect directly to target.
124510         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
124512 2003-06-05  Paul Eggert  <eggert@twinsun.com>
124514         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
124515         mismatch, look in future quarters as well as past.  This fixes a
124516         bug when processing fall-backwards gaps immediately after a long
124517         period of daylight-saving time.
124519         * lib/mktime.c: Assume freestanding C89 or better.
124520         (HAVE_LIMITS_H): Remove.  Assume it's 1.
124521         (__P): Remove; not used.
124522         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
124523         (mktime, not_equal_tm, print_tm, check_result,
124524         main): Use prototypes.  Use const * where appropriate.
124525         (main): Fix typo in testing code that uncovered by above changes.
124526         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
124528 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124530         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
124531         locale.h, localeconv.  This merges changes from coreutils.
124533         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
124534         It can be removed after the next Autoconf is released.
124535         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
124536         needed.
124538 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124540         * lib/mktime.c: Fix Debian bug 177940
124541         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
124542         (localtime_offset): Now long int, not time_t, because we want it
124543         to be guaranteed to be signed.  All uses changed.
124544         (__mktime_internal): If overflow would occur when adding offset,
124545         don't add it.
124547         Merge 'human' changes from coreutils.  Rewrite to support
124548         locale-specific notations like thousands separators.
124549         * lib/human.c: Simplify authorship notice.
124550         Include human.h immediately after config.h.
124551         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
124552         <limits.h>: Do not include, since human.h does.
124553         (SIZE_MAX, UINTMAX_MAX): New macros.
124554         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
124555         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
124556         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
124557         (power_letter): Renamed from suffixes.
124558         (generate_suffix_backwards): Remove.
124559         (adjust_value): Now takes int style (because of human.h changes)
124560         and long double value (for greater precision on some platforms).
124561         (group_number): New function.
124562         (human_readable): Use it.  Use integer options, not enum.
124563         Put the options before the sizes in the arg list.
124564         Support all the new options.
124565         The old human_readable function has been removed;
124566         use inttostr.h instead.
124567         (human_readable, default_block_size, humblock):
124568         Use uintmax_t, not int, for block sizes.
124569         (human_readable_inexact, block_size_types): Remove.
124570         (block_size_opts): New constant.
124571         (human_options): Renamed from human_block_size, with new signature
124572         that allows block sizes up to UINTMAX_MAX.  All callers changed.
124573         * lib/human.h: Add copyright and authorship notice.
124574         Include <limits.h> and <stdbool.h> unconditionally.
124575         (PARAMS): Remove.  All uses removed.
124576         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
124577         (enum human_inexact_style): Remove tag; now a nameless enum.
124578         (human_floor, human_ceiling, human_round_to_even): Now have
124579         values 2, 0, 1 rather than -1, 1, 0.
124580         (human_group_digits, human_suppress_point_zero, human_autoscale,
124581         human_base_1024, human_SI, human_B): New constants.
124582         (human_readable_inexact, human_block_size): Remove.
124583         (human_readable): Size args are now uintmax_t, not int.
124584         (human_options): New decl.
124586         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
124587         unnecessary now that we assume C89 or better.  This change
124588         imported from coreutils.
124590         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124591         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
124592         in the 2003-05-30 sync from glibc.
124594         .h files should stand alone, but we shouldn't include <sys/types.h>
124595         if we can get away with just <stddef.h>.
124597         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
124598         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
124599         rather than <sys/types.h>, as we merely need size_t.
124600         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
124601         to get size_t.
124602         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
124603         Include <stdio.h>, to get FILE.
124604         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
124605         memcasecmp.h has included <stddef.h> and all we need is size_t.
124606         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
124607         our interface, instead of including <sys/types.h>
124609 2003-06-04  Paul Eggert  <eggert@twinsun.com>
124611         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
124612         now, as glibc mktime is buggy on non-glibc systems.
124614 2003-06-03  Karl Berry  <karl@gnu.org>
124616         * config/config.sub: update from prep.
124618 2003-06-02  Paul Eggert  <eggert@twinsun.com>
124620         [from coreutils]
124621         Fix some minor time-related bugs with POSIX time arguments.
124622         Some valid time stamps were being rejected (notably -1, and
124623         time stamps before 1900 on 64-bit hosts).  And some invalid
124624         time stamps were being accepted, e.g. September 31.
124626         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
124627         that we can return (time_t) -1 successfully.
124628         * lib/posixtm.c: Likewise.
124629         [HAVE_STDBOOL_H]: Include <stdbool.h>.
124630         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
124631         (t): Remove static var.
124632         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
124633         of static var.  All uses changed.
124634         (year): Do not reject years before 1900; they can occur with
124635         64-bit time_t.
124636         (posix_time_parse): Do not check for out-of-range components;
124637         that is now the caller's responsibility, since our checks were
124638         only approximations.
124639         (posixtime): Use mktime to check for out-of-range components,
124640         since it knows them exactly.
124641         If mktime returns (time_t) -1, check whether an error actually occurred
124642         by invoking localtime on -1.
124643         (main) [TEST_POSIXTIME]: Check for input data errors, and report
124644         posixtime failures better.
124645         Improve the test data (in comments only).
124647 2003-06-02  Karl Berry  <karl@gnu.org>
124649         * config/mkinstalldirs (version): new variable.
124650         (--version): new option.
124651         (usage): improve message.
124653 2003-05-30  Karl Berry  <karl@gnu.org>
124655         * lib/mktime.c: update from libc.
124657 2003-05-30  Bruno Haible  <bruno@clisp.org>
124659         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
124660         * config/config.rpath: Upgrade to gettext-0.12.1.
124662 2003-05-30  Bruno Haible  <bruno@clisp.org>
124664         * m4/gettext.m4: Upgrade to gettext-0.12.1.
124665         * m4/nls.m4: New file, from gettext-0.12.1.
124666         * m4/po.m4: New file, from gettext-0.12.1.
124667         * m4/progtest.m4: Upgrade to gettext-0.12.1.
124669 2003-05-30  Bruno Haible  <bruno@clisp.org>
124671         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
124672         * lib/localcharset.h: Likewise.
124673         * lib/localcharset.c: Likewise.
124675 2003-05-29  Karl Berry  <karl@gnu.org>
124677         * config/config.rpath: update from gettext.
124679 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124681         Assume the headers required for C89 freestanding compilers.
124682         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
124683         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
124684         * m4/human.m4 (gl_HUMAN): Likewise.
124685         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
124686         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
124687         * m4/userspec.m4 (gl_USERSPEC): Likewise.
124688         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
124689         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
124690         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
124692 2003-05-28  Paul Eggert  <eggert@twinsun.com>
124694         Assume the headers required for C89 freestanding compilers.
124695         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
124696         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
124697         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
124698         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
124699         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
124700         define, since <limits.h> is guaranteed to do that.
124701         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
124702         * lib/exclude.c: Include <stdbool.h> unconditionally.
124703         * lib/tempname.c: Include <stddef.h> unconditionally.
124704         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
124705         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
124706         <stddef.h> does that.
124707         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
124708         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
124709         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
124710         needed.
124711         * lib/xstrtol.c: Likewise.
124712         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
124713         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
124715         * lib/addext.c (addext): Use assignment rather than cast, to avoid
124716         warnings on some platforms.
124718         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
124719         arbitrarily.
124721 2003-05-26  Jim Meyering  <jim@meyering.net>
124723         Merge in a change from coreutils:
124724         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
124725         that is guaranteed to be `no'.  Use `no_such_member' to indicate
124726         that condition, rather than `-1' which is slightly misleading.
124727         Change the name of the cache variable to have the gl_ prefix.
124728         Prompted by a patch from Richard Dawe for DJGPP.
124730 2003-05-24  Karl Berry  <karl@gnu.org>
124732         * config/config.guess: update from prep.
124734 2003-05-22  Karl Berry  <karl@gnu.org>
124736         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
124738 2003-05-20  Karl Berry  <karl@gnu.org>
124740         * config/config.guess: update from prep.
124742 2003-05-18  Karl Berry  <karl@gnu.org>
124744         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
124745         might actually be set by the user.
124747         * config/depcomp, install-sh, mdate-sh: update from automake.
124749 2003-05-17  Bruno Haible  <bruno@clisp.org>
124751         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
124752         invalid expansion for AC_EGREP_CPP.
124753         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
124754         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
124755         Suggested by Akim Demaille <akim@epita.fr> in
124756         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
124758 2003-05-12  Jim Meyering  <jim@meyering.net>
124760         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
124761         the space-padded-by-default conversion specifiers, %e, %k, %l.
124763 2003-05-12  Bruno Haible  <bruno@clisp.org>
124765         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
124766         the string is longer than 4 KB.
124768 2003-05-11  Karl Berry  <karl@gnu.org>
124770         * config/config.{guess,sub}: update from prep.
124772 2003-05-09  Bruno Haible  <bruno@clisp.org>
124774         * modules/error: Add m4/strerror_r.m4 to file list.
124776 2003-05-03  Bruno Haible  <bruno@clisp.org>
124778         Upgrade to Unicode-4.0.
124779         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
124780         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
124781         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
124782         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
124783         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
124784         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
124785         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
124786         Change width of U+E0100..U+E01EF from 1 to 0.
124788 2003-04-25  Jim Meyering  <jim@meyering.net>
124790         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
124791         of type size_t, not int.
124793 2003-04-25  Bruno Haible  <bruno@clisp.org>
124795         * lib/copy-file.c: Include <stddef.h>, for size_t.
124797 2003-04-21  Paul Eggert  <eggert@twinsun.com>
124799         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
124800         code which expansion is under static control.  Patch imported from
124801         Akim Demaille's patch to Bison; see
124802         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
124804 2003-04-14  Bruno Haible  <bruno@clisp.org>
124806         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
124808 2003-04-11  Jim Meyering  <jim@meyering.net>
124810         Merge changes from Coreutils.
124812         2003-03-22  Jim Meyering  <jim@meyering.net>
124814         * lib/strftime.c (widen): Cast alloca return value to proper type.
124816         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
124818         From GNU libc.
124819         * lib/strftime.c (my_strftime): Handle very large width
124820         specifications for numeric values correctly.  Improve checks for
124821         overflow.
124823         2003-01-19  Jim Meyering  <jim@meyering.net>
124825         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
124826         definitions.
124827         (nl_get_alt_digit) [! defined my_strftime]: Define.
124828         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
124829         _nl_get_alt_digit and _nl_get_walt_digit.
124831         * lib/strftime.c (my_strftime): Merge in locale-related changes from
124832         libc. These changes have no effect outside of _LIBC.
124834 2003-04-10  Bruno Haible  <bruno@clisp.org>
124836         * modules/findprog: New file.
124837         * MODULES.html.sh (func_all_modules): Add it.
124839 2003-04-10  Bruno Haible  <bruno@clisp.org>
124841         * m4/findprog.m4: New file.
124842         * m4/eaccess.m4: New file.
124844 2003-04-10  Bruno Haible  <bruno@clisp.org>
124846         * lib/findprog.h: New file, from GNU gettext.
124847         * lib/findprog.c: New file, from GNU gettext.
124849 2003-04-05  Jim Meyering  <jim@meyering.net>
124851         Merge changes from Coreutils.
124853         * lib/exclude.h (PARAMS): Remove definition and uses.
124854         * lib/exclude.c: Remove uses of `PARAMS'.
124856         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
124857         Add test-cases for DOS filenames. Declare program_name.
124858         (main): Set up program_name.  Patch by Rich Dawe.
124860         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124861         error from mntctl.
124862         Use mntctl's return value to drive the entry-processing loop, since
124863         we can't rely on the value of the vmt_length member in the last
124864         entry.  On some systems doing so could result in exhausting
124865         virtual memory.  Based in part on a patch from Mike Jetzer.
124867 2003-04-04  Bruno Haible  <bruno@clisp.org>
124869         * modules/linebreak: New file.
124870         * MODULES.html.sh (func_all_modules): Add it.
124872 2003-04-04  Bruno Haible  <bruno@clisp.org>
124874         * m4/linebreak.m4: New file.
124876 2003-04-04  Bruno Haible  <bruno@clisp.org>
124878         * lib/linebreak.h: New file, from GNU gettext.
124879         * lib/linebreak.c: New file, from GNU gettext with slight
124880         modifications.
124881         * lib/lbrkprop.h: New file, from GNU gettext.
124883 2003-04-03  Bruno Haible  <bruno@clisp.org>
124885         * modules/utf8-ucs4: New file.
124886         * modules/utf16-ucs4: New file.
124887         * modules/ucs4-utf8: New file.
124888         * modules/ucs4-utf16: New file.
124889         * MODULES.html.sh (func_all_modules): Add them.
124891 2003-04-03  Bruno Haible  <bruno@clisp.org>
124893         * m4/utf-ucs4.m4: New file.
124894         * m4/ucs4-utf.m4: New file.
124896 2003-04-03  Bruno Haible  <bruno@clisp.org>
124898         * lib/utf8-ucs4.h: New file, from GNU gettext.
124899         * lib/utf16-ucs4.h: New file, from GNU gettext.
124900         * lib/ucs4-utf8.h: New file, from GNU gettext.
124901         * lib/ucs4-utf16.h: New file, from GNU gettext.
124903 2003-04-02  Bruno Haible  <bruno@clisp.org>
124905         * modules/binary-io: New file.
124906         * MODULES.html.sh (func_all_modules): Add it.
124908 2003-04-02  Bruno Haible  <bruno@clisp.org>
124910         * lib/binary-io.h: New file, from GNU gettext.
124912 2003-04-01  Bruno Haible  <bruno@clisp.org>
124914         * modules/pathname: New file.
124915         * MODULES.html.sh (func_all_modules): Add it.
124917 2003-04-01  Bruno Haible  <bruno@clisp.org>
124919         * lib/pathname.h: New file, from GNU gettext.
124920         * lib/concatpath.c: New file, from GNU gettext.
124922 2003-03-30  Bruno Haible  <bruno@clisp.org>
124924         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
124926 2003-03-30  Bruno Haible  <bruno@clisp.org>
124928         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
124929         function chown() doesn't exist.
124931 2003-03-28  Bruno Haible  <bruno@clisp.org>
124933         * modules/copy-file: New file.
124934         * MODULES.html.sh (func_all_modules): Add it.
124936 2003-03-28  Bruno Haible  <bruno@clisp.org>
124938         * m4/copy-file.m4: New file.
124940 2003-03-28  Bruno Haible  <bruno@clisp.org>
124942         * lib/copy-file.h: New file, from GNU gettext.
124943         * lib/copy-file.c: New file, from GNU gettext.
124945 2003-03-18  Jim Meyering  <jim@meyering.net>
124947         * lib/quote.c (quote_n): Fix typo in comment.
124949 2003-03-18  Bruno Haible  <bruno@clisp.org>
124951         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
124952         checking.
124953         * m4/onceonly_2_57.m4: Likewise.
124955 2003-03-17  Bruno Haible  <bruno@clisp.org>
124957         * m4/onceonly.m4: Require autoconf 2.54 or newer.
124958         (m4_quote): Remove macro.
124959         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
124961 2003-03-14  Jim Meyering  <jim@meyering.net>
124963         Merge changes from Coreutils.
124964         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
124965         to be const, in order to avoid warnings.
124966         (obstack_room): Likewise.
124967         (obstack_empty_p): Likewise.
124969 2003-03-14  Bruno Haible  <bruno@clisp.org>
124971         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
124972         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
124974 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124976         Merge changes from Bison.
124977         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
124978         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
124979         when compiling Bison 1.875's `bitset bset = obstack_alloc
124980         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
124981         * lib/hash.c: Include <stdbool.h> unconditionally.
124983 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124985         * m4/onceonly.m4 (m4_quote): New macro.
124986         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
124987         Quote AC_FOREACH variable-expansions properly.
124989 2003-03-13  Paul Eggert  <eggert@twinsun.com>
124991         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
124993 2003-03-09  Paul Eggert  <eggert@twinsun.com>
124995         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
124996         Reported by Bruce Becker; see:
124997         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
124999 2003-03-03  Paul Eggert  <eggert@twinsun.com>
125000             Bruno Haible  <bruno@clisp.org>
125002         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
125003         Reported by John Hughes, see
125004         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
125006 2003-02-20  Bruno Haible  <bruno@clisp.org>
125008         * MODULES.html.sh (func_all_modules): Add poll.
125010 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125012         * modules/poll: New file.
125014 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125016         * lib/poll_.h: New file.
125017         * lib/poll.c: New file.
125019 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
125021         * m4/poll.m4: New file.
125023 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125025         * modules/mathl: New file.
125027 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125029         * lib/mathl.h: New file.
125030         * lib/acosl.c: New file.
125031         * lib/asinl.c: New file.
125032         * lib/atanl.c: New file.
125033         * lib/ceill.c: New file.
125034         * lib/cosl.c: New file.
125035         * lib/expl.c: New file.
125036         * lib/floorl.c: New file.
125037         * lib/frexpl.c: New file.
125038         * lib/ldexpl.c: New file.
125039         * lib/logl.c: New file.
125040         * lib/sincosl.c: New file.
125041         * lib/sinl.c: New file.
125042         * lib/sqrtl.c: New file.
125043         * lib/tanl.c: New file.
125044         * lib/trigl.c: New file.
125045         * lib/trigl.h: New file.
125047 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
125049         * m4/mathl.m4: New file.
125051 2003-02-18  Bruno Haible  <bruno@clisp.org>
125053         * MODULES.html.sh (func_all_modules): Add mathl.
125055 2003-02-17  Bruno Haible  <bruno@clisp.org>
125057         * modules/mkdtemp: New module.
125058         * MODULES.html.sh (func_all_modules): Add it.
125060 2003-02-17  Bruno Haible  <bruno@clisp.org>
125062         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
125064 2003-02-17  Bruno Haible  <bruno@clisp.org>
125066         * lib/mkdtemp.h: New file, from GNU gettext.
125067         * lib/mkdtemp.c: New file, from GNU gettext.
125069 2003-02-02  Jim Meyering  <jim@meyering.net>
125071         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
125072         e.g. glibc-2.2.93.
125074 2003-01-31  Bruno Haible  <bruno@clisp.org>
125076         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
125077         'rpl_rename'.
125078         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
125079         'rpl_strnlen'.
125080         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
125081         'rpl_strtod'.
125082         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
125083         'rpl_utime'.
125085 2003-01-31  Bruno Haible  <bruno@clisp.org>
125087         * lib/rename.c: #undef rename before defining rpl_rename.
125088         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
125090 2003-01-30  Bruno Haible  <bruno@clisp.org>
125092         * modules/vasnprintf, modules/vasprintf: New modules.
125093         * MODULES.html.sh (func_all_modules): Add them.
125095 2003-01-30  Bruno Haible  <bruno@clisp.org>
125097         * m4/signed.m4: New file, from GNU gettext.
125098         * m4/longdouble.m4: New file, from GNU gettext.
125099         * m4/wchar_t.m4: New file, from GNU gettext.
125100         * m4/wint_t.m4: New file, from GNU gettext.
125101         * m4/vasnprintf.m4: New file.
125102         * m4/vasprintf.m4: New file.
125104 2003-01-30  Bruno Haible  <bruno@clisp.org>
125106         * lib/printf-args.h: New file, from GNU gettext.
125107         * lib/printf-args.c: New file, from GNU gettext.
125108         * lib/printf-parse.h: New file, from GNU gettext.
125109         * lib/printf-parse.c: New file, from GNU gettext.
125110         * lib/vasnprintf.h: New file, from GNU gettext.
125111         * lib/vasnprintf.c: New file, from GNU gettext.
125112         * lib/asnprintf.c: New file, from GNU gettext.
125113         * lib/vasprintf.h: New file, from GNU gettext with modifications.
125114         * lib/vasprintf.c: New file, from GNU gettext.
125115         * lib/asprintf.c: New file, from GNU gettext.
125117 2003-01-29  Bruno Haible  <bruno@clisp.org>
125119         * modules/stpncpy: New module.
125120         * MODULES.html.sh (func_all_modules): Add it.
125122 2003-01-29  Bruno Haible  <bruno@clisp.org>
125124         * m4/stpncpy.m4: New file.
125126 2003-01-29  Bruno Haible  <bruno@clisp.org>
125128         * lib/stpncpy.h: New file, from GNU gettext with modifications.
125129         * lib/stpncpy.c: New file, from GNU gettext with modifications.
125131 2003-01-28  Bruno Haible  <bruno@clisp.org>
125133         * modules/c-ctype: New module.
125134         * MODULES.html.sh (func_all_modules): Add it.
125136 2003-01-28  Bruno Haible  <bruno@clisp.org>
125138         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
125139         Paul Eggert.
125140         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
125141         Paul Eggert.
125143 2003-01-27  Bruno Haible  <bruno@clisp.org>
125145         * modules/xsetenv: New module.
125146         * MODULES.html.sh (func_all_modules): Add it.
125148 2003-01-27  Bruno Haible  <bruno@clisp.org>
125150         * lib/xsetenv.h: New file, from GNU gettext.
125151         * lib/xsetenv.c: New file, from GNU gettext.
125153 2003-01-23  Jim Meyering  <jim@meyering.net>
125155         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
125156         from working on systems without dirfd (at least Irix and OSF1/Tru64).
125158 2003-01-23  Bruno Haible  <bruno@clisp.org>
125160         * modules/minmax: New module.
125161         * MODULES.html.sh (func_all_modules): Add it.
125163 2003-01-23  Bruno Haible  <bruno@clisp.org>
125165         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
125166         Eggert.
125168 2003-01-22  Bruno Haible  <bruno@clisp.org>
125170         * modules/exit: New module.
125171         * MODULES.html.sh (func_all_modules): Add it.
125173 2003-01-22  Bruno Haible  <bruno@clisp.org>
125175         * lib/exit.h: New file, from GNU gettext.
125177 2003-01-19  Bruno Haible  <bruno@clisp.org>
125179         * gnulib-tool: Recognize option --extract-maintainer.
125180         (func_get_maintainer): New function.
125181         * modules/*: Add Maintainer entry.
125183 2003-01-16  Jim Meyering  <jim@meyering.net>
125185         * m4/regex.m4: The `regex' struct is both input and output.
125186         Initialize it before each use.  Patch by Tim Waugh.
125188 2003-01-16  Bruno Haible  <bruno@clisp.org>
125190         * MODULES.html.sh: Add a table of contents. Add the module name as
125191         leftmost column. Add hyperlinks.
125193 2003-01-15  Bruno Haible  <bruno@clisp.org>
125195         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
125197 2003-01-15  Bruno Haible  <bruno@clisp.org>
125199         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
125200         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
125201         suffix.
125203 2003-01-15  Bruno Haible  <bruno@clisp.org>
125205         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
125207 2003-01-15  Bruno Haible  <bruno@clisp.org>
125209         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
125210         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
125212 2003-01-14  Jim Meyering  <jim@meyering.net>
125214         * lib/same.c (same_name): Tweak a comment.
125216 2003-01-14  Bruno Haible  <bruno@clisp.org>
125218         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
125219         when a string comparison is sufficient.
125221 2003-01-14  Bruno Haible  <bruno@clisp.org>
125223         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
125224         'unsigned int'.
125226 2003-01-14  Bruno Haible  <bruno@clisp.org>
125228         * lib/hash-pjw.c: Add comment about low quality of this function.
125230 2003-01-13  Bruno Haible  <bruno@clisp.org>
125232         * modules/stpcpy: Distribute lib/stpcpy.h.
125233         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
125235 2003-01-13  Bruno Haible  <bruno@clisp.org>
125237         * modules/*: Add a description.
125238         * modules/strpbrk: Fix Makefile.am snippet.
125239         * modules/strtoimax: Fix dependencies.
125240         * modules/strtoumax: Likewise.
125242 2003-01-13  Bruno Haible  <bruno@clisp.org>
125244         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
125245         * modules/alloca (Makefile.am): All object files depend on alloca.h.
125246         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
125248 2003-01-13  Bruno Haible  <bruno@clisp.org>
125250         * gnulib-tool (func_create_testdir): Store config/* files in the main
125251         directory.
125252         * config.rpath: Move to ...
125253         * config/config.rpath: ... here.
125254         * modules/gettext: Contains config/config.rpath, not config.rpath.
125255         * modules/iconv: Likewise.
125257 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125259         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125260         to avoid collisions with libcurses and libreadline.
125262         * m4/getstr.m4: Remove.
125263         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
125265 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125267         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125268         to avoid collisions with libcurses and libreadline.
125270         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
125271         * lib/getstr.h, getstr.c: Remove.
125272         * lib/getline.c: Include "getline.h", to check interface.
125273         Move body of old getstr.c here: this defines MIN_CHUNK and
125274         declares getdelim2, which is renamed from getstr.
125275         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
125277         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
125278         All uses changed.
125279         * lib/linebuffer.h: Likewise.
125280         (readline): Remove backward-compatibility macro.
125282 2003-01-12  Paul Eggert  <eggert@twinsun.com>
125284         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
125285         to avoid collisions with libcurses and libreadline.
125286         * getstr: Remove.
125287         * MODULES.html.sh: Remove getstr.
125288         * modules/getline: Depend on unlocked-io, not getstr.
125290 2003-01-12  Jim Meyering  <jim@meyering.net>
125292         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
125294 2003-01-10  Bruno Haible  <bruno@clisp.org>
125296         * modules/alloca: Change Makefile.am requirements. Simplify Include
125297         requirements. Add lib/alloca_.h to file list.
125299 2003-01-10  Bruno Haible  <bruno@clisp.org>
125301         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
125303 2003-01-10  Bruno Haible  <bruno@clisp.org>
125305         * lib/alloca_.h: New file.
125306         * lib/getdate.y: Unconditionally include alloca.h.
125307         * lib/makepath.c: Likewise.
125308         * lib/setenv.c: Likewise.
125309         * lib/userspec.c: Likewise.
125311 2003-01-09  Karl Berry  <karl@gnu.org>
125313         * MODULES.html.sh: include `dirname $0` in PATH, to find
125314         gnulib-tool.
125316 2003-01-09  Bruno Haible  <bruno@clisp.org>
125318         * modules/stdbool: Change configure.ac, Makefile.am requirements.
125319         Simplify Include requirements. Add lib/stdbool.h.in to file list.
125321 2003-01-09  Bruno Haible  <bruno@clisp.org>
125323         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
125325 2003-01-09  Bruno Haible  <bruno@clisp.org>
125327         * lib/stdbool.h.in: New file.
125329 2003-01-09  Bruno Haible  <bruno@clisp.org>
125331         * gnulib-tool (func_all_modules): Ignore files ending in ~.
125332         * MODULES.html.sh: Likewise.
125334 2003-01-08  Jim Meyering  <jim@meyering.net>
125336         * lib/full-write.c: Undefine and define-away `const' after inclusion
125337         of errno.h, not before.  Suggestion from Bruno Haible.
125339 2003-01-08  Bruno Haible  <bruno@clisp.org>
125341         * modules/full-read: Depend on full-write.
125343 2003-01-08  Bruno Haible  <bruno@clisp.org>
125345         * lib/safe-read.c: Include specification header first, to ensure its
125346         selfcontainedness.
125347         * lib/full-write.c: Likewise.
125349 2003-01-07  Jim Meyering  <jim@meyering.net>
125351         * lib/full-write.c: Rework so that it may serve to define full_read,
125352         too.
125353         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
125355 2003-01-07  Bruno Haible  <bruno@clisp.org>
125357         * lib/strtoimax.c: Include <stdint.h> as an alternative to
125358         <inttypes.h>.
125359         * lib/xstrtol.h: Likewise.
125360         * lib/xstrtoimax.c: Likewise.
125361         * lib/xstrtoumax.c: Likewise.
125362         * lib/human.h: Likewise.
125364         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
125365         on systems that have <inttypes.h> but not <stdint.h>.
125367 2003-01-07  Bruno Haible  <bruno@clisp.org>
125369         * MODULES.html.sh: Add copyright notice.
125370         (missed_files): Omit CVS directory entries.
125371         (func_module): Make it work with sed-3.02.
125372         * MODULES.txt: Remove file.
125374 2003-01-06  Jim Meyering  <jim@meyering.net>
125376         * lib/version-etc.c: Update year in translatable copyright string.
125378 2003-01-03  Karl Berry  <karl@gnu.org>
125380         * config/config.{guess,sub}: update from prep.
125382 2003-01-02  Karl Berry  <karl@gnu.org>
125384         * doc/COPYING.DOC: belatedly updated to 1.2.
125386 2003-01-01  Karl Berry  <karl@gnu.org>
125388         * gnulib-tool (func_verify_module): report module name $module in
125389         error message, not $1.
125390         * gnulib-tool (create-testdir): don't complain if destdir couldn't
125391         be created, only if it doesn't exist.
125392         * gnulib-tool (last_checkin_date): don't expand the $Date here.
125394 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125396         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
125398 2002-12-31  Paul Eggert  <eggert@twinsun.com>
125400         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
125401         memcmp if strcoll doesn't work.
125403 2002-12-31  Bruno Haible  <bruno@clisp.org>
125405         * lib/utime.c (utime_null): No need to call ftruncate if the file was
125406         nonempty.
125408 2002-12-31  Bruno Haible  <bruno@clisp.org>
125410         * lib/memcoll.c (STRCOLL): New macro.
125411         (memcoll): Use it.
125413 2002-12-31  Bruno Haible  <bruno@clisp.org>
125415         * lib/localcharset.h: New file.
125416         * lib/localcharset.c: Include it.
125417         * lib/unicodeio.c: Likewise.
125419 2002-12-31  Bruno Haible  <bruno@clisp.org>
125421         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
125422         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
125424 2002-12-31  Bruno Haible  <bruno@clisp.org>
125426         * lib/getline.h: Include <stddef.h>, for size_t.
125428         * lib/unicodeio.h: Include <stddef.h>, for size_t.
125429         * lib/unicodeio.c: Don't include <stddef.h>.
125431 2002-12-31  Bruno Haible  <bruno@clisp.org>
125433         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
125434         HAVE_TM_ZONE.
125436 2002-12-24  Karl Berry  <karl@gnu.org>
125438         * config/config.guess: update from prep.
125440 2002-12-24  Bruno Haible  <bruno@clisp.org>
125442         General infrasructure.
125443         * m4/README: Rewritten.
125444         * m4/onceonly.m4: New file.
125445         * m4/onceonly_2_57.m4: New file.
125447         Module atexit.
125448         * m4/atexit.m4: New file.
125450         Module strtod.
125451         * m4/strtod.m4: New file.
125453         Module strtol.
125454         * m4/strtol.m4: New file.
125456         Module strtoul.
125457         * m4/strtoul.m4: New file.
125459         Module memchr.
125460         * m4/memchr.m4: New file.
125462         Module memcmp.
125463         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
125464         (jm_FUNC_MEMCMP): Invoke it.
125466         Module memcpy.
125467         * m4/memcpy.m4: New file.
125469         Module memmove.
125470         * m4/memmove.m4: New file.
125472         Module memset.
125473         * m4/memset.m4: New file.
125475         Module strcspn.
125476         * m4/strcspn.m4: New file.
125478         Module strpbrk.
125479         * m4/strpbrk.m4: New file.
125481         Module strstr.
125482         * m4/strstr.m4: New file.
125484         Module strerror.
125485         * m4/strerror.m4: New file.
125487         Module mktime.
125488         * m4/mktime.m4: Renamed from jm-mktime.m4.
125489         (gl_PREREQ_MKTIME): New macro.
125490         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
125492         Module malloc.
125493         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
125494         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
125495         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
125497         Module realloc.
125498         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
125499         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
125500         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
125502         Module strftime.
125503         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
125504         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
125505         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
125506         gl_TM_GMTOFF.
125507         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
125509         Module xalloc.
125510         * m4/xalloc.m4: New file.
125512         Module alloca.
125513         * m4/alloca.m4: New file.
125515         Module putenv.
125516         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
125517         (jm_FUNC_PUTENV): Invoke it.
125519         Module setenv.
125520         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
125521         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
125522         when invoked twice.
125523         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
125524         gt_FUNC_SETENV.
125526         Module memrchr.
125527         * m4/memrchr.m4: New file.
125529         Module stpcpy.
125530         * m4/stpcpy.m4: New file.
125532         Module strcase.
125533         * m4/strcase.m4: New file.
125535         Module strdup.
125536         * m4/strdup.m4: New file.
125538         Module strnlen.
125539         * m4/strnlen.m4: New file.
125541         Module strndup.
125542         * m4/strndup.m4: New file.
125544         Module xstrtod.
125545         * m4/xstrtod.m4: New file.
125547         Module xstrtol.
125548         * m4/xstrtol.m4: New file.
125550         Module getdate.
125551         * m4/getdate.m4: New file.
125553         Module unlocked-io.
125554         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
125555         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
125556         * m4/jm-glibc-io.m4n: Remove file.
125558         Module long-options.
125559         * m4/long-options.m4: New file.
125561         Module md5.
125562         * m4/md5.m4: New file.
125564         Module sha.
125565         * m4/sha.m4: New file.
125567         Module getstr.
125568         * m4/getstr.m4: New file.
125570         Module getline.
125571         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
125572         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
125573         <sys/types.h>, for size_t. Use the function name gnu_getline, not
125574         simply getline. Infoke gl_PREREQ_GETLINE.
125576         Module obstack.
125577         * m4/obstack.m4: New file.
125579         Module hash.
125580         * m4/hash.m4: New file.
125582         Module readtokens.
125583         * m4/readtokens.m4: New file.
125585         Module strverscmp.
125586         * m4/strverscmp.m4: New file.
125588         Module stdbool.
125589         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
125590         OSF/1.
125592         Module strtoll.
125593         * m4/strtoll.m4: New file.
125595         Module strtoull.
125596         * m4/strtoull.m4: New file.
125598         Module strtoimax.
125599         * m4/strtoimax.m4: New file.
125601         Module strtoumax.
125602         * m4/strtoumax.m4: New file.
125604         Module xstrtoimax.
125605         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
125606         jm_AC_PREREQ_XSTRTOIMAX.
125607         Moved the strtol prerequisites to strtol.m4.
125608         Moved the strtoll prerequisites to strtoll.m4.
125609         Moved the strtoimax prerequisites to strtoimax.m4.
125611         Module xstrtoumax.
125612         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
125613         jm_AC_PREREQ_XSTRTOUMAX.
125614         Moved the strtoul prerequisites to strtoul.m4.
125615         Moved the strtoull prerequisites to strtoull.m4.
125616         Moved the strtoumax prerequisites to strtoumax.m4.
125618         Module chown.
125619         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
125620         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
125622         Module dup2.
125623         * m4/dup2.m4: New file.
125625         Module ftruncate.
125626         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
125627         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
125629         Module getgroups.
125630         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
125631         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
125633         Module gettimeofday.
125634         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
125635         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
125636         gl_PREREQ_GETTIMEOFDAY.
125638         Module mkdir.
125639         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
125640         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
125642         Module mkstemp.
125643         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
125644         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
125645         jm_AC_TYPE_UINTMAX_T.
125646         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
125648         Module stat.
125649         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
125650         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
125652         Module lstat.
125653         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
125654         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
125656         Module timespec.
125657         * m4/timespec.m4 (gl_TIMESPEC): New macro.
125658         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
125659         * m4/st_mtim.m4: Indentation.
125661         Module nanosleep.
125662         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
125663         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
125664         gl_PREREQ_NANOSLEEP.
125666         Module regex.
125667         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
125668         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
125669         (gl_REGEX): New macro.
125671         Module rename.
125672         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
125673         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
125675         Module rmdir.
125676         * m4/rmdir.m4: New file.
125678         Module utime.
125679         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
125680         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
125681         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
125683         Module dirname.
125684         * m4/dirname.m4: New file.
125686         Module getopt.
125687         * m4/getopt.m4: New file.
125689         Module unistd-safer.
125690         * m4/unistd-safer.m4: New file.
125692         Module fnmatch.
125693         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
125694         declaration.
125695         (gl_PREREQ_FNMATCH_EXTRA): New macro.
125696         (gl_FUNC_FNMATCH_POSIX): New macro.
125697         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
125698         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
125699         simply fnmatch.
125701         Module exclude.
125702         * m4/exclude.m4: New file.
125704         Module human.
125705         * m4/human.m4: New file.
125707         Module acl.
125708         * m4/acl.m4: Nop.
125710         Module backupfile.
125711         * m4/backupfile.m4: New file.
125712         * m4/d-ino.m4: Indentation.
125714         Module fsusage.
125715         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
125716         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
125717         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
125719         Module dirfd.
125720         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
125721         requirements.
125723         Module euidaccess.
125724         * m4/euidaccess.m4: New file.
125726         Module file-type.
125727         * m4/file-type.m4: New file.
125729         Module fileblocks.
125730         * m4/fileblocks.m4: New file.
125732         Module filemode.
125733         * m4/filemode.m4: New file.
125735         Module isdir.
125736         * m4/isdir.m4: New file.
125738         Module lchown.
125739         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
125740         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
125742         Module makepath.
125743         * m4/makepath.m4: New file.
125745         Module modechange.
125746         * m4/modechange.m4: New file.
125748         Module mountlist.
125749         * m4/mountlist.m4: New file.
125750         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
125751         Indentation.
125753         Module path-concat.
125754         * m4/path-concat.m4: New file.
125756         Module pathmax.
125757         * m4/pathmax.m4: New file.
125759         Module same.
125760         * m4/same.m4: New file.
125762         Module save-cwd.
125763         * m4/save-cwd.m4: New file.
125765         Module savedir.
125766         * m4/savedir.m4: New file.
125768         Module xgetcwd.
125769         * m4/xgetcwd.m4: New file.
125770         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
125772         Module xreadlink.
125773         * m4/xreadlink.m4: New file.
125775         Module safe-read.
125776         * m4/safe-read.m4: New file.
125778         Module safe-write.
125779         * m4/safe-write.m4: New file.
125781         Module closeout.
125782         * m4/closeout.m4: New file.
125784         Module stdio-safer.
125785         * m4/stdio-safer.m4: New file.
125787         Module getpass.
125788         * m4/getpass.m4: New file.
125790         Module getugroups.
125791         * m4/getugroups.m4: New file.
125793         Module group-member.
125794         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
125795         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
125797         Module idcache.
125798         * m4/idcache.m4: New file.
125800         Module userspec.
125801         * m4/userspec.m4: New file.
125803         Module gettime.
125804         * m4/clock_time.m4: New file.
125805         * m4/gettime.m4: New file.
125807         Module settime.
125808         * m4/settime.m4: New file.
125810         Module posixtm.
125811         * m4/posixtm.m4: New file.
125813         Module gethostname.
125814         * m4/gethostname.m4: New file.
125816         Module canon-host.
125817         * m4/canon-host.m4: New file.
125819         Module gettext.
125820         * m4/codeset.m4: New file, from gettext-0.11.5.
125821         * m4/gettext.m4: New file, from gettext-0.11.5.
125822         * m4/glibc21.m4: New file, from gettext-0.11.5.
125823         * m4/iconv.m4: New file, from gettext-0.11.5.
125824         * m4/intdiv0.m4: New file, from gettext-0.11.5.
125825         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
125826         * m4/inttypes.m4: New file, from gettext-0.11.5.
125827         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
125828         * m4/isc-posix.m4: New file, from gettext-0.11.5.
125829         * m4/lcmessage.m4: New file, from gettext-0.11.5.
125830         * m4/lib-ld.m4: New file, from gettext-0.11.5.
125831         * m4/lib-link.m4: New file, from gettext-0.11.5.
125832         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
125833         * m4/progtest.m4: New file, from gettext-0.11.5.
125834         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
125835         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
125836         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
125838         Module localcharset.
125839         * m4/localcharset.m4: New file.
125841         Module hard-locale.
125842         * m4/hard-locale.m4: New file.
125844         Module mbswidth.
125845         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
125846         onceonly macros.
125847         * m4/mbrtowc.m4: Add comment.
125849         Module memcasecmp.
125850         * m4/memcasecmp.m4: New file.
125852         Module memcoll.
125853         * m4/memcoll.m4: New file.
125855         Module unicodeio.
125856         * m4/unicodeio.m4: New file.
125858         Module rpmatch.
125859         * m4/rpmatch.m4: New file.
125861         Module yesno.
125862         * m4/yesno.m4: New file.
125864         Module exitfail.
125865         * m4/exitfail.m4: New file.
125867         Module c-stack.
125868         * m4/c-stack.m4 (gl_C_STACK): New macro.
125869         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
125871         Module error.
125872         * m4/error.m4 (gl_ERROR): New macro.
125873         (jm_PREREQ_ERROR): Use onceonly macros.
125875         Module fatal.
125876         * m4/fatal.m4: New file.
125878         Module getloadavg.
125879         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
125880         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
125882         Module getpagesize.
125883         * m4/getpagesize.m4: New file.
125885         Module getusershell.
125886         * m4/getusershell.m4: New file.
125888         Module physmem.
125889         * m4/physmem.m4: New file.
125891         Module posixver.
125892         * m4/posixver.m4: New file.
125894         Module quotearg.
125895         * m4/quotearg.m4: New file.
125897         Module quote.
125898         * m4/quote.m4: New file.
125900         Module readutmp.
125901         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
125903         Module sig2str.
125904         * m4/sig2str.m4: New file.
125906         Other.
125907         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
125908         ulonglong.m4.
125909         * m4/intmax_t.m4: New file.
125910         * m4/d-type.m4: Indentation.
125911         * m4/jm-macros.m4: Update.
125912         * m4/prereq.m4 (jm_PREREQ): Update.
125913         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
125914         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
125915         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
125916         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
125917         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
125918         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
125919         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
125920         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
125921         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
125922         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
125923         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
125924         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
125925         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
125926         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
125927         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
125928         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
125929         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
125930         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
125931         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
125933 2002-12-24  Bruno Haible  <bruno@clisp.org>
125935         * MODULES.txt: Update according to m4/ changes.
125937         Module gettext.
125938         * config.rpath: New file, from gettext-0.11.5.
125940         * modules/*: New module descriptions.
125941         * gnulib-tool: New file.
125942         * MODULES.html.sh: New file.
125944 2002-12-21  Karl Berry  <karl@gnu.org>
125946         * doc/fdl.texi: update to version 1.2.
125948 2002-12-19  Karl Berry  <karl@gnu.org>
125950         * config/config.guess: update from prep.
125952 2002-12-18  Bruno Haible  <bruno@clisp.org>
125954         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
125955         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
125957 2002-12-17  Bruno Haible  <bruno@clisp.org>
125959         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
125960         stdlib.h, string.h.
125962 2002-12-17  Bruno Haible  <bruno@clisp.org>
125964         * lib/canon-host.c (strdup): Remove unused declaration.
125966         * lib/fsusage.c: Include full_read.h.
125967         (get_fs_usage): Use full_read instead of safe_read.
125969         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
125971 2002-12-12  Karl Berry  <karl@gnu.org>
125973         * config/config.guess: update from prep.
125975 2002-12-11  Bruno Haible  <bruno@clisp.org>
125977         * m4/setenv.m4: New file, from gettext-0.11.5.
125979 2002-12-11  Bruno Haible  <bruno@clisp.org>
125981         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
125982         not unsetenv().
125983         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
125984         modifications:
125986         2002-12-11  Bruno Haible  <bruno@clisp.org>
125988                 * setenv.c (alloca): Fall back to malloc.
125989                 (freea): New macro.
125990                 (setenv): Use freea() to free memory allocated with alloca().
125992         2002-11-13  Bruno Haible  <bruno@clisp.org>
125994                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
125995                 function declarations.
125996                 * unsetenv.c (unsetenv): Likewise.
125998         2002-03-04  Bruno Haible  <bruno@clisp.org>
126000                 Portability to AIX 4.3.3.
126001                 * unsetenv.c: New file, extracted from setenv.c.
126002                 * setenv.c: Move the unsetenv() function to unsetenv.c.
126004         2001-12-20  Bruno Haible  <bruno@clisp.org>
126006                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
126007                 use malloc instead. For SunOS 4.
126009         2001-12-11  Bruno Haible  <bruno@clisp.org>
126011                 * setenv.c: Declare alloca.
126012                 (compar_fn_t): New typedef.
126013                 (KNOWN_VALUE, STORE_VALUE): Use it.
126015         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
126016         setenv.h.
126018 2002-12-10  Paul Eggert  <eggert@twinsun.com>
126020         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
126021         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
126022         Choose values that are less likely to collide with system fnmatch
126023         options.
126024         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
126025         defined (e.g., a pure POSIX system).
126026         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
126027         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
126029 2002-12-06  Paul Eggert  <eggert@twinsun.com>
126031         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
126032         a pain in practice to deal with generated m4 files.  This change
126033         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
126035         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
126036         and jm-glibc-io.m4, as they are no longer a special case.
126037         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
126038         kludge and the auto-generation stuff.  Check only whether the
126039         functions are declared, not whether they exist, since older hosts
126040         that don't declare the functions can't use the optimization anyway.
126042 2002-12-06  Jim Meyering  <jim@meyering.net>
126044         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
126046         Merge in changes from libc's misc/error.c, in preparation
126047         for the merge of gnulib's changes back into libc.
126049         * lib/error.c (_): Define only if not already defined.
126050         Move definition to follow all #include directives.
126051         Include unlocked-io.h only if !_LIBC.
126052         [_LIBC]: Include <libio/libioP.h>.
126053         [USE_IN_LIBIO]: Include <libio/iolibio.h>
126054         (fflush): Tweak definition to use INTUSE.
126055         (putc): Define.
126057 2002-12-05  Paul Eggert  <eggert@twinsun.com>
126059         * lib/alloca.c [defined emacs]: Include "lisp.h".
126060         (xalloc_die) [defined emacs]: New macro.
126061         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
126062         [! defined emacs]: Include <xalloc.h>.
126063         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
126064         (pointer): Typedef to POINTER_TYPE *.
126065         (malloc): Remove decl; we now always use xmalloc.
126066         (alloca): Use old-style definition, since Emacs needs this.
126067         Check for arithmetic overflow when computing combined size.
126069 2002-12-04  Paul Eggert  <eggert@twinsun.com>
126071         Do not generate unlocked-io.h automatically, since it's easier to
126072         maintain it by hand.
126074         * lib/unlocked-io.h: New file, from GNU diffutils,
126075         but with proper copyright notice and attribution.
126076         * lib/gen-uio: Remove.
126077         * lib/Makefile.am: Add copyright notice.
126078         (libfetish_a_SOURCES): Add unlocked-io.h.
126079         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
126080         (DISTCLEANFILES, io_functions): Remove macros.
126081         (EXTRA_DIST): Remove gen_uio.
126082         (unlocked-io.h): Remove rule.
126084 2002-12-04  Jim Meyering  <jim@meyering.net>
126086         Reflect the fact that stat.c and lstat.c are no longer generated.
126087         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
126088         (DISTCLEANFILES): Likewise.
126089         (EXTRA_DIST): Likewise.
126090         (all_local): Don't depend on stat.c or lstat.c.
126091         (stat.c, lstat.c): Remove rules.
126092         (EXTRA_DIST): Remove xstat.in.
126094         * lib/xstat.in: Remove file.  Contents moved into stat.c.
126095         * lib/stat.c: New file.  Contents mostly from xstat.in.
126096         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
126097         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
126099         * lib/safe-read.c: Rework so that it may serve to define safe_write,
126100         too.
126101         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
126103 2002-12-03  Jim Meyering  <jim@meyering.net>
126105         * lib/safe-read.c, safe-write.c: Change variable names and comments,
126106         but not semantics, to minimize the differences between these two files.
126107         (safe_read): Change comment to mention SAFE_READ_ERROR.
126109         * lib/safe-read.c (IS_EINTR): Define.
126110         (safe_read): Use IS_EINTR in place of in-function cpp directives.
126112 2002-12-02  Jim Meyering  <jim@meyering.net>
126114         * lib/safe-read.c (EINTR): Define.
126115         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
126116         (INT_MAX): Provide fallback.
126117         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
126119         * lib/safe-read.h (SAFE_READ_ERROR): Define.
126121 2002-12-02  Bruno Haible  <bruno@clisp.org>
126123         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
126124         Define, taken from safe-read.c.
126125         (INT_MAX): Provide fallback.
126126         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
126127         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
126129         * lib/safe-read.c (EINTR): Remove definition.
126130         (safe_read): Don't use EINTR if it is absent.
126132 2002-12-01  Jim Meyering  <jim@meyering.net>
126134         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
126135         zero.
126136         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
126138 2002-11-27  Paul Eggert  <eggert@twinsun.com>
126140         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
126141         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
126142         with `if (! (value < limit)) abort ();', for readability.
126144 2002-11-26  Karl Berry  <karl@gnu.org>
126146         * lib/strdup.c: copy from libc again, with jim's ok.
126147         * lib/.cppi-disable: re-add strdup.c
126149 2002-11-25  Karl Berry  <karl@gnu.org>
126151         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
126152         instead of "strtol.c".
126154 2002-11-25  Karl Berry  <karl@gnu.org>
126156         * config/install-sh: update from automake for variable quoting, $0 in
126157         error msgs, etc.
126159         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
126160         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
126161         entry.
126163 2002-11-25  Jim Meyering  <jim@meyering.net>
126165         * lib/mktime.c: Sync from libc, now that it has the latest fix.
126167 2002-11-24  Karl Berry  <karl@gnu.org>
126169         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
126170         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
126172 2002-11-24  Jim Meyering  <jim@meyering.net>
126174         Update from coreutils:
126176         * lib/mktime.c: Merge in changes from libc.
126178         Avoid a link-time failure on some Linux systems.
126179         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
126180         (otherwise).
126181         (__mon_yday): Declare with the STATIC attribute.
126182         (__mktime_internal): Likewise.
126183         Based on a report from Greg Schafer.
126185 2002-11-23  Jim Meyering  <jim@meyering.net>
126187         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
126188         Use `unsigned', not `int', as type of index.
126190         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
126192         * lib/fsusage.c: Remove unneeded parentheses around operands of
126193         `defined'.
126195 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126197         * lib/quotearg.h: Allow multiple inclusion by surrounding with
126198         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
126199         so that we can be included first.
126200         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
126201         * lib/quotearg.c: Include quotearg.h immediately after config.h.
126202         No need to include stddef.h or sys/types.h any more.
126203         Surround local include files with "", not "<>".
126204         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
126205         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
126206         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
126207         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
126208         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
126209         (ISPRINT): Remove; no longer needed now that we assume C89.
126211         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
126212         Preserve errno.
126214         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
126215         quotearg_char): Use SIZE_MAX rather than
126216         (size_t) -1 when we are talking about "infinity".
126218         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
126220 2002-11-22  Paul Eggert  <eggert@twinsun.com>
126222         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
126223         hint that one should use `if (! x) abort ();' rather than `assert
126224         (x);', and anyway it's one less thing to worry about configuring.
126225         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
126226         hash_rehash, hash_insert): Use abort rather than assert.
126228 2002-11-22  Bruno Haible  <bruno@clisp.org>
126230         * lib/safe-read.h: Assume C89. Add comments.
126231         (safe_read): Change return type to size_t.
126232         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
126233         byte counts > SSIZE_MAX correctly.
126234         * lib/safe-write.h: New file.
126235         * lib/safe-write.c: New file.
126236         * lib/full-read.h: New file.
126237         * lib/full-read.c: New file.
126238         * lib/full-write.h: Assume C89. Add comments.
126239         * lib/full-write.c: Include safe-write.h.
126240         (full_write): Rewritten to use safe_write.
126241         Suggested by Jim Meyering and Paul Eggert.
126243 2002-11-21  Jim Meyering  <jim@meyering.net>
126245         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
126247         Merge in changes from the coreutils.
126249         2002-09-25  Paul Eggert  <eggert@twinsun.com>
126250         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
126251         <stdint.h>.
126252         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
126253         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
126254         int.  Work more efficiently if X is the same width as uintmax_t.
126255         Do not compare X to -1, to avoid bogus compiler warning.
126256         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
126257         Don't assume that f_frsize and f_bsize are the same type.
126259         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
126260         warning on FreeBSD.
126262         * lib/makepath.c (make_path): Restore umask *before* creating the final
126263         component.
126264         (make_path): Minor reformatting.
126266         * lib/xmalloc.c: Adjust to work with new autoconf macros,
126267         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
126268         HAVE_MALLOC/HAVE_REALLOC.
126270         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
126271         dummy ones.  At least on GNU/Linux systems, `auto' means something
126272         else.
126273         From Michael Stone.
126275 2002-11-21  Bruno Haible  <bruno@clisp.org>
126277         Remove case insensitive option matching.
126278         * lib/argmatch.h (argcasematch): Remove declaration.
126279         (ARGCASEMATCH): Remove macro.
126280         (__xargmatch_internal): Remove case_sensitive argument.
126281         (XARGMATCH): Update.
126282         (XARGCASEMATCH): Remove macro.
126283         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
126284         case_sensitive argument.
126285         (argcasematch): Remove function.
126286         (__xargmatch_internal): Remove case_sensitive argument.
126287         (main): Use XARGMATCH instead of XARGCASEMATCH.
126289         * lib/xmalloc.c: Change compile-time error message. Add comment about
126290         required autoconf version.
126292 2002-11-20  Paul Eggert  <eggert@twinsun.com>
126294         Merge argmatch cleanups from Bison.  Assume C89.
126296         * lib/argmatch.c: Include config.h here, not in argmatch.h.
126297         Include stdlib.h, for EXIT_FAILURE.
126298         Always include <string.h>, since we assume C89.
126299         (EXIT_FAILURE): Remove pre-C89 bug workaround.
126300         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
126301         Include <stddef.h> instead, since it's all we need for size_t.
126302         (PARAMS): Remove.  All uses removed.
126303         (ARRAY_CARDINALITY): Do not bother to #undef.
126304         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
126305         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126306         Remove unnecessary parentheses.
126307         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
126308         Insert necessary parentheses.
126309         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
126310         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
126312 2002-11-19  Bruno Haible  <bruno@clisp.org>
126314         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
126315         * lib/mbswidth.h: Include <stddef.h>, for size_t.
126317         * lib/mbswidth.h (PARAMS): Remove macro.
126318         (mbswidth, mbsnwidth): Use ANSI C function declarations.
126319         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
126321         * lib/gcd.h (PARAMS): Remove macro.
126322         (gcd): Use ANSI C function declarations.
126323         * lib/gcd.c (gcd): Likewise.
126325 2002-11-15  Bruno Haible  <bruno@clisp.org>
126327         * lib/strcspn.c: Include <stddef.h>.
126328         (strcspn): Use ANSI C function declaration. Change return type to
126329         size_t. Use NULL.
126330         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
126331         (strpbrk): Use NULL.
126332         * lib/strpbrk.h (PARAMS): Remove macro.
126333         (strpbrk): Use ANSI C function declaration.
126334         * lib/strstr.c: Don't include <sys/types.h>.
126335         * lib/strstr.h (PARAMS): Remove macro.
126336         (strstr): Use ANSI C function declarations.
126338 2002-11-14  Karl Berry  <karl@gnu.org>
126340         * config/mkinstalldirs: `do' on separate line, instead of
126341         `for var; do'.
126343 2002-11-06  Bruno Haible  <bruno@clisp.org>
126345         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
126346         * lib/gcd.c (gcd): Likewise.
126348 2002-11-05  Bruno Haible  <bruno@clisp.org>
126350         * lib/gcd.h: New file, from gettext-0.11.5.
126351         * lib/gcd.c: New file, from gettext-0.11.5.
126353 2002-11-05  Bruno Haible  <bruno@clisp.org>
126355         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126356         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126357         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126358         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
126360         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
126361         <libintl.h>.
126362         * lib/makepath.c: Include gettext.h instead of <locale.h> and
126363         <libintl.h>.
126365         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
126366         * lib/human.c: Include gettext.h instead of <libintl.h>.
126367         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
126368         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
126369         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
126370         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
126371         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
126372         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
126373         (textdomain): Remove definition.
126374         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
126376         * lib/long-options.c: Remove include of <libintl.h> and definition of
126377         _.
126378         * lib/same.c: Remove include of <libintl.h> and definition of _.
126380 2002-11-04  Owen Taylor  <otaylor@redhat.com>
126382         * lib/config.charset: A few additions for Solaris.
126384 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126386         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
126387         * lib/localcharset.c (locale_charset): Declare as extern "C".
126389 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
126391         * lib/config.charset: msdos in uk_UA uses CP1125.
126393 2002-11-04  Bruno Haible  <bruno@clisp.org>
126395         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
126396         * lib/strcase.h: New file, from GNU gettext-0.11.5.
126397         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
126398         * lib/strstr.h: New file, from GNU gettext-0.11.5.
126399         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
126401 2002-11-04  Bruno Haible  <bruno@clisp.org>
126403         * lib/localcharset.c (locale_charset): Don't return an empty string.
126405 2002-11-04  Bruno Haible  <bruno@clisp.org>
126407         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
126408         aliases.
126410 2002-11-04  Bruno Haible  <bruno@clisp.org>
126412         * lib/config.charset: Update for newest glibc. Add canonical names
126413         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
126415 2002-11-04  Bruno Haible  <bruno@clisp.org>
126417         * lib/config.charset: Add support for NetBSD.
126419 2002-11-04  Bruno Haible  <bruno@clisp.org>
126421         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
126423 2002-11-01  Bruno Haible  <bruno@clisp.org>
126425         * configure.in: Add AC_CONFIG_AUX_DIR call.
126426         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
126427         test/Makefile.
126428         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
126430 2002-09-28  Karl Berry  <karl@gnu.org>
126432         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
126433         installed automake until the next release, since changes have been
126434         made.
126436 2002-09-25  Karl Berry  <karl@gnu.org>
126438         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
126439         * lib/getopt*: copy from libc/posix.
126440         * lib/gettext.h: copy from gettext.
126441         * lib/.cppi-disable: add strdup.c, gettext.h.
126443 2002-09-25  Karl Berry  <karl@gnu.org>
126445         * config/srclist.txt: enable gettext.h check.
126446         * config/config.{guess,sub}: update from prep.
126447         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
126448                 from automake 1.6.3.
126449         See srclist*.
126451 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
126453         * regex.c (PATFETCH): Remove the translating fetch.
126454         (PATFETCH_RAW): Rename to PATFETCH.
126455         (set_image_of_range): New fun.
126456         (SET_RANGE_TABLE_WORK_AREA): Use it.
126457         (regex_compile): Don't translate the pattern chars so eagerly.
126458         Only do it when inserting an `exactn' bytecode or when handling
126459         a char-range.
126460         (mutually_exclusive_p): Avoid empty statement.
126462 2002-07-06  Jim Meyering  <meyering@lucent.com>
126464         * m4/README: Don't mention Makefile.am.in.
126465         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
126467 2002-07-01  Jim Meyering  <meyering@lucent.com>
126469         * lib/c-stack.c: Include sys/time.h.
126470         From Volker Borchert.
126472 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126474         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
126476 2002-06-26  Paul Eggert  <eggert@twinsun.com>
126478         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
126479         New macro.  Use it uniformly instead of
126480         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
126481         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
126482         reported by Vin Shelton.
126484 2002-06-22  Paul Eggert  <eggert@twinsun.com>
126486         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
126487         Do not assume SA_SIGINFO behavior.
126488         Bug reported by Jim Meyering on NetBSD 1.5.2.
126490 2002-06-22  Jim Meyering  <meyering@lucent.com>
126492         * m4/c-stack.m4: New file, from diffutils-2.8.2.
126493         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
126495         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
126496         now that configure.ac uses AC_GNU_SOURCE.
126497         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
126498         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
126500         Update to latest tools.  Suggestions from Paul Eggert.
126501         * m4/stdbool.m4: New file, from diffutils-2.8.2.
126502         * m4/gnu-source.m4: Update from diffutils-2.8.2.
126503         * m4/fnmatch.m4: Likewise.
126504         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
126505         to AC_HEADER_STDBOOL
126507 2002-06-22  Jim Meyering  <meyering@lucent.com>
126509         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
126510         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
126512 2002-06-22  Jim Meyering  <meyering@lucent.com>
126514         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
126516         * lib/exitfail.c, exitfail.h: Likewise.
126517         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
126519         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
126520         of fnmatch.h.
126521         (EXTRA_DIST): Add fnmatch_loop.c.
126522         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
126524         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
126525         * lib/fnmatch.c: Update from diffutils-2.8.2.
126526         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
126527         * lib/fnmatch.h: Remove file.
126529 2002-06-21  Jim Meyering  <meyering@lucent.com>
126531         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
126532         * m4/mbrtowc.m4: Likewise.
126534         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
126535         * m4/mbswidth.m4: Reflect name change:
126536         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
126537         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
126539         * m4/lib-link.m4: Update from gettext-0.11.2.
126540         * m4/gettext.m4: Likewise.
126542         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
126543         From Alfred M. Szmidt.
126545 2002-06-18  Paul Eggert  <eggert@twinsun.com>
126547         * lib/file-type.h: Report an error if neither S_ISREG nor
126548         S_IFREG is defined, instead of using a test specific to glibc
126549         2.2.  This should be safe, since POSIX requires S_ISREG and
126550         Unix Version 7 had S_IFREG.  We don't need to check for
126551         <sys/types.h> since we don't use any symbols that it defines.
126553 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
126555         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
126556         $@-t, so that each temporary file name is unique and valid in the first
126557         8 characters, for operation under DOS.
126559 2002-06-15  Paul Eggert  <eggert@twinsun.com>
126561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
126563 2002-06-15  Jim Meyering  <meyering@lucent.com>
126565         Work even with DJGPP 2.03, which lacks support for symlinks.
126566         From Richard Dawe.
126567         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
126568         is defined.
126569         * lib/lchown.c (S_ISLNK): Likewise.
126571 2002-06-15  Jim Meyering  <meyering@lucent.com>
126573         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
126574         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
126575         have been included before this file.
126577 2002-06-14  Jim Meyering  <meyering@lucent.com>
126579         * lib/file-type.h: Use the version from diffutils-2.8.2.
126580         * lib/file-type.c: Likewise.
126582 2002-06-07  Jim Meyering  <meyering@lucent.com>
126584         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
126585         They're needed at least for NetBSD 1.5.2.
126586         ($statxfs_includes): Include those same headers.
126587         ($statxfs_includes): Include sys/vfs.h if available.
126588         ($statxfs_includes): Likewise for sys/statvfs.h.
126589         Check for the following members in both structs statfs and statvfs:
126590         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
126592 2002-06-01  Jim Meyering  <meyering@lucent.com>
126594         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
126595         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
126597 2002-05-28  Jim Meyering  <meyering@lucent.com>
126599         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
126600         Reported by Volker Borchert.
126602 2002-05-27  Jim Meyering  <meyering@lucent.com>
126604         Fix a problem seen only on nonconforming systems whereby ls.c's
126605         use of localtime, and then of gettimeofday would cause trouble:
126606         the localtime call used to initialize rpl_gettimeofday's save
126607         mechanism would clobber ls's current local time information so
126608         that in any long listing the first file would always be listed
126609         with date 1970-01-01.  Analysis by Volker Borchert.
126611         * lib/gettimeofday.c (localtime): Undefine.
126612         (rpl_localtime): New function.
126614 2002-05-27  Jim Meyering  <meyering@lucent.com>
126616         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
126617         localtime.
126619         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
126620         use the replacement function; it wouldn't resolve at link time.
126621         Reported by Volker Borchert.
126623 2002-05-22  Jim Meyering  <meyering@lucent.com>
126625         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
126626         file-type.h.
126627         * lib/file-type.h: New file.
126628         * lib/file-type.c (file_type): New file/function.  Extracted from
126629         diffutils.
126631 2002-04-30  Jim Meyering  <meyering@lucent.com>
126633         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
126635 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126637         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
126639 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126641         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
126642         Do not check for alloca.h (no longer used) or stdbool.h (was never
126643         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
126645 2002-04-29  Paul Eggert  <eggert@twinsun.com>
126647         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
126649 2002-04-29  Jim Meyering  <meyering@lucent.com>
126651         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
126652         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
126653         Use AC_FUNC_STRNLEN here instead.
126655         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
126656         With autoconf-2.53a, it's part of AC_PROG_CC.
126658 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126660         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
126661         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
126663 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126665         * lib/sig2str.h, lib/sig2str.c: New files.
126666         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
126668 2002-04-28  Paul Eggert  <eggert@twinsun.com>
126670         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
126671         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
126672         of 127, since 64 is the largest conceivable number for ancient
126673         nonstandard hosts.
126674         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
126676 2002-04-28  Jim Meyering  <meyering@lucent.com>
126678         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
126680 2002-04-24  Jim Meyering  <meyering@lucent.com>
126682         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
126683         (jm_PREREQ): Use it.
126685         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
126686         mach/mach.h fcntl.h.
126687         Check for this function: setlocale.
126689 2002-04-24  Jim Meyering  <meyering@lucent.com>
126691         * lib/gettext.h: New file, from Gettext.
126692         * lib/Makefile.am (INCLUDES): Remove -I../intl.
126693         (libfetish_a_SOURCES): Add gettext.h.
126695 2002-04-16  Jim Meyering  <meyering@lucent.com>
126697         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
126698         ut_pid, ut_id, ut_exit.
126700 2002-04-16  Jim Meyering  <meyering@lucent.com>
126702         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
126703         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
126704         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
126706 2002-04-12  Jim Meyering  <meyering@lucent.com>
126708         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
126709         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
126710         existence of the getmntinfo function.  Needed for Darwin 5.3.
126712         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
126713         This is necessary at least on Darwin 5.3.
126715         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
126716         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
126717         strnlen.o in the library, and that makes some versions of ranlib
126718         object.
126720 2002-04-12  Jim Meyering  <meyering@lucent.com>
126722         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
126724 2002-04-09  Jim Meyering  <meyering@lucent.com>
126726         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
126727         to be more precise.  Rather than saying we're checking whether the
126728         function `works', say what we're testing.
126729         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
126730         Reported by Bruno Haible.
126732 2002-03-10  Jim Meyering  <meyering@lucent.com>
126734         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
126735         Suggestion from Santiago Vila.
126737 2002-03-08  Jim Meyering  <meyering@lucent.com>
126739         * lib/rename.c: Mention that this wrapper is needed also on
126740         mips-dec-ultrix4.4 systems.
126742 2002-03-02  Jim Meyering  <meyering@lucent.com>
126744         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
126745         not HAVE_CLOCK_SETTIME.
126747 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126749         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
126750         Check for clock_settime.
126752 2002-02-27  Paul Eggert  <eggert@twinsun.com>
126754         * lib/nanosleep.h: Rename to....
126755         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
126757         * lib/gettime.c: New file.
126758         * lib/settime.c: New file.
126759         * lib/stime.c: Remove.
126761         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
126762         timespec.h.  Remove nanosleep.h.
126764 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126766         * m4/acl.m4: New file.
126767         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
126768         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
126770 2002-02-25  Paul Eggert  <eggert@twinsun.com>
126772         * lib/acl.c, lib/acl.h: New files.
126773         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
126775 2002-02-24  Jim Meyering  <meyering@lucent.com>
126777         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
126778         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
126779         cause trouble.  Reported by Nelson Beebe.
126781 2002-02-23  Paul Eggert  <eggert@twinsun.com>
126783         * lib/path-concat.c (xpath_concat): Reorder code to pacify
126784         compilers that don't know that xalloc_die never returns.
126786 2002-02-20  Jim Meyering  <meyering@lucent.com>
126788         * lib/getdate.c: Regenerate using bison-1.33.
126790 2002-02-17  Jim Meyering  <meyering@lucent.com>
126792         * config/config.guess (main): Don't use `head -1'; it's no longer
126793         portable. Use `sed 1q' instead.
126795 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
126797         * m4/codeset.m4: Upgrade to gettext-0.11.
126798         * m4/gettext.m4: Upgrade to gettext-0.11.
126799         * m4/glibc21.m4: Upgrade to gettext-0.11.
126800         * m4/iconv.m4: Upgrade to gettext-0.11.
126801         * m4/isc-posix.m4: Upgrade to gettext-0.11.
126802         * m4/lcmessage.m4: Upgrade to gettext-0.11.
126803         * m4/lib-ld.m4: New file, from gettext-0.11.
126804         * m4/lib-link.m4: New file, from gettext-0.11.
126805         * m4/lib-prefix.m4: New file, from gettext-0.11.
126806         * m4/progtest.m4: Upgrade to gettext-0.11.
126808 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126810         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
126811         (jm_PREREQ): Use it.
126813 2002-02-15  Paul Eggert  <eggert@twinsun.com>
126815         * lib/posixver.c, lib/posixver.h: New files.
126816         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126818 2002-02-02  Paul Eggert  <eggert@twinsun.com>
126819             Bruno Haible  <bruno@clisp.org>
126821         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
126822         (fwrite_success_callback): New declaration.
126823         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
126824         print_unicode_char. Call failure callback instead of error.
126825         (fwrite_success_callback): New function.
126826         (exit_failure_callback): New function.
126827         (fallback_failure_callback): New function.
126828         (print_unicode_char): Call unicode_to_mb.
126830 2002-01-26  Jim Meyering  <meyering@lucent.com>
126832         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
126833         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
126835 2002-01-26  Jim Meyering  <meyering@lucent.com>
126837         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
126839 2002-01-22  Paul Eggert  <eggert@twinsun.com>
126841         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
126843 2002-01-22  Jim Meyering  <meyering@lucent.com>
126845         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
126846         Otherwise, some versions of automake would omit the rule that makes
126847         Makefile from Makefile.in.
126849 2002-01-21  Paul Eggert  <eggert@twinsun.com>
126851         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
126852         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
126853         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
126854         (memcoll): Set errno to zero if there is no error.
126856         * lib/quotearg.c (quotearg_buffer_restyled):
126857         Fix bug with quoting buffers containing NUL when backslashing escapes.
126858         This bug was exposed by the other changes in this patch.
126859         (quotearg_n_options): New arg ARGSIZE.
126860         All callers changed.
126861         (quoting_options_from_style): New function.
126862         (quotearg_n_style): Use it.
126863         (quotearg_n_style_mem): New function.
126865         * lib/quotearg.h (quotearg_n_style_mem): New function.
126867 2002-01-19  Jim Meyering  <meyering@lucent.com>
126869         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
126870         Remove useless quotes: DF_PROG="df".
126871         * m4/strnlen.m4: New file.
126873 2002-01-16  Paul Eggert  <eggert@twinsun.com>
126875         * lib/backupfile.c (ISDIGIT): Comment fix.
126876         * lib/getdate.y (ISDIGIT): Likewise.
126877         * lib/posixtm.c (ISDIGIT, year): Likewise.
126878         * lib/strverscmp.c (ISDIGIT): Likewise.
126879         * lib/userspec.c (ISDIGIT): Likewise.
126881 2002-01-16  Jim Meyering  <meyering@lucent.com>
126883         * lib/getdate.y: Add three semicolons, each just before a closing
126884         brace. Bison (as of version 1.31) no longer papers over that mistake.
126886 2002-01-05  Jim Meyering  <meyering@lucent.com>
126888         * lib/version-etc.c (version_etc_copyright): Update copyright year.
126890 2001-12-19  Paul Eggert  <eggert@twinsun.com>
126892         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
126893         not silently exit merely because the output buffer happens to
126894         have nothing pending.
126896 2001-12-18  Paul Eggert  <eggert@twinsun.com>
126898         See the big note in ../ChangeLog.
126899         * lib/human.c (suffixes): Prefer K to k for 1024.
126900         (generate_suffix_backwards): New function.
126901         (human_readable_inexact): Use it.
126902         * lib/xstrtol.c (__xstrtol): If there is no number but there
126903         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
126904         Accept 'K' as well as 'k'.
126906 2001-12-15  Jim Meyering  <meyering@lucent.com>
126908         * lib/regex.h (__restrict_arr): Update from libc.
126910         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
126911         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
126912         (STREQ): Define.
126914 2001-12-14  Jim Meyering  <meyering@lucent.com>
126916         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
126917         Suggestion from Bruno Haible.
126919 2001-12-10  Jim Meyering  <meyering@lucent.com>
126921         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
126922         xrealloc, Instead, include "xalloc.h".
126923         (initbuffer): Don't cast xmalloc return value to char*.
126924         (readline): Reword comment.
126925         Don't cast xrealloc return value to char*
126926         Return NULL, not 0.
126928 2001-12-09  Jim Meyering  <meyering@lucent.com>
126930         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
126931         about `signed and unsigned type in conditional expression'.
126932         * lib/posixtm.c (posix_time_parse): Likewise.
126934         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
126936         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
126937         to avoid a pedantic warning.
126939         * lib/getstr.c: Don't include assert.h.
126940         (getstr): Remove warning-evoking assertions.
126941         Return -1 if offset parameter is out of bounds.
126942         Change the type of a local from int to size_t.
126944         * lib/strftime.c (my_strftime_localtime_r): Include this function
126945         definition in the `#if ! HAVE_TM_GMTOFF' block.
126947         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
126948         Include xalloc.h instead.
126950 2001-12-02  Jim Meyering  <meyering@lucent.com>
126952         * lib/tempname.c: Don't declare getenv, thus reverting the change of
126953         2001-11-18.  It's no longer necessary, now that stdlib.h is always
126954         included.
126956         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
126957         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
126959 2001-11-30  Akim Demaille  <akim@epita.fr>
126961         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
126962         before being defined.
126964 2001-11-27  Paul Eggert  <eggert@twinsun.com>
126966         * lib/quotearg.h (quotearg_n, quotearg_n_style):
126967         First arg is int, not unsigned.
126968         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
126969         (SIZE_MAX, UINT_MAX): New macros.
126970         (quotearg_n_options): Abort if N is negative.
126971         Avoid overflow check on hosts where size_t is 64 bits and int
126972         is 32 bits, as overflow is impossible there.
126973         Fix off-by-one typo that caused unnecessary reallocation.
126975 2001-11-27  Jim Meyering  <meyering@lucent.com>
126977         * lib/tempname.c: Merge with version from libc.
126978         * lib/regex.c: Likewise.
126980         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
126981         systems for which STDC_HEADERS is 0, it was not included, resulting in
126982         a warning about an integer-to-pointer conversion problem with getenv.
126983         Reported by Volker Borchert.
126985 2001-11-26  Jim Meyering  <meyering@lucent.com>
126987         * lib/gtod.h: Remove file.
126988         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
126989         * lib/gettimeofday.c: Don't include gtod.h.
126990         (GTOD_init): Remove function.
126991         (rpl_gettimeofday): Do its job here instead, rather than aborting.
126992         Suggestion from Volker Borchert.
126994 2001-11-23  Jim Meyering  <meyering@lucent.com>
126996         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
126997         it.
126998         * lib/hash.c (struct hash_table): Define it here instead.
127000 2001-11-22  Jim Meyering  <meyering@lucent.com>
127002         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
127004 2001-11-20  Jim Meyering  <meyering@lucent.com>
127006         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
127007         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
127009 2001-11-19  Jim Meyering  <meyering@lucent.com>
127011         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
127012         directory.  Use "conftestXXXXXX" as the template.
127013         Suggestion from Paul Eggert.
127015         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
127016         immediately, so the test doesn't mistakenly hit the max-open-files
127017         limit.
127019 2001-11-18  Paul Eggert  <eggert@twinsun.com>
127021         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
127022         (TEMPORARIES): New macro.
127023         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
127024         removes an artificial limitation (e.g. HP-UX 10.20, where
127025         TMP_MAX is 17576).
127027 2001-11-18  Jim Meyering  <meyering@lucent.com>
127029         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
127031 2001-11-18  Jim Meyering  <meyering@lucent.com>
127033         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
127034         on SunOS 4.
127036         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
127037         files will be created before anything else.
127039 2001-11-17  Paul Eggert  <eggert@twinsun.com>
127041         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
127042         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
127044 2001-11-17  Jim Meyering  <meyering@lucent.com>
127046         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
127047         Prompted by a report from Bob Proulx.
127049         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
127050         Instead, require UTILS_FUNC_MKSTEMP.
127052 2001-11-17  Jim Meyering  <meyering@lucent.com>
127054         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
127055         Now, that's done as part of AC_FUNC_STRTOD.
127057 2001-11-17  Jim Meyering  <meyering@lucent.com>
127059         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
127060         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
127061         rather than group writable.  Patch by Juan F. Codagnone.
127063         * lib/readtokens.c: Remove explicit declarations of xmalloc and
127064         xrealloc, Instead, include "xalloc.h".
127066         * lib/mountlist.c: Include unlocked-io.h after all system headers.
127067         Remove explicit declarations of xmalloc, xrealloc,
127068         and xstrdup.  Instead, include "xalloc.h".
127070         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
127071         unlocked-io.h.
127072         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
127073         Likewise.
127074         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
127076         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
127077         Reported by Padraig Brady.
127079         * lib/mkstemp.c: #undef mkstemp.
127080         Include config.h.
127081         (rpl_mkstemp): Rename from mkstemp.
127082         Protoize.
127084 2001-11-16  Jim Meyering  <meyering@lucent.com>
127086         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
127087         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
127088         determine the amount of total physical memory, use pstat_getstatic.
127089         HPUX-11 doesn't define _SC_PHYS_PAGES.
127090         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
127091         If sysconf couldn't be used to determine the amount of available
127092         physical memory, use both pstat_getstatic and pstat_getdynamic.
127093         Based on a patch from Bob Proulx.
127095 2001-11-10  Jim Meyering  <meyering@lucent.com>
127097         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
127098         (jm_PREREQ): Use it.
127100 2001-11-09  Jim Meyering  <meyering@lucent.com>
127102         * m4/jm-macros.m4: Require autoconf-2.52f.
127103         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
127104         Use these AC_-prefixed names, not the AM_-prefixed ones.
127106         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
127108 2001-11-05  Jim Meyering  <meyering@lucent.com>
127110         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
127112 2001-11-04  Jim Meyering  <meyering@lucent.com>
127114         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
127115         $DEFS.
127117 2001-11-03  Jim Meyering  <meyering@lucent.com>
127119         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
127120         of AC_DEFUN.
127122         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
127123         know the name of the variable in the macro definition.
127125 2001-11-03  Jim Meyering  <meyering@lucent.com>
127127         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
127128         in argmatch_to_argument call.
127130         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
127131         argument.
127133         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
127134         e.g., a fault due to an attempt to free a NULL pointer.
127136 2001-11-01  Jim Meyering  <meyering@lucent.com>
127138         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
127139         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
127141 2001-11-01  Jim Meyering  <meyering@lucent.com>
127143         * lib/dirfd.c, lib/dirfd.h: New files.
127144         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
127146         * lib/hash.c (hash_print) [TESTING]: Clean up.
127148 2001-10-22  Paul Eggert  <eggert@twinsun.com>
127150         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
127151         to avoid a warning if -Wall.
127153 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
127155         * README: New file
127156         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
127157         (per RMS's instructions, this is now the canonical source)
127158         * lgpl/, gpl/: New directories.
127160 2001-10-21  Paul Eggert  <eggert@twinsun.com>
127162         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
127164 2001-10-21  Jim Meyering  <meyering@lucent.com>
127166         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
127167         this code would end up calling gettext even in packages built
127168         with --disable-nls.
127169         * lib/getopt.c (_): Likewise.
127170         * lib/regex.c (_): Likewise.
127172 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127174         * m4/error.m4 (jm_PREREQ_ERROR):
127175         Do not invoke AC_CHECK_FUNCS with strerror_r, as
127176         AC_FUNC_STRERROR_R does that.
127177         Check for strerror declaration.
127179         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
127180         are supposed to have them these days.
127181         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
127182         Merge changes from latest Autoconf CVS.
127183         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
127184         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
127185         POSIX decided to standardize on the int flavor of strerror_r.
127187 2001-10-20  Paul Eggert  <eggert@twinsun.com>
127189         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
127190         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
127191         Use strerror_r that is only a macro, even if it is not a function.
127192         (strerror): Check for HAVE_DECL_STRERROR before declaring.
127193         (private_strerror): Use prototypes, not old-style function definition.
127194         (print_errno_message): New function.
127195         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
127196         char*-flavored one.
127197         (error_tail, error, error_at_line): Use it.
127199 2001-10-11  Jim Meyering  <meyering@lucent.com>
127201         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
127202         and quote_n (1, ... to avoid clobbering a buffer.
127204 2001-10-05  Jim Meyering  <meyering@lucent.com>
127206         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
127207         hash-pjw.h.
127208         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
127209         * lib/hash-pjw.h: New file.
127211 2001-09-30  Jim Meyering  <meyering@lucent.com>
127213         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
127214         `struct fsstat' has the `f_fstypename' member.
127215         Use that to define FS_TYPE, which is now used to make
127216         the getfsstat link test tighter.
127218 2001-09-30  Jim Meyering  <meyering@lucent.com>
127220         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
127221         Include <sys/ucred.h>, for Apple Darwin.
127222         Include sys/mount.h and sys/fs_types.h only if available.
127223         (FS_TYPE): Define.
127224         (read_filesystem_list): Use FS_TYPE.
127226 2001-09-29  Paul Eggert  <eggert@twinsun.com>
127228         * lib/exclude.c (excluded_filename): 0 -> false, since it's
127229         a boolean context.
127231 2001-09-29  Jim Meyering  <meyering@lucent.com>
127233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127234         [one-argument getmntent function]): Include stdio.h before mntent.h.
127235         SunOS 4.1.x needs it for the declaration of `FILE'.
127236         Patch by Volker Borchert.
127238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
127239         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
127240         sys/fs_types.h, and make the link-test for getfsstat guard #include
127241         directives with appropriate #if HAVE_*_H tests so that we can
127242         detect getfsstat on Apple Darwin1.3.7 systems.
127243         Reported by Nelson Beebe.
127244         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
127246 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127248         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127249         #defines strtoimax.  Also treat the other strto* functions
127250         like strtoimax.
127252         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127253         Check for strtoul and strtoumax,
127254         as those declarations are made even in the signed case.
127255         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
127256         Likewise, for strtol and strtoimax.
127258 2001-09-28  Paul Eggert  <eggert@twinsun.com>
127260         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
127261         #defines strtoimax.  Also treat the other strto* functions
127262         like strtoimax.
127264         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
127265         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
127266         (strtoimax, strtoumax): Do not declare if already defined as a macro.
127268 2001-09-26  Jim Meyering  <meyering@lucent.com>
127270         Most macros in unlocked-io.h had the wrong number of arguments.
127271         * lib/gen-uio: New script.
127272         (USE_UNLOCKED_IO): Define to 1 if not already defined.
127273         * lib/unlocked-io.hin: Remove file.
127274         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
127275         rather than trying to embed it here.
127276         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
127277         Reported by Padraig Brady.
127279 2001-09-25  Volker Borchert  <bt@teknon.de>
127281         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
127282         `result'.
127284 2001-09-24  Jim Meyering  <meyering@lucent.com>
127286         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
127288 2001-09-23  Jim Meyering  <meyering@lucent.com>
127290         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
127291         instead of the mere test for existence of mntent.h.  The latter
127292         would get a false-positive on AIX 3.4 systems.
127293         In the outer getmntent if-block, don't die if neither of the getmntent
127294         tests succeeds.  Instead, just fall through and continue with the
127295         remaining tests.
127297 2001-09-23  Jim Meyering  <meyering@lucent.com>
127299         * lib/mountlist.c: Remove useless parentheses in #if directives.
127300         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
127301         the deprecated MOUNTED symbol is no longer defined in mntent.h.
127303 2001-09-22  Jim Meyering  <meyering@lucent.com>
127305         * m4/gettext.m4: New file.  From gettext.
127306         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
127307         * m4/progtest.m4: Likewise
127308         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
127309         * m4/glibc21.m4: Likewise.
127311         * m4/libintl.m4: Remove.  No longer used.
127313 2001-09-22  Jim Meyering  <meyering@lucent.com>
127315         * lib/localcharset.c: Update from latest gettext.
127316         * lib/config.charset: Likewise.
127318 2001-09-20  Jim Meyering  <meyering@lucent.com>
127320         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
127321         strtoimax.
127322         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
127323         strtoumax.
127325 2001-09-20  Jim Meyering  <meyering@lucent.com>
127327         * lib/xstrtol.c (strtoimax): Guard declaration with
127328         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
127329         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
127330         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
127331         (strtoumax): Likewise, for completeness (it wasn't necessary).
127333 2001-09-17  Paul Eggert  <eggert@twinsun.com>
127335         * lib/strtoimax.c (HAVE_LONG_LONG):
127336         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
127337         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
127338         to work around bug in IBM C compiler.
127340 2001-09-17  Jim Meyering  <meyering@lucent.com>
127342         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
127343         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
127344         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
127345         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
127346         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
127347         whenever the right hand side need not be expanded by the shell.
127349 2001-09-16  Paul Eggert  <eggert@twinsun.com>
127351         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
127352         library.  It's not correct, as some older glibcs are buggy.
127353         fnmatch wasn't fixed until glibc 2.2.
127355         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
127356         special shell magic here.
127358 2001-09-16  Jim Meyering  <meyering@lucent.com>
127360         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
127361         * m4/jm-macros.m4: Require it.
127363 2001-09-16  Jim Meyering  <meyering@lucent.com>
127365         * lib/mkdir.c: New file.
127367 2001-09-15  Jim Meyering  <meyering@lucent.com>
127369         * m4/jm-macros.m4: Check for help2man.
127371 2001-09-11  Jim Meyering  <meyering@lucent.com>
127373         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
127374         The body, by Paul Eggert, was moved here from configure.in.
127375         * m4/jm-macros.m4: Require UTILS_HOST_OS.
127377 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127379         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
127380         (jm_PREREQ): Use it.
127382 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127384         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
127385         Use ssize_t, not int, to store result of readlink.
127386         Check for ssize_t overflow as well as size_t overflow,
127387         as POSIX says the result of readlink is implementation-defined
127388         when ssize_t overflows.
127389         Remove unnecessary cast to char*.
127390         Use free+malloc instead of realloc, as the storage doesn't need
127391         to be preserved and it's clearer and can be more efficient that way.
127392         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
127393         * lib/xreadlink.h (xreadlink): Update prototype.
127395 2001-09-04  Paul Eggert  <eggert@twinsun.com>
127397         * lib/xgetcwd.c: Revert some of the previous change; intead,
127398         fix the HAVE_GETCWD_NULL code to behave more like the
127399         !HAVE_GETCWD_NULL code used to.
127401         Include "xalloc.h".
127402         (xgetcwd): Do not return NULL when memory is exhausted; instead,
127403         invoke xalloc_die.
127405 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127407         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
127408         sys/param.h, as pathmax.h includes them.
127410 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127412         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
127413         (jm_PREREQ_XGETCWD): New macro.
127415         * m4/getcwd.m4: New file.
127417 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127419         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
127420         like the HAVE_GETCWD_NULL code.
127421         Include pathmax.h if not HAVE_GETCWD.
127422         Do not include xalloc.h.
127423         (INITIAL_BUFFER_SIZE): New symbol.
127424         Do not use xmalloc / xrealloc, since the caller is responsible for
127425         handling errors.  Preserve errno around `free' during failure.
127426         Do not overrun buffer when using getwd.
127428 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127430         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
127431         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
127432         getcwd (NULL, 0).
127434 2001-09-03  Paul Eggert  <eggert@twinsun.com>
127436         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
127437         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
127438         spotted by Jim Meyering.
127440 2001-09-03  Jim Meyering  <meyering@lucent.com>
127442         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
127443         failure.
127445 2001-09-02  Jim Meyering  <meyering@lucent.com>
127447         * lib/error.c: Update from GNU libc.
127449 2001-09-01  Jim Meyering  <meyering@lucent.com>
127451         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
127452         Used by df.
127454 2001-09-01  Jim Meyering  <meyering@lucent.com>
127456         * lib/xreadlink.c: New file.
127457         * lib/xreadlink.h: New file.
127458         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
127459         xreadlink.h.
127461         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
127462         doesn't conflict with sparc Solaris 7's definition in
127463         /usr/include/sys/int_types.h.
127465         * lib/exclude.c: Use `""', not `<>' to #include non-system header
127466         files.
127467         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
127468         and strncasecmp as r-values.  Unixware didn't have declarations.
127470 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127472         * lib/xstrtol.h: Add copyright notice.
127473         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
127474         LONGINT_INVALID_SUFFIX_CHAR.
127476 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127478         * lib/xstrtol.c (strtoimax): New decl.
127480 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127482         * lib/xgetcwd.c: Don't include pathmax.h.
127483         Include stdlib.h and unistd.h if available.
127484         Include xalloc.h.
127485         (xmalloc, xstrdup, free): Remove decls.
127486         (xgetcwd): Don't assume sizes fit in unsigned.
127487         Check for overflow when computing sizes.
127488         Simplify reallocation code.
127490 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127492         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
127493         a directory's st_size can have an arbitrary value, so the old
127494         usage could waste an arbitrary amount of memory.  All uses
127495         changed.
127496         * lib/savedir.h: Update prototype.
127498 2001-08-31  Paul Eggert  <eggert@twinsun.com>
127500         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
127502         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
127503         old strtoimax.c.
127505         Also, make the following further changes to make this file's
127506         configuration more similar to that of strtol.c:
127507         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
127508         (strtoumax, uintmax_t, strtoull, strtol): Remove.
127509         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
127510         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
127511         changed to signed values.
127513         And make the following changes as well:
127514         Fix copyright notice, as 1999 was missing.
127515         (verify): New macro.
127516         (strtoimax): Check sizes at compile-time, not run-time.
127517         Prefer strtol to strtoll if both work.
127518         (main): Remove; it was not that useful and was a pain to maintain.
127520         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
127522 2001-08-31  Jim Meyering  <meyering@lucent.com>
127524         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
127525         Use an initial, malloc'd, buffer of length 128 rather than
127526         a statically allocated one of length 1024.
127528 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127530         Simplify code, partly by assuming autoconf 2.52 semantics.
127532         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
127534         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
127535         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
127536         All uses removed.
127537         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
127538         Move AC_REQUIRE to next-to-top level, to avoid confusion.
127539         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
127540         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
127541         jm_AC_HEADER_INTTYPES_H.
127542         * m4/jm-macros.m4 (jm_MACROS): Likewise.
127544         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
127546         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
127547         Quote first arg of AC_DEFUN.
127548         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
127549         since they are needed to parse the include file even if we need
127550         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
127551         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
127552         but with opposite signedness.
127554 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127556         Merge 'exclude' changes from tar 1.13.22.
127557         This fixes one or two unlikely storage allocation overflow bugs,
127558         but doesn't change user-visible behavior otherwise.
127560 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127562         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
127563         (jm_PREREQ_EXCLUDE): New macro.
127565 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127567         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
127568         tm to be declared.
127570 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127572         * lib/hash.c: Remove '2001' from copyright notice.
127574 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127576         * lib/full-write.h: New file.
127577         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
127578         * lib/full-write.c: Correct credits, as cccp.c no longer
127579         exists and anyway it was so heavily changed from the old cccp
127580         code as to be unrecognizable.  Include full-write.h.
127581         (full_write): Return size_t, with short writes meaning failure.
127582         All callers changed.  This fixes a bug with large buffers
127583         on 64-bit hosts.
127584         * lib/utime.c: Include full-write.h.
127586 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127588         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
127589         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
127590         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
127591         Include if available.
127592         (<xalloc.h>): Include
127593         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
127594         (verify): New macro.  Use it to verify that EXCLUDE macros do not
127595         collide with FNM macros.
127596         (struct patopts): New struct.
127597         (struct exclude): Use it, as exclude patterns now come with options.
127598         (new_exclude): Support above changes.
127599         (new_exclude, add_exclude_file):
127600         Initial size must now be a power of two to simplify overflow checking.
127601         (free_exclude, fnmatch_no_wildcards): New function.
127602         (excluded_filename): No longer requires options arg, as the options
127603         are determined by add_exclude.  Now returns bool, not int.
127604         (excluded_filename, add_exclude):
127605         Add support for the fancy new exclusion options.
127606         (add_exclude, add_exclude_file): Now takes int options arg.
127607         Check for arithmetic overflow when computing sizes.
127608         (add_exclude_file): xrealloc might modify errno, so don't
127609         realloc until after errno might be used.
127611         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
127612         New macros.
127613         (free_exclude): New decl.
127614         (add_exclude, add_exclude_file): Now takes int options arg.
127615         (excluded_filename): No longer requires options arg, as the options
127616         are determined by add_exclude.  Now returns bool, not int.
127618 2001-08-30  Paul Eggert  <eggert@twinsun.com>
127620         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
127622 2001-08-27  Jim Meyering  <meyering@lucent.com>
127624         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
127626         * lib/version-etc.c (N_): Remove definition.
127627         Revert most of last change.
127628         Instead, simply don't mark the `Copyright...' string for translation.
127629         Based on advice from Paul Eggert.
127631         * lib/strtoxmax.c: Tweak comment.
127633 2001-08-26  Jim Meyering  <meyering@lucent.com>
127635         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
127637         * m4/xstrtoimax.m4: New file.
127638         * m4/xstrtoumax.m4: Add comments explaining why we
127639         AC_REPLACE_FUNCS(strtol).
127641 2001-08-26  Jim Meyering  <meyering@lucent.com>
127643         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
127644         of copyright with `%s' so translators don't get an untranslated
127645         message in 2002.
127646         (COPYRIGHT_YEAR): Define.
127647         (version_etc): Use fprintf rather than fputs.
127648         Suggestion from Ulrich Drepper.
127650         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
127652         * lib/strtoll.c: New file, from GNU libc.
127653         * lib/xstrtoimax.c: New file.
127655         * lib/xstrtol.h: Add xstrtoimax.
127656         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
127657         * lib/strtoimax.c: New file.  Likewise, but first define
127658         STRTOUXMAX_SIGNED.
127660         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
127661         ...
127662         * lib/strtoxmax.c: ... then renamed to this.
127664 2001-08-18  Paul Eggert  <eggert@twinsun.com>
127666         * m4/inttypes.m4: Add AC_PREREQ(2.13).
127667         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
127668         (jm_AC_TYPE_INTMAX_T): New macro.
127669         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
127671         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
127673         * m4/longlong.m4: Renamed from ulonglong.m4.
127674         * m4/inttypes.m4: Renamed from inttypes_h.m4.
127675         * m4/uintmax_t.m4: Removed.
127677 2001-08-13  Paul Eggert  <eggert@twinsun.com>
127679         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
127680         Port to Solaris 8, where 'sed' requires a space after the 'r'
127681         command, and where sh dislikes "$/".  Clean up the spacing a bit.
127682         Redirect output to $tmp just once.
127684 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
127686         * lib/addext.c (<errno.h>): Include.
127687         (errno): Declare if not defined.
127688         (addext): Work correctly when pathconf returns -1 and leaves
127689         errno alone because there is no limit.  Also, work even if
127690         pathconf returns a value greater than SIZE_MAX.
127692 2001-08-12  Jim Meyering  <meyering@lucent.com>
127694         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
127695         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
127696         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
127697         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
127698         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
127699         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
127700         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
127701         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
127702         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
127703         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
127704         utime.m4, utimes.m4, xstrtoumax.m4:
127705         Quote the first argument in each use of AC_DEFUN.
127707 2001-08-12  Jim Meyering  <meyering@lucent.com>
127709         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
127710         Simply `return getcwd (NULL, 0);'.
127711         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
127712         Use 1300 as initial value for length, not PATH_MAX.
127714         * lib/pathmax.h: Clean up cpp syntax.
127716 2001-08-12  Jim Meyering  <meyering@lucent.com>
127718         * lib/gettimeofday.c: New file.
127719         * lib/gtod.h: New file.
127720         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
127722 2001-08-05  Jim Meyering  <meyering@lucent.com>
127724         * m4/jm-macros.m4: Require autoconf-2.52.
127726 2001-08-04  Jim Meyering  <meyering@lucent.com>
127728         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
127729         stmt, to get in sync with glibc.
127731 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127733         The following changes are from gettext 0.10.39 as maintained by
127734         Bruno Haible.
127736         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
127737         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
127738         with inverted sense.  All uses changed.
127740         * lib/mbswidth.c: Don't include <limits.h>.
127741         Include <stdlib.h> and <string.h> unconditionally.
127742         (iswcntrl, mbsinit, ISCNTRL): New macros.
127743         (mbsnwidth): Use K&R style function declarations.
127744         Don't bother checking for MB_LEN_MAX == 1, since the compiler
127745         can optimize it when MB_CUR_MAX == 1.
127746         The width of control characters is zero, not 1.
127748 2001-08-03  Paul Eggert  <eggert@twinsun.com>
127750         The following changes are from gettext 0.10.39 as maintained by
127751         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
127753         * m4/codeset.m4: Upgrade to serial AM1.
127754         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
127755         all uses changed.  Quote first arg of AC_DEFUN.
127756         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
127758         * m4/iconv.m4: Upgrade to serial AM2.
127759         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
127760         Add --with-libconv-prefix.
127761         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
127762         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
127763         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
127764         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
127765         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
127767         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
127768         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
127769         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
127770         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
127771         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
127772         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
127773         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
127774         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
127775         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
127777         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
127778         string.h any more.
127780         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
127781         not the default value.
127783         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
127784         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
127785         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
127786         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
127787         Also check for iswcntrl, used for wcwidth fallback.
127788         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
127789         to Autoconf 2.13.
127791 2001-08-03  Jim Meyering  <meyering@lucent.com>
127793         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
127794         as it was in the original.  Reported by Paul Eggert.
127796 2001-07-16  Jim Meyering  <meyering@lucent.com>
127798         * m4/gettimeofday.m4: New file.
127799         Prompted by a report from Bernhard Baehr.
127801 2001-07-15  Jim Meyering  <meyering@lucent.com>
127803         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
127804         stuff. Now it's in ../Makefile.cfg.
127806 2001-07-15  Jim Meyering  <meyering@lucent.com>
127808         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
127809         (BUILT_SOURCES): Add unlocked-io.h.
127810         (io_functions): Define.
127811         (unlocked-io.h): New rule.
127812         (DISTCLEANFILES): Add unlocked-io.h.
127813         (all-local): Depend on unlocked-io.h, to ensure it is created.
127815         * lib/unlocked-io.hin: New file
127817         * lib/regex.c: Update from glibc.
127819 2001-07-05  Jim Meyering  <meyering@lucent.com>
127821         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
127822         recommendation.
127823         (libfetish_a_SOURCES): Put all .h files here instead.
127824         Remove a thus-exposed (better checks in automake) duplicate and
127825         two unnecessary .h files.
127827 2001-07-04  Jim Meyering  <meyering@lucent.com>
127829         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
127830         that generates jm-glibc-io.m4 so that it doesn't trigger any make
127831         distcheck failure.
127833 2001-07-02  Jim Meyering  <meyering@lucent.com>
127835         The following changes were prompted by suggestions from Bruno Haible.
127837         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
127838         is now generated.
127839         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
127840         definition of EXTRA_DIST.
127841         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
127842         ensure that the generated file is created/updated whenever the list
127843         of $(unlocked_functions) is changed.
127844         (jm-glibc-io.m4): New rule.
127845         (unlocked-io.h): New rule -- currently unused.
127847 2001-06-24  Jim Meyering  <meyering@lucent.com>
127849         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
127850         unmatched right bracket, rather than kludging it with an extra,
127851         falsely-matching quote in a comment.  Patch by Akim Demaille.
127853 2001-06-11  Jim Meyering  <meyering@lucent.com>
127855         * lib/regex.c: Update from GNU libc.
127857 2001-05-27  Jim Meyering  <meyering@lucent.com>
127859         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
127860         Check for ut_type in struct utmp.
127862 2001-05-27  Jim Meyering  <meyering@lucent.com>
127864         * lib/readutmp.h (UT_TYPE): Define.
127866 2001-05-24  Jim Meyering  <meyering@lucent.com>
127868         * lib/argmatch.c: Include "quote.h".
127869         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
127870         quote function.  Reported by Göran Uddeborg.
127872 2001-05-22  Jim Meyering  <meyering@lucent.com>
127874         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
127875         now that we use the package-supplied version unconditionally.
127876         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
127878 2001-05-21  Jim Meyering  <meyering@lucent.com>
127880         * m4/regex.m4: Change a couple backticks to single quotes to avoid
127881         shell syntax errors.
127883 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
127885         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
127887 2001-05-20  Paul Eggert  <eggert@twinsun.com>
127889         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
127890         Don't bother to check library strftime, since
127891         we'll be using our own my_strftime function anyway.
127892         Define my_strftime instead of strftime.
127894 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
127896         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
127897         which is not yet declared.
127899 2001-05-15  Jim Meyering  <meyering@lucent.com>
127901         * m4/regex.m4: Use proper quoting so brackets appear in the test
127902         program.
127903         Reported by, and with help from, Bruno Haible.
127905 2001-05-13  Jim Meyering  <meyering@lucent.com>
127907         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
127908         undefined.
127910 2001-05-11  Paul Eggert  <eggert@twinsun.com>
127912         dirname code cleanup.  base_name now behaves more compatibly
127913         with POSIX basename when given file names that have trailing
127914         slashes, and similarly for dir_name.  Add new primitives
127915         base_len and dir_len.  Put the directory-name-related decls
127916         into dirname.h.
127918         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
127919         * lib/backupfile.c (base_name): Likewise.
127920         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
127921         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
127922         * lib/makepath.c (strip_trailing_slashes): Likewise.
127923         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
127924         ISSLASH): Likewise.
127925         * lib/rename.c (strip_trailing_slashes): Likewise.
127926         * lib/same.c (base_name): Likewise.
127927         * lib/stripslash.c (ISSLASH): Likewise.
127929         * lib/addext.c: Include <dirname.h> after size_t is defined.
127930         * lib/backupfile.c: Likewise.
127932         * lib/addext.c (addext): Use base_len to trim redundant
127933         trailing slashes instead of doing it ourselves.
127934         But do not trim the last slash if it is not redundant.
127936         * lib/backupfile.c (find_backup_file_name,
127937         max_backup_version): Use base_len instead of rolling it ourselves.
127938         Handle the case of "" and (on DOS) "C:" correctly.
127940         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
127941         needed. Include <string.h>, <dirname.h>.
127942         (base_name): Allow file names ending in slashes, other than names
127943         that are all slashes.  In this case, return the basename followed
127944         by the slashes.  This is more general, and can be used in places
127945         where the original base_name purposely had an assertion failure.
127946         (base_len): New function.
127948         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
127949         Do not include <assert.h>; no longer needed.
127950         Include xalloc.h.
127951         (memrchr): Remove decl.
127952         (dir_name_r): Remove.
127953         (dir_len): Renamed from dirlen.  All callers changed.
127954         Rewrite in terms of base_name, for simplicity and consistency.
127955         (dir_name): Never return NULL.  All callers changed.
127956         Do not include <stdlib.h> in test program; no longer needed.
127957         return 0; is fine for test program.
127959         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
127960         New macros.
127961         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
127963         * lib/path-concat.c (path_concat): Use base_len to compute
127964         base length, not strlen; this means we cannot rely on memcpy
127965         to null-terminate.
127967         * lib/same.c (STREQ): Remove.
127968         (same_name): Handle the case where the basename ends in trailing '/'.
127970         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
127971         a slash was stripped.  Do not strip the last slash after a
127972         file system prefix.
127974 2001-05-11  Paul Eggert  <eggert@twinsun.com>
127976         * lib/Makefile.am (libfetish_a_SOURCES):
127977         Add strftime.c, since we now compile it on all hosts.
127979         * lib/strftime.c (my_strftime):
127980         Define to nstrftime if emacs, but only if my_strftime is not defined.
127981         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
127982         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
127983         Add one more extra argument: a nanoseconds value.
127984         All uses changed.
127985         (ns): New macro.
127986         (my_strftime function): Add %N format.
127987         (emacs_strftimeu): Renamed from emacs_strftime,
127988         with extra ut argument.
127990 2001-05-09  Paul Eggert  <eggert@twinsun.com>
127992         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
127994 2001-04-21  Jim Meyering  <meyering@lucent.com>
127996         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
127997         doesn't interfere.
127999 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128001         * m4/ftruncate.m4: Check for chsize.
128002         Link with ftruncate.o unconditionally if ftruncate is missing.
128003         This was required when cross-compiling to i586-mingw32msvc.
128005 2001-04-08  Jim Meyering  <meyering@lucent.com>
128007         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
128008         recomputed; that's necessary when the offset spans a DST transition.
128009         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
128011 2001-04-02  Jim Meyering  <meyering@lucent.com>
128013         * lib/regex.h, regex.c: Update from GNU libc.
128015 2001-03-24  Jim Meyering  <meyering@lucent.com>
128017         * m4/jm-macros.m4: Require autoconf-2.49d.
128019 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
128021         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
128023 2001-03-19  Paul Eggert  <eggert@twinsun.com>
128025         * lib/version-etc.c (version_etc_copyright): Update to 2001.
128027 2001-03-17  Jim Meyering  <meyering@lucent.com>
128029         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
128030         now that the version in autoconf is equivalent.
128031         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
128033         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
128034         Suggestion from Akim Demaille.
128036         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
128037         (jm_PREREQ_TEMPNAME): New function.
128039 2001-03-16  Paul Eggert  <eggert@twinsun.com>
128041         * lib/tempname.c (uint64_t): Define to uintmax_t if
128042         not defined, and if UINT64_MAX is not defined.
128043         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
128044         Reported by John David Anglin.
128046 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
128048         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
128049         resolve alias if codeset is empty.
128050         * lib/config.charset (BeOS): Use wildcard syntax.
128052 2001-03-13  Jim Meyering  <meyering@lucent.com>
128054         * lib/path-concat.c (path_concat)
128055         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
128056         concatenating e.g., `C:' and `foo'.
128057         From Bruno Haible.
128059 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128061         * lib/localcharset.c (locale_charset): Don't use
128062         setlocale(LC_CTYPE,NULL). Don't return NULL.
128063         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
128065 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
128067         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
128068         support for DOS/DJGPP.
128070 2001-03-01  Paul Eggert  <eggert@twinsun.com>
128072         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
128073         lacks mkstemp.  Compile our own tempname.c if we compile our own
128074         mkstemp.c, as mkstemp relies on tempname.
128076 2001-03-01  Jim Meyering  <meyering@lucent.com>
128078         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
128079         AH_VERBATIM really does output its argument verbatim.
128081 2001-02-28  Paul Eggert  <eggert@twinsun.com>
128083         * lib/Makefile.am (libfetish_a_SOURCES):
128084         Add dup-safer.c, fopen-safer.c.
128085         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
128087         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
128088         * lib/unistd-safer.h: New files.
128090 2001-02-25  Paul Eggert  <eggert@twinsun.com>
128092         The mkstemp replacement is taken from glibc 2.2.2, with some
128093         portability fixes for use outside glibc, as follows:
128095         * lib/tempname.c (struct_stat64): New macro.
128096         (direxists, __gen_tempname): Use it.
128097         This avoids a portability problem with Solaris 8.
128099         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
128100         (<stddef.h>, <stdint.h>, <string.h>):
128101         Include only if STDC_HEADERS || _LIBC.
128102         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
128103         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
128104         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
128105         (__set_errno): Define this macro if <errno.h> doesn't.
128106         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
128107         Define these macros if <stdio.h> doesn't.
128108         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
128109         Define these macros if <sys/stat.h>
128110         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
128111         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
128112         __xstat64): Define if not _LIBC.
128113         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
128114         (__gen_tempname): Invoke gettimeofday only if
128115         HAVE_GETTIMEOFDAY || _LIBC;
128116         otherwise, fall back on plain "time".
128117         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
128119         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
128121         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
128123 2001-02-18  Paul Eggert  <eggert@twinsun.com>
128125         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
128127 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128129         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
128130         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
128131         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
128132         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
128134 2001-02-17  Paul Eggert  <eggert@twinsun.com>
128136         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
128137         Remove workaround macros for hosts that have mbrtowc but not
128138         mbstate_t, as we now insist on proper declarations for both
128139         before using mbrtowc.
128141 2001-02-17  Jim Meyering  <meyering@lucent.com>
128143         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
128144         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
128145         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
128146         UnixWare 7.1.1.
128148         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
128149         rather than AC_CACHE_VAL.
128151 2001-02-17  Jim Meyering  <meyering@lucent.com>
128153         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
128154         around included file name.
128156         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
128158         * lib/strftime.c: Update from GNU libc (the only changes were to
128159         comments).
128161 2001-02-17  Jim Meyering  <meyering@lucent.com>
128163         * lib/regex.c: Update from libc.
128165 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
128167         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
128168         clash.
128170 2001-02-16  Paul Eggert  <eggert@twinsun.com>
128172         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
128173         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
128174         Reported by Mark Hounschell via Paul Eggert.
128176 2001-02-07  Jim Meyering  <meyering@lucent.com>
128178         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
128180 2001-02-05  Jim Meyering  <meyering@lucent.com>
128182         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
128183         it includes the patch required for `large file' support with at least
128184         HP-UX's 10.20 /bin/cc.
128186 2001-02-03  Jim Meyering  <meyering@lucent.com>
128188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
128189         AS_IF, now that it works once again (mysteriously).
128190         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128192 2001-01-30  Jim Meyering  <meyering@lucent.com>
128194         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
128195         * m4/chown.m4: Rename conftestchown to conftest.chown.
128196         * m4/rename.m4: s/conftestdir/conftest.d1/ and
128197         s/conftestdir2/conftest.d2/.
128198         * m4/utimes.m4: s/conftestdata/conftest.data/
128199         Inspired by Pavel Roskin's change in autoconf.
128201 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
128203         * lib/config.charset: Update for FreeBSD 4.2.
128205 2001-01-27  Jim Meyering  <meyering@lucent.com>
128207         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
128208         a use of AS_IF.
128209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
128211 2001-01-26  Jim Meyering  <meyering@lucent.com>
128213         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
128214         quotearg.c includes it.
128216 2001-01-26  Jim Meyering  <meyering@lucent.com>
128218         * lib/quotearg.c: Include stddef.h.
128219         * lib/quote.c: Include stddef.h.
128220         Reported by Axel Kittenberger.
128222         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
128223         line in double quotes so that it evokes a better diagnostic.
128224         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
128225         Reported by Axel Kittenberger.
128227 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
128229         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
128230         as if it was a `charset'.
128232 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128234         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
128235         has const.
128237 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
128239         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
128240         to avoid a warning.  Add back 'const' to inptr.
128242 2001-01-20  Jim Meyering  <meyering@lucent.com>
128244         Be sure that headers are checked before used in code compiled
128245         for the type checks.
128246         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
128247         In place of that, invoke jm_CHECK_ALL_TYPES.
128248         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
128249         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
128250         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
128251         The check for ssize_t was mistakenly run before the test for unistd.h.
128253         The configure-time check for stdbool.h was missing.
128254         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
128255         (jm_PREREQ_HASH): New function.
128257 2001-01-17  Jim Meyering  <meyering@lucent.com>
128259         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
128260         for autoconf-2.49c.
128261         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
128263 2001-01-16  Jim Meyering  <meyering@lucent.com>
128265         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
128266         From Bruno Haible.
128268 2001-01-14  Jim Meyering  <meyering@lucent.com>
128270         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
128271         foo and bar.  Create conftestdir/ in the script, not in the C code.
128272         Remove directories in the script, not in the C code.
128273         Remove conftestdir{,2} before trying to create the directory.
128274         Make the entire configure script fail if the mkdir fails.
128276 2001-01-14  Jim Meyering  <meyering@lucent.com>
128278         * lib/rename.c: New file.  From Volker Borchert.
128279         Include stdlib.h, string.h or strings.h, and xalloc.h.
128280         Use strip_trailing_slashes rather than open-coding it.
128282 2001-01-03  Paul Eggert  <eggert@twinsun.com>
128284         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
128286 2001-01-03  Jim Meyering  <meyering@lucent.com>
128288         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
128289         of local `inptr' to avoid warning with some system declarations of
128290         iconv.
128292 2001-01-02  Volker Borchert  <bt@teknon.de>
128294         * m4/rename.m4: New file.
128295         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
128297 2001-01-01  Jim Meyering  <meyering@lucent.com>
128299         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
128300         even on systems with utmpx.h.  It's necessary for the declaration of
128301         utmp's ut_user member.  Reported by Andreas Jaeger.
128303         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
128304         available. They are required for the declarations of getgrgid and
128305         getpwuid resp.
128306         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
128307         Reported by Andreas Jaeger.
128309 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
128311         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
128312         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
128313         so `make install' also works in VPATH builds.
128315 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
128317         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
128318         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
128319         can be used in subdirectories.
128321 2000-12-29  Paul Eggert  <eggert@twinsun.com>
128323         * lib/modechange.c: Do not assume that mode_t uses the
128324         traditional octal encoding.  E.g. "chmod 1 FOO" should set
128325         the other-execute bit of FOO even if S_IXOTH != 1.
128327         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
128328         WOTH, XOTH, ALLM): New macros.
128329         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
128330          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
128331         Use them.
128332         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
128333         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
128334         (mode_compile):
128335         No need to use uintmax_t; unsigned long is long enough.
128336         Don't bother to get suffix since we don't use it.
128338 2000-12-26  Jim Meyering  <meyering@lucent.com>
128340         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
128341         better with autoheader.
128343 2000-12-24  Jim Meyering  <meyering@lucent.com>
128345         * lib/hash.c (is_prime): Return explicit boolean values.
128346         (hash_get_first): Return NULL to appease Irix5.6's 89.
128347         Reported by Nelson Beebe.
128349 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
128351         * lib/localcharset.c (locale_charset): Add support for Win32.
128353 2000-12-18  Paul Eggert  <eggert@twinsun.com>
128355         * lib/physmem.h, lib/physmem.c: New files.
128357         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
128358         (noinst_HEADERS): Add physmem.h.
128360         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
128361         't' for compatibility with Solaris 8 sort.
128363 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
128365         * lib/config.charset: Add support for BeOS.
128367 2000-12-17  Jim Meyering  <meyering@lucent.com>
128369         * m4/dos.m4 (jm_AC_DOS): New file and macro.
128370         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
128372 2000-12-16  Jim Meyering  <meyering@lucent.com>
128374         This bug had a serious impact on chown: `chown N:M FILE' (for integer
128375         N and M) would have treated it like `chown N:N FILE'.
128377         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
128379 2000-12-16  Jim Meyering  <meyering@lucent.com>
128381         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
128382         SHELLS_FILE to a file name that's useful on djgpp systems.
128383         Include stdlib.h.
128384         (ADDITIONAL_DEFAULT_SHELLS): Define.
128385         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
128386         Based mostly on a patch from Prashant TR.
128388 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
128390         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
128391         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
128392         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
128394 2000-12-08  Andreas Schwab  <schwab@suse.de>
128396         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
128397         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
128399 2000-12-07  Jim Meyering  <meyering@lucent.com>
128401         * lib/stripslash.c (ISSLASH): Define.
128402         (strip_trailing_slashes): Use ISSLASH rather than comparing against
128403         `/'.
128404         From Prashant TR.
128406         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
128407         (dir_name_r): Declare this function as static.
128408         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
128409         manifest itself on a name containing a mix of slashes and
128410         backslashes.
128411         Make this function work with names starting with a DOS-style
128412         drive letter and colon prefix.
128413         (dir_name): Append `.' if necessary.
128414         Based mostly on patches from Prashant TR and Eli Zaretskii.
128416         * lib/dirname.h (dir_name_r): Remove prototype.
128418 2000-12-06  Paul Eggert  <eggert@twinsun.com>
128420         * m4/off_t-format.m4: Remove this file.
128421         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
128423 2000-12-06  Jim Meyering  <meyering@lucent.com>
128425         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
128426         replacement strtoull, we may well need the replacement strtoul, too.
128427         Check for declarations of strtoul and strtoull.
128428         Check for strtol.  Mainly as a cue to cause automake to include
128429         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
128430         Check for limits.h -- strtol.c needs it.
128432 2000-12-05  Jim Meyering  <meyering@lucent.com>
128434         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
128436 2000-12-04  Jim Meyering  <meyering@lucent.com>
128438         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
128439         Also include memory.h, stdlib.h, unistd.h if appropriate.
128440         Reported by Andreas Jaeger (conflicting declaration of malloc).
128442 2000-12-02  Jim Meyering  <meyering@lucent.com>
128444         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
128445         * m4/jm-macros.m4 (jm_MACROS): require it.
128447 2000-12-02  Jim Meyering  <meyering@lucent.com>
128449         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
128451 2000-12-01  Paul Eggert  <eggert@twinsun.com>
128453         * lib/memrchr.c: Include <config.h> before any system include file.
128455 2000-11-30  Jim Meyering  <meyering@lucent.com>
128457         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
128459 2000-11-30  Jim Meyering  <meyering@lucent.com>
128461         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
128463 2000-11-29  Paul Eggert  <eggert@twinsun.com>
128465         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
128467 2000-11-26  Jim Meyering  <meyering@lucent.com>
128469         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
128471 2000-11-22  Paul Eggert  <eggert@twinsun.com>
128473         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
128474         size of (size_t) -1; it's not portable.
128476 2000-11-17  Jim Meyering  <meyering@lucent.com>
128478         * lib/strstr.c: Update from GNU libc.
128480 2000-11-17  Akim Demaille  <akim@epita.fr>
128482         * lib/obstack.h: Formatting changes.
128483         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
128484         prevent type checking.
128485         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
128486         cast the value to (void *): assigning a `foo *' to a `void *'
128487         variable is valid.
128488         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
128490 2000-11-16  Jim Meyering  <meyering@lucent.com>
128492         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
128494 2000-11-11  Jim Meyering  <meyering@lucent.com>
128496         * lib/error.c: Add a couple #includes, merging from GNU libc version.
128498 2000-11-10  Jim Meyering  <meyering@lucent.com>
128500         * lib/obstack.h: Update from GNU libc.
128501         * lib/obstack.c: Likewise.
128503 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
128505         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
128507 2000-11-06  Paul Eggert  <eggert@twinsun.com>
128509         * lib/getusershell.c (setusershell): Use rewind rather than
128510         fseek/fseeko, to avoid configuration hassles with fseeko.
128511         Don't bother opening SHELLS_FILE if shellstream is NULL;
128512         it's not necessary.
128514 2000-11-05  Jim Meyering  <meyering@lucent.com>
128516         * lib/makepath.h (make_dir): Declare.
128517         * lib/makepath.c (make_dir): Remove `static' attribute.
128518         Tweak a comment.
128520 2000-11-04  Jim Meyering  <meyering@lucent.com>
128522         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
128524 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
128526         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
128527         last one in a bucket, advance to the next bucket.
128529 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
128531         * lib/fnmatch.c: Do not comment out all the code if we are using
128532         the GNU C library, because in some cases we are replacing buggy
128533         code in the GNU C library itself.
128535 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
128537         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
128538         (regex_compile): Catch bogus \(\1\).
128540 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128542         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
128543         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
128544         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
128546 2000-10-30  Paul Eggert  <eggert@twinsun.com>
128548         * lib/error.h, getline.h, modechange.h:
128549         Remove "2000" from Copyright line, as the file hasn't been
128550         changed this year other than in the copyright notice.
128552         * lib/xalloc.h: Add "2000" to Copyright line, as this file
128553         was changed this year.
128555 2000-10-29  Jim Meyering  <meyering@lucent.com>
128557         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
128558         renaming.
128559         * m4/ls-mntd-fs.m4: Likewise
128561 2000-10-29  Jim Meyering  <meyering@lucent.com>
128563         * lib/xstat.in: Fix grammar in comment.
128565 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
128567         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
128568         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
128569         doesn't define __restrict_arr.
128571 2000-10-28  Jim Meyering  <meyering@lucent.com>
128573         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
128574         (jm_PREREQ_MEMCHR): New function.
128576 2000-10-28  Jim Meyering  <meyering@lucent.com>
128578         * lib/memchr.c: Update from libc.
128579         Adjust for portability:
128580         [HAVE_STDLIB_H]: Include stdlib.h.
128581         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
128582         Undef __memchr, too.
128583         [!weak_alias]: Define __memchr to memchr.
128585         * lib/regex.c: Update from libc.
128586         * lib/regex.h: Likewise.
128587         * lib/getopt1.c: Likewise.
128588         * lib/memcmp.c: Likewise.
128590         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
128591         Avoid using fseek, when possible -- it's broken by design.
128592         Patch by Ulrich Drepper.
128594 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
128596         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
128597         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
128598         Giving in to popular pressure to shut up the compiler with casts.
128600 2000-10-26  Jim Meyering  <meyering@lucent.com>
128602         * lib/strftime.c: Update from libc.
128604 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
128606         * regex.c: More `unsigned char' -> `re_char' changes.
128607         Also change several `int' into `re_wchar_t'.
128608         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
128609         (PUSH_FAILURE_POINTER): Don't cast any more.
128610         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
128611         We want GCC to complain, since this piece of code makes
128612         re_match non-reentrant, which *should* be fixed.
128613         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
128614         (EXTEND_BUFFER): Use RETALLOC.
128615         (SET_LIST_BIT): Don't cast.
128616         (re_wchar_t): New type.
128617         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
128618         that those two functions will always properly return.
128619         (IMMEDIATE_QUIT_CHECK): Cast to void.
128620         (analyse_first): Use recursion rather than an explicit stack.
128621         (re_compile_fastmap): Can't fail anymore.
128622         (re_search_2): Don't check re_compile_fastmap for failure.
128623         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
128624         Now also sets the new value (passed in a new argument).
128625         (re_match_2_internal): Use it.
128626         Also, use a new var `reg' of type size_t when looping through regs
128627         rather than reuse the inappropriate `mcnt'.
128629 2000-10-25  Jim Meyering  <meyering@lucent.com>
128631         * lib/obstack.c: Update from libc.
128633 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
128635         * regex.c (regex_compile): Change the way of handling a range from
128636         a char less than 256 to a char not less than 256.
128638 2000-10-24  Andrew Innes  <andrewi@gnu.org>
128640         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
128641         NT-Emacs only.
128642         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
128643         so that re_search functions only quit when callers expect them to.
128645 2000-10-23  Jim Meyering  <meyering@lucent.com>
128647         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
128648         wrong.  That set_locale call must not have any side effects.
128649         From Paul Eggert.
128651 2000-10-22  Jim Meyering  <meyering@lucent.com>
128653         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
128654         [CYCLIC]: Remove now-unused definition.
128656         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
128657         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
128658         Suggestion from Ulrich Drepper.
128660 2000-10-21  Jim Meyering  <meyering@lucent.com>
128662         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
128663         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
128664         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
128666 2000-10-21  Jim Meyering  <meyering@lucent.com>
128668         * lib/dirname.c (memrchr): Declare if necessary.
128669         (dir_name): Remove the restriction that there be no
128670         trailing slashes.  Now, this code skips past them, effectively
128671         ignoring them.
128672         [TEST_DIRNAME] (main): New unit tests.
128674         * lib/memrchr.c: New file from GNU libc.
128675         Undef __memrchr, too.
128676         [!weak_alias]: Define __memrchr to memrchr.
128677         Guard weak_alias use with `#ifdef weak_alias'.
128679 2000-10-21  Jim Meyering  <meyering@lucent.com>
128681         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
128682         (dir_name): Use dir_name_r.
128683         * lib/dirname.h (dir_name_r): Declare it.
128685 2000-10-17  Jim Meyering  <meyering@lucent.com>
128687         * lib/quote.h (PARAMS): Define and use.
128688         Reported by Akim Demaille.
128690         * lib/getopt.c: Update from libc.
128692 2000-10-16  Jim Meyering  <meyering@lucent.com>
128694         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
128695         setlocale.
128696         From Jan Fedak.
128698 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
128700         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
128702 2000-09-25  Jim Meyering  <meyering@lucent.com>
128704         * lib/md5.h (rol): Define (from GnuPG).
128706         * lib/sha.c: Give credit (GnuPG) where due.
128707         (M): Use rol rather than open-coding it.
128708         Add a FIXME comment.
128710 2000-09-21  Jim Meyering  <meyering@lucent.com>
128712         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
128713         Reported by Michael Stone.
128715 2000-09-20  Jim Meyering  <meyering@lucent.com>
128717         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
128718         (noinst_HEADERS): Add sha.h.
128719         Based on code from Scott G. Miller and from GnuPG.
128721 2000-09-18  Jim Meyering  <meyering@lucent.com>
128723         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
128724         LIBS. Otherwise, everyone ends up linking with -lelf for some
128725         configurations.
128726         Reported by Mike Stone.
128728 2000-09-15  Jim Meyering  <meyering@lucent.com>
128730         * lib/regex.c: Update from libc.
128732 2000-09-10  Jim Meyering  <meyering@lucent.com>
128734         * lib/getopt.c (_getopt_internal): Update from glibc.
128736 2000-09-09  Jim Meyering  <meyering@lucent.com>
128738         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
128739         think it should be used as a general replacement for isascii.
128740         * lib/fnmatch.c: Likewise.
128741         * lib/mbswidth.c: Likewise
128742         * lib/regex.c: Likewise.
128744         Don't use atoi.
128745         * lib/userspec.c: Include sys/param.h and limits.h.
128746         Include xstrtol.h.
128747         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
128748         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
128749         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
128750         UID, GID.  Check range.
128752 2000-09-06  Jim Meyering  <meyering@lucent.com>
128754         * lib/getopt.c (_getopt_internal): Update from glibc.
128756 2000-08-30  Jim Meyering  <meyering@lucent.com>
128758         * lib/strftime.c: Merge in changes from GNU libc.
128760 2000-08-26  Jim Meyering  <meyering@lucent.com>
128762         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
128763         * m4/fpending.m4: New file.
128765 2000-08-26  Jim Meyering  <meyering@lucent.com>
128767         * lib/closeout.c: Include "__fpending.h".
128768         (close_stdout_status): Return right away if there's nothing to flush.
128770         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
128771         * lib/__fpending.c: New file.
128772         * lib/__fpending.h: New file.
128774 2000-08-20  Jim Meyering  <meyering@lucent.com>
128776         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
128777         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
128778         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
128780 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
128782         Improve fileutils installation on systems where running
128783         programs (like install) can't be unlinked.
128784         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
128785         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
128787 2000-08-07  Paul Eggert  <eggert@twinsun.com>
128789         Standardize on "memory exhausted" instead of "Memory exhausted"
128790         or "virtual memory exhausted".
128791         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
128792         "virtual memory exhausted".
128793         * lib/same.c (same_name): Invoke xalloc_die instead of printing
128794         our own message.
128795         * lib/userspec.c (parse_user_spec): Likewise.
128796         * lib/bumpalloc.h: comment fix
128797         * lib/same.c, userspec.c: Include xalloc.h.
128799         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
128800         not char *const and pointing to a constant array.
128801         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
128802         (xrealloc): Comment fix.
128804         * lib/userspec.c (parse_user_spec):
128805         Don't translate a message until just before returning,
128806         to avoid unnecessary translation.
128808 2000-08-07  Jim Meyering  <meyering@lucent.com>
128810         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
128811         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
128812         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
128813         getgroups.c, gethostname.c, getopt.h, group-member.c,
128814         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
128815         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
128816         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
128817         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
128818         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
128819         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
128820         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
128821         yesno.c: Back out Copyright date changes for each file with no change
128822         this year.  This eases coordination with other programs using the same
128823         source code modules.  From Paul Eggert.
128825 2000-08-06  Paul Eggert  <eggert@twinsun.com>
128827         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
128828         not char, for compatibility with glibc 2.1.3 strftime.c.
128830 2000-08-03  Greg McGary  <greg@mcgary.org>
128832         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
128833         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
128834         (EXTEND_BUFFER): Use them.
128836 2000-08-01  Jim Meyering  <meyering@lucent.com>
128838         * lib/dirname.c (ISSLASH): Define.
128839         (BACKSLASH_IS_PATH_SEPARATOR): Define.
128840         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
128841         both `\' and `/' may be use as path separators.
128842         Based on a patch from Prashant TR.
128844 2000-07-31  Paul Eggert  <eggert@twinsun.com>
128846         * lib/quotearg.c (quotearg_n_options): Don't make the initial
128847         slot vector a constant, since it might get modified.
128849 2000-07-31  Jim Meyering  <meyering@lucent.com>
128851         * lib/xmalloc.c: Use `virtual memory exhausted', not
128852         `Memory exhausted'.
128853         * lib/obstack.c (print_and_abort): Likewise.
128855 2000-07-30  Paul Eggert  <eggert@twinsun.com>
128857         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
128858         buffer, so that the caller can always quote one small
128859         component of a "memory exhausted" message in slot 0.
128860         From a suggestion by Jim Meyering.
128862 2000-07-30  Jim Meyering  <meyering@lucent.com>
128864         * lib/makepath.c (make_path): Quote the other instance, too.
128866         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
128867         (STATIC_BUF_SIZE): Define.
128868         (quotearg_n_options): Use only statically allocated storage when
128869         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
128870         than STATIC_BUF_SIZE.
128872 2000-07-29  Jim Meyering  <meyering@lucent.com>
128874         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
128875         * lib/dirname.c (dir_name): Likewise.
128877         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
128878         `/'.
128880         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
128881         (dir_name): Assert that there are no trailing slashes.
128883 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
128885         * lib/mbswidth.h (mbswidth): Add a flags argument.
128886         (mbswidth): New declaration.
128887         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
128888         * lib/mbswidth.c (mbswidth): Add a flags argument.
128889         (mbsnwidth): New function.
128891 2000-07-24  Jim Meyering  <meyering@lucent.com>
128893         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
128895 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128897         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
128899 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128901         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
128902         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
128903         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
128904         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
128905         invoke multibyte primitives.
128907 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128909         * lib/quotearg.c:
128910         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
128911         so that mbstate_t is always defined.
128913         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
128914         be 1 in at least one GCC installation, and this configuration
128915         error is likely to be common.  Ignoring MB_LEN_MAX hurts
128916         performance on hosts that have mbrtowc but have only unibyte
128917         locales, but I assume these hosts are rare.
128919 2000-07-23  Paul Eggert  <eggert@twinsun.com>
128921         * lib/mbswidth.c (_XOPEN_SOURCE):
128922         Don't define; this causes problems on Solaris 7.
128923         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
128925 2000-07-23  Jim Meyering  <meyering@lucent.com>
128927         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
128928         too: getgrgid, getpwuid, getuid.
128930 2000-07-23  Jim Meyering  <meyering@lucent.com>
128932         * lib/basename.c (base_name): Add an assertion.
128934 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
128936         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
128937         shadow its mbsinit function.
128939 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
128941         * lib/mbswidth.h: New file.
128942         * lib/mbswidth.c: New file.
128943         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
128944         (noinst_HEADERS): Add mbswidth.h.
128946 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
128948         * lib/config.charset: Add support for FreeBSD. Improve support for
128949         HP-UX and IRIX 6.
128951 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
128953         * m4/mbswidth.m4: New file.
128954         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
128956 2000-07-15  Jim Meyering  <meyering@lucent.com>
128958         * lib/makepath.c: Include quote.h.
128959         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
128960         corresponding argument in a `quote (...)' call.
128961         Give better diagnostics.
128963         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
128964         (noinst_HEADERS): Add quote.h.
128966         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
128967         from tar's src/misc.c.
128968         * lib/quote.h: New file.  Prototypes for same.
128970 2000-07-14  Paul Eggert  <eggert@twinsun.com>
128972         From a suggestion by Bruno Haible.
128973         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
128974         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
128975         to decide whether to define the BeOS workaround macro;
128976         this adjusts to the change to AC_MBSTATE_T.
128978 2000-07-14  Jim Meyering  <meyering@lucent.com>
128980         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
128981         jm_AC_TYPE_UINTMAX_T.
128983 2000-07-13  Paul Eggert  <eggert@twinsun.com>
128985         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
128987         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
128988         quotearg_buffer_restyled): Add support for
128989         clocale_quoting_style.  Undo previous change to
128990         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
128991         and "{RIGHT QUOTATION MARK}" msgids.
128993 2000-07-10  Paul Eggert  <eggert@twinsun.com>
128995         From a suggestion by Bruno Haible.
128996         * m4/mbstate_t.m4 (AC_MBSTATE_T):
128997         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
128998         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
128999         and mbstate_t, to a single-part test that simply defines mbstate_t.
129000         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
129001         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
129003 2000-07-10  Jim Meyering  <meyering@lucent.com>
129005         * m4/strerror_r.m4: Mirror the correction made in autoconf.
129007         * m4/gnu-source.m4: Output to confdefs.h directly.
129008         Suggestion from Akim Demaille.
129010 2000-07-09  Paul Eggert  <eggert@twinsun.com>
129012         The old behavior of quoting `like this' doesn't look good with
129013         newer, ISO-style fonts.  See:
129014         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
129016         Instead, quote "like this" by default.  Let the translator
129017         tailor the locale-specific quoting behavior by providing
129018         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
129020         * lib/quotearg.c (N_): New macro.
129021         (gettext_default): New function.
129022         (quotearg_buffer_restyled): Use
129023         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
129024         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
129026 2000-07-09  Jim Meyering  <meyering@lucent.com>
129028         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
129029         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
129031         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
129032         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
129034 2000-07-09  Jim Meyering  <meyering@lucent.com>
129036         * lib/Most files: Update copyright dates to include 2000.
129038 2000-07-08  Jim Meyering  <meyering@lucent.com>
129040         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
129041         if not defined.
129042         (xgethostname): Remove now-unnecessary #ifdef.
129043         Move declaration of `err' into loop where it's used.
129045 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129046         and Bruno Haible  <haible@clisp.cons.org>
129048         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
129049         only if the test for an object-type mbstate_t fails.  This
129050         prevents us from mistakenly reporting that mbstate_t is a
129051         system object type after we "#define mbstate_t int" to work
129052         around its lack.
129054 2000-07-05  Paul Eggert  <eggert@twinsun.com>
129055         and Bruno Haible  <haible@clisp.cons.org>
129057         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
129059 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129061         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
129062         to strerror_r.
129063         Include <ctype.h> for use of isalpha.
129065 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129067         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
129068         by allocating a larger buffer. Test the gethostname return value for
129069         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
129070         returns an error and ENAMETOOLONG isn't defined.
129072 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
129074         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
129075         dimension.
129077 2000-07-04  Jim Meyering  <meyering@lucent.com>
129079         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
129080         of the deprecated AC_CHECKING.
129082 2000-07-04  Jim Meyering  <meyering@lucent.com>
129084         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
129085         Reported by Bruno Haible.
129087 2000-07-04  Jim Meyering  <meyering@lucent.com>
129089         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
129090         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
129091         lacks mbrtowc.
129093 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129095         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
129096         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
129098 2000-07-03  Paul Eggert  <eggert@twinsun.com>
129099         and Bruno Haible  <haible@clisp.cons.org>
129101         * lib/quotearg.c (mbrtowc):
129102         Assign to *pwc, and return 1 only if result is nonzero.
129103         (iswprint): Use ISPRINT when substituting our own mbrtowc.
129105 2000-07-03  Jim Meyering  <meyering@lucent.com>
129107         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
129109 2000-07-03  Jim Meyering  <meyering@lucent.com>
129111         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
129112         This is necessary to get a definition of e.g., UTMP_FILE on
129113         HP-UX 10.20.
129114         From Bob Proulx.
129116 2000-07-02  Jim Meyering  <meyering@lucent.com>
129118         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
129120         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
129121         AC_LIBOBJ(function_name).
129122         * m4/chown.m4: Likewise.
129123         * m4/fnmatch.m4: Likewise.
129124         * m4/ftruncate.m4: Likewise.
129125         * m4/getgroups.m4: Likewise.
129126         * m4/getline.m4: Likewise.
129127         * m4/group-member.m4: Likewise.
129128         * m4/jm-macros.m4: Likewise.
129129         * m4/lstat.m4: Likewise.
129130         * m4/malloc.m4: Likewise.
129131         * m4/memcmp.m4: Likewise.
129132         * m4/nanosleep.m4: Likewise.
129133         * m4/putenv.m4: Likewise.
129134         * m4/realloc.m4: Likewise.
129135         * m4/regex.m4: Likewise.
129136         * m4/stat.m4: Likewise.
129137         * m4/strftime.m4: Likewise.
129139 2000-07-02  Jim Meyering  <meyering@lucent.com>
129141         * lib/quotearg.c (mbstate_t): Don't define here.
129143 2000-07-02  Jim Meyering  <meyering@lucent.com>
129145         * lib/nanosleep.c (SIGCONT): Define if not already defined.
129147 2000-07-01  Jim Meyering  <meyering@lucent.com>
129149         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
129151 2000-07-01  Jim Meyering  <meyering@lucent.com>
129153         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
129154         problem.
129156 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
129159         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
129161 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
129163         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
129164         per change in ../m4/ls-mntd-fs.m4.
129165         (read_filesystem_list): Ignore symbolic links.
129167 2000-06-29  Jim Meyering  <meyering@lucent.com>
129169         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
129170         for declaration of strcmp.
129172         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
129174         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
129175         Avoid warning by casting result to `char *' to remove `const'.
129177 2000-06-28  Jim Meyering  <meyering@lucent.com>
129179         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
129180         included by quotearg.c, for which we perform this test.  From
129181         Bruno Haible.
129183 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129185         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
129186         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
129187         <utmpx.h> exists, put readutmp.o into LIBOBJS.
129189 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
129191         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
129193 2000-06-26  Paul Eggert  <eggert@twinsun.com>
129195         savedir now sets errno on failure and invokes xmalloc to get memory.
129196         Fix a couple of other minor bugs while we're at it.
129198         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
129199         (NAMLEN): Remove macro.
129200         (malloc, realloc): Remove decls.
129201         (stpcpy): Likewise.
129202         ("xalloc.h"): Include.
129203         (NAME_SIZE_DEFAULT): New macro.
129204         (savedir): Use xmalloc / xrealloc to allocate memory.
129205         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
129206         Skip "" directory entries.
129207         Use strlen to calculate directory entry length, since the old method
129208         is rarely used these days and isn't worth supporting.
129209         Don't use a pointer after freeing it.
129210         Check for integer overflow when calculating allocation size.
129211         Use memcpy to copy entries, instead of stpcpy.
129212         Set errno properly when returning NULL.
129213         Check for readdir error.
129215 2000-06-26  Jim Meyering  <meyering@lucent.com>
129217         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
129219 2000-06-25  Jim Meyering  <meyering@lucent.com>
129221         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
129222         Linux header bug when _XOPEN_SOURCE is defined to 500.
129224 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129226         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
129227         deficiency.
129229 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
129231         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
129232         Include xalloc.h.
129233         Don't include <stdlib.h>.  Don't declare malloc, realloc.
129235 2000-06-24  Jim Meyering  <meyering@lucent.com>
129237         * m4/strerror_r.m4: Revive this file -- to try out an experimental
129238         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
129239         for which strerror does return char*, but which lacks a conveniently
129240         accessible declaration of the function.  If the compile-test says
129241         strerror_r doesn't work, then resort to a `run'-test that works on
129242         BeOS and segfaults on DEC Unix.
129244 2000-06-24  Jim Meyering  <meyering@lucent.com>
129246         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
129248 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129250         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
129251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
129253 2000-06-23  Paul Eggert  <eggert@twinsun.com>
129255         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
129256         (mbrtowc, mbstate_t): Define substitutes if
129257         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
129258         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
129259         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
129261 2000-06-23  Jim Meyering  <meyering@lucent.com>
129263         * m4/afs.m4: Add missing AC_MSG_RESULT.
129264         Reported by Bruno Haible.
129266         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
129267         Suggestion from Bruno Haible.
129269 2000-06-23  Jim Meyering  <meyering@lucent.com>
129271         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
129273 2000-06-21  Jim Meyering  <meyering@lucent.com>
129275         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
129277 2000-06-21  Jim Meyering  <meyering@lucent.com>
129279         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
129280         (noinst_HEADERS): Add getstr.h.
129282         * lib/getline.c (getstr): Move into a separate file.
129283         * lib/getstr.c (getstr): New file, extracted from getline.c, with
129284         the following changes: new parameter, delim2; both delim[12]
129285         parameters have type `int', not `char'.  The latter would lose
129286         with 8-bit delimiters.
129287         * lib/getstr.h: New file.
129289 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129291         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
129292         than 1024, return a memory chunk of least possible size, instead
129293         of size PATH_MAX + 2. In the loop, increment the size proportionally.
129294         Use free/xmalloc instead of xrealloc to avoid copying for very long
129295         paths.
129297 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129299         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
129300         the empty string.
129302 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
129304         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
129305         address, not strdup.  Include <stdlib.h> and don't declare free().
129307 2000-06-19  Jim Meyering  <meyering@lucent.com>
129309         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
129311 2000-06-18  Jim Meyering  <meyering@lucent.com>
129313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
129315         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
129316         `checking whether...' message to be consistent with that of the
129317         lstat test.
129319 2000-06-18  Jim Meyering  <meyering@lucent.com>
129321         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
129322         Besides, these days every porting target provides a mkdir function.
129324         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
129325         needed. (this snippet comes from src/system.h).
129327 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
129329         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
129331 2000-06-15  Paul Eggert  <eggert@twinsun.com>
129333         * lib/human.c (adjust_value): New function.
129334         (human_readable_inexact): Apply rounding style even when
129335         printing approximate values.
129337 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129339         * lib/human.c (human_readable_inexact): Allow an input block
129340         size that is not a multiple of the output block size, and vice versa.
129341         Reported by Piergiorgio Sartor.
129343 2000-06-14  Paul Eggert  <eggert@twinsun.com>
129345         * lib/getdate.y (get_date): Apply relative times after time
129346         zone indicator, not before.  Reported by Todd A. Jacobs.
129348 2000-06-13  Jim Meyering  <meyering@lucent.com>
129350         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
129352         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
129354 2000-06-12  Paul Eggert  <eggert@twinsun.com>
129356         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
129358 2000-06-12  Jim Meyering  <meyering@lucent.com>
129360         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
129361         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
129362         optional argument.
129363         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
129364         the optional argument, `lib'.
129366 2000-06-08  Jim Meyering  <meyering@lucent.com>
129368         * m4/largefile.m4: Remove file (now that it's part of autoconf).
129370 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129372         Rewrite largefile configuration so that we don't need to run
129373         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
129374         AC_CANONICAL_HOST in configure.in -- jmm]
129376         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
129377         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
129378         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
129379         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
129380         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
129381         All uses changed.
129382         Instead of inspecting the output of getconf, try to compile the
129383         test program without and with the macro definition.
129384         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
129385         for getconf.  Instead, check for the needed flags by compiling
129386         test programs.
129388 2000-06-04  Paul Eggert  <eggert@twinsun.com>
129390         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
129392 2000-06-04  Jim Meyering  <meyering@lucent.com>
129394         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
129395         SunOS 4.1.4 for which gid_t is an unsigned type.
129397 2000-06-03  Jim Meyering  <meyering@lucent.com>
129399         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
129400         now that autoconf requires that.
129402         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
129403         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
129404         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
129406 2000-06-03  Jim Meyering  <meyering@lucent.com>
129408         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
129410 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129412         * m4/glibc21.m4: New file.
129413         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
129415 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
129417         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
129418         newer, don't install charset.alias.
129419         * lib/config.charset: Change the Linux/glibc rules so they become empty
129420         on glibc-2.1 or newer.
129422 2000-06-02  Jim Meyering  <meyering@lucent.com>
129424         * lib/mountlist.c: Back out last change.  Instead, do this...
129425         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
129426         me_dummy member using the same `ignore'-testing code.
129427         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
129428         fs_type strings.
129429         From Mark D. Roth.
129431 2000-05-29  Jim Meyering  <meyering@lucent.com>
129433         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
129434         mounts with the `ignore' attribute.  Based on a patch from
129435         Mark D. Roth.
129437 2000-05-28  Jim Meyering  <meyering@lucent.com>
129439         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
129440         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129441         * m4/stat.m4: Likewise.
129442         * m4/lstat.m4: Likewise.
129443         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
129445         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
129446         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
129448 2000-05-26  Jim Meyering  <meyering@lucent.com>
129450         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
129452 2000-05-24  Jim Meyering  <meyering@lucent.com>
129454         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
129455         autoconf requires that.
129456         * m4/lib-check.m4: Likewise.
129457         * m4/jm-macros.m4: Likewise.
129458         * m4/strftime.m4: Likewise.
129460         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
129461         AC_CHECK_DECLS, now that autoconf requires that.
129463 2000-05-22  Jim Meyering  <meyering@lucent.com>
129465         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
129466         * m4/lstat.m4: Likewise.
129468 2000-05-22  Jim Meyering  <meyering@lucent.com>
129470         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
129472 2000-05-20  Jim Meyering  <meyering@lucent.com>
129474         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
129475         (jm_PREREQ): Use it.
129477 2000-05-18  Jim Meyering  <meyering@lucent.com>
129479         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
129480         back, too, since it may have been modified by allocate_entry.
129481         (hash_delete): Rewrite to use neither the assignment operator
129482         nor the comma operator in an if-expression.
129484 2000-05-15  Paul Eggert  <eggert@twinsun.com>
129486         * lib/closeout.c:
129487         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
129488         Remove; no longer needed.
129489         "quotearg.h": Add include.
129490         (file_name): Do not bother to explicitly initialize to NULL; it's less
129491         efficient on some hosts.
129492         (close_stdout_status): Remove test as to whether stdout was already
129493         closed; it breaks for the case "echo x | sort >&-".
129494         Quote file name colons.
129495         Do not assume that _("write error") lacks format strings.
129497 2000-05-15  Jim Meyering  <meyering@lucent.com>
129499         * lib/version-etc.c (version_etc_copyright): Update the copyright
129500         string used in all --version output.
129502 2000-05-14  Jim Meyering  <meyering@lucent.com>
129504         * lib/closeout.c (close_stdout_set_file_name): New function.
129505         (close_stdout_status): Use new file-scoped global.
129506         Return right away if fstat says the stdout file descriptor is invalid.
129507         * lib/closeout.h (close_stdout_set_file_name): Declare.
129509 2000-05-10  Jim Meyering  <meyering@lucent.com>
129511         * lib/closeout.c [default_exit_status]: New file-scoped variable.
129512         (close_stdout_set_status): New function.
129513         * lib/closeout.h (close_stdout_set_status): Declare.
129515 2000-05-09  Jim Meyering  <meyering@lucent.com>
129517         * m4/gettext.m4: Rename this...
129518         * m4/libintl.m4: ...to this.
129520 2000-05-08  Jim Meyering  <meyering@lucent.com>
129522         * lib/long-options.c: Don't include closeout.h.
129523         (parse_long_options): Don't call close_stdout for --version.
129525 2000-05-06  Paul Eggert  <eggert@twinsun.com>
129527         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
129528         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
129529         2.1.3 bug.  This avoids a clash when files like regex.c define
129530         _GNU_SOURCE.
129532 2000-05-06  Jim Meyering  <meyering@lucent.com>
129534         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
129535         (AC_REPLACE_FUNCS): Add strnlen.
129537         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
129538         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
129540         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
129541         AC_SEARCH_LIBS call for nanosleep.
129542         (LIB_NANOSLEEP): Set and AC_SUBST.
129544 2000-05-06  Jim Meyering  <meyering@lucent.com>
129546         * lib/strnlen.c: Undefine __strnlen and strnlen.
129547         [!weak_alias]: Define __strnlen to strnlen.
129549         * lib/atexit.c: New file, from libiberty.
129551 2000-05-06  Jim Meyering  <meyering@lucent.com>
129553         * lib/closeout.c (close_stdout_status): Also check for errors on the
129554         stderr stream.
129556 2000-05-05  Jim Meyering  <meyering@lucent.com>
129558         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
129559         AC_SEARCH_LIBS call for clock_gettime.
129560         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
129562         * m4/search-libs.m4: Update from autoconf.
129564         su doesn't work on Solaris 2.6.
129565         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
129566         <shadow.h>.  Reported by Dragos Harabor.
129568 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
129570         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
129571         memcpy instead of xmalloc, xrealloc, path_concat.
129572         (locale_charset): Treat empty environment variables as absent.
129573         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
129575 2000-05-04  Jim Meyering  <meyering@lucent.com>
129577         * lib/getopt.c: Update from glibc.
129578         * lib/obstack.c: Likewise.
129579         * lib/obstack.h: Likewise.
129580         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
129581         file
129583         * lib/regex.h: Likewise.
129584         * lib/strndup.c: Likewise.
129585         * lib/strnlen.c: New file, from glibc.
129587 2000-05-03  Jim Meyering  <meyering@lucent.com>
129589         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
129591 2000-05-02  Paul Eggert  <eggert@twinsun.com>
129593         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
129594         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
129595         compile-time test, rather than inspecting host and OS, to
129596         decide whether to define _LARGEFILE_SOURCE.
129598 2000-05-01  Jim Meyering  <meyering@lucent.com>
129600         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
129602         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
129603         Based on a patch from Bruno Haible.
129605 2000-05-01  Jim Meyering  <meyering@lucent.com>
129607         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
129609 2000-04-29  Jim Meyering  <meyering@lucent.com>
129611         * lib/path-concat.c: Declare strdup only if it's not defined.
129612         * lib/canon-host.c: Likewise.
129614 2000-04-28  Jim Meyering  <meyering@lucent.com>
129616         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
129617         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
129618         is included first, then limits.h is included by locale.h by libintl.h.
129619         From John David Anglin.
129621 2000-04-25  Jim Meyering  <meyering@lucent.com>
129623         * lib/makepath.c (S_IRWXUGO): Define.
129624         (make_path): Always perform explicit chmod if MODE specifies any
129625         of the `special' permission bits.  Prompted by a bug report against
129626         install from Mate Wierdl and Joost van Baal.
129628 2000-04-18  Jim Meyering  <meyering@lucent.com>
129630         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
129631         (jm_PREREQ): Use it.
129633 2000-04-18  Jim Meyering  <meyering@lucent.com>
129635         * lib/README: New file.
129637         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
129638         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
129640 2000-04-17  Jim Meyering  <meyering@lucent.com>
129642         Get it right :-)
129643         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
129644         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
129645         Suggestion from Akim Demaille.
129647 2000-04-17  Jim Meyering  <meyering@lucent.com>
129649         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
129650         the definition of it to rpl_strftime also defined-away the system's
129651         declaration.
129653 2000-04-15  Jim Meyering  <meyering@lucent.com>
129655         Use `C' to denote so-called `contiguous' files, the same way
129656         that tar does.
129657         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
129658         (ftypelet): Use S_ISCTG.
129659         From Michael Deutschmann.
129661 2000-04-14  Jim Meyering  <meyering@lucent.com>
129663         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
129664         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
129665         clobbered.
129667 2000-04-14  Jim Meyering  <meyering@lucent.com>
129669         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
129671 2000-04-13  Jim Meyering  <meyering@lucent.com>
129673         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
129674         AH_VERBATIM to insert required #ifndef into config.h.in.
129675         Suggestion from Akim Demaille.
129677 2000-04-12  Jim Meyering  <meyering@lucent.com>
129679         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
129680         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
129681         Christian Krackowizer.
129683         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
129684         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
129685         (AC_SYS_LARGEFILE): Require.
129686         (AM_C_PROTOTYPES): Require.
129688 2000-04-08  Jim Meyering  <meyering@lucent.com>
129690         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
129691         names don't conflict.  Reported by Eli Zaretskii.
129693 2000-04-07  Jim Meyering  <meyering@lucent.com>
129695         * lib/putenv.c: Move inclusion of errno.h so it follows that of
129696         sys/types.h, to work around system header problems on AIX 3.2.5.
129697         From Bruno Haible.
129699 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
129701         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
129702         bug.  Deal with the different error behavior of Irix iconv.
129704 2000-04-05  Paul Eggert  <eggert@twinsun.com>
129706         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
129707         IRIX if the installer said otherwise.
129709 2000-04-05  Jim Meyering  <meyering@lucent.com>
129711         Portability tweaks required for ultrix4.3.
129712         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
129713         (jm_CHECK_DECLS): Add getutent to the list of functions.
129714         (_jm_DECL_HEADERS): Add utmpx.h.
129715         From John David Anglin.
129717         * m4/strftime.m4: Back out the 2000-04-02 change.
129718         Instead of that change, simply undefine putenv in the test program.
129720 2000-04-05  Jim Meyering  <meyering@lucent.com>
129722         Portability tweaks required for ultrix4.3.
129723         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
129724         getutent.
129725         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
129726         * lib/canon-host.c: Declare strdup.
129727         * lib/path-concat.c: Likewise.
129728         From John David Anglin.
129730 2000-04-04  Jim Meyering  <meyering@lucent.com>
129732         Be more DOS 8.3-friendly.
129733         * lib/ref-add.sin: Renamed from ref-add.sed.in.
129734         * lib/ref-del.sin: Renamed from ref-del.sed.in.
129735         * lib/Makefile.am: Reflect renaming.
129736         Reported by Eli Zaretskii.
129738         Use a temporary file name that won't clash with `charset.alias'
129739         in the DOS 8.3 name space.
129740         * lib/Makefile.am (charset_tmp): Define.
129741         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
129742         (uninstall-local): Likewise.
129743         Reported by Eli Zaretskii.
129745 2000-04-03  Jim Meyering  <meyering@lucent.com>
129747         * m4/gettext.m4: Fix typo in comment.
129749         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
129750         textutils/configure.in).  Suggestion from Paul Eggert.
129751         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
129753 2000-04-02  Paul Eggert  <eggert@twinsun.com>
129755         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
129756         variable in the shell rather than using putenv, which isn't
129757         portable.  This avoids the configure-time inter-test dependency
129758         on the potentially-renamed putenv function.
129760 2000-03-30  Paul Eggert  <eggert@twinsun.com>
129762         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
129763         before checking struct stat.st_blksize, so that
129764         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
129766 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129768         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
129769         since strftime.c uses HAVE_STRFTIME to decide whether to use
129770         the underlying strftime.
129772 2000-03-29  Paul Eggert  <eggert@twinsun.com>
129774         * lib/time/strftime.c (my_strftime): Make sure we call the system
129775         strftime, not ourselves, when invoking the underlying strftime.
129777 2000-03-24  Jim Meyering  <meyering@lucent.com>
129779         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
129780         (charset_alias): Define.
129781         (install-exec-local): Factor out common code.
129782         (uninstall-local): Split lines longer than 80.
129783         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
129784         (SUFFIXES): Define.
129785         (.sed.in.sed): New rule.  Don't redirect directly to $@.
129786         (CLEANFILES): Add ref-add.sed and ref-del.sed.
129788 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
129790         * lib/config.charset: Output a line containing "Packages using this
129791         file".
129792         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
129793         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
129794         ref-del.sed): New rules.
129796 2000-03-17  Jim Meyering  <meyering@lucent.com>
129798         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
129799         Otherwise, include <strings.h>
129801 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
129803         * lib/unicodeio.c (utf8_wctomb): New function.
129804         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
129805         format instead of in UCS-4 with platform dependent endianness.
129807 2000-03-10  Jim Meyering  <meyering@lucent.com>
129809         * m4/lib-check.m4: Look for getspnam in -lgen, too.
129810         From Marco Franzen.
129812 2000-03-07  Paul Eggert  <eggert@twinsun.com>
129814         * lib/savedir.c (savedir): Work even if directory size is
129815         negative; this can happen with some screwy NFS configurations.
129817 2000-03-06  Jim Meyering  <meyering@lucent.com>
129819         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
129820         if it's NULL (because we ran out of memory).  From Bruno Haible.
129822 2000-03-05  Jim Meyering  <meyering@lucent.com>
129824         * lib/localcharset.c ("path-concat.h"): Include.
129825         (get_charset_aliases): Use path_concat instead of ANSI string
129826         concatenation.
129828         * lib/unicodeio.h (PARAMS): Define.
129829         Use it to guard prototype.
129831 2000-03-04  Jim Meyering  <meyering@lucent.com>
129833         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
129834         for lib/localcharset.c.
129836 2000-03-04  Jim Meyering  <meyering@lucent.com>
129838         * lib/Makefile.am (install-exec-local): Create $(libdir) before
129839         installing into it.
129840         (uninstall-local): Uncomment this rule so `make distcheck' works
129841         once again.
129843         * lib/unicodeio.c (<errno.h>): Include it.
129844         (errno): Declare if not defined.
129846         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
129848         * lib/config.charset: New version, incorporating remarks from a linux
129849         i18n mailing list.  From Bruno Haible.
129851 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
129853         * m4/codeset.m4: New file.
129854         * m4/iconv.m4: New file.
129855         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
129857 2000-03-03  Jim Meyering  <meyering@lucent.com>
129859         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
129861 2000-03-02  Jim Meyering  <meyering@lucent.com>
129863         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
129864         the messages come out on separate lines.
129866         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
129867         rather than jm_CHECK_DECLARATIONS.
129868         * m4/decl.m4: Remove now-unused file.
129870         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
129871         geteuid.
129873 2000-03-02  Jim Meyering  <meyering@lucent.com>
129875         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
129877 2000-03-01  Jim Meyering  <meyering@lucent.com>
129879         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
129880         * lib/unicodeio.c: Likewise.
129882 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
129884         * lib/config.charset: New file.
129885         * lib/localcharset.c: New file.
129886         * lib/unicodeio.h, lib/unicodeio.c: New files.
129887         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
129888         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
129889         (noinst_HEADERS): Add unicodeio.h.
129890         (all-local, install-exec-local, charset.alias): New targets.
129892 2000-02-28  Paul Eggert  <eggert@twinsun.com>
129894         * lib/quotearg.c (ALERT_CHAR): New macro.
129895         (quotearg_buffer_restyled): Use it.
129897 2000-02-27  Jim Meyering  <meyering@lucent.com>
129899         * m4/check-decl.m4: Add getenv to the list.
129901 2000-02-27  Jim Meyering  <meyering@lucent.com>
129903         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
129904         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
129906         * lib/backupfile.c: Guard inclusion of stdlib.h with
129907         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
129908         Declare malloc if needed.
129910         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
129911         `#ifndef HAVE_DECL..'
129912         now that autoconf always defines the HAVE_DECL_ symbols.
129913         * lib/human.c: Likewise.
129914         * lib/same.c: Likewise.
129915         * lib/strtoumax.c: Likewise.
129917         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
129918         declaration check was not run.
129919         * lib/hash.c: Likewise.
129920         * lib/human.c: Likewise.
129921         * lib/same.c: Likewise.
129922         * lib/strtoumax.c: Likewise.
129924         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
129925         `.', then first look up the entire `.'-containing string as a login
129926         name.
129928 2000-02-23  Jim Meyering  <meyering@lucent.com>
129930         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
129931         in place of my hack.
129933 2000-02-18  Paul Eggert  <eggert@twinsun.com>
129935         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
129936         (textint): New typedef.
129937         (parser_control): Member year changed from int to textint.
129938         All uses changed.
129939         (YYSTYPE): Removed; replaced by %union with int and textint members.
129940         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
129941         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
129942         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
129943         (tSNUMBER, tUNUMBER): Now of type <textintval>.
129944         (date, number, to_year): Use width of number in digits, not its value,
129945         to determine whether it's a 2-digit year, or a 2-digit time.
129946         (yylex): Store number of digits of numeric tokens.
129947         Reported by John Kendall.
129949         (parser_control): Changed from struct parser_control to typedef (for
129950         consistency).  All uses changed.
129952         (tID): Removed; not used.
129953         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
129955 2000-02-14  Paul Eggert  <eggert@twinsun.com>
129957         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
129958         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
129960 2000-02-12  Jim Meyering  <meyering@lucent.com>
129962         * lib/userspec.c (ISDIGIT): Define it.
129963         (isdigit): Remove definition.
129964         (is_number): Use ISDIGIT, not isdigit.
129965         <libintl.h>: Include.
129966         (_ and N_): Define.
129967         (parse_user_spec): Mark translatable strings.
129969 2000-02-10  Jim Meyering  <meyering@lucent.com>
129971         With these changes, nanosleep.[ch] are finally enough like the other
129972         lib/* replacement files to compile on a few more losing systems.
129974         * lib/nanosleep.h: Don't include config.h.
129975         Remove prototype from declaration of nanosleep.
129976         (PARAMS): Remove now-unneeded definition.
129977         * lib/nanosleep.c: #undef nanosleep.
129978         (rpl_nanosleep): Rename from nanosleep.
129980 2000-02-10  Jim Meyering  <meyering@lucent.com>
129982         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
129983         gnu_nanosleep to rpl_nanosleep.
129985 2000-02-09  Jim Meyering  <meyering@lucent.com>
129987         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
129988         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
129990 2000-02-08  Akim Demaille  <akim@epita.fr>
129992         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
129993         `[' and `]' and remove uses of `changequote'.
129994         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
129995         (AC_SYS_LARGEFILE): Likewise.
129996         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
129997         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
129998         of changequote.
129999         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
130000         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
130001         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
130002         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
130004 2000-02-05  Jim Meyering  <meyering@lucent.com>
130006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
130007         Remove explicit use of AC_HEADER_TIME.  It is required by
130008         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
130009         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
130010         in autoconf whereby the expansion of the latter ended up preceding
130011         the expansion of its prerequisite, AC_HEADER_TIME.
130012         Reported by Volker Borchert.
130014 2000-02-03  Jim Meyering  <meyering@lucent.com>
130016         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
130018 2000-02-03  Jim Meyering  <meyering@lucent.com>
130020         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
130021         rather than with `#if HAVE_UTMPNAME'.
130023 2000-02-02  Jim Meyering  <meyering@lucent.com>
130025         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
130026         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
130027         Reported by Eli Zaretskii.
130029 2000-02-01  Jim Meyering  <meyering@lucent.com>
130031         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
130033 2000-01-31  Jim Meyering  <meyering@lucent.com>
130035         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
130036         functions.  Add the time.h and sys/time.h headers along with the
130037         AC_REQUIRE'ment of AC_HEADER_TIME.
130039 2000-01-31  Jim Meyering  <meyering@lucent.com>
130041         * lib/nanosleep.h (nanosleep): Guard declaration with
130042         `#if ! HAVE_DECL_NANOSLEEP'.
130043         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
130044         the declaration in that vendor's sys/timers.h.
130045         Reported by Christian Krackowizer.
130047         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
130048         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
130049         (ISPRINT): Likewise.
130050         Reported by Tom Tromey.
130052 2000-01-30  Jim Meyering  <meyering@lucent.com>
130054         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
130056         * m4/prereq.m4 (utmp_includes): Define.
130057         Check for ut_user and ut_name members in both struct utmpx
130058         and struct utmp.
130060 2000-01-30  Jim Meyering  <meyering@lucent.com>
130062         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
130063         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
130064         header files where only utmpx.ut_user is declared.
130066         * lib/readutmp.h (UT_USER): Define.
130068 2000-01-29  Jim Meyering  <meyering@lucent.com>
130070         * m4/lib-check.m4: New file containing library-related checks from
130071         fileutils and sh-utils (textutils had none).
130073 2000-01-28  Jim Meyering  <meyering@lucent.com>
130075         * m4/perl.m4: Change format of warning message to look more like that
130076         from the missing script.  Suggestion from François Pinard.
130078 2000-01-25  Jim Meyering  <meyering@lucent.com>
130080         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
130081         well as time.h in the compile check.
130082         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
130083         Fix typo in cross-compiling case: s/yes/no/.
130085 2000-01-23  Jim Meyering  <meyering@lucent.com>
130087         * m4/jm-macros.m4: Move df-related tests here from
130088         fileutils/configure.in
130090         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
130091         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
130093         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
130094         s/space/ac_fsusage_space/.
130095         (jm_FILE_SYSTEM_USAGE): Take two parameters.
130097         * m4/ftruncate.m4: New file (derived from part of
130098         fileutils/configure.in).
130099         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
130100         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
130102         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
130103         AC_SUBST these here, rather than just in sh-util/configure.in, so
130104         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
130105         all the same.
130106         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
130107         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
130108         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
130109         (AC_SUBST(POW_LIBM)): Likewise.
130110         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
130112 2000-01-23  Jim Meyering  <meyering@lucent.com>
130114         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
130115         obstack.c.
130117 2000-01-22  Jim Meyering  <meyering@lucent.com>
130119         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
130121         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
130123         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
130124         configure.in
130125         (AC_CHECK_HEADERS): Likewise for sh-utils.
130126         (AC_CHECK_HEADERS): Likewise for textutils.
130127         Merge the three lists of headers.
130129         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
130130         from fileutils' configure.in.
130132         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
130133         code. Moved tests into their own function (_jm_DECL_HEADERS) in
130134         check-decl.m4.
130136         * m4/check-decl.m4: Use #if rather than #ifdef.
130137         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
130138         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
130139         (_jm_DECL_HEADERS): Define new function.
130140         (jm_CHECK_DECLARATIONS): Require it.
130142 2000-01-22  Jim Meyering  <meyering@lucent.com>
130144         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
130145         [! HAVE_DECL_STRTOULL]: Declare strtoull.
130146         Required for some AIX systems.  Reported by Christian Krackowizer.
130147         [TESTING] (main): New function.
130149         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
130150         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
130151         letters.
130153         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
130154         iswprint.
130156         * lib/strverscmp.c (ISDIGIT): Define.
130157         (strverscmp): Use ISDIGIT, not isdigit.
130159 2000-01-19  Jim Meyering  <meyering@lucent.com>
130161         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
130162         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
130163         defines `struct timespec' in <sys/time.h>
130165         * m4/c-bs-a.m4: Remove uses of changequote altogether.
130166         Thanks to Akim for explaining.
130168 2000-01-17  Paul Eggert  <eggert@twinsun.com>
130170         * lib/nanosleep.c (nanosleep):
130171         Don't use SA_INTERRUPT to decide whether to call sigaction, as
130172         POSIX.1 doesn't require SA_INTERRUPT and some systems
130173         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
130174         it's been part of POSIX.1 since day 1 (in 1988).
130176 2000-01-17  Jim Meyering  <meyering@lucent.com>
130178         * lib/interlock: Remove unused file.  Reported by François Pinard.
130180 2000-01-16  Paul Eggert  <eggert@twinsun.com>
130182         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
130183         alert, backslash, formfeed, and vertical tab unnecessarily in
130184         shell quoting style.
130186 2000-01-16  Jim Meyering  <meyering@lucent.com>
130188         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
130189         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
130190         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
130191         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
130193 2000-01-16  Jim Meyering  <meyering@lucent.com>
130195         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
130196         because the latter didn't work.
130198 2000-01-15  Jim Meyering  <meyering@lucent.com>
130200         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
130201         (AC_REPLACE_FUNCS): Add memcpy and memset.
130202         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
130203         Add strpbrk.
130204         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
130206 2000-01-12  Jim Meyering  <meyering@lucent.com>
130208         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
130209         (jm_PREREQ): Use it.
130210         (jm_PREREQ_READUTMP): New macro.
130211         (jm_PREREQ): Use it.
130213 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130215         Quote multibyte characters correctly.
130216         * m4/c-bs-a.m4: New file.
130217         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
130218         (jm_PREREQ): Use it.
130220 2000-01-11  Paul Eggert  <eggert@twinsun.com>
130222         * m4/uintmax_t.m4: Port to autoconf 2.13.
130224 2000-01-08  Jim Meyering  <meyering@ascend.com>
130226         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
130227         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
130229 2000-01-04  Jim Meyering  <meyering@ascend.com>
130231         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
130232         jm_STRUCT_DIRENT_D_TYPE.
130233         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
130234         jm_STRUCT_DIRENT_D_INO.
130235         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
130236         jm_STRUCT_UTIMBUF.
130237         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
130238         renamings.
130239         * m4/utime.m4: Likewise.
130241         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
130242         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
130244 2000-01-03  Paul Eggert  <eggert@twinsun.com>
130246         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
130247         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
130249 2000-01-02  Jim Meyering  <meyering@ascend.com>
130251         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
130252         remember if this is necessary.
130254 1999-12-26  Jim Meyering  <meyering@ascend.com>
130256         * m4/jm-macros.m4: Use it here.
130257         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
130259 1999-12-23  Jim Meyering  <meyering@ascend.com>
130261         * m4/jm-macros.m4: Check for clock_gettime (moved from
130262         fileutils/configure.in)
130263         Check for gettimeofday.
130265 1999-12-20  Jim Meyering  <meyering@ascend.com>
130267         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
130268         autoconf-2.14a-1999-12-20.
130270 1999-12-19  Jim Meyering  <meyering@ascend.com>
130272         * m4/lstat-slash.m4: New file.
130273         * m4/jm-macros.m4: Use the new macro:
130274         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130276 1999-12-07  Jim Meyering  <meyering@ascend.com>
130278         * m4/perl.m4: Require that File::Compare be available, too.
130279         Too many systems seem to lack it.
130281         * m4/strftime.m4: Add checks for most of the cpp macros tested in
130282         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
130284 1999-11-18  Paul Eggert  <eggert@twinsun.com>
130286         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
130287         problem with the QNX 4.25 shell, which doesn't propagate exit
130288         status of failed commands inside shell assignments.
130290 1999-11-17  Jim Meyering  <meyering@ascend.com>
130292         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
130294 1999-11-07  Jim Meyering  <meyering@ascend.com>
130296         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
130298 1999-11-06  Jim Meyering  <meyering@ascend.com>
130300         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
130301         * m4/jm-macros.m4 (jm_MACROS): Use it here.
130303 1999-11-05  Jim Meyering  <meyering@ascend.com>
130305         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
130306         configure.in of textutils, fileutils, and sh-utils into this one
130307         (shared between those packages) file.
130308         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
130309         AC_STRUCT_ST_BLKSIZE.
130311 1999-11-03  Jim Meyering  <meyering@ascend.com>
130313         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
130314         of AC_CHECK_TYPE checks includes unistd.h.
130315         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
130316         Suggestion from Akim Demaille.
130318 1999-10-30  Jim Meyering  <meyering@ascend.com>
130320         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
130321         m4-quoted string.
130322         * m4/ls-mntd-fs.m4: Likewise.
130323         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
130324         * m4/jm-winsz1.m4: Likewise.
130326         * m4/const.m4: Remove file, since the fix made it into the experimental
130327         version of autoconf.
130328         * m4/mktime.m4: Likewise.
130330         * m4/check-type.m4: Remove file, now that the latest version of
130331         AC_CHECK_TYPE takes a third arg to specify additional #includes.
130333         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
130334         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
130335         AC_CHECK_TYPE.
130337 1999-10-04  Jim Meyering  <meyering@ascend.com>
130339         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
130341 1999-09-22  Paul Eggert  <eggert@twinsun.com>
130343         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
130344         2.95.1 bug with HP-UX 10.20.
130346 1999-09-17  Jim Meyering  <meyering@ascend.com>
130348         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
130349         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
130350         due to missing strdup (against sh-utils-2.0).
130352 1999-08-29  Jim Meyering  <meyering@ascend.com>
130354         * m4/jm-macros.m4: Require jm_BISON.
130355         * m4/bison.m4: New file.
130357 1999-08-17  Paul Eggert  <eggert@twinsun.com>
130359         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
130360         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
130362 1999-08-05  Jim Meyering  <meyering@ascend.com>
130364         * m4/getline.m4: Rename test file from conftestdata to conftest.data
130365         to avoid conflicts with `conftest' on 8+3 filesystems.
130366         Suggestion from Eli Zaretskii.
130368 1999-08-04  Jim Meyering  <meyering@ascend.com>
130370         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
130371         fileutils and sh-utils (textutils's getline test was inadequate).
130372         (AM_FUNC_GETLINE): Run this test.
130373         (AC_CHECK_FUNCS): Check for getdelim.
130374         Reported by Bob Proulx.
130376 1999-08-02  Jim Meyering  <meyering@ascend.com>
130378         * m4/jm-macros.m4: Add a comment.
130380 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130382         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
130383         <inttypes.h> defines strtoumax as a macro (and not as a
130384         function).
130386 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130388         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
130389         that we can shift, multiply and divide unsigned long long
130390         values; Ultrix cc can't do it.
130392 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130394         * m4/mktime.m4: New file, which is a preview of what should appear
130395         in the next public autoconf release.
130397 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130399         * m4/lfs.m4: Remove this file.
130400         * m4/largefile.m4: New file.  It contains the old contents of
130401         lfs.m4, except that all names with prefix AC_LFS have been
130402         changed to use the prefix AC_SYS_LARGEFILE instead, to be
130403         compatible with future autoconf versions.  Also, some minor m4
130404         quoting problems have been fixed.
130406 1999-08-01  Paul Eggert  <eggert@twinsun.com>
130408         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
130409         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
130410         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
130411         and simplify the shell code.
130413 1999-08-01  Jim Meyering  <meyering@ascend.com>
130415         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
130416         m4.
130418 1999-07-20  Jim Meyering  <meyering@ascend.com>
130420         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
130422 1999-07-15  Jim Meyering  <meyering@ascend.com>
130424         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
130426 1999-05-22  Jim Meyering  <meyering@ascend.com>
130428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
130430 1999-05-20  Jim Meyering  <meyering@ascend.com>
130432         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
130433         Add a colon after each `then' in case $4 is empty.
130435 1999-05-16  Jim Meyering  <meyering@ascend.com>
130437         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
130439 1999-05-10  Jim Meyering  <meyering@ascend.com>
130441         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
130443         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
130444         AC_FUNC_MKTIME.
130446 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
130448         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
130450 1999-05-04  Paul Eggert  <eggert@twinsun.com>
130452         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
130453         not CPPFLAGS, so that linking works correctly in IRIX.
130455 1999-04-30  Paul Eggert  <eggert@twinsun.com>
130457         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
130459 1999-04-20  Paul Eggert  <eggert@twinsun.com>
130461         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
130462         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
130463         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
130464         jm_AC_TYPE_UNSIGNED_LONG_LONG.
130465         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
130467         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
130469 1999-04-20  Jim Meyering  <meyering@ascend.com>
130471         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
130472         AC_REPLACE xstroull if necessary.  From Paul Eggert.
130473         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
130475 1999-04-18  Jim Meyering  <meyering@ascend.com>
130477         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
130478         * m4/jm-macros.m4: Use it.
130480 1999-04-06  Jim Meyering  <meyering@ascend.com>
130482         * m4/strftime.m4: Remove test for %f.
130484 1999-03-29  Jim Meyering  <meyering@ascend.com>
130486         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
130487         superset of the AC_TYPE_* checks in the textutils, fileutils,
130488         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
130489         AC_TYPE_PID_T.
130491 1999-03-28  Jim Meyering  <meyering@ascend.com>
130493         * m4/jm-macros.m4: Define GNU_PACKAGE here.
130494         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
130495         replaced e.g., in the *.sh files of the sh-utils.
130497 1999-03-20  Jim Meyering  <meyering@ascend.com>
130499         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
130500         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
130501         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
130503 1999-03-19  Jim Meyering  <meyering@ascend.com>
130505         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
130507 1999-03-12  Jim Meyering  <meyering@ascend.com>
130509         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
130511 1999-03-07  Jim Meyering  <meyering@ascend.com>
130513         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
130514         declared.
130516 1999-02-17  Jim Meyering  <meyering@ascend.com>
130518         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
130519         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
130521 1999-02-07  Jim Meyering  <meyering@ascend.com>
130523         * m4/group-member.m4: New file -- extracted from sh-utils'
130524         configure.in.
130526         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
130527         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
130529 1999-02-06  Jim Meyering  <meyering@ascend.com>
130531         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
130532         * m4/fnmatch.m4: Likewise.
130533         * m4/getgroups.m4: Likewise.
130534         * m4/lstat.m4: Likewise.
130535         * m4/malloc.m4: Likewise.
130536         * m4/putenv.m4: Likewise.
130537         * m4/realloc.m4: Likewise.
130538         * m4/regex.m4: Likewise.
130539         * m4/stat.m4: Likewise.
130540         * m4/strftime.m4: Likewise.
130541         Suggestion from Alain Magloire.
130543         * m4/chown.m4: Use `.$ac_objext', not `.o'.
130544         * m4/fnmatch.m4: Likewise.
130545         * m4/getgroups.m4: Likewise.
130546         * m4/getline.m4: Likewise.
130547         * m4/lstat.m4: Likewise.
130548         * m4/malloc.m4: Likewise.
130549         * m4/memcmp.m4: Likewise.
130550         * m4/putenv.m4: Likewise.
130551         * m4/realloc.m4: Likewise.
130552         * m4/regex.m4: Likewise.
130553         * m4/stat.m4: Likewise.
130554         * m4/strftime.m4: Likewise.
130555         Suggestion from Alain Magloire.
130557         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
130558         an argument.
130560         * m4/regex.m4: Add a run-time Test for proper operation of
130561         re_compile_pattern.
130563 1999-01-31  Jim Meyering  <meyering@ascend.com>
130565         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
130567 1999-01-30  Jim Meyering  <meyering@ascend.com>
130569         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
130571         * m4/jm-mktime.m4: Make this a wrapper around the official
130572         AM_FUNC_MKTIME rather than my private copy, now that the official one
130573         is up to date.
130574         * m4/mktime.m4: Remove file.
130576         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
130577         * m4/uptime.m4: Likewise.
130578         * m4/uintmax_t.m4: Likewise.
130580 1999-01-28  Jim Meyering  <meyering@ascend.com>
130582         * m4/jm-macros.m4: Use jm_AFS.
130583         * m4/afs.m4: New file (from fileutils' configure.in).
130585         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
130586         * m4/chown.m4: Likewise.
130587         * m4/d-ino.m4: Likewise.
130588         * m4/d-type.m4: Likewise.
130589         * m4/fnmatch.m4: Likewise.
130590         * m4/getgroups.m4: Likewise.
130591         * m4/gettext.m4: Likewise.
130592         * m4/jm-mktime.m4: Likewise.
130593         * m4/jm-winsz2.m4: Likewise.
130594         * m4/lcmessage.m4: Likewise.
130595         * m4/ls-mntd-fs.m4: Likewise.
130596         * m4/malloc.m4: Likewise.
130597         * m4/memcmp.m4: Likewise.
130598         * m4/putenv.m4: Likewise.
130599         * m4/realloc.m4: Likewise.
130600         * m4/st_mtim.m4: Likewise.
130601         * m4/strftime.m4: Likewise.
130603 1999-01-16  Jim Meyering  <meyering@ascend.com>
130605         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
130606         (ARGMATCH_DIE_DECL): Define.
130608 1999-01-12  Jim Meyering  <meyering@ascend.com>
130610         * m4/Makefile.am.in: Rewrite to avoid using fmt.
130611         Reported by Lars Hecking.
130613 1999-01-10  Jim Meyering  <meyering@ascend.com>
130615         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
130616         gross kludge.
130617         * m4/inttypes_h.m4: Likewise.
130618         * m4/lstat.m4: Likewise.
130619         * m4/malloc.m4: Likewise.
130620         * m4/readdir.m4: Likewise.
130621         * m4/realloc.m4: Likewise.
130622         * m4/st_dm_mode.m4: Likewise.
130623         * m4/stat.m4: Likewise.
130624         * m4/utimbuf.m4: Likewise.
130625         * m4/utimes.m4: Likewise.
130627         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
130628         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
130629         comments in config.h.in are meaningful.
130631         * m4/jm-macros.m4: Require autoconf-2.13 here.
130633         * m4/regex.m4: By default, don't use the included regex.c on systems
130634         with glibc 2.  Suggestion from Uli Drepper.
130636 1999-01-02  Jim Meyering  <meyering@ascend.com>
130638         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
130640 1998-12-18  Jim Meyering  <meyering@ascend.com>
130642         * m4/Makefile.am.in (Makefile.am): Simplify rule.
130643         Based on a suggestion from Lars Hecking.
130645 1998-11-16  Paul Eggert  <eggert@twinsun.com>
130647         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
130649 1998-11-16  Jim Meyering  <meyering@ascend.com>
130651         * m4/lfs.m4: Double-quote the `uname...` expression.
130653 1998-11-14  Jim Meyering  <meyering@ascend.com>
130655         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
130656         * m4/stat.m4: Likewise.
130658 1998-11-03  Jim Meyering  <meyering@ascend.com>
130660         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
130661         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
130663 1998-10-18  Jim Meyering  <meyering@ascend.com>
130665         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
130667 1998-10-17  Jim Meyering  <meyering@ascend.com>
130669         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
130670         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
130671         calls for those previously hard-coded headers.  Instead, take a new
130672         parameter.
130673         (jm_CHECK_DECLARATIONS): Reflect interface change.
130674         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
130675         (jm_CHECK_DECL_LOCALTIME_R): New macro.
130677         * m4/mktime.m4: Test for spring-forward gap before long-running test.
130679 1998-10-14  Jim Meyering  <meyering@ascend.com>
130681         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
130682         instead of "TZ=America/Vancouver".  From Paul Eggert.
130684 1998-10-11  Jim Meyering  <meyering@ascend.com>
130686         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
130687         This adds a test for a recently added compatibility fix for mktime.c.
130688         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
130690 1998-09-27  Jim Meyering  <meyering@ascend.com>
130692         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
130694         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
130695         ../configure.in, including a change from Gordon Matzigkeit to allow
130696         cross-compiling for the Hurd.
130698         * m4/glibc.m4: New file/macro to test for the GNU C Library
130699         versions 1 and 2.  From Gordon Matzigkeit.
130700         Indent.
130702 1998-09-21  Jim Meyering  <meyering@ascend.com>
130704         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
130706 1998-08-18  Paul Eggert  <eggert@twinsun.com>
130708         Port nanosecond-resolution times to UnixWare 2.1.2 and
130709         pedantic Solaris 2.6.
130711         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
130712         AC_STRUCT_ST_MTIM.
130713         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
130714         Generate name of ns member, instead of just 1 or undef.
130715         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
130717 1998-08-15  Jim Meyering  <meyering@ascend.com>
130719         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
130720         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
130721         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
130722         instead of jm_TYPE_SSIZE_T.
130724 1998-08-12  Jim Meyering  <meyering@ascend.com>
130726         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
130728 1998-08-02  Jim Meyering  <meyering@ascend.com>
130730         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
130731         in acconfig.h manually.
130733 1998-07-31  Paul Eggert  <eggert@twinsun.com>
130735         * m4/st_mtim.m4: New file.
130737 1998-07-28  Jim Meyering  <meyering@ascend.com>
130739         * m4/utimes.m4: Undef stat.
130741 1998-07-25  Jim Meyering  <meyering@ascend.com>
130743         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
130744         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
130746 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
130748         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
130749         uid and gid actually remain unchanged.
130751 1998-07-07  Jim Meyering  <meyering@ascend.com>
130753         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
130755 1998-07-04  Jim Meyering  <meyering@ascend.com>
130757         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
130758         to prove that this macro can be used in packages without regex.c.
130760 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
130762         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
130763         is to be used.
130765 1998-07-03  Jim Meyering  <meyering@ascend.com>
130767         * m4/gettext.m4: Add -lintl if it's found to be necessary.
130769         * m4/gettext.m4: New file -- from gettext-0.10.35.
130770         * m4/lcmessage.m4: Likewise.
130771         * m4/progtest.m4: Likewise.
130773         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
130774         * m4/jm-macros.m4: Require the new macro.
130776 1998-06-29  Jim Meyering  <meyering@ascend.com>
130778         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
130779         for the definition of NGROUPS (used in a system header included
130780         by sys/mount.h).
130782 1998-06-28  Jim Meyering  <meyering@ascend.com>
130784         * m4/ls-mntd-fs.m4: New file.
130785         * m4/fstypename.m4: New file.
130787         * m4/jm-macros.m4: Require the new macro.
130788         * m4/jm-glibc-io.m4: New file.
130790 1998-05-19  Jim Meyering  <meyering@ascend.com>
130792         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
130793         * m4/lchown.m4: New file.
130795         * m4/Makefile.am.in: New file.
130796         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
130798 1998-05-14  Jim Meyering  <meyering@ascend.com>
130800         * m4/Makefile.am (EXTRA_DIST): Add them.
130801         * m4/jm-macros.m4: New file.
130802         * m4/utimbuf.m4: New file.
130804 1998-05-12  Jim Meyering  <meyering@ascend.com>
130806         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
130808 1998-05-11  Jim Meyering  <meyering@ascend.com>
130810         * m4/isc-posix.m4: New file.
130812 1998-05-10  Jim Meyering  <meyering@ascend.com>
130814         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
130816 1998-05-09  Jim Meyering  <meyering@ascend.com>
130818         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
130819         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
130820         with automake.
130822         * m4/ssize_t.m4: New file.
130823         * m4/mktime.m4: Remove file -- the new automake has this now.
130825 1998-04-26  Jim Meyering  <meyering@ascend.com>
130827         * m4/assert.m4: New file.
130828         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
130830 1998-04-05  Jim Meyering  <meyering@ascend.com>
130832         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
130833         (jm_PREREQ): Use it here.
130835 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
130837         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
130838         in acconfig.h.
130840 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
130842         * m4/prereq.m4: New file.
130843         * m4/error.m4: New file.
130844         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
130846 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
130848         * m4/getline.m4: Don't set am_cv_func_working_getline before the
130849         cache-check for the same variable -- that defeated the purpose of
130850         the test; the test program was never run.  This was a problem only
130851         on systems with losing getline functions -- HP-UX 10.20 is one.
130852         Reported by Bjorn Helgaas.
130854 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
130856         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
130858 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
130860         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
130862         * m4/const.m4: New file.  Use an initializer in this declaration
130863         typedef int charset[2]; const charset x;
130864         Reported by Bob Glickstein.
130866 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
130868         * m4/chown.m4: Fix reversed types on -1 args to chown.
130869         From Kaveh Ghazi.
130871 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
130873         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
130874         Add lseek and memchr.
130876         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
130877         T.E.Dickey <dickey@clark.net> said that some older preprocessors
130878         have a 20-character limit on names.
130880 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
130882         * m4/inttypes_h.m4: New file.
130883         * m4/uintmax_t.m4: New file.
130884         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
130887         -----
130889         Local Variables:
130890         coding: utf-8
130891         End:
130893         Copyright (C) 1997-2020 Free Software Foundation, Inc.
130895         Copying and distribution of this file, with or without
130896         modification, are permitted provided the copyright notice
130897         and this notice are preserved.